/* =============================================
   PI4KA España — Hoja de estilos compartida
   Paleta: azul marino profundo + blanco + azul cielo suave + acento coral-cálido
   ============================================= */

/* --- Variables de color y tipografía --- */
:root {
  --azul-marino:   #1B3A5C;
  --azul-medio:    #2A6099;
  --azul-suave:    #EAF3FB;
  --coral:         #E05C3A;
  --coral-suave:   #FDF1ED;
  --gris-texto:    #3D3D3D;
  --gris-claro:    #F5F5F5;
  --blanco:        #FFFFFF;
  --borde:         #D0E3F0;

  --fuente-titulo: 'Georgia', 'Times New Roman', serif;
  --fuente-cuerpo: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --radio:         6px;
  --sombra:        0 2px 12px rgba(27,58,92,0.10);
  --ancho-max:     1060px;
}

/* --- Reset mínimo --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fuente-cuerpo);
  color: var(--gris-texto);
  background: var(--blanco);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--azul-medio); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.4em; }

/* --- Navegación --- */
nav {
  background: var(--azul-marino);
  position: sticky;
  top: 0;
  z-index: 100; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.nav-logo {
  font-family: var(--fuente-titulo);
  font-size: 1.25rem;
  color: var(--blanco);
  font-weight: bold;
  letter-spacing: 0.5px;
}
.nav-logo span { color: #7BBDE8; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  padding: 0;
}
.nav-links a {
  color: #C8DFF0;
  font-size: 0.92rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radio);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.activo {
  background: rgba(255,255,255,0.12);
  color: var(--blanco);
  text-decoration: none;
}

/* Menú hamburguesa (móvil) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
}

/* --- Contenedor genérico --- */
.contenedor {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Secciones --- */
.seccion {
  padding: 64px 0;
}
.seccion-azul {
  background: var(--azul-suave);
  padding: 64px 0;
}
.seccion-coral {
  background: var(--coral-suave);
  padding: 64px 0;
}
.seccion-oscura {
  background: var(--azul-marino);
  color: var(--blanco);
  padding: 64px 0;
}
.seccion-gris {
  background: var(--gris-claro);
  padding: 64px 0;
}

/* --- Títulos --- */
h1, h2, h3 { font-family: var(--fuente-titulo); line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--azul-marino); }
.etiqueta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--azul-medio);
  margin-bottom: 0.6rem;
}
.etiqueta-coral { color: var(--coral); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--azul-marino) 55%, #2A6099 100%);
  color: var(--blanco);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero p { font-size: 1.15rem; max-width: 600px; opacity: 0.92; margin-bottom: 2rem; }
.hero-dato {
  display: inline-block;
  border-left: 4px solid var(--coral);
  padding-left: 1rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  opacity: 0.85;
}

/* --- Botones --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radio);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
  border: none;
  text-align: center;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn-coral { background: var(--coral); color: var(--blanco); }
.btn-azul  { background: var(--azul-medio); color: var(--blanco); }
.btn-borde { background: transparent; color: var(--blanco); border: 2px solid rgba(255,255,255,0.6); }
.btn-borde:hover { background: rgba(255,255,255,0.12); }
.grupo-botones { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* --- Tarjetas de 3 columnas --- */
.tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.tarjeta {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.8rem 1.6rem;
  border-top: 4px solid var(--azul-medio);
  transition: transform 0.15s;
}
.tarjeta:hover { transform: translateY(-3px); }
.tarjeta-icono {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}
.tarjeta a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Cifras destacadas --- */
.cifras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  text-align: center;
}
.cifra-num {
  font-family: var(--fuente-titulo);
  font-size: 2.4rem;
  color: var(--coral);
  font-weight: bold;
  line-height: 1;
}
.cifra-label { font-size: 0.88rem; color: #6a8aaa; margin-top: 0.3rem; }

/* --- Caja de historia / testimonio --- */
.caja-historia {
  background: var(--blanco);
  border-left: 5px solid var(--coral);
  border-radius: 0 var(--radio) var(--radio) 0;
  padding: 1.8rem 2rem;
  box-shadow: var(--sombra);
  margin-bottom: 1.5rem;
}
.caja-historia.placeholder {
  border-style: dashed;
  border-color: #c0ccd6;
  background: #f9fbfd;
  color: #8a9bac;
  font-style: italic;
}
.caja-historia.placeholder::before {
  content: '✏️ ';
}

/* --- Síntomas acordeón --- */
.acordeon-item {
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.acordeon-btn {
  width: 100%;
  background: var(--blanco);
  border: none;
  padding: 1rem 1.4rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul-marino);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}
.acordeon-btn:hover { background: var(--azul-suave); }
.acordeon-btn .flecha { font-size: 0.85rem; transition: transform 0.2s; }
.acordeon-btn[aria-expanded="true"] .flecha { transform: rotate(180deg); }
.acordeon-cuerpo {
  display: none;
  padding: 0 1.4rem 1.2rem;
  background: var(--blanco);
}
.acordeon-cuerpo.abierto { display: block; }
.acordeon-cuerpo ul { margin-top: 0.5rem; }
.acordeon-cuerpo li { margin-bottom: 0.4rem; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--borde);
  padding: 1.2rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-p { font-weight: 700; color: var(--azul-marino); margin-bottom: 0.4rem; }

/* --- Formulario de contacto --- */
.form-contacto {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 2rem 2.2rem;
  max-width: 600px;
}
.campo { margin-bottom: 1.2rem; }
.campo label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--azul-marino);
}
.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  font-size: 0.97rem;
  font-family: var(--fuente-cuerpo);
  transition: border-color 0.15s;
  background: #fafcff;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--azul-medio);
  background: var(--blanco);
}
.campo textarea { resize: vertical; min-height: 130px; }
.aviso-form {
  font-size: 0.82rem;
  color: #7a8fa0;
  margin-top: 0.6rem;
}

/* --- Pie de página --- */
footer {
  background: #111E2B;
  color: #8aafc8;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer-col h4 { color: var(--blanco); font-size: 0.9rem; margin-bottom: 0.7rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.3rem; }
.footer-col a { color: #8aafc8; }
.footer-col a:hover { color: var(--blanco); }
.footer-fondo {
  max-width: var(--ancho-max);
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid #1e3347;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
}
.enlace-uk {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radio);
  padding: 0.35rem 0.75rem;
  color: #a8c8e0;
  font-size: 0.82rem;
}
.enlace-uk:hover { background: rgba(255,255,255,0.1); color: var(--blanco); }

/* --- Responsive --- */
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--azul-marino); padding: 1rem 1.5rem 1.5rem; gap: 0.1rem; }
  .nav-links.abierto { display: flex; }
  .nav-links a { padding: 0.6rem 0.5rem; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 0 50px; }
  .seccion, .seccion-azul, .seccion-coral, .seccion-oscura, .seccion-gris { padding: 44px 0; }
  .form-contacto { padding: 1.4rem 1.2rem; }
  .footer-inner { flex-direction: column; gap: 1.2rem; }
  .cifra-num { font-size: 1.9rem; }
}
