/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ocean:      #0d3b5e;    /* azul marino profundo */
  --sky:        #1a6fa8;    /* azul cielo mediterráneo */
  --azure:      #4fa3d1;    /* azul claro agua */
  --salt:       #f7f9fc;    /* blanco sal */
  --foam:       #e8f2f9;    /* blanco espuma */
  --sand:       #f0e8d8;    /* arena húmeda */
  --coral:      #c45c3a;    /* coral acento */
  --white:      #ffffff;
  --muted:      #5a7a90;    /* azul grisáceo */
  --dark:       #0a1f30;    /* casi negro marino */
}

body {
  background: var(--salt);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  transition: background .4s, box-shadow .4s;
  background: transparent;
}
nav.solid,
nav.scrolled {
  background: rgba(13,59,94,.97);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
  backdrop-filter: blur(10px);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 40px; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: opacity .3s;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.8); text-decoration: none; transition: color .3s;
  font-weight: 400;
}
.nav-links a:hover,
.nav-links a.active { color: var(--azure) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: background .3s; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  height: 50vh; min-height: 340px;
  position: relative; display: flex; align-items: flex-end;
  padding: 3.5rem 4rem;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,31,48,.85) 0%, rgba(13,59,94,.35) 100%);
}
.page-hero-content { position: relative; z-index: 1; color: var(--white); }
.page-hero-tag {
  font-size: .65rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--azure); margin-bottom: .8rem; display: block;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.1;
}
.page-hero-title em { font-style: italic; color: var(--azure); }

/* ── WAVE DIVIDER ── */
.wave-divider {
  display: block; width: 100%; height: 60px; overflow: hidden;
  line-height: 0; margin-bottom: -1px;
}
.wave-divider svg { width: 100%; height: 100%; }

/* ── SECTION BASE ── */
.section-label {
  font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--azure); margin-bottom: 1rem; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; }
.section-body { font-size: .95rem; line-height: 1.9; color: var(--muted); }

/* ── INFO BAR ── */
.info-bar {
  background: var(--ocean); color: var(--white);
  padding: 4rem; display: flex; justify-content: center; gap: 6rem; flex-wrap: wrap;
}
.info-item { text-align: center; }
.info-icon { font-size: 1.4rem; margin-bottom: .8rem; opacity: .8; }
.info-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 500; margin-bottom: .4rem; color: var(--azure);
}
.info-item p { font-size: .82rem; line-height: 1.75; opacity: .8; }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,.45);
  padding: 3rem 4rem; text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 400; letter-spacing: .06em;
  color: var(--white); margin-bottom: 1.5rem; display: block;
}
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.4); text-decoration: none; transition: color .3s;
}
.footer-links a:hover { color: var(--azure); }
.footer-copy { font-size: .72rem; letter-spacing: .06em; line-height: 1.7; }
.footer-azure { color: var(--azure); font-style: italic; font-family: 'Playfair Display', serif; font-size: .9rem; }

/* ── DIVIDER LINE ── */
.horizon {
  display: flex; align-items: center; gap: 1rem; margin: 2rem 0;
  color: var(--azure); font-size: .7rem; letter-spacing: .2em;
}
.horizon::before, .horizon::after {
  content: ''; flex: 1; height: 1px; background: var(--azure); opacity: .3;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: var(--dark); flex-direction: column;
    align-items: center; justify-content: center; gap: 2.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; color: var(--white) !important; }
  .page-hero { padding: 2rem 1.5rem; }
  .info-bar { gap: 3rem; padding: 3rem 1.5rem; }
  footer { padding: 2.5rem 1.5rem; }
}
