/* ════════════════════════════════════════════════
   Grupo Equilibrium — Landing Page
   styles.css
   Brand: Prusia Blue #026382 · Capri Blue #05A4AB
   Fonts: Cardo (display) · Assistant (body)
   ════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Brand colors */
  --prusia:    #026382;
  --capri:     #05A4AB;
  --capri-l:   #e8f7f8;
  --capri-xl:  #f2fbfb;
  --steel:     #706E6E;

  /* Neutrals */
  --dark:      #1a1a1a;
  --ink:       #2d2d2d;
  --muted:     #6b7280;
  --line:      #e8ecec;
  --bg:        #fafafa;
  --white:     #ffffff;

  /* Secondary brand */
  --yellow:    #FFC10E;
  --pink:      #D1587C;
  --salmon:    #EFC6B5;

  /* Typography */
  --font-display: 'Cardo', Georgia, serif;
  --font-body:    'Assistant', system-ui, sans-serif;

  /* Easing */
  --ease:     cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Spacing */
  --section-pad: 100px 56px;
  --section-pad-sm: 72px 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--prusia);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

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

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  background: rgba(2, 99, 130, .95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s;
}

.nav.scrolled {
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 1px 32px rgba(0, 0, 0, .2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-grupo {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .25em;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
}

.nav-logo-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--capri);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .01em;
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--capri);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  background: var(--yellow);
  color: var(--prusia);
  padding: 10px 24px;
  border-radius: 6px;
  letter-spacing: .04em;
  transition: background .25s, transform .15s, box-shadow .25s;
}

.nav-cta:hover {
  background: #e6ac00;
  color: var(--prusia);
  box-shadow: 0 6px 24px rgba(255, 193, 14, .35);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 68px 56px 0;
  gap: 48px;
  position: relative;
  overflow: hidden;
  background: var(--prusia);
}

.hero-bg {
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background: linear-gradient(160deg, rgba(5, 164, 171, .08) 0%, rgba(5, 164, 171, .15) 100%);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-left {
  position: relative;
  z-index: 2;
  padding-right: 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--capri);
  margin-bottom: 28px;
  opacity: 0;
  animation: slideUp .6s .1s var(--ease-out) forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--yellow);
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -.02em;
  opacity: 0;
  animation: slideUp .7s .2s var(--ease-out) forwards;
}

.hero-h1 em {
  font-style: italic;
  color: var(--capri);
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, .7);
  max-width: 420px;
  margin: 24px 0 40px;
  opacity: 0;
  animation: slideUp .7s .3s var(--ease-out) forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: slideUp .7s .4s var(--ease-out) forwards;
}

.btn-primary {
  background: var(--yellow);
  color: var(--prusia);
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .25s, box-shadow .25s, transform .15s;
}

.btn-primary:hover {
  background: #e6ac00;
  color: var(--prusia);
  box-shadow: 0 8px 28px rgba(255, 193, 14, .35);
  transform: translateY(-2px);
}

.btn-primary svg {
  transition: transform .25s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}

.btn-text:hover {
  color: #e6ac00;
}

.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
  opacity: 0;
  animation: fadeIn .9s .5s var(--ease-out) forwards;
}

.hero-mark {
  max-width: 320px;
  clip-path: inset(0 0 28% 0);
}

/* ── SECTION BASE ── */
.section {
  padding: var(--section-pad);
}

.section--white { background: var(--prusia); }
.section--teal  { background: rgba(1, 78, 103, .95); }
.section--dark  { background: #014e67; position: relative; overflow: hidden; }

.section--dark::before {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 164, 171, .12) 0%, transparent 70%);
  pointer-events: none;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--capri);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--yellow);
}

.section-label--teal { color: var(--capri); }
.section-label--teal::before { background: var(--capri); }
.section-label--gold { color: var(--yellow); }
.section-label--gold::before { background: var(--yellow); }

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.section-h2 em {
  font-style: italic;
  color: var(--capri);
}

.section-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, .7);
  max-width: 520px;
  margin-top: 14px;
}

/* ── SERVICES ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--prusia);
  margin-top: 56px;
  border-radius: 12px;
  overflow: hidden;
}

.svc-card {
  background: #B8D4D7;
  padding: 48px 32px;
  position: relative;
  cursor: default;
  transition: background .3s;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--capri);
  transition: height .4s var(--ease-out);
}

.svc-card:hover {
  background: #C5DDE0;
}

.svc-card:hover::before {
  height: 100%;
}

.svc-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  color: rgba(2, 99, 130, .18);
  line-height: 1;
  position: absolute;
  top: 32px; right: 36px;
  transition: color .3s;
  user-select: none;
}

.svc-card:hover .svc-num {
  color: rgba(2, 99, 130, .32);
}

.svc-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(2, 99, 130, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background .3s;
}

.svc-card:hover .svc-icon {
  background: rgba(2, 99, 130, .15);
}

.svc-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--prusia);
  margin-bottom: 12px;
  line-height: 1.2;
}

.svc-desc {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--steel);
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.svc-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(2, 99, 130, .1);
  color: var(--prusia);
  text-transform: uppercase;
}

/* ── POR QUÉ ── */
.porque-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 0;
}

.porque-left { padding-top: 0; }

.porque-pillars {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.pillar {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  align-items: flex-start;
}

.pillar:first-child {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.pillar-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #B8D4D7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
  margin-top: 2px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.pillar-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, .7);
}

.porque-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.porque-stat {
  background: #B8D4D7;
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .15);
}

.porque-stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--prusia);
  line-height: 1;
}

.porque-stat-num span {
  color: var(--capri);
}

.porque-stat-lbl {
  font-size: 14px;
  font-weight: 400;
  color: var(--steel);
  margin-top: 8px;
}

.porque-quote {
  background: #014e67;
  border-radius: 14px;
  padding: 32px 36px;
  color: white;
  border: 1px solid rgba(255, 255, 255, .08);
}

.porque-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 16px;
}

.porque-quote cite {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--capri);
  font-style: normal;
}

/* ── CONTACT ── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.ct-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.ct-h2 em {
  font-style: italic;
  color: var(--capri);
}

.ct-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 36px;
}

.ct-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.ct-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  transition: border-color .2s, background .2s, color .2s;
}

.ct-method:hover {
  border-color: rgba(5, 164, 171, .5);
  background: rgba(5, 164, 171, .1);
  color: white;
}

.ct-method-ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.ct-method-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.ct-method-meta small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  margin-bottom: 2px;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s, box-shadow .25s, transform .15s;
}

.wa-btn:hover {
  background: #1dbe5a;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .35);
  transform: translateY(-2px);
}

/* ── FORM ── */
.form-card {
  background: #B8D4D7;
  border-radius: 16px;
  padding: 44px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--prusia);
  margin-bottom: 28px;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.f-group {
  margin-bottom: 14px;
}

.f-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 7px;
}

.f-group input,
.f-group textarea,
.f-group select {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.f-group input:focus,
.f-group textarea:focus,
.f-group select:focus {
  border-color: var(--capri);
  background: white;
  box-shadow: 0 0 0 4px rgba(5, 164, 171, .1);
}

.f-group input::placeholder,
.f-group textarea::placeholder {
  color: #b0b8b8;
}

.f-group textarea {
  resize: vertical;
  min-height: 88px;
}

.f-group select {
  appearance: none;
  cursor: pointer;
}

.f-submit {
  width: 100%;
  padding: 13px;
  background: var(--yellow);
  color: var(--prusia);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  transition: background .25s, box-shadow .25s, transform .15s;
}

.f-submit:hover {
  background: #e6ac00;
  box-shadow: 0 6px 24px rgba(255, 193, 14, .35);
  transform: translateY(-1px);
}

.f-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.f-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--steel);
  margin-top: 10px;
}

/* Form success */
#formSuccess {
  text-align: center;
  padding: 40px 16px;
}

.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--capri);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: var(--capri);
}

.success-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--prusia);
  margin-bottom: 8px;
}

.success-sub {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.6;
}

/* ── FOOTER ── */
.footer {
  background: #011f28;
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo div {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-grupo {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .25em;
  color: rgba(255, 255, 255, .3);
  text-transform: uppercase;
}

.footer-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(5, 164, 171, .7);
  text-transform: uppercase;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .2);
}

/* ── ANIMATIONS ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: var(--section-pad-sm);
  }

  .section--dark {
    padding: var(--section-pad-sm);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 64px;
  }

  .hero-bg,
  .hero-right {
    display: none;
  }

  .hero-left {
    padding-right: 0;
  }

  .porque-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .porque-right {
    position: static;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .f-row {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 20px;
  }
}
