/* ==========================================================
   Tema institucional del ICAL
   Se carga después de assets/css/main.css y ajusta la plantilla
   a los colores del colegio: azul marino y dorado.
   ========================================================== */

:root {
  --ical-azul: #0d2b4e;
  --ical-azul-2: #1a4a7e;
  --ical-dorado: #c9a435;
  --ical-dorado-osc: #a8862a;
  --ical-crema: #f6f3ea;
  --ical-texto: #1a2236;

  --heading-color: #0d2b4e;
  --accent-color: #0d2b4e;
  --nav-color: #0d2b4e;
  --nav-hover-color: #c9a435;
  --nav-dropdown-color: #0d2b4e;
  --nav-dropdown-hover-color: #c9a435;
}

.light-background { --background-color: #f5f7fa; }
.accent-background { --background-color: #0d2b4e; --surface-color: #1a4a7e; }

/* ---------- Encabezado ---------- */
.header { border-bottom: 3px solid var(--ical-dorado); }
.navmenu a { font-weight: 500; }
.navmenu .navmenu-destacado {
  background: var(--ical-dorado); color: #fff !important; border-radius: 20px;
  padding: 6px 16px !important; margin-left: 8px;
}
.navmenu .navmenu-destacado:hover { background: var(--ical-dorado-osc); }
@media (max-width: 1199px) { .navmenu .navmenu-destacado { margin: 6px 20px; display: inline-block; } }

/* ---------- Títulos de sección ---------- */
.section-title h2 { color: var(--ical-azul); font-weight: 800; letter-spacing: .5px; }
.section-title h2::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: var(--ical-dorado); margin: 12px auto 0; border-radius: 2px;
}
.section-title p { color: #5b6475; }

/* ---------- Portada ---------- */
.ical-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0a2340 0%, #0d2b4e 45%, #1a4a7e 100%);
  padding: 90px 0 0;
}
.ical-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/img/hero-bg-abstract.jpg") center / cover no-repeat;
  opacity: .07; mix-blend-mode: screen;
}
.ical-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: #fff;
}
.ical-hero .container { position: relative; z-index: 1; }
.ical-hero .sello {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px;
  background: rgba(255,255,255,.06); border: 2px solid rgba(201,164,53,.6);
  display: flex; align-items: center; justify-content: center;
}
.ical-hero .sello img { width: 64px; height: auto; filter: brightness(0) invert(1); }
.ical-hero .antetitulo {
  color: var(--ical-dorado); font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; font-size: .85rem; margin-bottom: 10px;
}
.ical-hero h1 {
  color: #fff; font-weight: 800; font-size: 3rem; line-height: 1.15; margin: 0 0 16px;
}
.ical-hero h1 span { color: var(--ical-dorado); display: block; }
.ical-hero .bajada { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 30px; }
.ical-hero .bajada strong { color: #fff; }
.ical-hero .acciones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.btn-ical {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ical-dorado); color: #fff; font-weight: 700;
  padding: 13px 28px; border-radius: 8px; transition: .25s;
}
.btn-ical:hover { background: var(--ical-dorado-osc); color: #fff; transform: translateY(-2px); }
.btn-ical-linea {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.7); color: #fff; font-weight: 700;
  padding: 11px 26px; border-radius: 8px; transition: .25s;
}
.btn-ical-linea:hover { background: #fff; color: var(--ical-azul); }

.accesos .acceso {
  position: relative; background: #fff; border-radius: 14px; padding: 26px 22px;
  height: 100%; box-shadow: 0 12px 34px rgba(13,43,78,.14);
  border-bottom: 3px solid transparent; transition: .25s;
}
.accesos .acceso:hover { transform: translateY(-6px); border-bottom-color: var(--ical-dorado); }
.accesos .acceso .icono {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  background: var(--ical-crema); color: var(--ical-dorado);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.accesos .acceso h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.accesos .acceso h4 a { color: var(--ical-azul); }
.accesos .acceso p { color: #5b6475; font-size: .9rem; margin: 0; }
.accesos .acceso .flecha { position: absolute; top: 24px; right: 22px; color: #c5cbd6; transition: .25s; }
.accesos .acceso:hover .flecha { color: var(--ical-dorado); }

@media (max-width: 576px) {
  .accesos { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
  .accesos .acceso { padding: 18px 14px; }
  .accesos .acceso .icono { width: 42px; height: 42px; font-size: 1.2rem; margin-bottom: 10px; }
  .accesos .acceso h4 { font-size: .92rem; }
  .accesos .acceso p, .accesos .acceso .flecha { display: none; }
  .ical-hero .acciones { margin-bottom: 40px; }
}
@media (max-width: 768px) {
  .ical-hero { padding-top: 60px; }
  .ical-hero h1 { font-size: 2.1rem; }
  .ical-hero .bajada { font-size: 1rem; }
}

/* ---------- Sobre nosotros ---------- */
.ical-panel {
  background: #fff; border: 1px solid #e6e9ef; border-radius: 14px;
  padding: 30px; height: 100%;
}
.ical-panel h3 { font-size: 1.25rem; font-weight: 800; color: var(--ical-azul); margin-bottom: 6px; }
.ical-panel .sub { color: #5b6475; margin-bottom: 18px; }
.docs a {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px;
  border-radius: 10px; color: var(--ical-texto); transition: .2s;
}
.docs a + a { border-top: 1px solid #f0f2f5; }
.docs a:hover { background: var(--ical-crema); color: var(--ical-azul); }
.docs a i.tipo { font-size: 1.4rem; color: #b8322a; }
.docs a i.tipo.img { color: var(--ical-dorado); }
.docs a span small { display: block; color: #8a92a1; font-size: .8rem; }
.docs a i.ir { margin-left: auto; color: #c5cbd6; }
.ical-panel.cumple {
  background: linear-gradient(135deg, #0d2b4e, #1a4a7e); color: #fff; border: 0;
  position: relative; overflow: hidden;
}
.ical-panel.cumple .deco {
  position: absolute; right: -10px; bottom: -34px; font-size: 9rem;
  color: rgba(201,164,53,.15); line-height: 1;
}
.ical-panel.cumple h3 { color: #fff; }
.ical-panel.cumple p { color: rgba(255,255,255,.85); line-height: 1.75; position: relative; z-index: 1; }
.ical-panel.cumple .hoy {
  display: inline-flex; align-items: baseline; gap: 8px; margin: 6px 0 20px;
  position: relative; z-index: 1;
}
.ical-panel.cumple .hoy b { color: var(--ical-dorado); font-size: 2.6rem; line-height: 1; }
.ical-panel.cumple .btn-ical { position: relative; z-index: 1; }

/* ---------- Cifras ---------- */
.ical-cifras { background: var(--ical-azul); padding: 50px 0; }
.ical-cifras .cifra { text-align: center; color: #fff; }
.ical-cifras .cifra span { display: block; font-size: 2.6rem; font-weight: 800; color: var(--ical-dorado); line-height: 1.1; }
.ical-cifras .cifra p { margin: 6px 0 0; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; }
@media (min-width: 992px) {
  .ical-cifras .col-lg-3 + .col-lg-3 .cifra { border-left: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Hamuq ---------- */
.about-alt .video-hamuq { border-radius: 14px; overflow: hidden; box-shadow: 0 12px 34px rgba(13,43,78,.18); }
.about-alt .content h3 { color: var(--ical-azul); font-weight: 800; }
.about-alt .content ul i { color: var(--ical-dorado); }

/* ---------- Revista ---------- */
.call-to-action { background: linear-gradient(135deg, #0a2340, #1a4a7e) !important; }
.call-to-action h3 { color: #fff; font-weight: 800; }
.call-to-action h3 i { color: var(--ical-dorado); }
.call-to-action .cta-btn { border-color: var(--ical-dorado) !important; background: var(--ical-dorado); color: #fff !important; }
.call-to-action .cta-btn:hover { background: var(--ical-dorado-osc) !important; }

/* ---------- Enlaces de interés ---------- */
.enlaces .enlace {
  position: relative; display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 12px;
  padding: 20px 22px; height: 100%; transition: .25s;
}
.enlaces .enlace:hover { border-color: var(--ical-dorado); box-shadow: 0 10px 28px rgba(13,43,78,.1); transform: translateY(-3px); }
.enlaces .enlace .icono {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  background: var(--ical-azul); color: var(--ical-dorado);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.enlaces .enlace h3 { font-size: 1rem; font-weight: 700; color: var(--ical-azul); margin: 0; }
.enlaces .enlace small { color: #8a92a1; }
.enlaces .enlace .ir { margin-left: auto; color: #c5cbd6; transition: .25s; }
.enlaces .enlace:hover .ir { color: var(--ical-dorado); }

/* ---------- Redes ---------- */
.redes .red {
  background: #fff; border: 1px solid #e6e9ef; border-radius: 14px;
  padding: 24px; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.redes .red h3 { font-size: 1.1rem; font-weight: 800; color: var(--ical-azul); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.redes .red h3 i.wsp { color: #25d366; }
.redes .red h3 i.fb { color: #1877f2; }
.redes .red img { width: 100%; max-width: 280px; border-radius: 10px; margin-bottom: 16px; }
.redes .red .fb-marco { width: 100%; max-width: 500px; flex: 1; min-height: 500px; }
.redes .red .fb-marco iframe { width: 100%; height: 100%; min-height: 500px; border: 0; border-radius: 10px; }
.redes .red .mt-auto { margin-top: auto; }
.redes .red.instagram {
  background: linear-gradient(135deg, #833ab4 0%, #c13584 45%, #e1306c 70%, #fcaf45 100%);
  border: 0; color: #fff; justify-content: center;
}
.redes .red.instagram h3 { color: #fff; }
.redes .red.instagram .logo-ig { font-size: 5rem; line-height: 1; margin: 10px 0 14px; }
.redes .red.instagram p { color: rgba(255,255,255,.9); }
.redes .btn-red {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 8px;
  padding: 11px 24px; font-weight: 700; border: 2px solid var(--ical-azul); color: var(--ical-azul); transition: .25s;
}
.redes .btn-red:hover { background: var(--ical-azul); color: #fff; }
.redes .red.instagram .btn-red { border-color: #fff; color: #fff; }
.redes .red.instagram .btn-red:hover { background: #fff; color: #c13584; }

/* ---------- Preguntas frecuentes ---------- */
.faq .faq-container .faq-item.faq-active { background: var(--ical-azul); }
.faq .faq-container .faq-item h3:hover { color: var(--ical-dorado); }

/* ---------- Pie de página ---------- */
.footer .copyright { background: var(--ical-azul) !important; border-top: 3px solid var(--ical-dorado); }
.footer .social-links a:hover { border-color: var(--ical-dorado); color: var(--ical-dorado); }
.scroll-top { background: var(--ical-dorado); }
.scroll-top:hover { background: var(--ical-dorado-osc); }

/* ---------- Página de cumpleaños ---------- */
.page-title.accent-background { background: linear-gradient(135deg, #0a2340, #1a4a7e); }
.page-title h1 { font-weight: 800; }
.cumple-cabecera {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: linear-gradient(135deg, #0d2b4e, #1a4a7e); color: #fff;
  border-radius: 16px; padding: 28px 32px; margin-bottom: 20px; border-bottom: 4px solid var(--ical-dorado);
}
.cumple-cabecera .etiqueta {
  display: inline-block; background: var(--ical-dorado); color: #fff; font-size: .75rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
}
.cumple-cabecera h2 { color: #fff; font-weight: 800; margin: 10px 0 6px; font-size: 1.7rem; }
.cumple-cabecera p { margin: 0; color: rgba(255,255,255,.85); }
.cumple-cabecera .total { text-align: center; flex: 0 0 auto; }
.cumple-cabecera .total b { display: block; font-size: 3rem; line-height: 1; color: var(--ical-dorado); }
.cumple-cabecera .total span { font-size: .85rem; color: rgba(255,255,255,.8); }
.cumple-buscar {
  background: #fff; border: 1px solid #e6e9ef; border-radius: 12px; padding: 16px 20px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.cumple-buscar label { font-weight: 700; color: var(--ical-azul); margin: 0; }
.cumple-buscar label i { color: var(--ical-dorado); }
.cumple-buscar .btn-ical { padding: 8px 22px; border: 0; }
.cumple-nombre {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e6e9ef;
  border-left: 4px solid var(--ical-dorado); border-radius: 10px; padding: 14px 18px;
  font-weight: 600; color: var(--ical-azul); height: 100%;
}
.cumple-nombre i { color: var(--ical-dorado); font-size: 1.2rem; }
.cumple-vacio { text-align: center; padding: 50px 20px; color: #8a92a1; background: #fff; border: 1px dashed #d6dbe3; border-radius: 12px; }
.cumple-vacio i { font-size: 2.6rem; color: #c5cbd6; }
@media (max-width: 576px) {
  .cumple-cabecera { flex-direction: column; align-items: flex-start; padding: 22px; }
  .cumple-cabecera h2 { font-size: 1.35rem; }
}
