/* ==========================================================================
   Comité EIA LATAM — Hoja de Estilos Oficial (index.css)
   Paleta Institucional:
     --hero-bg:        #0A1A34 (Fondo oscuro / hero)
     --navy-main:      #12294F (Azul institucional principal)
     --blue-mid:       #3D7090 (Azul medio acentos/hover)
     --blue-light:     #9EB7C7 (Azul claro fondos suaves/bordes)
     --surface-light:  #F3F1EA (Superficie clara / fondo de secciones)
     --surface-alt:    #CEDBE3 (Superficie secundaria)
     --gold:           #C9A227 (Acento cálido dorado)
     --gold-hover:     #E5B82E (Hover dorado)
   ========================================================================== */

:root {
  --hero-bg: #010d21;          /* Fondo oscuro / hero */
  --navy-main: #12294F;        /* Azul institucional principal */
  --blue-mid: #3D7090;         /* Azul medio (acentos, hover, secundario) */
  --blue-light: #9EB7C7;       /* Azul claro (fondos suaves, bordes) */
  --surface-light: #F3F1EA;    /* Superficie clara / fondo de secciones */
  --surface-alt: #CEDBE3;      /* Superficie secundaria */
  --gold: #C9A227;             /* Acento cálido (botones, detalles) */
  --gold-hover: #E5B82E;       /* Hover de acento cálido */
  --white: #FFFFFF;
  --ink: #0A1A34;
  --gray: #5A6D80;
  --sans: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: var(--sans); 
  background: var(--surface-light); 
  color: var(--ink); 
  line-height: 1.6; 
  overflow-x: hidden; 
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.cond { font-family: var(--sans); font-weight: 900; letter-spacing: -0.5px; text-transform: uppercase; }
.bracket-tag { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

.reveal { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
@media (prefers-reduced-motion: reduce) { 
  .reveal { opacity: 1; transform: none; transition: none; } 
}

/* ---------- Pixel Edge Divider ---------- */
.pixel-edge {
  height: 44px; 
  width: 100%;
  clip-path: polygon(0% 44px,10% 44px,10% 22px,20% 22px,20% 44px,30% 44px,30% 0px,40% 0px,40% 34px,50% 34px,50% 12px,60% 12px,60% 44px,70% 44px,70% 22px,80% 22px,80% 44px,90% 44px,90% 0px,100% 0px,100% 100%,0% 100%);
}

/* ---------- Header & Navegación ---------- */
header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  background: var(--white); 
  border-bottom: 1px solid rgba(18, 41, 79, 0.12); 
}
.nav-row { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 32px; 
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { 
  width: 32px; 
  height: 32px; 
  border-radius: 50%; 
  background: var(--navy-main); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0; 
  box-shadow: 0 2px 8px rgba(18, 41, 79, 0.25); 
}
.brand-name { font-size: 13.5px; font-weight: 900; letter-spacing: 0.5px; color: var(--navy-main); }
nav.links { display: flex; gap: 26px; }
nav.links a { 
  font-size: 11.5px; 
  font-weight: 700; 
  letter-spacing: 1.5px; 
  text-transform: uppercase; 
  color: var(--navy-main); 
  position: relative; 
  padding: 4px 0; 
  transition: color .2s ease; 
}
nav.links a:hover { color: var(--gold); }
nav.links a::after { 
  content: ""; 
  position: absolute; 
  left: 0; 
  bottom: 0; 
  width: 0; 
  height: 2px; 
  background: var(--gold); 
  transition: width .25s ease; 
}
nav.links a:hover::after { width: 100%; }
.menu-toggle { 
  display: none; 
  background: none; 
  border: none; 
  color: var(--navy-main); 
  font-size: 22px; 
  cursor: pointer; 
}
@media (max-width: 840px) {
  nav.links { display: none; }
  .menu-toggle { display: block; }
  nav.links.open { 
    display: flex; 
    position: absolute; 
    top: 64px; 
    left: 0; 
    right: 0; 
    background: var(--white); 
    flex-direction: column; 
    padding: 18px 32px; 
    gap: 16px; 
    border-bottom: 1px solid rgba(18, 41, 79, 0.12); 
  }
}
.ruler { 
  height: 14px; 
  background-image: repeating-linear-gradient(90deg, rgba(18, 41, 79, 0.35) 0 1px, transparent 1px 8px); 
  background-position: bottom; 
  background-repeat: repeat-x; 
  background-size: 8px 8px; 
  opacity: .45; 
}

/* ============ PART 1 — HERO FULL COVER ============ */
.hero1 {
  background-color: #011021;
  position: relative;
  padding: 30px 0 45px;
  overflow: hidden;
  color: var(--white);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Fondo completo con imagen centrada y difuminado lateral y vertical */
.hero-bg-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0 20px;
}
.hero-bg-cover-img {
  width: 100%;
  height: 100%;
  max-width: 1220px;
  object-fit: contain;
  object-position: center 32%;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 26, 52, 0.35) 0%,
    rgba(10, 26, 52, 0.0) 25%,
    rgba(10, 26, 52, 0.0) 65%,
    rgba(10, 26, 52, 0.75) 90%,
    var(--hero-bg) 100%
  );
  pointer-events: none;
}

.corner-tags {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  padding: 0 45px;
  margin-bottom: 10px;
}
.corner-tags span {
  color: #DCE3FF;
  letter-spacing: 3px;
  font-size: 11.5px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  background: rgba(10, 26, 52, 0.55);
  padding: 5px 14px;
  border-radius: 3px;
  border: 1px solid rgba(158, 183, 199, 0.25);
  backdrop-filter: blur(6px);
}

.hero-center-spacer {
  flex: 1;
  min-height: clamp(240px, 36vw, 440px);
  pointer-events: none;
}

/* Fila inferior con cuadro de misión a la izquierda y botones a la derecha */
.hero1-bottom-row {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 45px;
  width: 100%;
  flex-wrap: wrap;
  gap: 24px;
}

.hero1-copybox {
  position: relative;
  max-width: 480px;
  padding: 20px 24px;
  background: rgba(10, 26, 52, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(158, 183, 199, 0.3);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  margin: 0;
}
.hero1-copybox .corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
}
.hero1-copybox .c-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hero1-copybox .c-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hero1-copybox .c-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hero1-copybox .c-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.hero1-copybox p {
  font-size: 13.5px;
  color: #FFFFFF;
  line-height: 1.75;
  text-align: justify;
}

.hero1-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.hero-credit-tag {
  font-size: 11px;
  letter-spacing: 2px;
  color: #DCE3FF;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  background: rgba(10, 26, 52, 0.55);
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid rgba(158, 183, 199, 0.25);
  backdrop-filter: blur(6px);
}
.hero-buttons-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 15px 28px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: #0A1A34;
  border: none;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.45);
}
.btn-gold:hover {
  background: var(--gold-hover);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.65);
}
.btn-outline-w {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(10, 26, 52, 0.75);
  backdrop-filter: blur(8px);
}
.btn-outline-w:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
}
.bolt { display: inline-block; }

@media (max-width: 860px) {
  .hero1 { padding: 25px 0 25px; }
  .corner-tags { padding: 0 20px; font-size: 10px; }
  .hero-center-spacer { min-height: clamp(140px, 28vw, 220px); }
  .hero1-bottom-row { padding: 0 20px; flex-direction: column; align-items: stretch; gap: 20px; }
  .hero1-copybox { max-width: 100%; }
  .hero1-actions { align-items: center; width: 100%; }
  .hero-buttons-group { justify-content: center; width: 100%; }
}

/* ============ PART 2 — PRODUCTO / LIBRO 3D FLOTANTE ============ */
.part2 { 
  background: var(--surface-light); 
  padding: 75px 0 95px; 
  position: relative; 
  overflow: hidden; 
}
.part2-tagrow { display: flex; justify-content: space-between; margin-bottom: 34px; }
.part2-title { font-size: clamp(32px, 5.2vw, 60px); line-height: 1; color: var(--navy-main); text-align: center; margin-bottom: 8px; }
.part2-title span { color: var(--gold); }
.part2-sub { text-align: center; color: var(--gray); font-size: 13.5px; max-width: 420px; margin: 0 auto 46px; }
.product-stage { display: flex; justify-content: center; position: relative; min-height: 480px; align-items: center; }
.product-stage .bg-word { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: clamp(60px, 14vw, 180px); color: rgba(18, 41, 79, 0.05); white-space: nowrap; z-index: 0; }

.book3d-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.book3d-real-img {
  width: clamp(260px, 32vw, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 35px rgba(10, 26, 52, 0.32)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  animation: bookFloatUpDown 4.5s ease-in-out infinite alternate;
  transition: filter 0.4s ease;
  cursor: pointer;
}
.book3d-real-img:hover {
  filter: drop-shadow(0 35px 50px rgba(201, 162, 39, 0.5)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}
@keyframes bookFloatUpDown {
  0% { transform: translateY(0px) rotate(-0.5deg); }
  50% { transform: translateY(-22px) rotate(1.2deg); }
  100% { transform: translateY(6px) rotate(-0.8deg); }
}
.product-shadow {
  width: clamp(210px, 27vw, 350px);
  height: 30px;
  background: radial-gradient(ellipse, rgba(10, 26, 52, 0.45) 0%, rgba(10, 26, 52, 0) 70%);
  margin: 18px auto 0;
  filter: blur(5px);
  animation: shadowPulse 4.5s ease-in-out infinite alternate;
}
@keyframes shadowPulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(0.82); opacity: 0.35; }
  100% { transform: scale(1.06); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .book3d-real-img { animation: none; }
  .product-shadow { animation: none; }
}
.part2-ctarow { display: flex; justify-content: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* ============ PART 2B — EVENTOS (CARRUSEL OSCURO) ============ */
.eventos {
  scroll-margin-top: 70px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(61, 112, 144, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(201, 162, 39, 0.08) 0%, transparent 70%),
    var(--hero-bg);
  color: var(--white);
  padding: 60px 0 90px;
}
.eventos-tagrow { color: var(--blue-light); }
.eventos-heading { color: var(--white); }
.eventos-sub { color: var(--blue-light); }

/* Carrusel */
.carrusel { position: relative; }
.carrusel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 6px;
}
.carrusel-track::-webkit-scrollbar { display: none; }
.carrusel-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.evento-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(145deg, rgba(18, 41, 79, 0.75) 0%, rgba(10, 26, 52, 0.55) 100%);
  border: 1px solid rgba(158, 183, 199, 0.22);
  border-radius: 6px;
}

.evento-poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
/* Esquinas doradas alrededor del afiche */
.evento-poster::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 18px 2px,
    linear-gradient(var(--gold), var(--gold)) top left / 2px 18px,
    linear-gradient(var(--gold), var(--gold)) top right / 18px 2px,
    linear-gradient(var(--gold), var(--gold)) top right / 2px 18px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 18px 2px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 2px 18px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 18px 2px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 2px 18px;
  background-repeat: no-repeat;
}
.evento-poster::after {
  content: "Ampliar afiche \2197";
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #DCE3FF;
  background: rgba(10, 26, 52, 0.85);
  border: 1px solid rgba(158, 183, 199, 0.3);
  padding: 5px 10px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity .25s ease;
}
.evento-poster:hover::after,
.evento-poster:focus-visible::after { opacity: 1; }
.evento-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform .35s ease, box-shadow .35s ease;
}
.evento-poster:hover img,
.evento-poster:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(201, 162, 39, 0.3);
}

.evento-tipo {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.evento-titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 16px;
}
.evento-titulo em { color: var(--gold); font-style: italic; }
.evento-desc { font-size: 15px; color: var(--surface-alt); margin-bottom: 26px; max-width: 460px; }

.evento-meta { list-style: none; margin-bottom: 30px; border-left: 1px solid rgba(158, 183, 199, 0.25); }
.evento-meta li {
  position: relative;
  padding: 10px 0 10px 76px;
  min-height: 62px;
  font-size: 14px;
  color: var(--blue-light);
}
.evento-meta strong { display: block; color: var(--white); font-size: 13px; font-weight: 800; }
/* Íconos: el círculo y el dibujo se eligen con la clase m-fecha / m-hora / m-lugar */
.evento-meta li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 50%;
  background: var(--navy-main);
  border: 1px solid rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.18);
}
.evento-meta li::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: var(--white);
  -webkit-mask: var(--ico) no-repeat center / contain;
  mask: var(--ico) no-repeat center / contain;
}
.evento-meta .m-fecha { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.evento-meta .m-hora { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.evento-meta .m-lugar { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }

.evento-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Controles del carrusel */
.carrusel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}
.carrusel-nav[hidden] { display: none; }
.carrusel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 26, 52, 0.6);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.carrusel-btn:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 20px rgba(201, 162, 39, 0.35); }
.carrusel-dots { display: flex; gap: 8px; }
.carrusel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 5px;
  border: none;
  background: rgba(158, 183, 199, 0.4);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.carrusel-dot.is-active { width: 28px; background: var(--gold); }
.carrusel-count { color: var(--blue-light); min-width: 64px; text-align: center; }

/* Visor de afiche */
.af-modal {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  width: min(92vw, 820px);
  max-width: none;
  overflow: visible;
}
.af-modal::backdrop { background: rgba(1, 13, 33, 0.88); backdrop-filter: blur(4px); }
.af-modal img { display: block; width: 100%; max-height: 88vh; object-fit: contain; border-radius: 4px; border: 1.5px solid var(--gold); }
.af-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 26, 52, 0.8);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.af-close:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 860px) {
  .evento-slide { grid-template-columns: 1fr; gap: 30px; padding: 22px; }
  .evento-poster::after { opacity: 1; }
}
@media (max-width: 540px) {
  .evento-actions .btn { width: 100%; justify-content: center; }
  .carrusel-count { display: none; }
}

/* ============ PART 3 — NOSOTROS (AUTORAS + PRINCIPIOS FLIP) ============ */
.part3 { background: var(--navy-main); color: var(--white); padding: 85px 0; }
.part3-block { margin-bottom: 80px; }
.part3-block:last-child { margin-bottom: 0; }
.part3-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.part3-tag .num { font-size: 11px; color: var(--gold); font-weight: 700; }
.part3-tag .line { flex: 1; height: 1px; background: rgba(158, 183, 199, 0.25); }
.part3-heading { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 20px; }
.somos-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; }
@media (max-width: 780px) { .somos-grid { grid-template-columns: 1fr; } }
.somos-grid p { color: var(--surface-alt); font-size: 14px; margin-bottom: 16px; line-height: 1.8; }
.gov-list { list-style: none; }
.gov-list li { padding: 14px 0; border-top: 1px solid rgba(158, 183, 199, 0.18); font-size: 13px; color: var(--surface-alt); }
.gov-list li strong { color: #fff; display: block; font-size: 13px; margin-bottom: 3px; }

/* Autoras con Fotos Reales - 4 Columnas */
.autoras-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}
@media (max-width: 1024px) { 
  .autoras-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
  } 
}
@media (max-width: 580px) { 
  .autoras-grid { 
    grid-template-columns: 1fr; 
    max-width: 320px; 
    margin: 0 auto; 
  } 
}
.autora-card {
  text-align: center;
  background: rgba(10, 26, 52, 0.55);
  border: 1px solid rgba(158, 183, 199, 0.22);
  padding: 28px 20px;
  border-radius: 6px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.autora-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(201, 162, 39, 0.3);
}
.autora-photo {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 2.5px solid var(--gold);
  box-shadow: 0 0 22px rgba(201, 162, 39, 0.4);
  display: block;
  transition: transform .3s ease, box-shadow .3s ease;
}
.autora-card:hover .autora-photo {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.7);
}
.autora-card h4 { font-family: var(--serif); font-size: 17px; margin-bottom: 4px; color: #FFFFFF; }
.autora-card span { font-size: 11px; color: var(--gold); display: block; margin-bottom: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
.autora-card p { font-size: 12.5px; color: var(--surface-alt); line-height: 1.6; }

/* Principios Rectores con Efecto 3D Flip Card */
.principios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  perspective: 1200px;
}
@media (max-width: 980px) { .principios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .principios-grid { grid-template-columns: 1fr; } }

.principio-flip-card {
  background-color: transparent;
  min-height: 220px;
  perspective: 1000px;
  cursor: pointer;
}
.principio-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 6px;
}
.principio-flip-card:hover .principio-inner,
.principio-flip-card.is-flipped .principio-inner {
  transform: rotateY(180deg);
}
.principio-front, .principio-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 6px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.principio-front {
  background: rgba(10, 26, 52, 0.7);
  border: 1px solid rgba(158, 183, 199, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.principio-flip-card:hover .principio-front {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(201, 162, 39, 0.35);
}
.principio-num {
  font-size: 32px;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(201, 162, 39, 0.5);
}
.principio-name {
  font-size: 13px;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.4;
}
.principio-hint {
  font-size: 9.5px;
  color: var(--blue-light);
  margin-top: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.principio-back {
  background: linear-gradient(145deg, #12294F 0%, #0A1A34 100%);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 28px rgba(201, 162, 39, 0.4);
  transform: rotateY(180deg);
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px 16px;
  overflow-y: auto;
}
.principio-back .back-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  padding-bottom: 6px;
  width: 100%;
}
.principio-back .back-num {
  font-size: 14px;
  font-weight: 900;
  color: var(--gold);
}
.principio-back .back-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.principio-back p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--surface-light);
  text-align: justify;
}

/* ============ PART 4 — CONTACTO ============ */
.part4 { 
  background: var(--surface-light); 
  padding: 80px 0 0; 
}
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; margin-bottom: 50px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { 
  display: block; 
  font-size: 11px; 
  font-weight: 700; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  color: var(--gray); 
  margin-bottom: 6px; 
}
.field input, .field textarea { 
  width: 100%; 
  padding: 13px 14px; 
  border: 1px solid rgba(18, 41, 79, 0.2); 
  border-radius: 4px; 
  font-family: var(--sans); 
  font-size: 14px; 
  background: #fff; 
  color: var(--ink); 
}
.field input:focus, .field textarea:focus { 
  outline: none; 
  border-color: var(--blue-mid); 
  box-shadow: 0 0 0 3px rgba(61, 112, 144, 0.15); 
}
.field textarea { min-height: 110px; resize: vertical; }
.contact-side p.line { font-size: 14px; color: var(--navy-main); margin-bottom: 4px; font-weight: 600; }
.contact-side p.line a { color: var(--blue-mid); text-decoration: underline; transition: color .2s; }
.contact-side p.line a:hover { color: var(--gold); }
.contact-side strong { 
  display: block; 
  font-size: 12px; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  color: var(--navy-main); 
  margin-top: 18px; 
  margin-bottom: 6px; 
}
.social-list { display: flex; flex-direction:row; gap: 10px; margin-top: 16px; }
.social-list a { 
  font-size: 13px; 
  font-weight: 700; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  color: var(--navy-main); 
  background: rgba(18, 41, 79, 0.08); 
  padding: 10px 18px; 
  border-radius: 4px; 
  border: 1px solid rgba(18, 41, 79, 0.15); 
  transition: background .2s, color .2s, border-color .2s; 
  width: fit-content; 
}
.social-list a:hover { 
  color: #FFFFFF; 
  background: var(--navy-main); 
  border-color: var(--navy-main); 
}
.submit-pill { 
  background: var(--navy-main); 
  color: #fff; 
  border: none; 
  padding: 15px 30px; 
  font-size: 12px; 
  font-weight: 800; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  cursor: pointer; 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  border-radius: 4px; 
  transition: background .2s, transform .2s; 
}
.submit-pill:hover { 
  background: var(--blue-mid); 
  transform: translateY(-2px); 
}

.contact-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}
.feedback-success {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}
.feedback-info {
  background: #E3F2FD;
  color: #0D47A1;
  border: 1px solid #90CAF9;
}

.footer-wordmark { 
  background: var(--navy-main); 
  overflow: hidden; 
  padding: 20px 0 0; 
}
.footer-wordmark .ruler { 
  background-image: repeating-linear-gradient(90deg, rgba(158, 183, 199, 0.4) 0 1px, transparent 1px 8px); 
  opacity: 1; 
}
.footer-wordmark .cond { 
  color: var(--white); 
  font-size: clamp(50px, 13vw, 160px); 
  text-align: center; 
  line-height: 0.95; 
  padding: 10px 0 0; 
  white-space: nowrap; 
  overflow: hidden; 
}
.footer-bar { 
  background: var(--hero-bg); 
  color: var(--blue-light); 
  font-size: 11px; 
  text-align: center; 
  padding: 18px 0 26px; 
}
