/* ================================
   HEADER - NAVEGACIÓN PRINCIPAL
================================= */
.main-header {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  border: 1px solid #ffd5dc;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(255, 0, 43, 0.1);
  padding: 16px 32px;
  margin: 16px;
  position: sticky;
  top: 16px;
  z-index: 100;
}

.main-header.sticky {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  margin: 0;
  transition: all 0.3s ease;
}

.header-spacer {
  height: 0;
  transition: height 0.3s ease;
}

.main-header.sticky + .header-spacer {
  height: 90px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-img {
  height: 40px;
}

.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-list li a:hover {
  color: #e5233e;
}

.btn-contacto {
  background-color: #e5233e;
  color: #fff;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(229, 35, 62, 0.25);
  transition: all 0.3s ease;
}

.btn-contacto:hover {
  opacity: 0.9;
}

/* Ícono Menú Móvil */
.mobile-menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ================================
   HERO SECTION
================================= */
.hero-section {
  background-color: #fff;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  gap: 32px;
}

.hero-text {
  flex: 1 1 50%;
  max-width: 600px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  color: #111;
  margin-bottom: -30px;
  white-space: nowrap;
  margin-top: -200px;
}

.hero-subtitle {
  font-size: 44px;
  font-weight: 800;
  color: #e5233e;
  margin-bottom: 32px;
}

.store-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.store-btn {
  width: auto !important;
  height: 70px !important;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.store-btn:hover {
  transform: scale(1.05);
}

.hero-image {
  flex: 1 1 40%;
  text-align: right;
}

.hero-image img {
  width: 385px;
  height: 750px;
  object-fit: contain;
}

/* ================================
   SECTION DIVIDER - MISIÓN/VISIÓN
================================= */
.section-divider,
.section-divider-servicios,
.section-why-divider,
.section-app-divider {
  position: relative;
  text-align: center;
  border-top: 1px solid #eaeaea;
  font-family: 'Poppins', sans-serif;
}

.section-divider {
  margin: 80px 0 40px;
  margin-top: -70px;
}

.section-divider-servicios {
  margin: 80px 0 40px;
  margin-top: 100px;
}

.section-why-divider {
  margin: 80px 0 40px;
  margin-top: 75px;
}

.section-title,
.section-title-servicios,
.section-title-why,
.section-title-app {
  display: inline-block;
  background-color: #e5233e;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  padding: 12px 128px;
  border-radius: 0 0 20px 20px;
  font-family: inherit;
  position: relative;
}

.section-title {
  top: -17px;
}

.section-title-servicios,
.section-title-why {
  top: -1px;
  overflow: hidden;
}

.section-title-servicios::after,
.section-title-why::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    120deg,
    transparent 0,
    transparent 45%,
    rgba(255,255,255,0.5) 45%,
    rgba(255,255,255,0.5) 49%,
    rgba(255,255,255,0.5) 49%,
    rgba(255,255,255,0.5) 56%,
    transparent 56%,
    transparent 100%
  );
  animation: reflejo-solido 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes reflejo-solido {
  0% { left: -100%; }
  10% { left: 100%; }
  100% { left: 100%; }
}

/* ================================
   SECCIÓN MISIÓN
================================= */
.section-mision {
  padding: 80px 32px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  margin-top: -50px;
}

.mision-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.mision-image img {
  width: 480px;
  border-radius: 48px;
  object-fit: cover;
}

.mision-text {
  flex: 1;
  max-width: 600px;
  text-align: center;
}

.mision-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}

.mision-paragraph {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* ================================
   SECCIÓN VISIÓN
================================= */
.section-vision {
  padding: 0px 32px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
}

.vision-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.vision-text {
  flex: 1;
  max-width: 600px;
  text-align: center;
}

.vision-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}

.vision-paragraph {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.vision-image img {
  width: 415px;
  border-radius: 48px;
  object-fit: cover;
}

/* ================================
   SECCIÓN SERVICIOS
================================= */
.section-servicios {
  padding: 45px 32px;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.servicios-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.servicio-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  max-width: 300px;
  flex: 1 1 300px;
  transition: transform 0.2s ease;
}

.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(83, 83, 83, 0.6);
  border: 1px solid #ffffff;
}

.servicio-icon {
  width: 115px;
  height: auto;
  margin-bottom: -20px;
}

.servicio-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.servicio-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

/* ================================
   SECCIÓN ¿POR QUÉ ELEGIRNOS?
================================= */
.why-section {
  background-color: #fff;
  padding: 8px 32px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.why-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
}

.why-number {
  color: #e5233e;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 8px;
}

.why-icon {
  width: 120px;
  height: 120px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-icon img {
  width: auto;
  height: 55px;
}

.why-text {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

/* ================================
   SECCIÓN APP DESCARGA
================================= */
.descarga-section {
  background-color: #fff;
  padding: 80px 10px;
  font-family: 'Poppins', sans-serif;
}

.descarga-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 32px;
}

.descarga-texto {
  flex: 1 1 50%;
  max-width: 600px;
}

.descarga-title {
  font-size: 52px;
  font-weight:700;
  color: #111;
  margin-bottom: -30px;
  white-space: nowrap;
  margin-top: -200px;
}

.descarga-subtitle {
  font-size: 44px;
  font-weight: 800;
  color: #e5233e;
  margin-bottom: 32px;
  align-items: center;
}

.descarga-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.store-btn:hover {
  transform: scale(1.05);
}

.descarga-imagen {
  flex: 1 1 40%;
  text-align: right;
}

.descarga-imagen img {
  width: 280px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ================================
   FOOTER
================================= */
.footer {
  background-color: #e5233e;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 16px;
  padding: 64px 32px 32px;
  border-radius: 80px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.footer-column {
  flex: 1;
  min-width: 160px;
}

.footer-logo {
  height: 80px;
  margin-bottom: 16px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-store {
  text-align: center;
}

.store-text {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.store-buttons-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.store-btn-footer {
  width: auto !important;
  height: 60px !important;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.store-btn-footer:hover {
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
  opacity: 0.9;
}

.footer-bottom strong {
  font-weight: 700;
}

/* ================================
   RESPONSIVE - MENÚ Y HEADER
================================= */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .btn-contacto {
    display: none;
  }

  .mobile-menu-icon {
    display: block;
    font-size: 24px;
    cursor: pointer;
  }
}


/* ================================
   RESPONSIVE - HERO SECTION
================================= */
@media (max-width: 768px) {
  .hero-flex {
    flex-direction: column-reverse;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px; /* Igual que descarga-section */
    box-sizing: border-box;
    gap: 32px;
  }

  .hero-title {
    font-size: 32px;
    white-space: normal;
    margin-top: 10px;
  }

  .hero-subtitle {
    font-size: 32px;
  }

  .hero-image {
    text-align: center;
  }

  .hero-image img {
    width: 300px;
    height: auto;
  }
}


/* ================================
   RESPONSIVE - SECCIÓN DIVIDER
================================= */
@media (max-width: 768px) {
  .section-divider {
    margin: 40px 0 32px;
  }

  .section-title {
    font-size: 18px;
    padding: 10px 128px;
    border-radius: 0 0 16px 16px;
  }
}


/* ================================
   RESPONSIVE - SECCIÓN VISIÓN
================================= */
@media (max-width: 768px) {
  .vision-container {
    flex-direction: column;
    text-align: center;
    margin-top: -85px;
  }

  .vision-image img {
    width: 100%;
    max-width: 340px;
  }

  .vision-text {
    padding-top: 24px;
  }
}


/* ================================
   RESPONSIVE - SECCIÓN MISIÓN
================================= */
@media (max-width: 768px) {
  .mision-container {
    flex-direction: column-reverse;
    text-align: center;
    margin-top: -60px;
  }

  .mision-image img {
    width: 100%;
    max-width: 340px;
  }

  .mision-text {
    padding-top: 24px;
  }
}


/* ================================
   RESPONSIVE - SECCIÓN SERVICIOS
================================= */
@media (max-width: 768px) {
  .service-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    text-align: center;
  }

  .service-card {
    margin: 0 auto;
  }
}


/* ================================
   RESPONSIVE - SECCIÓN WHY
================================= */
@media (max-width: 768px) {
  .section-title-why {
    font-size: 18px;
    padding: 12px 64px;
  }

  .why-items {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .why-item {
    width: 100%;
    max-width: 280px;
  }

  .why-text {
    font-size: 15px;
  }
}


/* ================================
   RESPONSIVE - DESCARGA APP
================================= */
@media (max-width: 768px) {
  .descarga-flex {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px; /* Igual que descarga-section */
    box-sizing: border-box;
    gap: 32px;
  }

  .descarga-imagen {
    text-align: center;
    margin-top: 32px;
  }

  .descarga-title {
    font-size: 32px;
    white-space: normal;
    margin-top: 10px;
  }

  .descarga-subtitle {
    font-size: 28px;
  }

  .descarga-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* ================================
   RESPONSIVE - FOOTER
================================= */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-column {
    width: 100%;
  }

  .store-buttons {
    justify-content: center;
  }
}

/* ================================ */
/*          PRELOADER              */
/* ================================ */

#preloader {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.logo-loader img {
  width: 80px;
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1800px) {
  .store-buttons-footer {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .store-btn-footer {
    height: 60px !important;
    width: auto !important;
  }
}
