:root {
  --azul: #217E90;
  --azul2: #4fc3d4;
  --azul-hover: #185F6D;
  --azul-claro: #E9F8F9;
  --azul-medio: #CAE6E8;
  --texto: #0F172A;
  --gris: #454F5E;
  --blanco: #FFFFFF;
  --footer: #222222;
  --verde: #075E54;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--gris);
  background: var(--blanco);
  line-height: 1.7;
}

header {
  background: var(--footer);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
header.scrolled {
  background: rgba(34,34,34,0.9);
  border-bottom-color: transparent;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 901px) {
  header { justify-content: center; gap: 3.5rem; }
}

.logo { display: inline-flex; }
.logo img { height: 38px; width: auto; display: block; }

nav { display: flex; gap: 2rem; align-items: center; }
nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
nav a:not(.nav-wsp)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--azul);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
nav a:hover { color: var(--azul-hover); }
nav a.active { color: var(--azul2); }
nav a:not(.nav-wsp):hover::after,
nav a:not(.nav-wsp).active::after { transform: scaleX(1); }

.nav-wsp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--verde);
  color: white !important;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-wsp:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,211,102,0.35); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.3rem;
  text-decoration: none; font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.85); transition: color 0.2s; cursor: pointer;
  background: none; border: none; padding: 0; font-family: inherit;
}
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--azul);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-dropdown-toggle:hover { color: var(--azul-hover); }
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-dropdown-toggle svg { transition: transform 0.2s; }
.nav-dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  background: var(--blanco);
  border: 1px solid var(--azul-medio);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  padding: 0.75rem;
  min-width: 240px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dropdown-menu a {
  text-decoration: none; font-size: 0.85rem;
  color: var(--gris); padding: 0.6rem 0.75rem;
  border-radius: 8px; transition: background 0.15s, color 0.15s;
  font-weight: 500;
}
.nav-dropdown-menu a:hover { background: var(--azul-claro); color: var(--azul); }

.hero {
  background: var(--azul-claro);
  padding: 5rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--azul-medio);
  opacity: 0.5;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-block;
  background: var(--azul);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--texto);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--azul); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--gris);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 480px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blanco);
  border: 1px solid var(--azul-medio);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gris);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azul); flex-shrink: 0; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-wsp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--verde); color: white;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.btn-wsp:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(37,211,102,0.42); }

.btn-tel, .btn-ver {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--azul);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--azul);
  transition: background 0.2s, color 0.2s;
}
.btn-tel:hover, .btn-ver:hover { background: var(--azul); color: white; }

.hero-img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--azul-medio);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--azul-hover);
  font-weight: 500;
  text-align: center;
  border: 2px dashed var(--azul-medio);
}
.hero-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 24px; border: none; }
.hero-img svg { width: 62%; height: auto; }
.hero-img:has(img) {
  border: none;
  background: transparent;
}

.hero-centrado { text-align: center; }
.hero-centrado::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--azul-medio);
  opacity: 0.4;
}
.hero-centrado .hero-label { position: relative; z-index: 1; }
.hero-centrado h1 {
  max-width: 700px;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}
.hero-centrado .hero-sub,
.hero-centrado > p {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-legal {
  background: var(--azul-claro);
  padding: 3.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--azul-medio);
}
.hero-legal h1 {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 0.5rem;
}
.hero-legal p { font-size: 0.9rem; color: var(--gris); }

.contenido { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; }
.contenido h2 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--texto);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--azul-medio);
}
.contenido h2:first-child { margin-top: 0; }
.contenido p { margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.8; }
.contenido ul { margin: 0.5rem 0 1rem 1.5rem; }
.contenido ul li { font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.3rem; }
.contenido a { color: var(--azul); text-decoration: none; }
.contenido a:hover { text-decoration: underline; }

.tabla-cookies { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.85rem; }
.tabla-cookies th {
  background: var(--azul-claro);
  color: var(--texto);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--azul-medio);
}
.tabla-cookies td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--azul-medio); vertical-align: top; }
.tabla-cookies tr:last-child td { border-bottom: none; }

.btn-preferencias {
  display: inline-block;
  background: var(--azul);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.btn-preferencias:hover { background: var(--azul-hover); }

.seccion { padding: 4.5rem 2rem; }
.seccion.bg-claro { background: var(--azul-claro); }
.seccion.bg-dark { background: var(--texto); }
.seccion-inner { max-width: 1100px; margin: 0 auto; }

h2.titulo {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 0.75rem;
  text-align: center;
}
h2.titulo.blanco { color: white; }
.sub { text-align: center; color: var(--gris); font-size: 1rem; margin-bottom: 3rem; }
.sub.blanco { color: rgba(255,255,255,0.7); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--blanco);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--azul-medio);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(58,166,185,0.15); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--azul-claro);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon .material-icons { font-size: 26px; color: var(--azul); }
.card h3 { font-family: 'IBM Plex Serif', serif; font-size: 1.05rem; font-weight: 600; color: var(--texto); margin-bottom: 0.5rem; }
.card p { font-size: 0.88rem; line-height: 1.6; }

.faq-lista { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--blanco); border: 1px solid var(--azul-medio); border-radius: 14px; overflow: hidden; }
.faq-pregunta {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.25rem 1.5rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'IBM Plex Serif', serif; font-size: 1rem; font-weight: 600;
  color: var(--texto); transition: color 0.2s;
}
.faq-pregunta:hover { color: var(--azul); }
.faq-pregunta svg {
  width: 18px; height: 18px; stroke: var(--azul); fill: none;
  stroke-width: 2; stroke-linecap: round; flex-shrink: 0; transition: transform 0.3s;
}
.faq-pregunta.abierta svg { transform: rotate(180deg); }
.faq-respuesta {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.92rem; line-height: 1.7; color: var(--gris);
  padding: 0 1.5rem;
}
.faq-respuesta.abierta { max-height: 400px; padding: 0 1.5rem 1.25rem; }

.cta { background: var(--azul); padding: 5rem 2rem; text-align: center; }
.cta h2 { font-family: 'IBM Plex Serif', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; color: white; margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 500px; margin: 0 auto 2.5rem; }
.btn-grupo { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-wsp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--verde); color: white;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: transform 0.2s;
}
.btn-cta-wsp:hover { transform: translateY(-3px); }
.btn-cta-tel {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: white;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: background 0.2s;
}
.btn-cta-tel:hover { background: rgba(255,255,255,0.12); }

footer { background: var(--footer); color: rgba(255,255,255,0.6); padding: 3rem 2rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col-titulo { font-family: 'IBM Plex Serif', serif; font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { text-decoration: none; font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--azul); }
.footer-social {
  max-width: 1100px; margin: 0 auto 1.75rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: center; gap: 0.75rem;
}
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: var(--azul);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--azul); color: white; }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom button { background: none; border: none; color: var(--azul2); font-size: 0.75rem; cursor: pointer; text-decoration: underline; }
footer strong { color: rgba(255,255,255,0.8); }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }

.wsp-flotante {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wsp-flotante:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(37,211,102,0.5); }
.wsp-flotante svg { width: 30px; height: 30px; color: white; }
.wsp-flotante.wsp-oculto { display: none; }
@media (max-width: 900px) {
  .wsp-flotante { display: none; }
}

#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 780px;
  background: var(--footer);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-titulo { font-family: 'IBM Plex Serif', serif; font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.3rem; }
.cookie-texto p { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.cookie-texto p a { color: var(--azul2); text-decoration: none; }
.cookie-botones { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-aceptar {
  background: var(--azul); color: white; border: none;
  padding: 0.65rem 1.4rem; border-radius: 50px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.btn-aceptar:hover { background: var(--azul-hover); }
.btn-rechazar {
  background: transparent; color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.65rem 1.4rem; border-radius: 50px;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.2s, color 0.2s; white-space: nowrap;
}
.btn-rechazar:hover { border-color: rgba(255,255,255,0.6); color: white; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { max-width: 320px; margin: 2rem auto 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(3,1fr); }

  header { justify-content: flex-end; }
  .logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

  .nav-toggle { display: flex; }

  header nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    background: var(--footer);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    display: none;
  }
  header nav.nav-open { display: flex; }
  header nav a:not(.nav-wsp) { display: block; padding: 0.85rem 0; width: 100%; }
  header nav .nav-wsp { margin-top: 0.75rem; align-self: flex-start; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 0.85rem 0; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 0.5rem;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-dropdown-menu.open { max-height: 20rem; padding-bottom: 0.5rem; transform: none; }
  .nav-dropdown-menu a { color: rgba(255,255,255,0.7); }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: var(--azul); }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .card { padding: 1.25rem 1rem; }
  .card-icon { width: 42px; height: 42px; margin-bottom: 0.85rem; }
  .card-icon .material-icons { font-size: 22px; }
  .card h3 { font-size: 0.92rem; }
  .card p { font-size: 0.8rem; line-height: 1.5; }
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.25rem 1.5rem; }
  .cookie-botones { width: 100%; }
  .btn-aceptar, .btn-rechazar { flex: 1; text-align: center; }
  .tabla-cookies { font-size: 0.78rem; }
  .tabla-cookies th, .tabla-cookies td { padding: 0.6rem 0.6rem; }
}
