/* 3 Birds Tech — estilos de las páginas principales (rojo corporativo) */
@import url("/assets/fonts/overpass.css");

:root {
  --red-900: #7d0000;
  --red-800: #a70000;
  --red-700: #c40000;
  --red-600: #e02b20;
  --red-500: #f23b33;
  --red-400: #ff5a4f;
  --ink: #2d2d2d;
  --ink-soft: #4a4a4a;
  --muted: #6d6d6d;
  --line: #ececec;
  --paper: #ffffff;
  --paper-2: #f7f5f5;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(90, 0, 0, .35);
  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, .18);
  --grad: linear-gradient(120deg, var(--red-800) 0%, var(--red-700) 38%, var(--red-500) 100%);
  --max: 1160px;
  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-700); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid #ffb3ad; outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--red-800);
  color: #fff;
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(60, 0, 0, .35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 16px; border-radius: 999px; transition: background .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .14); }
.nav a[aria-current="page"] { background: #fff; color: var(--red-800); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--red-800); padding: 8px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  padding: 17px 28px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--red-700); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); }
.btn-red { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex; align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0 170px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-birds {
  position: absolute; z-index: -1;
  right: max(-40px, calc((100vw - var(--max)) / 2 - 120px));
  top: 8%;
  width: min(700px, 56vw);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .18));
  animation: glide 9s ease-in-out infinite;
}
@keyframes glide { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-14px, -12px) rotate(-1.2deg); } }
.hero h1 { font-size: clamp(52px, 8vw, 104px); text-transform: uppercase; margin-bottom: .25em; }
.hero .lead { font-size: clamp(18px, 2vw, 22px); max-width: 30ch; opacity: .95; margin-bottom: 1.8em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); margin-bottom: 22px;
}

/* Hero compacto para páginas interiores */
.hero.small { min-height: 0; padding: 70px 0 150px; }
.hero.small h1 { font-size: clamp(44px, 6vw, 76px); }
.hero.small .hero-birds { width: min(460px, 42vw); top: 12%; }

@media (max-width: 820px) {
  .hero { padding: 56px 0 150px; min-height: 0; background: linear-gradient(160deg, #ff4a3f 0%, #d11d15 45%, #a70000 100%); }
  .hero-bg { display: none; }
  .hero::after {
    content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -60px; height: 120px;
    background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  }
  .hero-birds { width: 72vw; right: -12vw; top: auto; bottom: 40px; opacity: .9; }
  .hero.small .hero-birds { width: 56vw; bottom: 30px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 90px 0; }
.section-title { font-size: clamp(34px, 4.4vw, 52px); }
.section-kicker { color: var(--red-700); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.section-intro { color: var(--muted); max-width: 60ch; font-size: 18px; }
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 20px;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* ---------- App grid ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.app-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.app-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -24px rgba(90, 0, 0, .45); }
.app-card .cover {
  position: relative; height: 210px; display: grid; place-items: center; overflow: hidden;
}
.app-card .cover img.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .35); background: #fff; object-fit: contain; transition: transform .35s; }
.app-card:hover .cover img.icon { transform: scale(1.06) rotate(-2deg); }
.app-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.app-card h3 { font-size: 26px; margin-bottom: 6px; }
.app-card p { color: var(--muted); font-size: 16px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chip { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.app-card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--red-700); font-size: 15px; }
.app-card .more svg { width: 18px; height: 18px; transition: transform .2s; }
.app-card:hover .more svg { transform: translateX(4px); }
.cover-learntravel { background: radial-gradient(circle at 30% 20%, #ffb074, #ff7a1a 55%, #e25f00); }
.cover-framepick { background: linear-gradient(135deg, #f4f4f6, #e4e4e8); }
.cover-writlyz { background: radial-gradient(circle at 70% 20%, #7fd3ff, #1cacff 55%, #0b7fd0); }
.cover-soon { background: repeating-linear-gradient(45deg, #faf4f4, #faf4f4 14px, #f4ecec 14px, #f4ecec 28px); }
.app-card.soon { border-style: dashed; box-shadow: none; }
.app-card.soon .cover span { font-weight: 900; font-size: 64px; color: #e2c9c9; }

/* ---------- Red band / CTA ---------- */
.band {
  background: var(--grad); color: #fff; border-radius: 30px; padding: 60px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 380px;
  background: url("/assets/img/logo-3birds-white.png") center/contain no-repeat; opacity: .08;
}
.band h2 { font-size: clamp(32px, 4vw, 48px); }
.band p { opacity: .92; font-size: 18px; }
.band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; padding: 40px 28px; } .band .actions { justify-content: flex-start; } }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 28px;
  overflow: hidden; box-shadow: 0 40px 80px -30px rgba(80, 0, 0, .45); margin-top: -110px; position: relative; z-index: 2;
}
.contact-card .form-side { padding: 54px 50px; }
.contact-card .info-side {
  background: var(--grad); color: #fff; padding: 54px 50px; position: relative; overflow: hidden;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 18%;
}
.contact-card .info-side h2 { font-size: 40px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 700; display: flex; gap: 12px; align-items: center; }
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { width: 22px; height: 22px; flex: none; opacity: .85; }
.team { display: flex; gap: 22px; margin-top: 34px; }
.team figure { margin: 0; text-align: center; font-size: 14px; font-weight: 700; }
.team img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .7); margin: 0 auto 8px; }
@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .info-side { clip-path: none; padding: 44px 28px; }
  .contact-card .form-side { padding: 40px 24px; }
}

/* ---------- Forms (shared) ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 2px solid #e8d4d4; border-radius: 14px; padding: 13px 16px; background: #fff; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red-600); box-shadow: 0 0 0 4px rgba(224, 43, 32, .14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--red-700); width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; }
.form-status.ok { display: block; background: #e8f7ee; color: #16693a; }
.form-status.err { display: block; background: #fdecea; color: #a01a10; }
.form button[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 24px; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .date { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: #2e2e2e; color: #d6d6d6; padding: 64px 0 34px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d6d6d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { height: 46px; width: auto; margin-bottom: 16px; }
.site-footer .copy { border-top: 1px solid #444; margin-top: 44px; padding-top: 22px; font-size: 14px; color: #9a9a9a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Equipo (portada) ---------- */
.people-section { padding-top: 20px; }
.people { display: flex; justify-content: center; gap: clamp(40px, 10vw, 140px); flex-wrap: wrap; }
.person { text-align: center; }
.person img {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px;
  box-shadow: 0 24px 50px -22px rgba(90, 0, 0, .55); border: 6px solid #fff;
}
.person:nth-child(2) { margin-top: -50px; }   /* escalonado como en la web original */
.person h3 { font-size: 24px; margin-bottom: 2px; }
.person .role { color: var(--red-700); font-weight: 800; letter-spacing: .04em; margin-bottom: 18px; }
.person .btn { padding: 13px 24px; font-size: 13px; }
@media (max-width: 600px) { .person:nth-child(2) { margin-top: 0; } .person img { width: 170px; height: 170px; } }

.feature { display: flex; flex-direction: column; }
.feature p { flex: 1; }
.feature-link { margin-top: 18px; font-weight: 800; text-decoration: none; }
.feature-link:hover { text-decoration: underline; }
.nav .ext { width: 13px; height: 13px; vertical-align: -1px; opacity: .8; }
.team figcaption small { font-weight: 600; opacity: .85; }
.chip-soon { background: #1b2a4a; color: #fff; }
