/* ============================================================
   Asociación ComunicAcción y Cultura Empresarial — Hoja de estilos
   ============================================================ */
:root {
  --azul: #16425b;
  --azul-osc: #0f2f43;
  --azul-claro: #2f6690;
  --verde: #2e7d6b;
  --acento: #e9c46a;
  --acento-osc: #d9a629;
  --gris-fondo: #f6f8fa;
  --gris-borde: #e2e8f0;
  --texto: #24323f;
  --texto-suave: #5a6b7a;
  --blanco: #ffffff;
  --error: #b3402e;
  --radio: 10px;
  --sombra: 0 2px 10px rgba(15, 47, 67, .08);
  --sombra-fuerte: 0 8px 30px rgba(15, 47, 67, .14);
  --fuente: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fuente);
  color: var(--texto);
  line-height: 1.65;
  background: var(--blanco);
  font-size: 16.5px;
}
img { max-width: 100%; }
a { color: var(--azul-claro); text-decoration: none; }
a:hover { text-decoration: underline; }

.contenedor { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.seccion { padding: 64px 0; }
.seccion.gris { background: var(--gris-fondo); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-borde);
  box-shadow: 0 1px 6px rgba(15,47,67,.06);
}
.cabecera-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 22px; max-width: 1180px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-marca {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--azul) 0%, var(--verde) 100%);
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px;
}
.logo-texto { line-height: 1.2; }
.logo-texto strong { display: block; color: var(--azul); font-size: 15.5px; letter-spacing: .2px; }
.logo-texto span { font-size: 12px; color: var(--texto-suave); }

.nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--texto); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--gris-fondo); text-decoration: none; color: var(--azul); }
.nav a.activo { color: var(--azul); font-weight: 700; border-bottom: 2px solid var(--acento); border-radius: 8px 8px 0 0; }
.nav a.btn-asociados {
  background: var(--azul); color: #fff; font-weight: 600; margin-left: 8px;
}
.nav a.btn-asociados:hover { background: var(--azul-osc); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--gris-borde);
  border-radius: 8px; padding: 8px 12px; font-size: 20px; cursor: pointer; color: var(--azul);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--azul-osc) 0%, var(--azul) 55%, var(--verde) 130%);
  color: #fff; padding: 84px 0 76px;
}
.hero .contenedor { display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: center; }
.hero-etiqueta {
  display: inline-block; background: rgba(233,196,106,.16); color: var(--acento);
  border: 1px solid rgba(233,196,106,.45); padding: 5px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .4px; margin-bottom: 18px;
}
.hero h1 { font-size: 42px; line-height: 1.15; margin-bottom: 18px; font-weight: 800; }
.hero p.lead { font-size: 19px; color: #d7e3ec; margin-bottom: 28px; max-width: 560px; }
.hero-acciones { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-tarjeta {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 26px; backdrop-filter: blur(4px);
}
.hero-tarjeta h3 { color: var(--acento); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.hero-tarjeta ul { list-style: none; }
.hero-tarjeta li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; color: #e8f0f5; }
.hero-tarjeta li:last-child { border-bottom: none; }
.hero-tarjeta li strong { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 9px;
  font-weight: 700; font-size: 15.5px; cursor: pointer; border: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--sombra-fuerte); }
.btn-acento { background: var(--acento); color: var(--azul-osc); }
.btn-acento:hover { background: var(--acento-osc); }
.btn-blanco { background: #fff; color: var(--azul); }
.btn-contorno { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-contorno:hover { border-color: #fff; }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--azul-osc); }
.btn-contorno-azul { background: transparent; color: var(--azul); border: 2px solid var(--azul); }
.btn-contorno-azul:hover { background: var(--azul); color: #fff; }

/* ---------- Títulos de sección ---------- */
.titulo-seccion { margin-bottom: 38px; }
.titulo-seccion .kicker {
  color: var(--verde); text-transform: uppercase; letter-spacing: 1.6px;
  font-size: 13px; font-weight: 700; margin-bottom: 8px;
}
.titulo-seccion h2 { font-size: 32px; color: var(--azul); line-height: 1.2; }
.titulo-seccion p { color: var(--texto-suave); margin-top: 10px; max-width: 720px; font-size: 17px; }

/* ---------- Rejillas y tarjetas ---------- */
.rejilla { display: grid; gap: 24px; }
.rejilla.cols-2 { grid-template-columns: repeat(2, 1fr); }
.rejilla.cols-3 { grid-template-columns: repeat(3, 1fr); }
.rejilla.cols-4 { grid-template-columns: repeat(4, 1fr); }

.tarjeta {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio);
  padding: 28px; box-shadow: var(--sombra);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra-fuerte); }
.tarjeta .icono {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: linear-gradient(135deg, rgba(22,66,91,.1), rgba(46,125,107,.14));
}
.tarjeta h3 { color: var(--azul); font-size: 19px; margin-bottom: 10px; }
.tarjeta p { color: var(--texto-suave); font-size: 15.5px; }

/* ---------- Cifras ---------- */
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cifra {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio);
  padding: 26px; text-align: center; box-shadow: var(--sombra);
}
.cifra .num { font-size: 40px; font-weight: 800; color: var(--verde); line-height: 1; }
.cifra .lbl { margin-top: 8px; color: var(--texto-suave); font-size: 14.5px; }

/* ---------- Banda sin ánimo de lucro ---------- */
.banda-esl {
  background: linear-gradient(100deg, var(--verde), var(--azul));
  color: #fff; border-radius: 16px; padding: 38px 42px;
  display: flex; gap: 28px; align-items: center;
}
.banda-esl .sello {
  flex: 0 0 auto; width: 86px; height: 86px; border-radius: 50%;
  border: 3px solid var(--acento); display: flex; align-items: center; justify-content: center;
  font-size: 34px; background: rgba(255,255,255,.08);
}
.banda-esl h3 { font-size: 23px; margin-bottom: 8px; }
.banda-esl p { color: #e6f2ee; font-size: 15.5px; }

/* ---------- Noticias / blog ---------- */
.lista-noticias { display: grid; gap: 22px; }
.noticia-item {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: var(--radio);
  padding: 28px 30px; box-shadow: var(--sombra); display: block; color: inherit;
}
.noticia-item:hover { text-decoration: none; box-shadow: var(--sombra-fuerte); }
.noticia-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.noticia-fecha { font-size: 13.5px; color: var(--texto-suave); }
.etiqueta {
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px; padding: 3px 11px;
  border-radius: 999px; background: rgba(46,125,107,.12); color: var(--verde);
}
.etiqueta.azul { background: rgba(47,102,144,.12); color: var(--azul-claro); }
.etiqueta.ambar { background: rgba(233,196,106,.25); color: #8a6a12; }
.noticia-item h3 { color: var(--azul); font-size: 21px; margin-bottom: 8px; }
.noticia-item p { color: var(--texto-suave); font-size: 15.5px; }
.noticia-item .leer-mas { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--azul-claro); font-size: 14.5px; }

.noticia-detalle { max-width: 780px; margin: 0 auto; }
.noticia-detalle h1 { color: var(--azul); font-size: 33px; line-height: 1.25; margin: 12px 0 8px; }
.noticia-detalle .cuerpo p { margin-bottom: 18px; color: var(--texto); }
.noticia-detalle .cuerpo ul { margin: 0 0 18px 22px; }
.noticia-detalle .cuerpo li { margin-bottom: 7px; }

/* ---------- Línea de tiempo ---------- */
.timeline { position: relative; margin-left: 12px; padding-left: 34px; border-left: 3px solid var(--gris-borde); }
.timeline-item { position: relative; margin-bottom: 34px; }
.timeline-item::before {
  content: ""; position: absolute; left: -46px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--acento); border: 4px solid var(--azul);
}
.timeline-item .t-fecha { font-size: 13.5px; font-weight: 700; color: var(--verde); text-transform: uppercase; letter-spacing: .6px; }
.timeline-item h3 { color: var(--azul); font-size: 20px; margin: 4px 0 6px; }
.timeline-item p { color: var(--texto-suave); font-size: 15.5px; max-width: 700px; }

/* ---------- Tablas ---------- */
.tabla { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.tabla th, .tabla td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gris-borde); font-size: 15px; }
.tabla th { background: var(--azul); color: #fff; font-weight: 600; }
.tabla tr:last-child td { border-bottom: none; }
.tabla td:first-child { font-weight: 600; color: var(--azul); width: 34%; }

/* ---------- Documentos ---------- */
.doc-item {
  display: flex; align-items: center; gap: 18px; background: #fff;
  border: 1px solid var(--gris-borde); border-radius: var(--radio);
  padding: 20px 24px; box-shadow: var(--sombra); color: inherit;
}
.doc-item:hover { text-decoration: none; box-shadow: var(--sombra-fuerte); }
.doc-item .doc-icono {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px;
  background: rgba(179,64,46,.1); color: var(--error);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
}
.doc-item h4 { color: var(--azul); font-size: 16.5px; }
.doc-item p { color: var(--texto-suave); font-size: 14px; }
.doc-item .descarga { margin-left: auto; font-weight: 700; color: var(--azul-claro); font-size: 14px; white-space: nowrap; }

/* ---------- Formularios ---------- */
.form-login, .form-contacto {
  background: #fff; border: 1px solid var(--gris-borde); border-radius: 14px;
  padding: 38px; box-shadow: var(--sombra); max-width: 460px; margin: 0 auto;
}
.form-contacto { max-width: 640px; }
.campo { margin-bottom: 20px; }
.campo label { display: block; font-weight: 600; font-size: 14.5px; color: var(--azul); margin-bottom: 7px; }
.campo input, .campo textarea, .campo select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gris-borde);
  border-radius: 8px; font-size: 15.5px; font-family: inherit; color: var(--texto);
  background: #fbfcfd; transition: border-color .12s ease;
}
.campo input:focus, .campo textarea:focus, .campo select:focus {
  outline: none; border-color: var(--azul-claro); background: #fff;
}
.aviso-form { border-radius: 8px; padding: 13px 16px; font-size: 14.5px; margin-bottom: 18px; display: none; }
.aviso-form.error { display: block; background: #fbeae7; color: var(--error); border: 1px solid #ecc9c2; }
.aviso-form.info { display: block; background: #e9f3f0; color: var(--verde); border: 1px solid #c4ded7; }

.candado-zona { text-align: center; margin-bottom: 26px; }
.candado-zona .candado {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--azul), var(--verde));
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.candado-zona h2 { color: var(--azul); font-size: 24px; }
.candado-zona p { color: var(--texto-suave); font-size: 14.5px; margin-top: 6px; }

.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: girar .7s linear infinite;
  vertical-align: -3px; margin-right: 8px;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Avisos legales ---------- */
.texto-legal { max-width: 820px; }
.texto-legal h2 { color: var(--azul); font-size: 21px; margin: 30px 0 12px; }
.texto-legal p, .texto-legal li { color: var(--texto); font-size: 15.5px; margin-bottom: 12px; }
.texto-legal ul { margin-left: 22px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(110deg, var(--azul) 0%, var(--azul-osc) 100%);
  border-radius: 16px; color: #fff; padding: 48px; text-align: center;
}
.cta h2 { font-size: 29px; margin-bottom: 12px; }
.cta p { color: #d7e3ec; max-width: 620px; margin: 0 auto 26px; font-size: 16.5px; }

/* ---------- Migas ---------- */
.migas { font-size: 14px; color: var(--texto-suave); padding: 18px 0 0; }
.migas a { color: var(--azul-claro); }

/* ---------- Cabecera de página interior ---------- */
.cabecera-pag {
  background: linear-gradient(110deg, var(--azul-osc), var(--azul));
  color: #fff; padding: 54px 0 46px;
}
.cabecera-pag h1 { font-size: 35px; margin-bottom: 10px; }
.cabecera-pag p { color: #c9dae6; font-size: 17px; max-width: 720px; }

/* ---------- Pie ---------- */
.pie { background: var(--azul-osc); color: #b8c9d6; margin-top: 70px; }
.pie-inner {
  max-width: 1180px; margin: 0 auto; padding: 52px 22px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
}
.pie h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .4px; }
.pie ul { list-style: none; }
.pie li { margin-bottom: 9px; font-size: 14px; }
.pie a { color: #b8c9d6; }
.pie a:hover { color: var(--acento); }
.pie .datos p { font-size: 14px; margin-bottom: 8px; }
.pie-baja {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 22px;
  font-size: 13px; color: #8fa5b5; text-align: center;
}
.pie-baja .esl { color: var(--acento); font-weight: 600; }

/* ---------- Utilidades ---------- */
.centrado { text-align: center; }
.mt-40 { margin-top: 40px; }
.nota { font-size: 13.5px; color: var(--texto-suave); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .contenedor { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .rejilla.cols-3, .rejilla.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cifras { grid-template-columns: repeat(2, 1fr); }
  .pie-inner { grid-template-columns: repeat(2, 1fr); }
  .banda-esl { flex-direction: column; text-align: center; }
}
@media (max-width: 620px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--gris-borde); box-shadow: var(--sombra-fuerte); }
  .nav.abierto { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .nav a.btn-asociados { margin-left: 0; text-align: center; margin-top: 6px; }
  .nav-toggle { display: block; }
  .rejilla.cols-2, .rejilla.cols-3, .rejilla.cols-4 { grid-template-columns: 1fr; }
  .cifras { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 34px 24px; }
  .form-login, .form-contacto { padding: 28px 22px; }
}
