:root {
    --bg-900: #0a1623;
    --bg-800: #12243a;
    --bg-700: #1a2e47;
    --primary: #1e90ff;
    --primary-strong: #00cfff;
    --accent: #ffb300;
    --accent-strong: #ff9800;
    --text-100: #f5f7ff;
    --text-300: #c9d2ea;
    --text-500: #98a4c4;
    --glass: rgba(10, 22, 35, 0.82);
    --stroke: rgba(30, 144, 255, 0.25);
    --shadow: 0 30px 80px rgba(10, 22, 35, 0.65);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", "Sora", sans-serif;
    color: var(--text-100);
    background: linear-gradient(135deg, #0a1623 0%, #1e90ff 60%, #ffb300 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fondo animado de circuitos */
.page-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a1623 0%, #1e90ff 60%, #ffb300 100%);
    z-index: -2;
    overflow: hidden;
}

@keyframes circuit-move {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 240px 240px, 480px 480px; }
}

.circuit-anim {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%231e90ff' stroke-width='1.5'><path d='M0 60h240'/><path d='M0 120h240'/><path d='M0 180h240'/><path d='M60 0v240'/><path d='M120 0v240'/><path d='M180 0v240'/></g></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%23ffb300' stroke-width='1'><circle cx='120' cy='120' r='80'/><circle cx='120' cy='120' r='40'/></g></svg>");
    background-size: 240px 240px, 480px 480px;
    background-repeat: repeat;
    opacity: 0.18;
    animation: circuit-move 18s linear infinite;
}
}

/* Removed GIF background block - using circuit animation instead */

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(18px);
    background: rgba(6, 10, 20, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 10;
}

.nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-100);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    background: rgba(7, 18, 35, 0.4);
    padding: 4px;
}

.brand-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-300);
    font-size: 0.95rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-link.is-active,
.nav-link:hover {
    color: var(--text-100);
    text-shadow: 0 0 18px rgba(43, 176, 255, 0.5);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background: var(--text-100);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span:first-child {
    top: 14px;
}

.nav-toggle span:last-child {
    bottom: 14px;
}

.site-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    align-items: center;
    padding: 40px 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    line-height: 1.05;
    text-shadow: 0 12px 40px rgba(5, 15, 30, 0.6);
}

.hero p {
    margin-top: 18px;
    color: var(--text-300);
    font-size: 1.05rem;
}

::placeholder {
    color: rgba(152, 164, 196, 0.7);
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.button {
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button.primary {
    background: linear-gradient(135deg, #2bb0ff, #1a5fad);
    color: #051223;
    box-shadow: 0 18px 40px rgba(43, 176, 255, 0.35);
}

.button.secondary {
    background: rgba(15, 25, 45, 0.7);
    color: var(--text-100);
    border-color: rgba(255, 255, 255, 0.12);
}

.button:hover {
    transform: translateY(-2px);
}

.hero-card {
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-logo-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px;
    background: rgba(7, 12, 22, 0.6);
}

.hero-metrics {
    margin-top: 18px;
    display: grid;
    gap: 14px;
    color: var(--text-300);
}

.hero-metrics h3 {
    color: var(--text-100);
    margin-bottom: 6px;
    font-size: 1rem;
}

.section {
    margin-top: 60px;
}

.section h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    margin-bottom: 14px;
}

.section h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.services-hero {
    margin-top: 20px;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid rgba(88, 110, 168, 0.4);
    background: linear-gradient(135deg, rgba(14, 24, 45, 0.95), rgba(7, 12, 24, 0.9));
    box-shadow: 0 30px 70px rgba(4, 10, 20, 0.6);
}

.services-hero h1 {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    line-height: 1.1;
}

.services-hero-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(88, 110, 168, 0.4);
    background: rgba(6, 12, 24, 0.7);
    font-size: 0.85rem;
    color: var(--text-300);
}

.soft-panel {
    padding: 22px;
    border-radius: 20px;
    background: rgba(8, 14, 28, 0.8);
    border: 1px solid rgba(88, 110, 168, 0.35);
}

.kpi-grid {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.kpi-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(7, 12, 24, 0.9);
    border: 1px solid rgba(88, 110, 168, 0.25);
}

.kpi-card h4 {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.section-actions {
    display: flex;
    gap: 12px;
}

.eyebrow {
    display: inline-flex;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-500);
}

.card.feature {
    position: relative;
    overflow: hidden;
}

.card.feature::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(43, 176, 255, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card.feature:hover::after {
    opacity: 1;
}

.list.tight {
    gap: 8px;
    margin-top: 14px;
}

.section p {
    color: var(--text-300);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 24px;
}

.card {
    background: rgba(10, 18, 34, 0.8);
    border: 1px solid rgba(88, 110, 168, 0.4);
    border-radius: 20px;
    padding: 24px;
    min-height: 180px;
    box-shadow: 0 18px 40px rgba(2, 8, 20, 0.6);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 176, 255, 0.5);
}

.card h3 {
    margin-bottom: 10px;
}

.list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    color: var(--text-300);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(43, 176, 255, 0.12);
    border: 1px solid rgba(43, 176, 255, 0.3);
    color: var(--text-100);
}

.highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.highlight-item {
    background: linear-gradient(135deg, rgba(25, 44, 74, 0.8), rgba(10, 18, 34, 0.8));
    border: 1px solid rgba(88, 110, 168, 0.4);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    gap: 8px;
}

.timeline {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.timeline-item {
    padding: 18px;
    border-left: 3px solid var(--accent);
    background: rgba(9, 15, 28, 0.75);
    border-radius: 12px;
}

.callout {
    margin-top: 26px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(20, 30, 52, 0.8), rgba(9, 13, 25, 0.9));
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.callout-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-card {
    margin-top: 24px;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid rgba(88, 110, 168, 0.4);
    background: rgba(8, 14, 26, 0.82);
    box-shadow: 0 22px 50px rgba(5, 10, 20, 0.6);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-300);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(88, 110, 168, 0.45);
    background: rgba(5, 10, 18, 0.8);
    color: var(--text-100);
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(43, 176, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(43, 176, 255, 0.12);
}

.form-note {
    color: var(--text-500);
    font-size: 0.85rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.alert {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert.success {
    background: rgba(37, 211, 102, 0.12);
    color: #dff7ea;
    border-color: rgba(37, 211, 102, 0.35);
}

.alert.error {
    background: rgba(255, 85, 85, 0.12);
    color: #ffdede;
    border-color: rgba(255, 85, 85, 0.35);
}

.site-footer {
    margin-top: 80px;
    padding: 40px 24px;
    background: rgba(6, 10, 20, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #04110a;
    font-weight: 700;
    box-shadow: 0 16px 32px rgba(18, 140, 126, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'><path fill='%2304110a' d='M16 3C9.37 3 4 8.08 4 14.33c0 2.11.6 4.08 1.66 5.8L4 29l9.06-1.6c1.7.86 3.62 1.35 5.64 1.35 6.63 0 12-5.08 12-11.33C30.7 8.08 25.33 3 16 3Zm6.91 16.05c-.29.83-1.46 1.51-2.42 1.7-.65.12-1.5.22-4.75-1-4.12-1.56-6.76-5.42-6.97-5.67-.21-.25-1.67-2.17-1.67-4.14 0-1.97 1.06-2.93 1.44-3.33.38-.4.84-.5 1.12-.5h.81c.26 0 .61-.08.95.74.35.83 1.18 2.85 1.29 3.05.11.2.18.44.03.7-.15.26-.23.44-.46.68-.23.24-.49.54-.7.72-.23.2-.47.42-.2.82.27.4 1.19 1.92 2.56 3.1 1.76 1.48 3.25 1.94 3.7 2.15.46.2.72.18.98-.11.27-.3 1.12-1.26 1.42-1.7.3-.44.6-.36 1.01-.22.41.14 2.6 1.2 3.05 1.41.45.2.75.3.86.47.11.18.11 1-.18 1.83Z'/></svg>");
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-grid p {
    color: var(--text-500);
}

.footer-bottom {
    max-width: 1180px;
    margin: 30px auto 0;
    color: var(--text-500);
    font-size: 0.85rem;
}

.hero-logos {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-logos img {
    width: 140px;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 24px;
        background: rgba(8, 12, 24, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 16px;
        flex-direction: column;
        min-width: 200px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@keyframes floatGlow {
    0% { transform: translateY(0); box-shadow: 0 0 20px rgba(43, 176, 255, 0.3); }
    50% { transform: translateY(-6px); box-shadow: 0 0 40px rgba(43, 176, 255, 0.6); }
    100% { transform: translateY(0); box-shadow: 0 0 20px rgba(43, 176, 255, 0.3); }
}

.hero-card {
    animation: floatGlow 6s ease-in-out infinite;
}
