/* =========================================================
   CoralSentinel — styles.css  (v2 — visual match)
   ========================================================= */

/* ── Variables ────────────────────────────────────────── */
:root {
  --clr-bg:         #0a1628;
  --clr-bg-alt:     #0d1e35;
  --clr-bg-card:    #0f2340;
  --clr-bg-card2:   #111f36;
  --clr-border:     rgba(255,255,255,0.07);
  --clr-border-teal:rgba(0,200,170,0.3);

  --clr-teal:       #00c8aa;
  --clr-teal-dim:   rgba(0,200,170,0.12);
  --clr-cyan:       #38d9f5;
  --clr-coral:      #ff6b3d;
  --clr-coral-dim:  rgba(255,107,61,0.12);
  --clr-orange:     #ff6b3d;
  --clr-green:      #2dd4bf;

  --clr-text:        #a8bdd4;
  --clr-text-muted:  #5a7a96;
  --clr-text-bright: #e8f0f8;
  --clr-white:       #ffffff;

  --ann-bg:         #1a0f00;
  --ann-color:      #ff8c42;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --ann-h:    44px;
  --header-h: 64px;
  --total-top: calc(var(--ann-h) + var(--header-h));

  --radius:    10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--total-top) + 16px);
}

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: clamp(0.93rem, 1vw + 0.7rem, 1.02rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.mobile-nav-open {
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--clr-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--clr-text-bright);
  line-height: 1.2;
}
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 1vw + 0.6rem, 1.15rem); font-weight: 600; }

p  { margin-bottom: 0; }
ul { list-style: none; }
a  { color: var(--clr-teal); text-decoration: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.container--faq  { max-width: 860px; }
.container--form { max-width: 760px; }

/* ── Announcement bar ─────────────────────────────────── */
.announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ann-h);
  z-index: 200;
  background: var(--ann-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #c8a070;
  padding-inline: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,140,66,0.15);
}
.ann-highlight { color: var(--ann-color); }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--ann-h);
  left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow 0.3s;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  gap: 2px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-white);
  letter-spacing: -0.01em;
}
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--clr-teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.main-nav a {
  font-size: 0.88rem;
  color: var(--clr-text);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  padding-block: 0.2em;
}
.main-nav a:hover { color: var(--clr-white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm  { padding: 0.45em 1.2em;  font-size: 0.875rem; }
.btn-lg  { padding: 0.75em 1.8em;  font-size: 0.95rem; }
.btn-full{ width: 100%; border-radius: var(--radius); }

/* Header CTA */
.btn-header-cta {
  background: var(--clr-teal);
  color: #051015;
  border-color: var(--clr-teal);
  font-weight: 600;
}
.btn-header-cta:hover {
  background: var(--clr-cyan);
  border-color: var(--clr-cyan);
}

/* Primary (teal fill) */
.btn-primary {
  background: var(--clr-teal);
  color: #051015;
  border-color: var(--clr-teal);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--clr-cyan);
  border-color: var(--clr-cyan);
  box-shadow: 0 0 20px rgba(0,200,170,0.4);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--clr-text-bright);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.45);
}

/* Coral fill (Arrecifes CTA) */
.btn-coral-fill {
  background: var(--clr-coral);
  color: #fff;
  border-color: var(--clr-coral);
  font-weight: 600;
}
.btn-coral-fill:hover {
  background: #ff8255;
  border-color: #ff8255;
  box-shadow: 0 0 20px rgba(255,107,61,0.4);
}

/* Submit */
.btn-submit {
  background: var(--clr-teal);
  color: #051015;
  border-color: var(--clr-teal);
  font-weight: 600;
  border-radius: var(--radius);
  font-size: 1rem;
}
.btn-submit:hover {
  background: var(--clr-cyan);
  box-shadow: 0 0 24px rgba(0,200,170,0.4);
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}
.lang-btn {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--clr-teal); }
.lang-btn.active {
  color: var(--clr-teal);
  background: var(--clr-teal-dim);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.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;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--total-top) + 3rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 70% 30%, rgba(0,180,150,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 85% 70%, rgba(56,217,245,0.06) 0%, transparent 60%);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  text-align: left;
}

.hero-content .badge-row,
.hero-content .hero-cta-group,
.hero-content .hero-disclaimer {
  justify-content: flex-start;
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 100px;
  padding: 0.3em 0.9em;
  border: 1px solid transparent;
}
.badge--teal  { background: rgba(0,200,170,0.15);  color: #00c8aa; border-color: rgba(0,200,170,0.3); }
.badge--mid   { background: rgba(180,140,60,0.15); color: #d4a840; border-color: rgba(180,140,60,0.3); }
.badge--coral { background: rgba(255,107,61,0.12); color: #ff7a4a; border-color: rgba(255,107,61,0.25); }

/* H1 with italic accent */
.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 4vw + 1rem, 3.5rem);
}
.h1-accent {
  font-style: italic;
  color: var(--clr-teal);
  font-weight: 600;
}

.hero-sub {
  color: var(--clr-text);
  font-size: clamp(0.95rem, 1vw + 0.65rem, 1.08rem);
  max-width: 580px;
  line-height: 1.65;
}
.hero-sub + .hero-sub { margin-top: 0.4rem; }
.hero-sub--italic { font-style: italic; }

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.discl-bold  { color: var(--clr-coral); font-weight: 600; }
.discl-muted { color: var(--clr-text-muted); }

/* ── Sections ─────────────────────────────────────────── */
.section       { padding-block: 5rem; }
.section--alt  { background: var(--clr-bg-alt); }

.section-header { margin-bottom: 3rem; }
.section-header--left  { text-align: left; }
.section-header--center{ text-align: center; margin-inline: auto; max-width: 660px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 0.6rem;
  display: block;
}
.section-label--teal  { color: var(--clr-teal); }
.section-label--coral { color: var(--clr-coral); }

.section-desc {
  color: var(--clr-text-muted);
  margin-top: 0.75rem;
  font-size: 1rem;
  max-width: 680px;
  line-height: 1.7;
}

/* ── Features (Para qué sirve) ────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: var(--clr-border-teal);
  transform: translateY(-2px);
}
.feature-emoji {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}
.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--clr-text-bright);
}
.feature-card p { color: var(--clr-text-muted); font-size: 0.92rem; }

/* ── Sargazo module layout ────────────────────────────── */
.module-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.sublabel {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 1.25rem;
  display: block;
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.module-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.list-emoji-wrap {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.05em;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
}
.module-list strong {
  display: block;
  color: var(--clr-text-bright);
  font-size: 0.95rem;
  font-family: var(--font-body);
  margin-bottom: 0.25rem;
}
.module-list p { color: var(--clr-text-muted); font-size: 0.88rem; }

/* Panel */
.module-panel {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border-teal);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--total-top) + 1rem);
}

.panel-head-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--clr-text-bright);
  margin-bottom: 0.75rem;
}
.panel-head-row strong { font-family: var(--font-body); }

.panel-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}

.panel-arrow-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.panel-arrow-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--clr-text);
  align-items: flex-start;
  line-height: 1.5;
}
.arrow-icon {
  color: var(--clr-teal);
  flex-shrink: 0;
  margin-top: 0.1em;
  font-style: normal;
}

.panel-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.9rem;
  line-height: 1.5;
}

/* ── Arrecifes ────────────────────────────────────────── */
.reef-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.reef-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.reef-card--green { border-top: 3px solid #2dd4bf; }
.reef-card--orange { border-top: 3px solid var(--clr-coral); }

.reef-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 0.9rem;
}
.reef-card--green  .reef-card-label { color: #2dd4bf; }
.reef-card--orange .reef-card-label { color: var(--clr-coral); }

.reef-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--clr-text-bright);
}

.reef-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.reef-list li {
  font-size: 0.88rem;
  color: var(--clr-text);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.reef-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--clr-teal);
}
.reef-card--orange .reef-list li::before { color: var(--clr-coral); }

.reef-cta-wrap {
  display: flex;
  justify-content: center;
}

/* ── Audiences ────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.audience-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.audience-card:hover {
  border-color: var(--clr-border-teal);
  transform: translateY(-2px);
}
.audience-emoji {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
  display: block;
}
.audience-card h3 {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--clr-text-bright);
}
.audience-card p { font-size: 0.82rem; color: var(--clr-text-muted); text-align: left; line-height: 1.55; }

/* ── Collaborate ──────────────────────────────────────── */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.collab-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}
.collab-card:hover {
  border-color: var(--clr-border-teal);
  transform: translateY(-2px);
}
.collab-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(0,200,170,0.2);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.collab-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--clr-text-bright);
}
.collab-card p { color: var(--clr-text-muted); font-size: 0.88rem; line-height: 1.6; }

.collab-footer-note {
  text-align: center;
  margin-top: 2rem;
}
.collab-note-main {
  font-size: 0.92rem;
  color: var(--clr-text-bright);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.collab-note-sub {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list {
  border-top: 1px solid var(--clr-border);
}
.faq-item {
  border-bottom: 1px solid var(--clr-border);
}
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.25rem 0;
  cursor: pointer;
  text-align: left;
  color: var(--clr-text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.2s;
}
.faq-btn:hover { color: var(--clr-white); }
.faq-btn[aria-expanded="true"] { color: var(--clr-teal); }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); color: var(--clr-teal); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--clr-text-muted);
  flex-shrink: 0;
  transition: transform 0.25s, color 0.25s;
  font-style: normal;
  line-height: 1;
}
.faq-answer {
  padding-bottom: 1.25rem;
}
.faq-answer p {
  color: var(--clr-text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ── Form ─────────────────────────────────────────────── */
.ally-form {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.form-group:last-child { margin-bottom: 0; }

label {
  font-size: 0.85rem;
  color: var(--clr-text);
  font-weight: 500;
}
.req { color: var(--clr-coral); }

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.65em 0.9em;
  color: var(--clr-text-bright);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 3px rgba(0,200,170,0.1);
  outline: none;
}
input.error, input.is-invalid,
select.error, select.is-invalid,
textarea.error, textarea.is-invalid {
  border-color: var(--clr-coral);
  box-shadow: 0 0 0 3px rgba(255,107,61,0.1);
}
input::placeholder, textarea::placeholder { color: var(--clr-text-muted); font-size: 0.88rem; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7a96' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  padding-right: 2.5em;
}
select option { background: var(--clr-bg-card); }

textarea { resize: vertical; min-height: 110px; }

fieldset { border: none; padding: 0; }
legend {
  font-size: 0.85rem;
  color: var(--clr-text);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--clr-text);
}
input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--clr-teal);
  flex-shrink: 0;
  cursor: pointer;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
}

.field-error {
  font-size: 0.78rem;
  color: var(--clr-coral);
  display: block;
  min-height: 1em;
}

.form-success {
  background: var(--clr-teal-dim);
  border: 1px solid var(--clr-border-teal);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--clr-teal);
  font-size: 1rem;
}

.form-status {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.88rem;
  line-height: 1.55;
}
.form-status[hidden] { display: none; }
.form-status--error {
  color: #ffd1c4;
  background: rgba(255,107,61,0.12);
  border-color: rgba(255,107,61,0.28);
}
.form-status--success {
  color: var(--clr-teal);
  background: var(--clr-teal-dim);
  border-color: var(--clr-border-teal);
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  padding-block: 3rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 0.9rem;
}
.footer-logo .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-white);
}
.footer-logo .logo-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--clr-teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  max-width: 400px;
  line-height: 1.6;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 0.4rem;
}

.footer-link {
  color: var(--clr-text);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--clr-teal); }

.footer-rule {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin-bottom: 1.5rem;
}

.footer-dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ann-color);
  background: var(--ann-bg);
  border: 1px solid rgba(255,140,66,0.2);
  border-radius: 100px;
  padding: 0.3em 0.9em;
  margin-bottom: 1rem;
}

.footer-privacy {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  max-width: 800px;
}

/* ── Responsive ───────────────────────────────────────── */





.form-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin-top: 0.6rem;
  transition: opacity 0.3s;
}
.form-hint.hidden { opacity: 0; pointer-events: none; }

/* ── Submit button disabled state ────────────────────── */
.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Loading overlay (spinner inside button) ──────────── */
.btn-submit.loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}
.btn-submit.loading::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(5,16,21,0.3);
  border-top-color: #051015;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Success Modal ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7,17,30,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border-teal);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem);
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: scale(0.88) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  position: relative;
}
.modal-overlay.visible .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Checkmark circle animation */
.modal-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--clr-teal-dim);
  border: 2px solid var(--clr-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-text-bright);
  margin-bottom: 0.75rem;
  animation: fade-up-modal 0.5s ease 0.35s both;
}
.modal-desc {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  animation: fade-up-modal 0.5s ease 0.45s both;
}
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  background: var(--clr-teal);
  color: #051015;
  border: none;
  border-radius: 100px;
  padding: 0.7em 2em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  animation: fade-up-modal 0.5s ease 0.5s both;
}
.modal-close:hover {
  background: var(--clr-cyan);
  box-shadow: 0 0 20px rgba(0,200,170,0.4);
  transform: translateY(-1px);
}

/* Confetti dots */
.modal-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}
.modal-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  opacity: 0;
  animation: confetti-fall 1.2s ease forwards;
}
@keyframes confetti-fall {
  0%   { opacity: 1; transform: translateY(-10px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(120px) rotate(360deg); }
}

@keyframes fade-up-modal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ── Coralito chat widget ─────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coralito-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(0, 200, 170, 0.28);
  border-radius: 999px;
  background: rgba(6, 23, 34, 0.96);
  color: var(--clr-text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  backdrop-filter: blur(12px);
}

.coralito-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 200, 170, 0.5);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
}

.coralito-fab__icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(0, 200, 170, 0.14);
  font-size: 1rem;
}

.coralito-fab__text {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.coralito-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 5.8rem;
  width: min(380px, calc(100vw - 2rem));
  height: min(620px, calc(100vh - 8rem));
  z-index: 1199;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(0, 200, 170, 0.18);
  background: rgba(7, 20, 31, 0.97);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  backdrop-filter: blur(18px);
}

.coralito-chat.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.coralito-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(0, 200, 170, 0.08), rgba(0, 200, 170, 0)),
    rgba(255, 255, 255, 0.01);
}

.coralito-chat__eyebrow {
  margin: 0 0 0.18rem;
  color: var(--clr-teal);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coralito-chat__title {
  margin: 0;
  font-size: 1.2rem;
}

.coralito-chat__subtitle {
  margin: 0.3rem 0 0;
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.coralito-chat__close {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--clr-text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.coralito-chat__close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 200, 170, 0.3);
}

.coralito-chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background:
    radial-gradient(circle at top right, rgba(56, 217, 245, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.01);
}

.chat-message {
  max-width: 88%;
  padding: 0.78rem 0.92rem;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 0.94rem;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-message.assistant,
.chat-message.is-assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--clr-text);
  border-top-left-radius: 8px;
}

.chat-message.user,
.chat-message.is-user {
  align-self: flex-end;
  background: rgba(0, 200, 170, 0.14);
  border: 1px solid rgba(0, 200, 170, 0.18);
  color: #e9fffb;
  border-top-right-radius: 8px;
}

.chat-message.is-error {
  border-color: rgba(255, 107, 61, 0.28);
  background: rgba(255, 107, 61, 0.1);
}

.coralito-chat__composer {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 15, 23, 0.92);
}

.coralito-chat__composer textarea {
  width: 100%;
  min-height: 84px;
  max-height: 180px;
  resize: vertical;
  margin: 0;
}

.coralito-chat__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.coralito-chat__status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--clr-text-muted);
  font-size: 0.82rem;
}

.coralito-chat__status[data-state="error"] {
  color: #ff9d7b;
}

.coralito-chat__send {
  min-width: 112px;
  padding-inline: 1rem;
}




/* ── Responsive ───────────────────────────────────────── */
/* Nota: no se migró a mobile-first completo para no romper el diseño base.
   Se consolidaron los cortes reales en 1024 / 768 / 430 / 390 / 360. */

:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

img,
picture,
svg,
video,
canvas {
  max-width: 100%;
}

html,
body {
  overflow-x: clip;
}

/* <= 1024px | laptop pequeña y tablet horizontal */
@media (max-width: 1024px) {
  .container {
    padding-inline: clamp(1rem, 3vw, 1.75rem);
  }

  .section {
    padding-block: 4.5rem;
  }

  .hero {
    padding-bottom: 4rem;
  }

  .module-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .module-panel {
    position: static;
    top: auto;
  }

  .audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* <= 768px | tablet vertical y móvil grande */
@media (max-width: 768px) {
  :root {
    --ann-h: 56px;
    --header-h: 58px;
  }

  html {
    scroll-padding-top: calc(var(--total-top) + 12px);
  }

  .announcement-bar {
    height: var(--ann-h);
    padding-inline: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .site-header {
    height: var(--header-h);
  }

  .header-inner {
    gap: 0.75rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .logo-tag {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.4rem;
  }

  .lang-switcher {
    font-size: 0.72rem;
  }

  .lang-btn {
    font-size: 0.72rem;
    padding: 4px 5px;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--ann-h) + var(--header-h));
    left: 0;
    right: 0;
    display: block;
    width: 100%;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 1rem 1.2rem;
    max-height: calc(100svh - (var(--ann-h) + var(--header-h)));
    overflow-y: auto;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
    z-index: 120;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: 0;
  }

  .btn-header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--total-top) + 2rem);
    padding-bottom: 3.25rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    margin-bottom: 1rem;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .badge-row {
    margin-bottom: 1.1rem;
  }

  .hero-cta-group {
    gap: 0.65rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-disclaimer {
    margin-top: 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .section {
    padding-block: 3.75rem;
  }

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

  .section-desc {
    max-width: 100%;
  }

  .reef-cards,
  .collab-grid,
  .features-grid,
  .footer-top,
  .form-row {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card,
  .reef-card,
  .collab-card,
  .audience-card,
  .ally-form {
    padding: 1.25rem;
  }

  .faq-btn {
    padding-block: 1rem;
    font-size: 0.95rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }

  textarea {
    min-height: 104px;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-box {
    border-radius: 18px;
    padding: 1.5rem 1.15rem;
  }

  .modal-check {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  .modal-desc {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
  }

  .modal-close {
    width: 100%;
  }

  .coralito-fab {
    right: 0.9rem;
    bottom: calc(0.9rem + var(--safe-bottom));
    padding: 0.9rem;
  }

  .coralito-fab__text {
    display: none;
  }

  .coralito-chat {
    right: 0.75rem;
    bottom: calc(4.9rem + var(--safe-bottom));
    width: calc(100vw - 1.5rem);
    height: min(76svh, 680px);
    border-radius: 20px;
  }

  .coralito-chat__header,
  .coralito-chat__body,
  .coralito-chat__composer {
    padding-inline: 0.9rem;
  }

  .coralito-chat__header {
    padding-top: 0.9rem;
    padding-bottom: 0.75rem;
  }

  .coralito-chat__title {
    font-size: 1.08rem;
  }

  .coralito-chat__subtitle {
    font-size: 0.82rem;
  }

  .chat-message {
    max-width: 92%;
    font-size: 0.9rem;
  }

  .coralito-chat__composer textarea {
    min-height: 76px;
    max-height: 150px;
  }

  .coralito-chat__actions {
    align-items: flex-end;
  }

  .coralito-chat__send {
    min-width: 96px;
  }
}

/* <= 430px | móvil grande */
@media (max-width: 430px) {
  :root {
    --ann-h: 64px;
    --header-h: 56px;
  }

  .container {
    padding-inline: 1rem;
  }

  .announcement-bar {
    padding-inline: 0.65rem;
    font-size: 0.7rem;
  }

  .header-inner {
    min-width: 0;
    gap: 0.5rem;
  }

  .logo {
    min-width: 0;
  }

  .logo-text {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .logo-tag {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.52rem;
  }

  .lang-switcher {
    gap: 2px;
    transform: translateY(-1px);
  }

  .lang-switcher span[aria-hidden="true"] {
    display: none;
  }

  .lang-btn {
    padding-inline: 4px;
  }

  .hero {
    padding-top: calc(var(--total-top) + 1.5rem);
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.5rem);
  }

  .badge {
    font-size: 0.74rem;
    padding: 0.28em 0.72em;
  }

  .hero-sub {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .section {
    padding-block: 3.25rem;
  }

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

  .section-desc {
    font-size: 0.94rem;
  }

  .features-grid,
  .audience-grid,
  .collab-grid,
  .reef-cards {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .reef-card,
  .collab-card,
  .audience-card,
  .ally-form {
    padding: 1rem;
    border-radius: 12px;
  }

  .audience-card p {
    text-align: left;
  }

  .checkbox-label {
    align-items: flex-start;
    line-height: 1.45;
  }

  input[type="text"],
  input[type="email"],
  select,
  textarea {
    padding: 0.8em 0.9em;
    font-size: 16px;
  }

  .field-error,
  .form-hint,
  .form-status {
    font-size: 0.76rem;
  }

  .coralito-fab {
    right: 0.85rem;
    bottom: calc(0.85rem + var(--safe-bottom));
    padding: 0.82rem;
  }

  .coralito-chat {
    right: 0.5rem;
    bottom: calc(4.65rem + var(--safe-bottom));
    width: calc(100vw - 1rem);
    height: min(78svh, 700px);
  }
}

/* <= 390px | móvil compacto */
@media (max-width: 390px) {
  :root {
    --ann-h: 70px;
  }

  .announcement-bar {
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .hero-cta-group .btn,
  .reef-cta-wrap .btn {
    width: 100%;
  }

  .faq-btn {
    gap: 0.65rem;
    font-size: 0.92rem;
  }

  .modal-box {
    padding: 1.35rem 1rem;
  }

  .coralito-chat__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .coralito-chat__send {
    width: 100%;
  }
}

/* <= 360px | Android pequeño */
@media (max-width: 360px) {
  :root {
    --ann-h: 74px;
  }

  .announcement-bar {
    font-size: 0.66rem;
  }

  .logo-text {
    font-size: 0.88rem;
  }

  .logo-tag {
    max-width: 100px;
  }

  .badge-row {
    gap: 0.4rem;
  }

  .badge {
    font-size: 0.7rem;
    padding-inline: 0.6em;
  }

  .hero h1 {
    font-size: clamp(1.58rem, 7.6vw, 2rem);
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .section {
    padding-block: 3rem;
  }

  .main-nav {
    padding-inline: 0.85rem;
  }

  .coralito-chat {
    width: calc(100vw - 0.75rem);
    right: 0.375rem;
  }
}
