* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

body {
  padding-top: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  font-size: 16px;
}

.btn-primary {
  background: #044BD9;
  color: #fff;
}

.btn-secondary {
  background: #FF9F1C;
  color: #fff;
}

.btn-primary:hover,
.btn-secondary:hover {
  background: #0777D9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(218, 49, 202, 0.4);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #f7f9fc;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background-image: url('img/hero2_1.jpg');
  background-size: cover;
  background-position: top right;
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #f7f9fc 0%, rgba(247, 249, 252, 0.9) 20%, rgba(247, 249, 252, 0) 50%, rgba(247, 249, 252, 0) 100%);
}

.hero-section .container.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-content {
  max-width: 650px;
  padding: 40px 0;
}

.event-tag {
  display: inline-block;
  background-color: #044BD9;
  color: #FFF;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.hero-title {
  font-size: 65px;
  font-weight: 700;
  line-height: 1.05;
  color: #111b2b;
  margin: 0 0 25px;
  letter-spacing: -2px;
}

.highlight-orange {
  color: #f15a24;
}

.highlight-blue {
  color: #044BD9;
}


.hero-description {
  font-size: 16px;
  color: #556070;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-avatars-wrap {
  display: flex;
  align-items: center;
}

.avatars {
  display: flex;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 4px solid #f7f9fc;
  margin-right: -15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}

.avatar:last-child {
  margin-right: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-peach {
  background-color: #fceadd;
  z-index: 1;
}

.bg-sage {
  background-color: #d6dac2;
  z-index: 2;
}

.bg-photo {
  background-color: #2b90d9;
  z-index: 3;
}

.bg-orange {
  background-color: #e85d22;
  color: #fff;
  z-index: 4;
}

.avatars-text {
  font-size: 16px;
  font-weight: 600;
  color: #556070;
}

.avatars-text i {
  color: #044BD9;
}


/* Features Section */
.features-section {
  padding: 40px 0;
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: #2d3748;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  color: #2d3748;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.feature-card {
  background: #0777D9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: #e6f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 28px;
  color: #044BD9;
}

.feature-card h3 {
  margin: 0 0 15px;
  font-size: 20px;
  color: #FFF;
}

.feature-card p {
  margin: 0;
  color: #FFF;
}

/* Registration Form Section */
.registration-section {
  padding: 40px 0;
  background: #f8f9fa;
}

.features-section .container,
.registration-section .container,
.limited-spots-section .container,
.footer .container {
  max-width: 1140px;
  /* Reset container max-width for other sections */
  margin: 0 auto;
  padding: 0 20px;
}

.form-container {
  max-width: 70vw;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d3748;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: #2B90D9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 144, 217, 0.2);
}

#submit-btn {
  margin-top: 10px;
}

#form-message {
  margin-top: 20px;
  min-height: 24px;
  text-align: center;
  font-weight: 500;
}

#form-message.success {
  color: #38a169;
}

#form-message.error {
  color: #e53e3e;
}

/* Limited Spots Section */
.limited-spots-section {
  padding: 40px 0;
  text-align: center;
}

.limited-description {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #4a5568;
}

.event-details-footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  color: #4a5568;
}

.detail-item i {
  margin-right: 10px;
  color: #044BD9;
}

/* Footer */
.footer {
  background: linear-gradient(45deg, #044BD9 0%, #044BD9 60%, #0460D9 100%);
  padding: 30px 0;
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
}

.footer-logo a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.footer-logo a:hover {
  color: #FF9F1C;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: white;
  color: #2B90D9;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 30px;
  animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
  font-size: 60px;
  color: #38a169;
  margin-bottom: 20px;
}

.success-message h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2d3748;
}

.success-message p {
  font-size: 16px;
  color: #4a5568;
}

.success-message .sync-note {
  margin-top: 20px;
  font-size: 14px;
  color: #4a5568;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 3px solid #FF9F1C;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility */
.hp {
  display: none;
}

/* Responsive Adjustments */
@media (min-width: 1130px) {
  .event-details-footer {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
}

@media (min-width: 1025px) and (max-width: 1129px) {
  .event-details-footer {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
}

@media (max-width: 1024px) {

  .section-title,
  .section-subtitle {
    font-size: 24px;
  }

  .form-container {
    padding: 30px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 100vh;
    align-items: flex-end;
    padding-bottom: 40px;

  }

  .hero-content {
    padding-top: 300px;
  }

  .hero-bg {
    width: 100%;
    background-image: url('img/hero3.jpg');
    background-position: center 0%;
    background-size: cover;
  }

  .hero-bg::before {
    background: linear-gradient(to top, #f7f9fc 0%, #f7f9fc 20%, rgba(247, 249, 252, 0.85) 50%, rgba(247, 249, 252, 0) 70%, rgba(247, 249, 252, 0) 100%);
  }

  .hero-title {
    font-size: 54px;
  }
}

@media (max-width: 667px) {
  .hero-bg {
    background-size: 160% auto;
    background-repeat: no-repeat;
    background-color: #f7f9fc;
    background-image: url('img/hero3.jpg');
  }

  .hero-bg::before {
    background: linear-gradient(to top, #f7f9fc 0%, #f7f9fc 30%, rgba(247, 249, 252, 0.85) 60%, rgba(247, 249, 252, 0) 80%, rgba(247, 249, 252, 0) 100%);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-avatars-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .avatars-text {
    margin-left: 0;
    margin-top: 16px;
  }
}

/* Centrar la tercera card cuando queda sola en resoluciones pequeñas */
@media (max-width: 939px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  /* Centrar la tercera card específicamente */
  .features-grid .feature-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
  }
}

/* En resoluciones muy pequeñas, mostrar las 3 cards en una sola columna */
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .feature-card {
    width: 90vw;
  }

  /* Resetear la tercera card para que se comporte normalmente */
  .features-grid .feature-card:nth-child(3) {
    grid-column: auto;
    justify-self: center;
    width: 90vw;
    max-width: 100%;
  }
}