:root {
  --deep: #0b3a4a;
  --sea: #147a8a;
  --foam: #f4f8f9;
  --sand: #e7f0f2;
  --ink: #123039;
  --mute: #4d6870;
  --coral: #e07a5f;
  --line: rgba(18, 48, 57, 0.12);
  --display: "Fraunces", Georgia, serif;
  --body: "Sora", sans-serif;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(20, 122, 138, 0.1), transparent 55%),
    linear-gradient(180deg, #f7fbfc, var(--foam) 40%, var(--sand));
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .brand, .logo, .logo-foot, .eyebrow {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 .8rem;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--deep); color: #fff; padding: .55rem 1rem;
}
.skip:focus { top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.1rem, 3.5vw, 2rem); }

/* ——— Navbar ——— */
.site-header {
  --nav-fg: #f4f8f9;
  --nav-muted: rgba(244, 248, 249, 0.72);
  --shell-bg: rgba(11, 58, 74, 0.42);
  --shell-border: rgba(244, 248, 249, 0.18);
  --shell-shadow: 0 14px 40px rgba(8, 40, 52, 0.22);
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem clamp(0.85rem, 2.5vw, 1.4rem) 0;
  pointer-events: none;
  transition: padding .4s var(--ease);
}
.site-header.is-scrolled {
  --nav-fg: var(--ink);
  --nav-muted: var(--mute);
  --shell-bg: rgba(244, 248, 249, 0.86);
  --shell-border: rgba(18, 48, 57, 0.1);
  --shell-shadow: 0 10px 30px rgba(18, 48, 57, 0.08);
  padding-top: .65rem;
}
.site-header.is-open {
  --nav-fg: var(--ink);
  --nav-muted: var(--mute);
}

.nav-shell {
  pointer-events: auto;
  max-width: calc(var(--max) + 1rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.75rem;
  padding: .4rem .45rem .4rem 1.15rem;
  border: 1px solid var(--shell-border);
  border-radius: 999px;
  background: var(--shell-bg);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: var(--shell-shadow);
  color: var(--nav-fg);
  transition:
    background .4s var(--ease),
    border-color .4s var(--ease),
    box-shadow .4s var(--ease),
    color .4s var(--ease),
    border-radius .4s var(--ease);
}
.site-header.is-scrolled .nav-shell,
.site-header.is-open .nav-shell {
  border-radius: 18px;
}

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; font-size: 1.35rem; color: var(--nav-fg);
  transition: color .4s var(--ease), opacity .2s;
}
.logo:hover { opacity: .85; color: var(--nav-fg); }
.logo-wave {
  width: 1.35rem; height: .7rem;
  background:
    radial-gradient(circle at 25% 100%, transparent 55%, var(--coral) 56%),
    radial-gradient(circle at 75% 0%, transparent 55%, var(--coral) 56%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
}

.nav {
  display: flex; justify-content: center; align-items: center; gap: .15rem;
}
.nav a {
  position: relative;
  padding: .55rem 1rem;
  text-decoration: none;
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--nav-muted);
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute; left: 1rem; right: 1rem; bottom: .35rem;
  height: 2px; border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav a:hover,
.nav a.is-active { color: var(--nav-fg); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .4rem; }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: var(--body);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: #c96a52;
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 2.6rem; height: 2.6rem;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,0.14);
  cursor: pointer; padding: 0;
}
.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  background: rgba(18, 48, 57, 0.08);
}
.burger {
  display: grid; gap: 5px; justify-items: center;
}
.burger i {
  display: block; width: 1.05rem; height: 1.5px;
  background: var(--nav-fg);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] .burger i:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger i:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav-drawer {
  pointer-events: auto;
  max-width: calc(var(--max) + 1rem);
  margin: .6rem auto 0;
  padding: 1rem 1rem 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(18, 48, 57, 0.1);
  background: rgba(244, 248, 249, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(11, 58, 74, 0.16);
  animation: drawer .35s var(--ease);
}
.nav-drawer[hidden] { display: none; }
.drawer-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .75rem; padding: 0 .35rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}
.drawer-close {
  border: 0; background: transparent; color: var(--sea);
  font: inherit; font-weight: 600; cursor: pointer;
}
.nav-drawer nav { display: grid; gap: .2rem; }
.nav-drawer a {
  display: flex; align-items: baseline; gap: .85rem;
  padding: 1rem .9rem; border-radius: 14px;
  text-decoration: none; font-family: var(--display);
  font-size: 1.45rem; color: var(--ink);
  transition: background .2s;
}
.nav-drawer a span {
  font-family: var(--body); font-size: .75rem; color: var(--coral); letter-spacing: .08em;
}
.nav-drawer a:hover { background: rgba(20, 122, 138, 0.08); }
.drawer-cta {
  margin-top: .5rem !important;
  justify-content: center !important;
  background: var(--coral) !important;
  color: #fff !important;
  font-family: var(--body) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); animation: drift 18s var(--ease) forwards;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,58,74,.35) 0%, rgba(11,58,74,.55) 45%, rgba(11,58,74,.88) 100%),
    linear-gradient(90deg, rgba(11,58,74,.5), transparent 60%);
}
.wave-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background:
    radial-gradient(60px 40px at 10% 100%, transparent 60%, rgba(244,248,249,.9) 61%),
    radial-gradient(70px 44px at 30% 100%, transparent 60%, rgba(244,248,249,.9) 61%),
    radial-gradient(55px 38px at 50% 100%, transparent 60%, rgba(244,248,249,.9) 61%),
    radial-gradient(65px 42px at 70% 100%, transparent 60%, rgba(244,248,249,.9) 61%),
    radial-gradient(58px 40px at 90% 100%, transparent 60%, rgba(244,248,249,.9) 61%);
  opacity: .95;
}
.hero-copy {
  position: relative; z-index: 1; color: var(--foam);
  max-width: var(--max); width: 100%; margin: 0 auto;
  padding: 7rem clamp(1.1rem, 3.5vw, 2rem) 5rem;
}
.brand {
  margin: 0 0 1rem; font-size: clamp(3rem, 9vw, 5.8rem);
  animation: rise .9s var(--ease) both;
}
.hero h1 { max-width: 12ch; animation: rise .9s var(--ease) .1s both; }
.lead {
  max-width: 34ch; color: rgba(244,248,249,.82); font-size: 1.08rem;
  animation: rise .9s var(--ease) .2s both;
}
.btn {
  display: inline-flex; align-items: center; margin-top: 1.4rem;
  padding: .9rem 1.35rem; border: 0; border-radius: 999px;
  background: var(--coral); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
  animation: rise .9s var(--ease) .3s both;
}
.btn:hover { transform: translateY(-2px); background: #c96a52; color: #fff; }

.section { padding: clamp(4.5rem, 10vw, 7rem) 0; }
.eyebrow {
  margin: 0 0 .65rem; font-family: var(--body); font-size: .78rem;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sea);
}
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
}
.split p { color: var(--mute); }

.frentes {
  background: linear-gradient(180deg, transparent, rgba(20,122,138,.06));
}
.frente-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.2rem;
}
.frente-grid article {
  padding-top: 1.25rem; border-top: 2px solid var(--sea);
}
.frente-grid p { color: var(--mute); }

.costa-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.costa-grid img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 24px;
}
.coast-list {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
}
.coast-list li {
  padding: .85rem 0; border-top: 1px solid var(--line);
  font-family: var(--display); font-size: 1.35rem;
}

.experiencia { border-top: 1px solid var(--line); }
.exp-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem;
}
.exp-row p { color: var(--mute); }

.contact {
  background:
    linear-gradient(135deg, rgba(11,58,74,.95), rgba(20,122,138,.9)),
    url("https://images.unsplash.com/photo-1505142468610-359e7d316be0?auto=format&fit=crop&w=1600&q=70") center / cover;
  color: var(--foam);
}
.contact .eyebrow { color: #9fd4dc; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.contact a { color: #ffd2c4; text-decoration: none; }
.form { display: grid; gap: .9rem; }
.form label {
  display: grid; gap: .35rem; font-size: .82rem; font-weight: 500;
}
.form input, .form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 14px;
  border: 1px solid rgba(244,248,249,.28);
  background: rgba(244,248,249,.08); color: var(--foam); font: inherit;
}
.form input:focus, .form textarea:focus {
  outline: 2px solid rgba(224,122,95,.7); outline-offset: 1px;
}
.form .btn { justify-self: start; margin-top: .2rem; animation: none; }
.status { color: #c8f0f4; margin: 0; }

.footer {
  padding: 1.6rem 0; border-top: 1px solid var(--line); color: var(--mute); font-size: .9rem;
}
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.logo-foot { margin: 0; color: var(--ink); font-size: 1.25rem; }

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.on { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift { to { transform: scale(1); } }
@keyframes drawer {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .brand, .hero h1, .lead, .btn, .hero-media img {
    animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important;
  }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .split, .frente-grid, .costa-grid, .exp-row, .contact-grid { grid-template-columns: 1fr; }
  .costa-grid img { aspect-ratio: 16/10; }
}
