/* ============================================================
   VISTA DRON — Sistema de diseño
   Paleta: navy cinematográfico + naranjo de marca (logo)
   ============================================================ */

:root {
  --bg: #0a0f1c;
  --bg-elev: #101828;
  --surface: #131d31;
  --surface-2: #1a2740;
  --line: rgba(148, 163, 184, .14);
  --text: #e7ecf4;
  --muted: #9aa8bd;
  --accent: #f0a150;
  --accent-strong: #e8873b;
  --accent-soft: rgba(240, 161, 80, .12);
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

.lead { font-size: 1.13rem; color: var(--muted); max-width: 62ch; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head p { color: var(--muted); margin-top: .8rem; font-size: 1.05rem; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 15, 28, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }

.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.02em; white-space: nowrap; }
.brand span { color: var(--accent); }
.brand:hover { color: #fff; }

.nav-links { display: flex; gap: 1.7rem; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

.nav-cta { margin-left: .4rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); width: 42px; height: 42px; cursor: pointer; font-size: 1.2rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: .6rem 0 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 22px; font-size: 1.05rem; }
  .nav-cta { margin: .6rem 22px 0; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.65rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: none; }

.btn-wa { background: var(--whatsapp); color: #06240f; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .45); }
.btn-wa:hover { background: var(--whatsapp-dark); color: #06240f; }

.btn-primary { background: var(--accent); color: #241303; box-shadow: 0 12px 30px -10px rgba(240, 161, 80, .4); }
.btn-primary:hover { background: var(--accent-strong); color: #241303; }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(231, 236, 244, .28); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.07rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 15, 28, .93) 20%, rgba(10, 15, 28, .55) 55%, rgba(10, 15, 28, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-content { position: relative; z-index: 2; padding: 7rem 0 5.5rem; max-width: 700px; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(16, 24, 40, .72); border: 1px solid var(--line);
  padding: .48rem .95rem; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--text);
  backdrop-filter: blur(6px);
}
.badge svg { color: var(--accent); flex: none; }

/* Hero interior (subpáginas) */
.page-hero { padding: clamp(3.4rem, 7vw, 5.5rem) 0 0; }
.page-hero .lead { margin-top: 1rem; }

/* ---------- Sectores strip ---------- */
.sectors { padding: 1.6rem 0; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.sectors-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.9rem; justify-content: center; }
.sectors span { color: var(--muted); font-size: .92rem; font-weight: 500; letter-spacing: .02em; display: inline-flex; align-items: center; gap: .5rem; }
.sectors span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.sectors .sectors-label { color: var(--text); font-weight: 600; }
.sectors .sectors-label::before { display: none; }

/* ---------- Grids y cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .22s, border-color .22s, background .22s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(240, 161, 80, .4); background: var(--surface-2); }
.card h3 { margin: 1rem 0 .55rem; }
.card p { color: var(--muted); font-size: .97rem; }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}

.card-img { overflow: hidden; padding: 0; }
.card-img img { height: 210px; width: 100%; object-fit: cover; transition: transform .4s; }
.card-img:hover img { transform: scale(1.05); }
.card-img .card-body { padding: 1.4rem 1.6rem 1.7rem; }

/* ---------- Pasos ---------- */
.steps { counter-reset: paso; }
.step { position: relative; padding-left: 0; }
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
  line-height: 1; margin-bottom: .9rem;
}

/* ---------- Tarifas ---------- */
.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card .plan-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.pricing-card .plan-for { color: var(--muted); font-size: .9rem; margin: .3rem 0 1.3rem; min-height: 2.6em; }
.price-row { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: #fff; }
.price-note { color: var(--muted); font-size: .85rem; }
.price-alt { margin-top: .35rem; color: var(--muted); font-size: .92rem; }
.price-alt strong { color: var(--accent); font-weight: 600; }
.plan-features { list-style: none; margin: 1.4rem 0 1.8rem; display: grid; gap: .55rem; }
.plan-features li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--text); }
.plan-features li svg { color: var(--accent); flex: none; margin-top: .25rem; }
.pricing-card .btn { margin-top: auto; }

.pricing-featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(240, 161, 80, .08), var(--surface) 45%); }
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #241303; font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .28rem .9rem; border-radius: 999px; white-space: nowrap;
}

/* ---------- Galería ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .45s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .8rem;
  background: linear-gradient(0deg, rgba(10, 15, 28, .92), transparent);
  font-size: .85rem; color: var(--text); font-weight: 500;
}
.gallery-item.tall img { height: 340px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); margin-bottom: .8rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- CTA banda ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 20%, rgba(240, 161, 80, .16), transparent 60%),
    var(--bg-elev);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-band h2 { max-width: 640px; margin: 0 auto 1rem; }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 2rem; }

/* ---------- Formulario ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-grid { display: grid; gap: 1.1rem; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .4rem; }
input, select, textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; font-family: var(--font-body); font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }

.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { color: var(--accent); flex: none; margin-top: .2rem; }
.contact-list a { color: var(--text); font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.contact-list small { display: block; color: var(--muted); }

/* ---------- Blog ---------- */
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-meta { color: var(--muted); font-size: .85rem; display: flex; gap: .8rem; margin-bottom: .5rem; }

.article { max-width: 760px; }
.article h1 { margin-bottom: .8rem; }
.article .post-meta { margin-bottom: 2.2rem; font-size: .92rem; }
.article h2 { margin: 2.4rem 0 .9rem; font-size: 1.5rem; }
.article h3 { margin: 1.8rem 0 .7rem; }
.article p { margin-bottom: 1.1rem; color: #c6d0de; }
.article ul, .article ol { margin: 0 0 1.2rem 1.4rem; color: #c6d0de; display: grid; gap: .45rem; }
.article strong { color: #fff; }
.article .article-cta {
  margin: 2.5rem 0; padding: 1.6rem; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid rgba(240, 161, 80, .3);
}
.article .article-cta p { margin-bottom: 1rem; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-elev); padding: 3.5rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; margin-bottom: 2.6rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .55rem; }
.footer-grid a { color: var(--text); font-size: .95rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: .95rem; margin-top: .8rem; max-width: 30ch; }
.footer-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; color: var(--muted); font-size: .85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); display: grid; place-items: center;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.note { color: var(--muted); font-size: .88rem; }
