/* ============================================================
   Escuela Naval de Guatemala — Estilos
   Paleta: Azul marino, Negro, Dorado
   ============================================================ */

:root {
  --navy:        #0a1f44;
  --navy-deep:   #061429;
  --navy-light:  #0d2b5c;
  --black:       #0a0a0a;
  --gold:        #d4af37;
  --gold-light:  #f4e07a;
  --gold-dark:   #9c7c1e;
  --gray:        #f4f6f9;
  --text-dark:   #1a2233;
  --white:       #ffffff;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  margin: 0;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
p { line-height: 1.75; }

h1, h2, h3, h4, .display-font {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

a { text-decoration: none; }

/* ============ PANTALLA DE CARGA ============ */
#loader-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 40%, var(--navy-light), var(--navy-deep) 70%, var(--black));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-emblem {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(212,175,55,0.55));
  animation: emblemPulse 2.4s ease-in-out infinite;
}
@keyframes emblemPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(212,175,55,0.4)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 35px rgba(212,175,55,0.75)); }
}
.loader-ring {
  margin-top: 28px;
  width: 46px;
  height: 46px;
  border: 4px solid rgba(212,175,55,0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-phrase {
  margin-top: 30px;
  max-width: 600px;
  color: var(--gold-light);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.3s;
}
.loader-brand {
  margin-top: 18px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ NAVBAR ============ */
.navbar-naval {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy));
  box-shadow: 0 2px 18px rgba(0,0,0,0.35);
  border-bottom: 3px solid var(--gold);
}
.navbar-naval .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.navbar-naval .brand-logo {
  height: 52px;
  width: auto;
}
.navbar-naval .brand-text {
  line-height: 1.1;
}
.navbar-naval .brand-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--white);
}
.navbar-naval .brand-text small {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.navbar-naval .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s;
}
/* Ajuste fino del tamaño de letra del menú según el ancho */
@media (min-width: 1200px) and (max-width: 1399px) {
  .navbar-naval .nav-link { padding: 0.5rem 0.6rem !important; font-size: 0.92rem; letter-spacing: 0; }
}
/* Menús desplegables con estilo naval */
.navbar-naval .dropdown-menu-naval {
  background: var(--navy);
  border: 1px solid rgba(212,175,55,0.35);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  padding: 6px;
}
.navbar-naval .dropdown-menu-naval .dropdown-item {
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 0.93rem;
}
.navbar-naval .dropdown-menu-naval .dropdown-item:hover {
  background: rgba(212,175,55,0.15);
  color: var(--gold);
}
.navbar-naval .dropdown-toggle::after { vertical-align: 0.15em; }
/* En móvil (menú colapsado) el desplegable se ve integrado */
@media (max-width: 1199px) {
  .navbar-naval .dropdown-menu-naval { background: transparent; border: none; box-shadow: none; padding-left: 18px; }
}
.navbar-naval .nav-link:hover,
.navbar-naval .nav-link.active {
  color: var(--gold) !important;
}
.navbar-naval .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 2px;
  height: 2px;
  background: var(--gold);
}
.navbar-naval .navbar-toggler {
  border-color: var(--gold);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(rgba(6,20,41,0.86), rgba(10,10,10,0.92)),
    url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212,175,55,0.10), transparent 60%);
}
.hero-content { position: relative; z-index: 2; padding: 40px 20px; max-width: 900px; }
.hero-emblem {
  width: 150px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 30px rgba(212,175,55,0.5));
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero .lema {
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 14px 0;
}
.hero p.sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 680px;
  margin: 0 auto 30px;
}

/* ============ BOTONES ============ */
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  font-weight: 600;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212,175,55,0.4);
  color: var(--navy-deep);
}
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ============ SECCIONES ============ */
.section { padding: 80px 0; }
.section-dark { background: var(--navy-deep); color: var(--white); }
.section-gray { background: var(--gray); }
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  color: var(--navy);
}
.section-dark .section-title { color: var(--white); }
/* Subrayado náutico: línea — ancla — línea */
.section-title::after {
  content: "\2693"; /* ⚓ ancla */
  display: block;
  width: 120px;
  margin: 12px auto 0;
  text-align: center;
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 38px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 38px 3px no-repeat;
}
.section-title.text-start::after { margin-left: 0; margin-right: auto; background-position: left center, 82px center; }
.section-subtitle { color: #6b7280; max-width: 700px; margin: 0 auto 40px; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============ TARJETAS DE VALORES ============ */
.value-card {
  background: var(--white);
  border-radius: 10px;
  padding: 34px 24px;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
  border-top: 4px solid var(--gold);
  box-shadow: 0 6px 24px rgba(10,31,68,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.value-card:hover { transform: translateY(-8px); box-shadow: 0 14px 34px rgba(10,31,68,0.15); }
.value-card .icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.6rem;
}
.value-card h4 { color: var(--navy); }

/* ============ ESTADÍSTICAS ============ */
.stat-box { text-align: center; padding: 20px; }
.stat-box .num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-box .lbl { color: rgba(255,255,255,0.8); margin-top: 8px; letter-spacing: 1px; }

/* ============ MISIÓN / VISIÓN ============ */
.mv-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-radius: 12px;
  padding: 40px;
  height: 100%;
  border-left: 5px solid var(--gold);
}
.mv-card h3 { color: var(--gold); }

/* ============ GALERÍA ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,20,41,0.9), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ============ VIDEOS ============ */
.video-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(10,31,68,0.1);
  height: 100%;
}
.video-card .ratio { background: #000; }
.video-card .body { padding: 18px; }
.video-card h5 { color: var(--navy); }

/* ============ DIRECTORES ============ */
.director-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(10,31,68,0.1);
  text-align: center;
  height: 100%;
  border-bottom: 4px solid var(--gold);
}
.director-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;   /* muestra el rostro, sin cortar la cabeza */
  background: var(--navy);
}
.director-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 4rem;
}
.director-card .body { padding: 24px; }
.director-card .grado { color: var(--gold); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.director-card h4 { color: var(--navy); margin: 6px 0; }
.director-card .cargo { color: #6b7280; font-weight: 600; }
.director-card .mensaje { color: #555; font-style: italic; margin-top: 14px; font-size: 0.95rem; }

/* Director destacado (mensaje grande) */
.director-feature {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: 14px;
  overflow: hidden;
}
.director-feature .photo-col {
  min-height: 460px;
  background-size: cover;
  background-position: center top;   /* muestra el rostro completo, sin cortar la cabeza */
  background-color: var(--navy-light);
}
@media (max-width: 767px) {
  .director-feature .photo-col { min-height: 420px; }
}
.director-feature .photo-placeholder {
  display:flex;align-items:center;justify-content:center;
  height:100%;color:var(--gold);font-size:6rem;
}
.director-feature .text-col { padding: 50px; }
.director-feature .grado { color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }
.director-feature blockquote { font-size: 1.2rem; font-style: italic; border-left: 4px solid var(--gold); padding-left: 20px; }

/* ============ CONTACTO ============ */
.contact-box {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 28px rgba(10,31,68,0.08);
  height: 100%;
}
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-item .ci-icon {
  flex: 0 0 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-item .ci-text strong { display: block; color: var(--navy); }
.contact-item .ci-text span { color: #555; }

/* ============ FOOTER ============ */
.footer {
  background: linear-gradient(180deg, var(--navy), var(--black));
  color: rgba(255,255,255,0.75);
  padding: 60px 0 20px;
}
.footer h5 { color: var(--white); margin-bottom: 18px; }
.footer .brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer .brand-row img { height: 60px; }
.footer a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer .social a {
  display: inline-flex; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 50%;
  color: var(--gold);
  margin-right: 8px;
  transition: all 0.2s;
}
.footer .social a:hover { background: var(--gold); color: var(--navy-deep); }
.footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px; padding-top: 20px;
  text-align: center; font-size: 0.85rem;
}

/* ============ PAGE HEADER (subpáginas) ============ */
.page-header {
  background-color: var(--navy-deep);
  background-image: linear-gradient(rgba(6,20,41,0.92), rgba(10,10,10,0.95)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 130px 0 70px;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}
.page-header h1 { color: var(--white); }
.page-header .eyebrow { display: block; margin-bottom: 8px; }

/* ============ ADMIN ============ */
.admin-body { background: #eef1f6; min-height: 100vh; }
.admin-login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, var(--navy-light), var(--navy-deep) 70%, var(--black));
  padding: 20px;
}
.admin-login-card {
  background: var(--white);
  border-radius: 14px;
  padding: 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border-top: 5px solid var(--gold);
}
.admin-login-card img { height: 90px; display: block; margin: 0 auto 18px; }
.admin-sidebar {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  min-height: 100vh;
  color: rgba(255,255,255,0.8);
  padding: 0;
  position: sticky; top: 0;
}
.admin-sidebar .brand {
  padding: 22px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .brand img { height: 70px; }
.admin-sidebar .brand div { color: var(--gold); font-size: 0.75rem; letter-spacing: 2px; margin-top: 6px; }
.admin-sidebar a.nav-link {
  color: rgba(255,255,255,0.8) !important;
  padding: 13px 22px;
  border-left: 3px solid transparent;
  border-radius: 0;
}
.admin-sidebar a.nav-link:hover,
.admin-sidebar a.nav-link.active {
  background: rgba(212,175,55,0.12);
  border-left-color: var(--gold);
  color: var(--gold) !important;
}
.admin-topbar {
  background: var(--white);
  padding: 14px 26px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.admin-content { padding: 30px; }
.admin-card {
  background: var(--white);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.admin-card h3 { color: var(--navy); font-size: 1.3rem; }
.stat-tile {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-radius: 10px;
  padding: 24px;
  border-left: 4px solid var(--gold);
}
.stat-tile .n { font-size: 2.2rem; font-weight: 700; color: var(--gold); font-family: 'Playfair Display', serif; }
.thumb-admin { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }

/* ============================================================
   ESTILO MARINO — olas, profundidad oceánica, organigrama, academia
   ============================================================ */

/* ----- Olas animadas en hero y encabezados ----- */
.hero, .page-header { position: relative; }
.wave-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}
.wave-divider svg { display: block; width: 100%; height: 90px; }
.wave-divider .w1 { animation: waveMove 14s linear infinite; }
.wave-divider .w2 { animation: waveMove 9s linear infinite reverse; opacity: .5; }
.wave-divider .w3 { animation: waveMove 20s linear infinite; opacity: .3; }
@keyframes waveMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.page-header .wave-divider svg { height: 60px; }

/* ----- Burbujas sutiles en secciones oscuras ----- */
.section-dark, .section-ocean { position: relative; overflow: hidden; }
.section-ocean {
  background:
    radial-gradient(circle at 20% 20%, rgba(13,43,92,.9), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-deep) 60%, var(--black));
  color: #fff;
}
.bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bubbles span {
  position: absolute;
  bottom: -40px;
  width: 12px; height: 12px;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 50%;
  animation: bubbleUp linear infinite;
}
@keyframes bubbleUp {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(-115vh) scale(1.2); opacity: 0; }
}
.section-ocean .container { position: relative; z-index: 2; }

/* ----- ORGANIGRAMA ----- */
.org-group {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10,31,68,.08);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(10,31,68,.06);
}
.org-group-head {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 18px 26px;
  display: flex; align-items: center; gap: 14px;
  border-left: 5px solid var(--gold);
}
.org-group-head i { color: var(--gold); font-size: 1.5rem; }
.org-group-head h3 { margin: 0; color: #fff; font-size: 1.25rem; }
.org-group-body { padding: 24px; }

.org-flagship {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-light));
  color: #fff;
  border-radius: 14px;
  padding: 0;
  border: 2px solid var(--gold);
  box-shadow: 0 14px 40px rgba(10,31,68,.3);
}
.org-member {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  border-radius: 10px;
  background: var(--gray);
  height: 100%;
  border-left: 3px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
}
.org-member:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(10,31,68,.12); }
.org-member .om-icon {
  flex: 0 0 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.org-member .om-puesto { font-weight: 600; color: var(--navy); line-height: 1.3; }
.org-member .om-grado { color: var(--gold-dark); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.org-member .om-nombre { color: #555; font-size: .92rem; }

/* Tarjeta destacada de mando (Director / Subdirector) */
.org-lead-card {
  text-align: center;
  padding: 30px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,175,55,.35);
  height: 100%;
}
.org-lead-card .ol-icon {
  width: 70px; height: 70px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-deep); font-size: 2rem;
}
.org-lead-card .ol-grado { color: var(--gold); letter-spacing: 1px; font-size: .82rem; text-transform: uppercase; }
.org-lead-card h4 { color: #fff; margin: 6px 0; }
.org-lead-card .ol-puesto { color: rgba(255,255,255,.8); }

/* ----- ACADEMIA: línea de tiempo de años ----- */
.year-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 22px;
  height: 100%;
  text-align: center;
  border-top: 4px solid var(--gold);
  box-shadow: 0 8px 24px rgba(10,31,68,.08);
  position: relative;
}
.year-card .yc-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: .9rem;
  margin-bottom: 14px;
}
.year-card h4 { color: var(--navy); }

.prog-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  border-radius: 14px;
  padding: 34px;
  height: 100%;
  border-left: 5px solid var(--gold);
  transition: transform .25s;
}
.prog-card:hover { transform: translateY(-6px); }
.prog-card .pc-icon { font-size: 2.6rem; color: var(--gold); margin-bottom: 14px; }
.prog-card h4 { color: #fff; }
.prog-card .pc-carrera { color: var(--gold-light); font-style: italic; }

.facility-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  height: 100%;
  box-shadow: 0 8px 24px rgba(10,31,68,.08);
  border-bottom: 4px solid var(--gold);
  transition: transform .25s;
}
.facility-card:hover { transform: translateY(-6px); }
.facility-card .fc-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold); font-size: 1.9rem;
  display: flex; align-items: center; justify-content: center;
}
.facility-card h4 { color: var(--navy); }

.badge-omi {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 10px 20px; border-radius: 30px;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 4px 14px rgba(10,31,68,.18);
}
.badge-omi i { color: var(--gold); }
/* En secciones oscuras, fondo más claro para resaltar */
.section-ocean .badge-omi, .section-dark .badge-omi {
  background: rgba(255,255,255,.10);
}

/* ============================================================
   REVAMP — video hero, galería pro, animaciones, redes sociales
   ============================================================ */

/* ----- Hero con video de fondo ----- */
.hero-video { background-image: none; }
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(6,20,41,.78), rgba(10,10,10,.86)),
    radial-gradient(circle at 50% 30%, rgba(212,175,55,.12), transparent 60%);
}
.hero-video .hero-content { position: relative; z-index: 2; }
.hero-scroll {
  display: inline-block;
  margin-top: 38px;
  color: var(--gold);
  font-size: 1.8rem;
  animation: scrollBounce 2s infinite;
}
.hero-scroll:hover { color: var(--gold-light); }
@keyframes scrollBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* ----- Animaciones de aparición al hacer scroll ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ----- GALERÍA PROFESIONAL (cuadrícula uniforme y ordenada) ----- */
.gallery-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-pro-full { grid-template-columns: repeat(4, 1fr); }
.gp-item {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 22px rgba(10,31,68,.14);
  display: block;
}
.gp-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.gp-item:hover img { transform: scale(1.06); }
.gp-item figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(6,20,41,.92), rgba(6,20,41,.2) 55%, transparent);
  opacity: 0;
  transition: opacity .35s;
}
.gp-item figcaption span { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.gp-item figcaption i {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  transform: scale(.6);
  transition: transform .35s;
}
.gp-item:hover figcaption { opacity: 1; }
.gp-item:hover figcaption i { transform: scale(1); }

/* ----- Simuladores ----- */
.sim-hero-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  border: 3px solid var(--gold);
  box-shadow: 0 18px 45px rgba(0,0,0,.4);
}
.sim-hero-img img { width: 100%; display: block; transition: transform .6s; }
.sim-hero-img:hover img { transform: scale(1.06); }
.sim-hero-badge {
  position: absolute; top: 16px; left: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--navy-deep); font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.sim-step {
  background: var(--white);
  border-radius: 12px;
  padding: 26px 22px;
  height: 100%;
  border-left: 4px solid var(--gold);
  box-shadow: 0 8px 24px rgba(10,31,68,.08);
  transition: transform .25s, box-shadow .25s;
}
.sim-step:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(10,31,68,.16); }
.sim-step-icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.sim-step h5 { color: var(--navy); font-weight: 700; }
.sim-step p { color: #5a6477; margin: 0; font-size: .95rem; line-height: 1.6; }
.section-ocean .sim-step { background: rgba(255,255,255,.96); }

/* ----- Curso Marino Mercante ----- */
.mm-flyer {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 3px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  cursor: zoom-in;
  transition: transform .3s;
}
.mm-flyer:hover { transform: translateY(-6px) scale(1.02); }
.mm-list { list-style: none; padding: 0; margin: 18px 0; }
.mm-list li { color: #fff; margin-bottom: 10px; font-size: 1.05rem; }
.mm-list li i { color: var(--gold); margin-right: 10px; }
.mm-phones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.mm-phone {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(212,175,55,.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .5px;
  transition: all .25s;
}
.mm-phone:hover { background: var(--gold); color: var(--navy-deep); }

/* ----- Cursos en Línea ----- */
.curso-card {
  display: flex; align-items: stretch;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10,31,68,.1);
  border-left: 5px solid var(--gold);
  transition: transform .25s, box-shadow .25s;
}
.curso-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,31,68,.18); }
.curso-icon {
  flex: 0 0 110px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.curso-body { padding: 28px; }
.curso-body h3 { color: var(--navy); }
.curso-body p { color: #555; }

.dip-card {
  background: rgba(255,255,255,.96);
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
  height: 100%;
  border-top: 4px solid var(--gold);
}
.dip-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold); font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
}
.dip-card h5 { color: var(--navy); font-weight: 700; }
.dip-card p { color: #5a6477; font-size: .95rem; margin: 0; }
.dip-benef {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 14px; padding: 26px 30px;
}
.dip-benef h5 { color: var(--gold); margin-bottom: 14px; }
.dip-benef ul { list-style: none; padding: 0; margin: 0; }
.dip-benef li { color: #fff; padding: 8px 0; font-size: 1.05rem; }
.dip-benef li i { color: var(--gold); margin-right: 10px; }
@media (max-width: 575px) {
  .curso-card { flex-direction: column; }
  .curso-icon { flex-basis: 90px; padding: 18px 0; }
}

/* ----- Página Marino Mercante ----- */
.mm-req { list-style: none; padding: 0; margin: 16px 0 0; }
.mm-req li {
  color: #fff; font-size: 1.05rem; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mm-req li i { color: var(--gold); margin-right: 12px; }
.mm-info-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 14px; padding: 28px;
}
.mm-info-card h4 { color: var(--gold); }
.mm-info-card .mm-big { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: #fff; margin: 4px 0 8px; }

/* ----- Modal promocional (según fecha) ----- */
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(6,20,41,.85);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.promo-modal {
  width: 100%;
  max-width: 560px;
  animation: promoPop .4s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes promoPop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.promo-modal .modal-content {
  border: 3px solid var(--gold);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
}
.promo-modal .promo-head {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--navy-deep);
  text-align: center;
  padding: 16px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  position: relative;
}
.promo-modal .btn-close-promo {
  position: absolute; top: 10px; right: 14px;
  background: rgba(0,0,0,.2); border: none; color: var(--navy-deep);
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.promo-modal .promo-body { padding: 0; text-align: center; }
.promo-modal .promo-body img { width: 100%; display: block; }
.promo-modal .promo-foot { padding: 18px; text-align: center; }
.promo-modal .promo-foot p { color: rgba(255,255,255,.85); margin-bottom: 14px; }

/* ----- Marco de video destacado ----- */
.video-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  background: #000;
}
.video-frame video, .video-frame iframe { background: #000; }

/* ----- Franja CTA con textura ----- */
.cta-band {
  background:
    linear-gradient(rgba(6,20,41,.92), rgba(10,10,10,.95)),
    radial-gradient(circle at 80% 20%, rgba(212,175,55,.15), transparent 50%);
}

/* ----- Barra flotante de redes sociales ----- */
.social-float {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.social-float a {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: #fff;
  font-size: 1.15rem;
  border-left: 3px solid var(--gold);
  transition: all .25s;
}
.social-float a:first-child { border-top-left-radius: 8px; }
.social-float a:last-child { border-bottom-left-radius: 8px; }
.social-float a:hover { background: var(--gold); color: var(--navy-deep); padding-right: 10px; }
.social-float a.fb:hover { background:#1877f2; color:#fff; }
.social-float a.ig:hover { background:#e1306c; color:#fff; }
.social-float a.yt:hover { background:#ff0000; color:#fff; }
.social-float a.tt:hover { background:#000; color:#fff; }
.social-float a.tw:hover { background:#000; color:#fff; }
@media (max-width: 576px) { .social-float { display: none; } }

/* ----- Botones de redes en el footer (siempre visibles) ----- */
.footer .social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer .social-row a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.4);
  color: var(--gold);
  font-size: 1.15rem;
  transition: all .25s;
}
.footer .social-row a:hover { transform: translateY(-4px); }
.footer .social-row a.fb:hover { background:#1877f2; border-color:#1877f2; color:#fff; }
.footer .social-row a.ig:hover { background:#e1306c; border-color:#e1306c; color:#fff; }
.footer .social-row a.yt:hover { background:#ff0000; border-color:#ff0000; color:#fff; }
.footer .social-row a.tt:hover { background:#fff; border-color:#fff; color:#000; }
.footer .social-row a.tw:hover { background:#fff; border-color:#fff; color:#000; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .gallery-pro, .gallery-pro-full { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .director-feature .text-col { padding: 30px; }
  .hero { min-height: 80vh; }
  .section { padding: 56px 0; }
  .gallery-pro, .gallery-pro-full { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-pro, .gallery-pro-full { grid-template-columns: repeat(2, 1fr); }
}
