* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* Paleta de colores - FlightPro Drones : cielo al atardecer */
    --bg: #f8fafc;              /* Blanco azulado - fondo base, claro */
    --bg-soft: #eef3f9;         /* Panel claro secundario */
    --surface: #ffffff;         /* Tarjeta */
    --surface-2: #fff8f2;       /* Tarjeta realzada (tinte cálido) */
    --line: #e3e9f1;            /* Línea sutil */
    --line-soft: #edf1f6;

    --primary: #ff7a18;         /* Naranja atardecer - color de acción */
    --primary-2: #ffb020;       /* Ámbar - segundo tono del degradado */
    --primary-dark: #e0620a;
    --primary-dim: rgba(255, 122, 24, 0.12);
    --secondary: #0a2540;
    --secondary-dark: #0e3a63;
    --accent: #ff7a18;          /* alias retrocompatible */
    --accent-dark: #e0620a;
    --sky: #2f8fe0;             /* Azul cielo */
    --sky-deep: #0a2540;        /* Azul noche/profundo para degradado hero */
    --sky-mid: #1c5c96;

    --dark: #0a2540;
    --dark-secondary: #0e3a63;
    --light: #f8fafc;
    --light-secondary: #eef3f9;

    --ink: #14202f;             /* Texto principal sobre claro */
    --ink-dim: #55636f;         /* Texto secundario */
    --ink-mute: #8a95a1;

    --text: #14202f;
    --text-light: #55636f;

    --success: #22b573;
    --warning: #ffb020;
    --danger: #e5484d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

::selection {
    background: var(--primary);
    color: #0b0d10;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Wordmark FlightPro */
.flightpro-font {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
}

/* Navegación */
nav {
    background: rgba(10, 37, 64, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 122, 24, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    display: block;
    filter: drop-shadow(0 0 14px rgba(255, 106, 26, 0.25));
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.25s;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    transition: width 0.25s;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(120deg, var(--sky-deep) 0%, var(--sky-mid) 38%, var(--primary) 78%, var(--primary-2) 100%);
    background-size: 220% 220%;
    animation: skyDrift 16s ease-in-out infinite;
    color: #ffffff;
    padding: 168px 2rem 130px;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
}

@keyframes skyDrift {
    0%   { background-position: 0% 30%; }
    50%  { background-position: 100% 70%; }
    100% { background-position: 0% 30%; }
}

.hero::before {
    /* nubes / rastros de vuelo - manchas de luz que derivan lentamente */
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.16) 0, transparent 22%),
        radial-gradient(circle at 80% 20%, rgba(255, 176, 32, 0.28) 0, transparent 26%),
        radial-gradient(circle at 65% 75%, rgba(255, 255, 255, 0.1) 0, transparent 20%);
    animation: cloudDrift 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes cloudDrift {
    from { transform: translate(-3%, -2%) scale(1); }
    to   { transform: translate(3%, 2%) scale(1.08); }
}

.hero::after {
    /* estela de vuelo cruzando el cielo */
    content: "";
    position: absolute;
    top: 22%;
    left: -20%;
    width: 55%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    filter: blur(0.5px);
    animation: flyBy 7s linear infinite;
    pointer-events: none;
}

@keyframes flyBy {
    0%   { transform: translateX(0) translateY(0); opacity: 0; }
    8%   { opacity: 1; }
    45%  { opacity: 1; }
    55%  { transform: translateX(220%) translateY(40px); opacity: 0; }
    100% { transform: translateX(220%) translateY(40px); opacity: 0; }
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 3.6rem;
    letter-spacing: 0.5px;
    line-height: 1.08;
    margin-bottom: 1.1rem;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(10, 37, 64, 0.35);
    animation: fadeInDown 0.8s ease;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.4rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    color: rgba(255, 255, 255, 0.92);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 36px;
    text-decoration: none;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    border-radius: 50px;
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
    background-size: 160% 160%;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 122, 24, 0.35);
}

.btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 122, 24, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: #ffffff;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 37, 64, 0.2);
}

/* Secciones */
.section {
    padding: 90px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 3.2rem;
    color: var(--ink);
    letter-spacing: 0.3px;
}

.section-title .highlight {
    background: linear-gradient(120deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    max-width: 650px;
    margin: -2.2rem auto 3rem;
    color: var(--ink-dim);
    font-size: 1.02rem;
}

.price-tag {
    display: inline-block;
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #ffffff;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.9rem;
    box-shadow: 0 6px 16px rgba(255, 122, 24, 0.28);
}

/* Grid de Drones */
.drones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.drone-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid transparent;
    background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(120deg, var(--primary), var(--primary-2));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.06);
}

.drone-card::before {
    /* marco tipo retícula - firma visual */
    content: "";
    position: absolute;
    inset: 10px;
    background:
        linear-gradient(var(--primary), var(--primary)) top left,
        linear-gradient(var(--primary), var(--primary)) top left,
        linear-gradient(var(--primary), var(--primary)) top right,
        linear-gradient(var(--primary), var(--primary)) top right,
        linear-gradient(var(--primary), var(--primary)) bottom left,
        linear-gradient(var(--primary), var(--primary)) bottom left,
        linear-gradient(var(--primary), var(--primary)) bottom right,
        linear-gradient(var(--primary), var(--primary)) bottom right;
    background-repeat: no-repeat;
    background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.drone-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(255, 122, 24, 0.18), 0 8px 20px rgba(10, 37, 64, 0.08);
}

.drone-card:hover::before {
    opacity: 1;
}

.drone-icon {
    position: relative;
    padding: 2.4rem 2rem;
    background: linear-gradient(160deg, rgba(255, 122, 24, 0.08), rgba(47, 143, 224, 0.06));
    text-align: center;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.drone-icon img {
    filter: drop-shadow(0 8px 16px rgba(255, 122, 24, 0.22));
    animation: hover-float 3.5s ease-in-out infinite;
}

@keyframes hover-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.drone-content {
    padding: 2rem;
    position: relative;
}

.drone-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--ink);
    letter-spacing: 0.3px;
}

.drone-card:nth-child(1) .drone-content h3::after { content: " · CLASS-C"; }
.drone-card:nth-child(2) .drone-content h3::after { content: " · CLASS-E"; }
.drone-card:nth-child(3) .drone-content h3::after { content: " · CLASS-A"; }
.drone-content h3::after {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ink-mute);
    letter-spacing: 1px;
    vertical-align: middle;
}

.drone-content p {
    color: var(--ink-dim);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.specs {
    list-style: none;
    margin-bottom: 1.8rem;
    border-top: 1px solid var(--line-soft);
    padding-top: 1rem;
}

.specs li {
    padding: 0.5rem 0;
    color: var(--ink-dim);
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.92rem;
}

.specs li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-box {
    background: var(--surface);
    padding: 2rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--primary);
    transition: all 0.25s;
}

.service-box:hover {
    background: var(--surface-2);
    transform: translateX(5px);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: hover-float 3.5s ease-in-out infinite;
}

.service-box:nth-child(2) .service-icon { animation-delay: 0.4s; }
.service-box:nth-child(3) .service-icon { animation-delay: 0.8s; }
.service-box:nth-child(4) .service-icon { animation-delay: 1.2s; }
.service-box:nth-child(5) .service-icon { animation-delay: 1.6s; }
.service-box:nth-child(6) .service-icon { animation-delay: 2s; }

.service-box h4 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.service-box p {
    color: var(--ink-dim);
    font-size: 0.92rem;
}

/* La sección "¿Por Qué Elegirnos?" trae su propio fondo claro fijo en el
   HTML (style="background:#f8f9fa"). Ahora que toda la página es clara,
   esto ya no necesita tratarse como panel de contraste: solo se afina
   para que combine con el resto. */
.section[style] {
    background: linear-gradient(180deg, #fdf7f1 0%, #f8fafc 100%) !important;
}

.section[style] .service-box:hover {
    background: #fff8f2;
}

/* Galería */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(10, 37, 64, 0.08);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(255, 122, 24, 0.22) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
    filter: saturate(1.08) contrast(1.03);
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(120deg, var(--sky-deep) 0%, var(--sky-mid) 45%, var(--primary) 100%);
    background-size: 180% 180%;
    animation: skyDrift 14s ease-in-out infinite;
    color: #ffffff;
    padding: 4.5rem 2rem;
    text-align: center;
    overflow: hidden;
    border-radius: 18px;
}

.cta-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background: linear-gradient(160deg, var(--sky-deep) 0%, #0e3a63 100%);
    color: #ffffff;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
    transition: color 0.25s;
    font-size: 0.93rem;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-family: 'IBM Plex Mono', monospace;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animaciones */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 140px 1.5rem 90px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .section {
        padding: 60px 1.25rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .drone-content h3::after {
        display: block;
        margin-top: 4px;
    }
}