/* RESET Y ESTILOS BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f05100;
  line-height: 1.4;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== ENCABEZADO BLANCO ========== */
.header-white {
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo-area {
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.logo-img:hover {
  transform: scale(1.02);
}

.right-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.small-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.small-img:hover {
  transform: scale(1.08);
}

.hamburger-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #000000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 999;
  padding-top: 80px;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-list {
  list-style: none;
  padding: 0 2rem;
}

.mobile-nav-list li {
  margin-bottom: 1.5rem;
}

.mobile-nav-link {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.2s ease;
  display: block;
  padding: 0.5rem 0;
}

.mobile-nav-link:hover {
  color: #f05100;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}


.main-orange {
  background: linear-gradient(135deg, #f05100 0%, #f05100 100%);
  flex: 1;
  padding: 2.5rem 2rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}


.hero-card {
  background: #ffffff;
  border-radius: 2rem;
  padding: 2.5rem 2.8rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f05100, #f07c3c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.card-icon i {
  font-size: 2.5rem;
  color: white;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #f05100;
  margin-bottom: 2rem;
}


.phone-form {
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
  background: white;
}

.phone-input-wrapper:focus-within {
  border-color: #f05100;
  box-shadow: 0 0 0 3px rgba(240, 81, 0, 0.1);
}

.country-code {
  background: #f8fafc;
  padding: 1rem 1rem;
  font-weight: 600;
  color: #1e293b;
  border-right: 1px solid #e2e8f0;
  font-size: 1rem;
}

.phone-input {
  flex: 1;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: white;
}

.phone-input::placeholder {
  color: #94a3b8;
}

.form-note {
  font-size: 0.75rem;
  color: #5b6e8c;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-note i {
  color: #f05100;
  font-size: 0.7rem;
}


.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #f05100;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 18px rgba(240, 81, 0, 0.3);
  margin-bottom: 1.5rem;
  width: 100%;
}

.btn-primary:hover {
  background: #d64400;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(240, 81, 0, 0.4);
}

.btn-primary i {
  font-size: 1.2rem;
}

.legal-text {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}

.legal-text a {
  color: #f05100;
  text-decoration: none;
  font-weight: 500;
}

.legal-text a:hover {
  text-decoration: underline;
}

.image-container-large {
  width: 100%;
  max-width: 100%;
  margin: 2rem auto 0 auto;
  background: transparent;
  border: none;
  overflow: hidden;
  border-radius: 0;
  transition: transform 0.3s ease;
  padding: 0;
}

.image-container-large:hover {
  transform: translateY(-5px);
}

.gallery-img-large {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* Para pantallas grandes (desktop) - imagen más controlada */
@media (min-width: 769px) {
  .image-container-large {
    max-width: 900px;
    margin: 2rem auto 0 auto;
  }
}

/* Para tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .image-container-large {
    max-width: 100%;
    padding: 0;
  }
}

/* Para celulares (menos de 480px) - imagen aún más grande */
@media (max-width: 480px) {
  .image-container-large {
    max-width: 100%;
    margin: 1.5rem -1rem 0 -1rem; /* Margen negativo para expandir más allá del padding del contenedor */
    width: calc(100% + 2rem);
  }
  
  .gallery-img-large {
    width: 100%;
    height: auto;
  }
}

/* Sección de beneficios (afuera del hero-card) */
.benefits-section {
  margin-bottom: 2.5rem;
}

.benefits-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.8rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.2rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.benefit-card:hover {
  transform: translateY(-15px);
  background: white;
}

.benefit-icon {
  width: 55px;
  height: 55px;
  background: #fff7ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.benefit-icon i {
  font-size: 1.5rem;
  color: #f05100;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.8rem;
  color: #5b6e8c;
  line-height: 1.4;
}

/* Banner informativo */
.info-banner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.2rem;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.info-item {
  font-weight: 600;
  color: #f05100;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item i {
  font-size: 1.1rem;
  color: #f05100;
}

.info-badge {
  background: #f05100;
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer */
.footer-dark {
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .benefits-grid {
    gap: 1rem;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .image-container-large {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-card {
    padding: 2rem;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .header-container {
    padding: 0.8rem 1.5rem;
  }
}

@media (max-width: 550px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .main-orange {
    padding: 1.5rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .info-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo-img {
    height: 32px;
  }
  .small-img {
    width: 32px;
    height: 32px;
  }
  .phone-input-wrapper {
    flex-wrap: wrap;
  }
  .country-code {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .image-container-large {
    margin-top: 1.5rem;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    width: 320px;
  }
}

/* FORZAR QUE EL TELÉFONO SIEMPRE ESTÉ EN UNA SOLA LÍNEA */
.phone-input-wrapper {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.country-code {
  width: auto !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
}

.phone-input {
  flex: 1 !important;
  text-align: left !important;
}

/* Eliminar el wrap que se aplicaba en móvil */
@media (max-width: 550px) {
  .phone-input-wrapper {
    flex-wrap: nowrap !important;
  }
  .country-code {
    width: auto !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
  }
}
