html {
  scroll-behavior: smooth; /* ¡La magia del deslizamiento! */
}







/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
  /* Paleta */
  --color-brand-red: #ef4056;
  --color-brand-teal: #78c0d3;
  --color-bg-mint: #dff2e8;
  --color-bg-body: #f4f6f8;
  
  --color-text-main: #1a1a1a;
  --color-text-muted: #555555;
  --color-white: #ffffff;
  
  /* Diseño */
  --border-radius-lg: 20px;
  --border-radius-sm: 12px;
  --container-width: 960px;
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.05);
  --shadow-card: 0 4px 12px rgba(0,0,0,0.08);
  
  /* Fuente: Si no carga Google Fonts, usa sistema */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  line-height: 1.6;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.2; font-weight: 800; }
img { max-width: 100%; display: block; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background-color: var(--color-brand-teal);
  padding: 1rem 0;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-soft);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  background-color: var(--color-brand-red);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  font-weight: 800;
  border-radius: 8px;
  font-size: 1.1rem;
}

.site-nav__list {
  display: flex;
  gap: 1.5rem;
}

.site-nav__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #000;
}

@media (max-width: 768px) {
  .site-header .container { flex-direction: column; gap: 1rem; }
  .site-nav__list { font-size: 0.9rem; flex-wrap: wrap; justify-content: center; }
}

/* =========================================
   ESTILO DE SECCIONES (Layout Unificado)
   ========================================= */
/* Aplica estilo "Bloque Menta" a casi todo */
.intro .container, 
.how-it-works .container,
.product .container,
.site-content .container,
.why .container,
.process .container,
.faq .container,
.contact .container {
  background-color: var(--color-bg-mint);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.03);
}

/* Espacio entre secciones */
main section { margin-bottom: 4rem; }

/* Cabeceras de sección (Teal) */
.section-header {
  background-color: var(--color-brand-teal);
  padding: 2rem 2.5rem;
  color: #000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section-title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.section-lead { font-size: 1.1rem; opacity: 0.85; margin: 0; max-width: 700px; }

/* Contenido interior (Padding sobre el fondo menta) */
.intro__content,
.how-it-works__content,
.product-card, /* Ojo aquí, el padding lo manejará la card roja */
.process__steps,
.faq__items,
.contact__grid,
.includes {
  padding: 2.5rem;
}

/* =========================================
   HERO (Portada)
   ========================================= */
.hero .container {
  background-color: var(--color-bg-mint);
  border-radius: var(--border-radius-lg);
  padding: 5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero__kicker {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero__lead {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  color: #444;
}

/* Botones */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button--primary {
  background-color: var(--color-brand-red);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 64, 86, 0.4);
}
.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 64, 86, 0.6);
}

.button--secondary {
  background-color: transparent;
  border: 2px solid var(--color-text-main);
  color: var(--color-text-main);
  margin-left: 1rem;
}
.button--secondary:hover {
  background-color: var(--color-text-main);
  color: white;
}

/* =========================================
   INTRO (Con FOTO)
   ========================================= */
.intro__wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: center;
}

.intro__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  /* Borde doble para efecto profesional */
  border: 5px solid var(--color-white);
  box-shadow: 0 0 0 4px var(--color-brand-teal), var(--shadow-card);
}

.intro__text {
  flex: 1;
  max-width: 500px;
}
.intro__text p { font-size: 1.1rem; margin-bottom: 1rem; }

@media (max-width: 768px) {
  .intro__wrapper { flex-direction: column; text-align: center; }
  .intro__photo { width: 160px; height: 160px; margin-bottom: 1rem; }
}

/* =========================================
   PRODUCTO (Card in Card)
   ========================================= */
.product .container {
  padding: 0; /* Limpiar padding del contenedor padre */
}

/* La tarjeta Roja contenedora */
.product-card {
  background-color: var(--color-brand-red);
  margin: 2rem;
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card__title { font-size: 2rem; margin-bottom: 0.5rem; }
.product-card__price { font-size: 1.5rem; opacity: 1; margin: 0; }

/* La tarjeta Blanca interna */
.product-card__body {
  background-color: var(--color-white);
  color: var(--color-text-main);
  border-radius: var(--border-radius-sm);
  padding: 2.5rem;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  text-align: left;
  margin: 2rem 0;
}

.product-card__subtitle {
  color: var(--color-brand-red);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin: 1.5rem 0 1rem 0;
}
.product-card__subtitle:first-child { margin-top: 0; }

.product-card__list li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
}
.product-card__list li::before {
  content: "✓";
  color: var(--color-brand-teal);
  font-weight: 900;
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

.product-card__footer .button--primary {
  background-color: var(--color-white);
  color: var(--color-brand-red);
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

.product-card__fineprint {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 1rem;
}

/* =========================================
   OTROS COMPONENTES
   ========================================= */
/* Process */
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.process__step-title {
  color: var(--color-brand-red);
  font-size: 1.4rem;
}

/* FAQ */
.faq__item {
  background-color: rgba(255,255,255,0.6);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1.2rem;
}
.faq__question {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq__question::after { content: "+"; color: var(--color-brand-teal); font-weight: 900; font-size: 1.2rem;}
details[open] .faq__question::after { content: "−"; }
.faq__answer { margin-top: 0.8rem; color: #444; }

/* =========================================
   CONTACTO (Formulario Rediseñado)
   ========================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Caja Izquierda (Whatsapp) */
.contact__primary {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
}
.contact__title { color: var(--color-text-main); margin-bottom: 1rem; }
.contact__checklist li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  color: #555;
}
.contact__checklist li::before {
  content: "";
  width: 8px; height: 8px;
  background-color: var(--color-brand-teal);
  border-radius: 50%;
  margin-right: 10px;
}

/* Caja Derecha (Formulario) */
.contact-form {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
}

.contact-form h3 { color: var(--color-brand-red); margin-bottom: 0.5rem; }
.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  font-family: var(--font-main);
  font-size: 1rem;
  background-color: #f9f9f9;
  border: 2px solid #eee;
  border-radius: 8px;
  transition: all 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-brand-teal);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(120, 192, 211, 0.2);
}

.contact-form button[type="submit"] {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  background-color: var(--color-text-main);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.contact-form button[type="submit"]:hover {
  background-color: var(--color-brand-red);
  transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 3rem 0;
  color: #888;
  font-size: 0.9rem;
}

/* RESPONSIVE FINAL */
@media (max-width: 768px) {
  .hero__title { font-size: 2.2rem; }
  .process__steps, .contact__grid { grid-template-columns: 1fr; }
  .product-card { margin: 1rem; padding: 2rem 1rem; }
  .button--secondary { margin-left: 0; margin-top: 1rem; display: block; width: 100%; }
}

/* Estilo para los enlaces del blog dentro de la lista de producto */
.product-card__list a {
  color: var(--color-brand-teal); /* Color Calipso */
  text-decoration: underline;
  text-decoration-thickness: 2px; /* Subrayado un poco más grueso */
  font-weight: 600;
  transition: color 0.2s;
}

.product-card__list a:hover {
  color: var(--color-brand-red); /* Cambia a Rojo al pasar el mouse */
}


/* =========================================
   BOTÓN VOLVER ARRIBA
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-brand-red); /* Rojo marca */
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Redondo */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000; /* Para que flote sobre todo */
  
  /* Animación de aparición */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* Cuando Javascript le pone la clase "visible" */
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-brand-teal); /* Calipso al hover */
  transform: translateY(-5px); /* Pequeño salto */
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Ajuste para móviles (para que no tape contenido) */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* =========================================
   PÁGINA DE GRACIAS (Success Page)
   ========================================= */

/* 1. Centrado perfecto en toda la pantalla */
.gracias-page {
  min-height: 100vh; /* Ocupa toda la altura de la ventana */
  display: flex;
  align-items: center; /* Centrar verticalmente */
  justify-content: center; /* Centrar horizontalmente */
  background-color: var(--color-bg-mint); /* Fondo Menta para diferenciarla */
}

/* 2. La Tarjeta Blanca */
.gracias-card {
  background-color: var(--color-white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Sombra suave */
  text-align: center;
  max-width: 500px;
  width: 90%; /* Para que no se pegue a los bordes en celular */
  animation: popIn 0.5s ease; /* Pequeña animación de entrada */
}

.gracias-card h1 {
  color: var(--color-brand-red);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.gracias-card p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* 3. El Círculo con el Check (Icono) */
.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-brand-teal); /* Calipso */
  color: white;
  font-size: 3rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto; /* Centrado y separado del título */
  box-shadow: 0 4px 15px rgba(120, 192, 211, 0.4);
}

/* Animación opcional: Entrada suave */
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   ESTILOS DEL BLOG
   ========================================= */

/* Grilla de tarjetas en la portada del blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-brand-teal);
}

.blog-card__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-tag {
  background-color: var(--color-bg-mint);
  color: var(--color-brand-teal);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.blog-title a { text-decoration: none; color: inherit; }

.read-more {
  margin-top: auto; /* Empuja el enlace al fondo */
  color: var(--color-brand-red);
  font-weight: 700;
  font-size: 0.9rem;
}

/* =========================================
   ESTILOS DEL ARTÍCULO (Lectura)
   ========================================= */
.article-container {
  max-width: 700px; /* Ancho lectura cómodo (tipo Medium.com) */
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.article-title {
  font-size: 2.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
  line-height: 1.2;
}

.article-meta {
  color: #888;
  font-size: 0.9rem;
}

.article-content {
  font-size: 1.15rem; /* Letra un poco más grande para leer fácil */
  line-height: 1.8;
  color: #333;
}

.article-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-brand-red);
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* Caja destacada dentro del artículo */
.highlight-box {
  background-color: var(--color-bg-mint);
  border-left: 4px solid var(--color-brand-teal);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  text-align: center;
}

/* Ajuste móvil */
@media (max-width: 768px) {
  .article-title { font-size: 2rem; }
  .article-content { font-size: 1.05rem; }
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: var(--color-text-main);
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  color: var(--color-brand-red); /* O el color calipso que te guste */
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.whatsapp-sticky {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-sticky:hover {
  transform: scale(1.1);
  color: white;
}