/* ===================================
   CSS BASE - CHALLENGE 7 DÍAS
   Mobile-First desde 375px
   =================================== */

/* ===================================
   VARIABLES CSS
   =================================== */
:root {
  /* Colores principales */
  --verde-principal: #2E4BC6;  /* Azul profundo */
  --verde-hover: #1F3399;      /* Azul oscuro */
  --verde-claro: #E8ECFF;      /* Azul muy claro */
  --fondo-principal: #FFFFFF;
  --fondo-alterno: #F4F7FF;    /* Azul muy tenue */
  --texto-principal: #2C3E50;
  --texto-secundario: #7F8C8D;
  --texto-claro: #95A5A6;
  --urgencia: #7FFF00;
  --border-color: #E8E8E8;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  
  /* Tipografía Mobile-First (375px) */
  --font-family: 'Montserrat', sans-serif;
  --h1-size: 28px;
  --h1-line: 34px;
  --h2-size: 24px;
  --h2-line: 30px;
  --h3-size: 20px;
  --h3-line: 26px;
  --body-size: 16px;
  --body-line: 24px;
  --small-size: 14px;
  --small-line: 20px;
  --cta-size: 18px;
  --cta-line: 22px;
  
  /* Espaciado */
  --container-padding: 20px;
  --section-spacing: 60px;
  --element-spacing: 24px;
  --small-spacing: 16px;
  --tiny-spacing: 8px;
  
  /* Componentes */
  --border-radius: 8px;
  --button-radius: 12px;
  --button-height: 50px;
  --max-width: 1200px;
}

/* ===================================
   RESET CSS
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--texto-principal);
  background-color: var(--fondo-principal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===================================
   TIPOGRAFÍA BASE
   =================================== */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--texto-principal);
  margin-bottom: var(--element-spacing);
}

h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  font-weight: 700;
}

h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  font-weight: 600;
}

h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  font-weight: 600;
}

/* Párrafos y texto */
p {
  margin-bottom: var(--small-spacing);
  color: var(--texto-principal);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--verde-principal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--verde-hover);
}

/* Listas */
ul, ol {
  margin-bottom: var(--small-spacing);
  padding-left: 20px;
}

li {
  margin-bottom: var(--tiny-spacing);
}

/* Elementos inline */
strong, b {
  font-weight: 600;
  color: var(--texto-principal);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--small-size);
  line-height: var(--small-line);
  color: var(--texto-secundario);
}

/* ===================================
   LAYOUT BASE
   =================================== */

/* Container principal */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Secciones */
section {
  padding: var(--section-spacing) 0;
}

/* ===================================
   UTILIDADES BÁSICAS
   =================================== */

/* Clases de texto */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-secondary {
  color: var(--texto-secundario);
}

.text-small {
  font-size: var(--small-size);
  line-height: var(--small-line);
}

/* Espaciado */
.mb-small {
  margin-bottom: var(--small-spacing);
}

.mb-normal {
  margin-bottom: var(--element-spacing);
}

.mb-large {
  margin-bottom: var(--section-spacing);
}

/* Visibilidad */
.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================================
   IMÁGENES RESPONSIVE
   =================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.placeholder-img {
  width: 100%;
  height: auto;
  background-color: var(--border-color);
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* ===================================
   FOCUS STYLES (Accesibilidad)
   =================================== */
*:focus {
  outline: 2px solid var(--verde-principal);
  outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--verde-principal);
  outline-offset: 2px;
}

/* ===================================
   FRANJA DE URGENCIA
   =================================== */
.urgency-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--urgencia);
  text-align: center;
  padding: 12px var(--container-padding);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.urgency-bar p {
  margin: 0;
  color: var(--texto-principal);
}

/* Responsive para móvil más pequeño */
@media (max-width: 375px) {
  .urgency-bar {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* ===================================
   HEADER CON LOGO
   =================================== */
.header {
  background-color: var(--fondo-principal);
  padding: var(--small-spacing) 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.logo {
  height: 200px;
  width: auto;
  display: inline-block;
  background-color: white;
  border-radius: 50%;
  padding: 4px;
}

/* Responsive móvil */
@media (max-width: 375px) {
  .logo {
    height: 150px;
    padding: 3px;
  }
  
  .header {
    padding: 12px 0;
  }
}

/* ===================================
   BOTONES CTAs
   =================================== */
.cta-button {
  display: inline-block;
  background-color: var(--verde-principal);
  color: white;
  font-family: var(--font-family);
  font-size: var(--cta-size);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: var(--button-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
  width: 100%;
  max-width: 400px;
  min-height: var(--button-height);
  line-height: 1.2;
}

.cta-button:hover {
  background-color: var(--verde-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 139, 87, 0.4);
  color: white;
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(46, 139, 87, 0.3);
}

/* Responsive móvil */
@media (max-width: 375px) {
  .cta-button {
    font-size: 16px;
    padding: 14px 20px;
    min-height: 48px;
  }
}

/* ===================================
   LAYOUT DE SECCIONES (FLEXBOX)
   =================================== */

.hero {
  background-color: var(--fondo-alterno);
}

/* Layout base para secciones con imagen + texto */
.hero-content,
.pain-content,
.solution-content,
.included-content,
.pricing-content,
.final-content {
  display: flex;
  flex-direction: column;
  gap: var(--element-spacing);
  align-items: center;
}

/* Imágenes en secciones */
.hero-image img,
.pain-image img,
.solution-image img,
.included-image img,
.pricing-image img,
.final-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px var(--shadow-medium);
}

/* En móvil: imagen siempre arriba, texto abajo */
.hero-image,
.pain-image,
.solution-image,
.included-image,
.pricing-image,
.final-image {
  order: 1;
  width: 100%;
  max-width: 300px;
}

.hero-text,
.pain-text,
.solution-text,
.included-text,
.pricing-text,
.final-text {
  order: 2;
  width: 100%;
  text-align: center;
}

/* ===================================
   PAIN POINTS STYLING
   =================================== */
.pain-point {
  display: flex;
  align-items: flex-start;
  gap: var(--small-spacing);
  margin-bottom: var(--small-spacing);
}

.pain-icon {
  font-size: 24px;
  filter: hue-rotate(60deg);
  flex-shrink: 0;
  margin-top: 2px;
}

.pain-info h3 {
  margin-bottom: var(--tiny-spacing);
  color: var(--texto-principal);
}

.pain-info p {
  color: var(--texto-secundario);
  margin-bottom: 0;
}

/* Responsive móvil */
@media (max-width: 375px) {
  .pain-icon {
    font-size: 20px;
  }
}

/* ===================================
   SECCIÓN SOLUCIÓN STYLING
   =================================== */
.solution {
  background-color: var(--fondo-alterno);
}

.solution-intro {
  font-size: var(--body-size);
  font-weight: 600;
  color: var(--texto-principal);
  margin-bottom: var(--small-spacing);
}

.benefits-list {
  margin: var(--small-spacing) 0;
}

.benefit {
  font-size: var(--body-size);
  font-weight: 600;
  color: var(--verde-principal);
  margin-bottom: var(--small-spacing);
}

/* ===================================
   SECCIÓN 7 DÍAS STYLING
   =================================== */
.day-item {
  display: flex;
  align-items: flex-start;
  gap: var(--small-spacing);
  margin-bottom: var(--small-spacing);
  padding: var(--small-spacing);
  background-color: var(--fondo-alterno);
  border-radius: var(--border-radius);
  transition: transform 0.2s ease;
}

.day-item:hover {
  transform: translateX(5px);
}

.day-number {
  background-color: var(--verde-principal);
  color: white;
  font-size: 18px;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.day-info h3 {
  margin-bottom: var(--tiny-spacing);
  color: var(--verde-principal);
}

.day-info p {
  color: var(--texto-secundario);
  margin-bottom: 0;
}

/* Responsive móvil */
@media (max-width: 375px) {
  .day-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* ===================================
   PRECIP STYLING
   =================================== */
.guarantee {
  margin-bottom: var(--small-spacing);
}


/* ===================================
   FORMULARIO DE COMPRA STYLING
   =================================== */
.final-cta {
  background-color: var(--fondo-alterno);
}

.price-highlight {
  text-align: center;
  margin: var(--element-spacing) 0;
  padding: var(--element-spacing);
  background-color: var(--verde-claro);
  border-radius: var(--border-radius);
  border: 2px solid var(--verde-principal);
}

.price-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--verde-principal);
  display: block;
  margin-bottom: var(--tiny-spacing);
}

.precio {
  font-size: 32px;
  font-weight: 700;
  color: var(--verde-principal);
  text-align: center;
  margin: var(--element-spacing) 0;
}

.purchase-form {
  max-width: 400px;
  margin: var(--element-spacing) 0;
}

.purchase-form input {
  width: 100%;
  padding: 16px;
  margin-bottom: var(--small-spacing);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--body-size);
  font-family: var(--font-family);
  transition: border-color 0.3s ease;
}

.purchase-form input:focus {
  border-color: var(--verde-principal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.final-benefits {
  margin: var(--element-spacing) 0;
}

.final-benefit {
  font-size: var(--body-size);
  font-weight: 600;
  color: var(--verde-principal);
  margin-bottom: var(--tiny-spacing);
}

.access-note {
  font-size: var(--small-size);
  color: var(--texto-secundario);
  text-align: center;
  margin-top: var(--small-spacing);
}

/* Responsive móvil */
@media (max-width: 375px) {
  .price-amount {
    font-size: 32px;
  }
  
  .precio {
    font-size: 28px;
  }
}

/* ===================================
   FAQ STYLING
   =================================== */
.faq {
  background-color: var(--fondo-principal);
}

.faq h2 {
  text-align: center;
  margin-bottom: var(--section-spacing);
  color: var(--texto-principal);
}

.faq-item {
  background-color: var(--fondo-alterno);
  border-radius: var(--border-radius);
  padding: var(--element-spacing);
  margin-bottom: var(--small-spacing);
  border-left: 4px solid var(--verde-principal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-light);
}

.faq-item h3 {
  color: var(--verde-principal);
  font-size: var(--h3-size);
  margin-bottom: var(--small-spacing);
  font-weight: 600;
}

.faq-item p {
  color: var(--texto-secundario);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Responsive móvil */
@media (max-width: 375px) {
  .faq-item {
    padding: var(--small-spacing);
  }
  
  .faq-item h3 {
    font-size: 18px;
  }
}

/* ===================================
   FOOTER STYLING
   =================================== */
.footer {
  background-color: var(--texto-principal);
  color: white;
  padding: var(--section-spacing) 0;
  text-align: center;
}

.footer-logo {
  height: 200px;
  width: auto;
  display: inline-block;
  margin-bottom: var(--element-spacing);
  background-color: white;
  border-radius: 50%;
  padding: 4px;
}

.footer p {
  color: var(--texto-claro);
  margin: 0;
}

/* Responsive móvil */
@media (max-width: 375px) {
  .footer-logo {
    height: 150px;
  }
}







/* ===================================
   BREAKPOINT: TABLET (768px)
   (Preparado para siguiente fase)
   =================================== */
@media (min-width: 768px) {
  :root {
    /* Tipografía más grande para tablet */
    --h1-size: 36px;
    --h1-line: 42px;
    --h2-size: 30px;
    --h2-line: 36px;
    --h3-size: 24px;
    --h3-line: 30px;
    --body-size: 18px;
    --body-line: 26px;
    --cta-size: 20px;
    --cta-line: 24px;
    
    /* Espaciado más generoso */
    --container-padding: 40px;
    --section-spacing: 80px;
    --element-spacing: 32px;
  }

  /* Layout desktop - dos columnas */
  .hero-content,
  .pain-content,
  .solution-content,
  .included-content,
  .pricing-content,
  .final-content {
    flex-direction: row;
    gap: 60px;
    align-items: center;
  }

  /* PATRÓN ALTERNANTE */

  /* Hero: imagen izq, texto der */
  .hero-image {
    order: 1;
    flex: 0 0 40%;
  }
  .hero-text {
    order: 2;
    flex: 1;
    text-align: left;
  }

  /* Pain Points: texto izq, imagen der */
  .pain-text {
    order: 1;
    flex: 1;
    text-align: left;
  }
  .pain-image {
    order: 2;
    flex: 0 0 40%;
  }

  /* Solución: imagen izq, texto der */
  .solution-image {
    order: 1;
    flex: 0 0 40%;
  }
  .solution-text {
    order: 2;
    flex: 1;
    text-align: left;
  }

  /* 7 Días: texto izq, imagen der */
  .included-text {
    order: 1;
    flex: 1;
    text-align: left;
  }
  .included-image {
    order: 2;
    flex: 0 0 40%;
  }

  /* Precio: imagen izq, texto der */
  .pricing-image {
    order: 1;
    flex: 0 0 40%;
  }
  .pricing-text {
    order: 2;
    flex: 1;
    text-align: left;
  }

  /* Final: texto izq, imagen der */
  .final-text {
    order: 1;
    flex: 1;
    text-align: left;
  }
  .final-image {
    order: 2;
    flex: 0 0 40%;
  }

  /* Componentes tablet */
  .pain-point, .day-item, .faq-item {
    padding: var(--tiny-spacing);
  }

  .pain-point {
  margin-bottom: var(--small-spacing);
  }

  .day-number {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .price-amount {
    font-size: 42px;
  }

  .precio {
    font-size: 36px;
  }

  .solution-intro {
  font-size: 20px;
  }

  .benefit {
    font-size: 18px;
    margin-bottom: var(--small-spacing);
  }

  .pain-image img {
    min-height: 400px;
    object-fit: cover;
    width: 100%;
  }

}



/* ===================================
   BREAKPOINT: DESKTOP (1024px)
   (Preparado para siguiente fase)
   =================================== */
@media (min-width: 1024px) {
  :root {
    /* Tipografía completa para desktop */
    --h1-size: 40px;
    --h1-line: 48px;
    --h2-size: 32px;
    --h2-line: 38px;
    --h3-size: 24px;
    --h3-line: 30px;
    --body-size: 18px;
    --body-line: 28px;
    --cta-size: 20px;
    --cta-line: 24px;
    
    /* Espaciado desktop */
    --container-padding: 60px;
    --section-spacing: 100px;
    --element-spacing: 40px;
  }

  /* Componentes desktop optimizados */
  .pain-point, .day-item, .faq-item {
    padding: var(--tiny-spacing);
  }

  .pain-point {
  margin-bottom: var(--small-spacing);
  }

  .day-number {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .price-amount {
    font-size: 48px;
  }

  .precio {
    font-size: 40px;
  }

  /* Mejoras hover desktop */
  .day-item:hover {
    transform: translateX(8px);
  }

  .faq-item:hover {
    transform: translateY(-3px);
  }

  .solution-intro {
  font-size: 22px;
  margin-bottom: var(--small-spacing);
  }

  .benefit {
    font-size: 20px;
    margin-bottom: var(--small-spacing);
  }

  .benefits-list {
    margin: var(--small-spacing) 0;
  }

}








