/* ---------- RESET ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

:root {
  --bg: #f5f2ea;
  --bg-card: #fffcf6;
  --ink: #1b262b;
  --ink-soft: #4a5a5f;
  --accent: #2c5f7c;
  --accent-light: #6a9bd8;
  --line: rgba(27, 38, 43, 0.12);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --bar-h: 96px;
}

body { font-family: var(--sans); }

a { color: inherit; text-decoration: none; }

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

.section { position: relative; }

/* ---------- BRAND BAR ---------- */
.brand-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 30;
  background: rgba(245, 242, 234, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.brand-bar-logo {
  display: block;
}

.brand-bar-logo-mark {
  display: block;
  height: 52px;
  width: auto;
}

.brand-bar-badges {
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand-bar-badges img {
  display: block;
  height: 56px;
  width: auto;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  z-index: 20;
  mix-blend-mode: difference;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  padding: 4px 7px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-btn:hover { color: rgba(255, 255, 255, 0.85); }

.lang-btn.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 100% at 75% 20%, #1e4a63 0%, #163449 45%, #101f2a 100%);
  color: #f5f2ea;
  text-align: center;
  padding: calc(120px + var(--bar-h)) 24px 80px;
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ripples {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.ripples circle {
  fill: none;
  stroke: rgba(245, 242, 234, 0.14);
  stroke-width: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 22px;
}

.eyebrow.dark { color: var(--accent); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.18;
  margin: 0 0 20px;
}

.hero-subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.6vw, 27px);
  line-height: 1.4;
  color: rgba(245, 242, 234, 0.88);
  margin: 0 0 24px;
}

.hero-meta {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.6px;
  color: rgba(245, 242, 234, 0.72);
  margin: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 46px;
  background: rgba(245, 242, 234, 0.5);
  position: relative;
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- INTRO ---------- */
.intro {
  padding: clamp(90px, 14vh, 160px) 24px;
}

.intro-inner {
  max-width: 720px;
  margin: 0 auto;
}

.intro p {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.intro p.lead {
  color: var(--ink);
  font-style: italic;
}

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

/* ---------- ABOUT (Quiénes somos) ---------- */
.text-card p.lead {
  color: var(--ink);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 19px);
}

.text-card .about-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  margin-top: 28px;
}

/* ---------- PRINCIPLES / MANIFESTO ---------- */
.principles {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(80px, 12vh, 130px) clamp(20px, 6vw, 80px);
}

.principles .eyebrow.dark { color: var(--accent-light); }

.principles-head {
  max-width: 640px;
  margin: 0 auto clamp(48px, 7vh, 80px);
  text-align: center;
}

.principles-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  margin: 0;
}

.principles-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(245, 242, 234, 0.16);
}

.principle {
  display: flex;
  gap: 22px;
  padding: 34px 26px 34px 0;
  border-bottom: 1px solid rgba(245, 242, 234, 0.16);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.principle:nth-child(odd) { border-right: 1px solid rgba(245, 242, 234, 0.16); padding-left: 0; }
.principle:nth-child(even) { padding-left: 30px; }

.principle.show { opacity: 1; transform: translateY(0); }

.principle .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent-light);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 4px;
}

.principle h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 10px;
}

.principle p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(245, 242, 234, 0.78);
  margin: 0;
}

/* ---------- INFO BLOCKS (imagen + texto) ---------- */
.info-block {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  padding: clamp(60px, 8vh, 100px) clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.info-block.reverse { grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr); }
.info-block.reverse .image-card { order: 2; }
.info-block.reverse .text-card { order: 1; }

.image-card, .text-card {
  min-width: 0;
  min-height: clamp(380px, 62vh, 640px);
  border-radius: clamp(16px, 2.4vw, 28px);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.image-card.show, .text-card.show { opacity: 1; transform: translateY(0); }

.image-card {
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(27, 38, 43, 0.14);
  background: #dfe3df;
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: clamp(380px, 62vh, 640px);
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s ease;
}

.image-card:hover img { transform: scale(1); }

.badges-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  background: var(--bg-card);
  box-shadow: 0 18px 45px rgba(27, 38, 43, 0.06);
  padding: 40px;
}

.badges-card img {
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 78%;
  max-height: 150px;
  object-fit: contain;
  transform: none;
  transition: none;
}

.badges-card:hover img { transform: none; }

.text-card {
  background: var(--bg-card);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(27, 38, 43, 0.06);
}

.text-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0 0 20px;
}

.text-card p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
  text-align: justify;
}

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

/* ---------- SIGNATURE ---------- */
.signature {
  padding: clamp(90px, 14vh, 150px) 24px;
  text-align: center;
  background: var(--bg);
}

.signature-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 36px;
  filter: invert(1);
  opacity: 0.85;
}

.signature-place {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 6px;
}

.signature-signed {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 0 40px;
}

.contact-line {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.2s ease;
}

.contact-line:hover { color: var(--accent); }

.print-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.print-btn:hover { background: var(--ink); color: var(--bg); }

/* ---------- FOOTER ---------- */
.footer {
  padding: 50px 24px;
  text-align: center;
  background: #101a1f;
  color: rgba(245, 242, 234, 0.85);
}

.footer-name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 2px;
  margin: 0 0 10px;
}

.footer-doc {
  font-size: 13px;
  color: rgba(245, 242, 234, 0.55);
  margin: 0 0 14px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 12px;
  color: rgba(245, 242, 234, 0.4);
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .info-block, .info-block.reverse {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 60px 20px;
  }
  .info-block.reverse .image-card,
  .info-block.reverse .text-card { order: initial; }
  .image-card, .text-card, .image-card img { min-height: 320px; }

  .principles-list { grid-template-columns: 1fr; }
  .principle:nth-child(odd) { border-right: none; }
  .principle:nth-child(even) { padding-left: 0; }
}

@media (max-width: 900px) {
  .badges-card { flex-direction: row; flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 640px) {
  :root { --bar-h: 68px; }
  .nav { display: none; }
  .header { padding: 20px 22px; }
  .brand-bar { padding: 0 18px; }
  .brand-bar-logo-mark { height: 36px; }
  .brand-bar-badges { gap: 14px; }
  .brand-bar-badges img { height: 34px; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .signature-logo { width: 96px; }
}

/* ---------- PRINT ---------- */
@media print {
  .brand-bar, .header, .hero-field, .scroll-cue, .nav, .print-btn, .footer { display: none; }
  .hero { min-height: auto; background: none; color: var(--ink); padding: 20px 0; }
  .ripples { display: none; }
  .info-block, .principles-list .principle, .image-card, .text-card {
    opacity: 1 !important;
    transform: none !important;
  }
  .principles { background: none; color: var(--ink); }
  .principle p { color: var(--ink-soft); }
  .image-card { box-shadow: none; }
}
