/* ==========================================================================
   Condor Ads — stylesheet (mobile-first)
   ========================================================================== */

:root {
  --navy-900: #0c2448;
  --navy-800: #13294b;
  --navy-700: #1b3a66;
  --blue-600: #2e5fa3;
  --blue-500: #3b6fb8;
  --gold-500: #d4a24c;
  --gold-600: #c2892f;

  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --text: #1b2430;
  --muted: #5b6676;
  --border: #e2e8f1;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 36, 72, .05), 0 12px 28px -14px rgba(12, 36, 72, .18);
  --shadow-sm: 0 1px 2px rgba(12, 36, 72, .06), 0 6px 16px -10px rgba(12, 36, 72, .16);
  --maxw: 1120px;
  --header-h: 68px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3 { line-height: 1.18; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--gold-600); margin: 0 0 .7rem;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--gold-500); color: var(--navy-900);
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 8px; border: 2px solid var(--gold-500);
  cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--navy-900); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-full { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--navy-800); border-color: var(--border);
}
.btn-ghost:hover { background: transparent; border-color: var(--navy-800); color: var(--navy-900); }

/* -------- Header -------- */
.site-header {
  position: relative; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.brand-mark { height: 50px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name-main { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-name-accent {
  font-weight: 700; font-size: .72rem; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold-600); margin-top: 4px;
}

.nav { display: none; }
.nav a { color: var(--navy-800); font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--blue-600); }
.nav .nav-cta, .nav .nav-cta:hover { color: var(--navy-900); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy-900); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.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); }

/* mobile menu panel */
.nav.open {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 14px 20px 20px; box-shadow: var(--shadow);
}
.nav.open a { padding: 12px 6px; border-bottom: 1px solid var(--border); }
.nav.open a:last-child { border-bottom: none; }
.nav.open .nav-cta { margin-top: 10px; text-align: center; }

/* -------- Hero -------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #112a52 0%, var(--navy-900) 100%);
  color: #eaf0fa;
  padding: clamp(56px, 11vw, 104px) 0 clamp(96px, 14vw, 150px);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { color: var(--gold-500); }
.hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(2rem, 6.2vw, 3.3rem);
  margin-bottom: .55em;
}
.hero .lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: #c4d2e8; max-width: 620px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn-ghost { color: #eaf0fa; border-color: rgba(255,255,255,.28); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; }
.hero-range {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 10vw, 130px);
  color: var(--bg); z-index: 1;
}

/* -------- Sections -------- */
.section { padding: clamp(56px, 9vw, 92px) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin: 0 0 2.4rem; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* -------- Grid / cards -------- */
.grid { display: grid; gap: 20px; }
.grid-cards { grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .16s ease;
}
.card:hover { border-color: #9fb2cc; }
.card-icon { display: inline-flex; margin-bottom: 18px; color: var(--blue-600); }
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.14rem; margin-bottom: .5em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* -------- Nosotros -------- */
.nosotros-inner { display: grid; gap: 36px; }
.nosotros-copy h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
.nosotros-copy p { color: #3c4756; }
.values { display: grid; gap: 0; margin: 0; padding: 0; }
.values li { display: flex; gap: 20px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--border); }
.values li:last-child { border-bottom: 1px solid var(--border); }
.values-num {
  flex: none; color: var(--gold-600); font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; font-variant-numeric: tabular-nums; line-height: 1.7;
}
.values strong { display: block; color: var(--navy-900); font-size: 1.06rem; margin-bottom: 4px; }
.values span { color: var(--muted); font-size: .96rem; }

/* -------- Contacto -------- */
.contacto-inner { display: grid; gap: 36px; }
.contacto-info h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
.contact-list { display: grid; gap: 18px; margin-top: 24px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-ic {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--surface-alt); color: var(--blue-600); border: 1px solid var(--border);
}
.section-alt .contact-ic { background: var(--surface); }
.contact-ic svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-list a { font-weight: 600; font-size: 1.08rem; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy-800); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(46, 95, 163, .15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { margin: 14px 0 0; font-size: .92rem; min-height: 1.2em; }
.form-note.ok { color: #1e7a46; }
.form-note.err { color: #c23a3a; }

/* -------- Footer -------- */
.site-footer { background: var(--navy-900); color: #b9c6dd; padding: 46px 0 34px; }
.footer-inner { display: grid; gap: 26px; }
.footer-top { display: grid; gap: 20px; }
.site-footer .brand, .site-footer .brand-name-main { color: #fff; }
.site-footer .brand-name-accent { color: var(--gold-500); }
.site-footer .brand-mark { height: 46px; filter: brightness(0) invert(1); opacity: .95; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #c4d2e8; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; display: grid; gap: 6px; }
.footer-meta { margin: 0; color: #93a4c2; font-size: .92rem; }
.footer-copy { margin: 0; color: #6f81a2; font-size: .85rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 620px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .footer-top { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy { text-align: right; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 30px; position: static; }
  .nosotros-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .contacto-inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .contact-form { padding: 32px 30px; }
}

@media (min-width: 1040px) {
  .grid-cards { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { padding: clamp(40px, 7vw, 76px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal .updated { color: var(--muted); font-size: .9rem; margin: 0 0 2.2rem; }
.legal h2 { font-size: 1.28rem; margin: 2.4rem 0 .6rem; color: var(--navy-900); }
.legal h3 { font-size: 1.04rem; margin: 1.4rem 0 .4rem; color: var(--navy-800); }
.legal p, .legal li { color: #3c4756; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .45rem; }
.legal .back { display: inline-block; margin-top: 2.6rem; font-weight: 600; }
.legal address { font-style: normal; }

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; box-shadow: 0 12px 40px -14px rgba(12, 36, 72, .4);
  display: flex; flex-direction: column; gap: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; font-size: .9rem; color: var(--text); line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; }
@media (min-width: 720px) {
  .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 430px; }
  .cookie-actions .btn { flex: none; min-width: 120px; }
  .cookie-actions { justify-content: flex-end; }
}
