:root {
  --color-bg: #ebf2f2;
  --color-bg-alt: #a3d9c1;
  --color-acento-1: #bcebdf;
  --color-acento-2: #ade0db;
  --color-texto-principal: #1a3a2e;
  --color-texto-secundario: #555555;
  --color-btn-bg: #5779d6;
  --color-btn-hover: #425ca8;
  --color-footer-bg: #d9dbdb;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: 10px;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente general */
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.8;
  color: var(--color-texto-principal);
  background-color: var(--color-bg);
  font-size: 16px;
  padding-top: 70px; /* para compensar header fijo */
}

/* Navegación */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #ffffff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-btn-bg);
  gap: 6px;
}

.logo-img {
  height: 70px;
  display: block;
}

.tm-badge {
  font-size: 0.6em;
  vertical-align: baseline;
  margin-left: 3px;
  opacity: 0.3;
  color: #333;
  font-weight: 500;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  position: relative;
  top: 1px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-list li a {
  text-decoration: none;
  color: var(--color-texto-principal);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-list li a:hover {
  color: var(--color-btn-bg);
}

.hamburguesa {
  display: none;
  font-size: 2.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 50%, rgba(102, 178, 165, 0.6) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  flex-direction: column;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--color-btn-bg);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.1;
  animation: fadeDown 1s ease-out forwards;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--color-texto-secundario);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 1s ease-out 0.5s forwards;
  opacity: 0;
  line-height: 1.6;
}

.cta-button {
  background-color: var(--color-btn-bg);
  color: white;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(62, 100, 255, 0.4);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  background-color: var(--color-btn-hover);
  box-shadow: 0 6px 20px rgba(44, 78, 215, 0.6);
}

/* ================== SECCIONES ================== */
.section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  color: var(--color-btn-bg);
  text-align: center;
  font-weight: 700;
}

/* ================== PROCESO ================== */
.camino-proceso {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.svg-flecha-zigzag {
  position: absolute;
  top: 50px; /* Ajusta según posición */
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bloque-proceso {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1; /* Sobre el SVG */
}

.bloque-proceso.derecha {
  justify-content: flex-end;
}

.paso-proceso {
  background: linear-gradient(135deg, rgba(163, 217, 193, 0.4), rgba(102, 178, 165, 0.6));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  color: var(--color-texto-principal);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.15rem;
  width: 320px;
  position: relative;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.paso-proceso:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.icono-paso {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.paso-proceso p {
  margin-top: 0.5rem;
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-texto-secundario);
  line-height: 1.5;
}

/* ================== BENEFICIOS ================== */
.carrusel-beneficios {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  overflow: hidden;
}

.beneficios-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 700px;
}

.beneficios-grid {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.beneficio {
  flex: 0 0 calc(50% - 12px);
  margin-right: 1.5rem;
  background: linear-gradient(135deg, rgba(163, 217, 193, 0.4), rgba(102, 178, 165, 0.6));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  color: var(--color-texto-principal);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 1.1rem;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

.beneficio:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.beneficio h3 {
  margin-bottom: 0.8em;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: var(--color-btn-bg);
  font-weight: 700;
}

.beneficio p {
  margin: 0.6em 0;
  line-height: 1.6;
  color: var(--color-texto-secundario);
  font-family: 'Poppins', sans-serif;
}

.detalle-beneficio strong {
  color: #111;
  display: inline-block;
  width: 100%;
  font-weight: 600;
  margin-bottom: 0.2em;
}

/* Flechas para el carrusel */
.flecha {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-btn-bg);
  cursor: pointer;
  padding: 0 1rem;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.flecha:hover {
  color: var(--color-btn-hover);
  transform: scale(1.3);
  text-shadow: 0 0 8px rgba(66, 92, 168, 0.7);
}

/* Historia */
.historia p {
  max-width: 750px;
  margin: 0 auto 2rem;
  text-align: center;
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  color: var(--color-texto-secundario);
  line-height: 1.7;
  font-weight: 400;
}

.boton-centro {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.aviso-no-js {
  background: #ffeaea;
  color: #a00;
  text-align: center;
  font-weight: bold;
  padding: 1em;
  border: 2px solid #f88;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background: var(--color-footer-bg);
  font-size: 0.9rem;
  color: var(--color-texto-secundario);
  font-family: 'Open Sans', sans-serif;
}

.footer a {
  color: var(--color-btn-bg);
  text-decoration: none;
  font-weight: 600;
}

/* Animaciones */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-25px);}
  to { opacity: 1; transform: translateY(0);}
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Responsive nav */
@media screen and (max-width: 900px) {
  .nav-list {
    display: none;
    flex-direction: column;
    background: white;
    position: fixed;
    top: 70px;
    right: 0;
    width: 200px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    padding: 1rem;
    border-radius: 0 0 0 12px;
  }
  .nav-list.active {
    display: flex;
  }
  .hamburguesa {
    display: block;
  }

  .beneficio {
    flex: 0 0 100%;
    margin-right: 1rem;
  }
  
  .beneficio:last-child {
    margin-right: 0;
  }

  .beneficios-wrapper {
    max-width: 100%;
    padding: 0 1rem; /* margen lateral en móvil */
  }

  .carrusel-beneficios {
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  .nav-list {
    width: 180px;
    padding: 0.75rem;
  }

  .carrusel-elemento h2,
  .carrusel-elemento p {
    font-size: 0.9rem;
  }

  .carrusel-elemento {
    padding: 0.75rem;
  }

  .beneficios-wrapper {
    padding: 0 0.5rem;
  }

  .beneficio {
    margin-right: 0.75rem;
  }

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