/* ---------- Tokens ---------- */
:root {
  --azul: #0A2E6B;
  --celeste: #4CD4E8;
  --celeste-suave: #DFF8FC;
  --naranja: #FF5A1F;
  --blanco: #FBFEFF;
  --negro: #081425;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --pad: 1.25rem;
}

@media (min-width: 700px) {
  :root { --pad: 2.5rem; }
}
@media (min-width: 1100px) {
  :root { --pad: 4rem; }
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--blanco);
  color: var(--negro);
  line-height: 1.5;
  overflow-x: hidden;
}

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 1.25rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  mix-blend-mode: difference;
  color: var(--blanco);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.nav__brand .dot { color: var(--naranja); mix-blend-mode: normal; }

.nav__brand-wave {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--naranja);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.nav__links {
  display: flex;
  gap: 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__links a {
  position: relative;
  padding-bottom: 2px;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--naranja);
  mix-blend-mode: normal;
}

@media (min-width: 700px) {
  .nav { padding: var(--pad); gap: 0.6rem; }
  .nav__brand { font-size: 1.25rem; }
  .nav__links { font-size: 0.85rem; gap: 1.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--azul);
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(3.5rem, 18vw, 11rem);
  letter-spacing: -0.02em;
}

.hero__title-outline {
  color: var(--celeste);
}

@supports (-webkit-text-stroke: 2px black) {
  .hero__title-outline {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3px var(--celeste);
  }
}

.hero__tagline {
  margin-top: 1.5rem;
  max-width: 28ch;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--celeste);
  font-style: italic;
}

/* Formas flotantes decorativas, tipo burbuja/medusa */
.hero__blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  animation: float 9s ease-in-out infinite;
}

.blob--a { width: 16rem; height: 16rem; top: 8%; left: 58%; background: var(--celeste); }
.blob--b { width: 11rem; height: 11rem; bottom: 12%; left: 6%; background: var(--naranja); animation-delay: -3s; }
.blob--c { width: 9rem; height: 9rem; bottom: 28%; right: 4%; background: var(--celeste); animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-28px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ---------- Olas divisorias entre secciones ---------- */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.wave-divider svg {
  width: 100%;
  height: 50px;
  display: block;
}

.wave-divider path { fill: currentColor; }

.wave-divider--to-light { color: var(--blanco); }
.wave-divider--to-accent { color: var(--naranja); }
.wave-divider--to-dark { color: var(--negro); }

@media (min-width: 700px) {
  .wave-divider svg { height: 80px; }
}

/* ---------- Generic section ---------- */
.section {
  position: relative;
  padding: 4rem var(--pad);
}

.section__title {
  font-size: clamp(2.5rem, 10vw, 5rem);
  margin-bottom: 2rem;
  color: var(--azul);
}

.section__title-sub {
  display: inline-block;
  margin-top: 0.1em;
  font-size: 0.5em;
  font-weight: 500;
  font-style: italic;
  text-transform: none;
  color: var(--naranja);
}

.contacto .section__title-sub { color: var(--blanco); }

/* ---------- Quienes somos ---------- */
.quienes-somos {
  background: var(--blanco);
}

.section__body {
  position: relative;
  isolation: isolate;
  max-width: 42rem;
}

@media (min-width: 1100px) {
  .quienes-somos .section__body {
    margin-left: 8rem;
  }
}

.quote-mark {
  position: absolute;
  top: -3rem;
  left: -0.75rem;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10rem;
  color: var(--naranja);
  opacity: 0.15;
  line-height: 1;
  user-select: none;
}

.section__body p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin-bottom: 1.25rem;
}

.section__body p.lede {
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  font-weight: 500;
  color: var(--azul);
}

.section__body p::first-letter {
  color: var(--naranja);
}

/* ---------- En escena ---------- */
.en-escena {
  background: var(--celeste-suave);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: carditem;
}

@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  display: block;
  background: var(--blanco);
  border: 2px solid var(--azul);
  overflow: hidden;
  counter-increment: carditem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:nth-child(3n+1) { transform: rotate(-1.2deg); }
.card:nth-child(3n+2) { transform: rotate(0.9deg); }
.card:nth-child(3n+3) { transform: rotate(-0.6deg); }

.card::before {
  content: "0" counter(carditem);
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--blanco);
  opacity: 0.7;
}

.card:hover,
.card:focus-visible {
  transform: rotate(0deg) translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--naranja);
}

.card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--azul);
}

.card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: var(--blanco);
}

.card__info {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.card__textos {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.card__descripcion {
  font-size: 0.8rem;
  color: var(--negro);
  opacity: 0.65;
}

.card__arrow {
  color: var(--naranja);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.card__arrow--texto {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card--proximamente {
  cursor: default;
  opacity: 0.85;
}

.card--proximamente .card__photo--placeholder {
  background: var(--azul);
  opacity: 0.6;
}

.cards__empty {
  font-size: 0.95rem;
  color: var(--azul);
  opacity: 0.7;
}

/* ---------- Contacto ---------- */
.contacto {
  background: var(--naranja);
  color: var(--blanco);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto .section__title { color: var(--blanco); }

.contacto__mail {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 6vw, 3rem);
  word-break: break-word;
  width: fit-content;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: currentColor;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.contacto__mail:hover,
.contacto__mail:focus-visible {
  color: var(--azul);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--negro);
  color: var(--blanco);
  padding: 1.5rem var(--pad);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
