/* Lurdes Vázquez — landing institucional */

:root {
  --navy: #0c1f3d;
  --navy-mid: #152d52;
  --navy-soft: #1e3a66;
  --gold: #c4a035;
  --gold-light: #e8d48a;
  --cream: #f7f4ef;
  --cream-dark: #ebe6dc;
  --white: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6478;
  --border: rgba(12, 31, 61, 0.12);
  --shadow: 0 24px 64px rgba(12, 31, 61, 0.14);
  --shadow-sm: 0 8px 24px rgba(12, 31, 61, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 4.5rem;
  --radius: 4px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container--narrow {
  width: min(900px, calc(100% - 2.5rem));
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2.5rem));
  height: 100%;
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav a:hover,
.nav a.is-active {
  color: var(--navy);
  background: rgba(12, 31, 61, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 45%, var(--navy-soft) 100%);
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 4rem 0 3rem;
}

.hero-content {
  color: var(--white);
  padding-right: 1rem;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(232, 212, 138, 0.35);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
  font-weight: 700;
  color: var(--gold-light);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  width: min(420px, 100%);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--gold);
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}

.badge-number {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

.badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-top: 1px solid var(--border);
}

.strip-item {
  padding: 1.75rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.strip-item:last-child {
  border-right: none;
}

.strip-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
}

.strip-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-intro {
  margin-inline: auto;
}

.section-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-header h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

.section-intro {
  margin: 0;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Raíces */
.raices {
  background: var(--white);
}

.raices-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.raices-card {
  padding: 2rem;
  background: var(--cream);
  border-left: 4px solid var(--gold);
}

.raices-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.raices-card p {
  margin: 0 0 1rem;
  color: var(--text);
}

.raices-card p:last-child {
  margin-bottom: 0;
}

.raices-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dato {
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
}

.dato-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dato-value {
  font-weight: 600;
  color: var(--navy);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

/* Trayectoria */
.trayectoria {
  background: var(--navy);
  color: var(--white);
}

.trayectoria .section-tag {
  color: var(--gold-light);
}

.trayectoria .section-header h2 {
  color: var(--white);
}

.trayectoria-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.trayectoria-photo {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.trayectoria-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.trayectoria-text p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.88);
}

.trayectoria-text blockquote {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--gold-light);
}

/* Formación timeline */
.formacion {
  background: var(--cream);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--navy-soft));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  margin-left: -1px;
  background: var(--gold);
  border: 3px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--navy);
}

.timeline-body h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.timeline-place {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--gold);
}

.timeline-body p:last-child {
  margin: 0;
  color: var(--text-muted);
}

/* Experiencia */
.experiencia {
  background: var(--white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  padding: 2.25rem;
  background: var(--cream);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.card-years {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold-light);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.card-org {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-soft);
}

.card p:last-child {
  margin: 0;
  color: var(--text-muted);
}

/* Misión */
.mision {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.mision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.mision-card {
  padding: 2.5rem;
  background: var(--white);
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow-sm);
}

.mision-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.mision-icon svg {
  width: 100%;
  height: 100%;
}

.mision-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
}

.mision-card p {
  margin: 0;
  color: var(--text-muted);
}

.valores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.valores span {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Contacto */
.contacto {
  background: var(--navy);
  color: var(--white);
}

.contacto .section-tag {
  color: var(--gold-light);
}

.contacto .section-header h2 {
  color: var(--white);
}

.contacto .section-intro {
  color: rgba(255, 255, 255, 0.75);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-nombre {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.contacto-zona {
  margin: 0 0 1.5rem;
  color: var(--gold-light);
  font-weight: 500;
}

.contacto-nota {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

.redes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.red {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.red:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold);
  color: var(--white);
  transform: translateX(4px);
}

.red svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: #081528;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  color: rgba(255, 255, 255, 0.4);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
    text-align: center;
  }

  .hero-bg {
    clip-path: none;
    opacity: 1;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badge {
    left: auto;
    right: 1rem;
    bottom: 1rem;
  }

  .raices-grid,
  .trayectoria-content,
  .cards,
  .mision-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery figure:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    padding: 1rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .strip-item:last-child {
    border-bottom: none;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery figure:last-child {
    grid-column: auto;
    max-width: none;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .red:hover {
    transform: none;
  }
}
