/* ==========================================
   ELECTROTEC - Dark Electric Theme
   ========================================== */

/* ---------- Variables ---------- */
:root {
    --bg: #0e1017;
    --bg-alt: #181b26;
    --bg-card: #1e2235;
    --bg-elevated: #282c3e;
    --bg-input: #1a1e2e;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.20);

    --text: #f6f7fb;
    --text-secondary: #b0b5cc;
    --text-muted: #8b90a8;

    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-glow: rgba(59,130,246,0.40);
    --amber: #f59e0b;

    --radius: 8px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 700; line-height: 1.15; color: var(--text); letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 20px; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }

/* ---------- Tag / Label ---------- */
.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--solid {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 24px var(--accent-glow);
}
.btn--solid:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 36px var(--accent-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--full { width: 100%; }

.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    max-width: 90vw;
    text-align: center;
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { background: #065f46; color: #a7f3d0; }
.toast--error { background: #7f1d1d; color: #fca5a5; }

/* ==========================================
   HEADER
   ========================================== */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: padding 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
#header.pinned {
    background: rgba(8,9,14,0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
#header.hidden { transform: translateY(-100%); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
    z-index: 1001;
}
.logo-bolt { color: var(--accent); }

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.nav-cta {
    padding: 8px 18px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
}
.nav-cta:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
    transform-origin: center;
}
.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}
.hero-glow--1 {
    width: 700px; height: 700px;
    top: -150px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(59,130,246,0.28) 0%, transparent 70%);
}
.hero-glow--2 {
    width: 500px; height: 500px;
    bottom: -100px; right: -100px;
    background: radial-gradient(circle, rgba(245,158,11,0.16) 0%, transparent 70%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; }

.hero-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero h1 { margin-bottom: 24px; }

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-counters {
    display: flex;
    justify-content: center;
    gap: 48px;
}
.counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.counter strong {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.counter span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================
   SERVICIOS - BENTO
   ========================================== */
.servicios {
    padding: 100px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.servicios h2 {
    max-width: 500px;
    margin-bottom: 48px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bento-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 40px rgba(59,130,246,0.10);
}

.bento-item--wide { grid-column: span 2; }

.bento-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.12);
    border-radius: var(--radius);
    color: var(--accent);
    margin-bottom: 16px;
}

.bento-item h3 { margin-bottom: 8px; }
.bento-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================
   ABOUT
   ========================================== */
.about {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: start;
}

.about-text h2 { margin-bottom: 20px; }
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.check-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}
.check-list li::before {
    content: '';
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(59,130,246,0.15);
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

/* About visual */
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-bottom: 16px;
}
.about-card svg { color: var(--accent); margin: 0 auto 16px; }
.about-card-label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}
.about-card-address {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.about-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.about-number {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.about-number span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 2px;
}

/* ==========================================
   REVIEWS
   ========================================== */
.reviews {
    padding: 100px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.reviews h2 { margin-bottom: 8px; }
.reviews-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.reviews-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.3s var(--ease);
}
.review-card:hover { border-color: var(--border-hover); }

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
}

.review-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.review-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.review-card footer strong {
    font-size: 0.88rem;
    color: var(--text);
}
.review-card footer span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Compact reviews (star-only) */
.reviews-compact {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
}

.review-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 0.85rem;
}
.review-mini strong {
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}
.review-mini .review-stars {
    margin-bottom: 0;
    flex-shrink: 0;
}

.reviews-footer { text-align: center; }

/* ==========================================
   SCHEDULE
   ========================================== */
.schedule {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.schedule-box {
    display: flex;
    align-items: center;
    gap: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
}

.schedule-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.schedule-left svg { color: var(--accent); }
.schedule-left h2 { margin-bottom: 0; white-space: nowrap; font-size: 1.3rem; }

.schedule-right { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row span:first-child { font-weight: 600; }
.schedule-row span:last-child { color: var(--text-secondary); }
.schedule-row--closed span:last-child { color: var(--text-muted); }

/* ==========================================
   CONTACT
   ========================================== */
.contact {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.contact h2 { margin-bottom: 40px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
    padding: 11px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

.field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2355556a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.field select option { background: var(--bg-elevated); color: var(--text); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.field textarea { resize: vertical; min-height: 100px; }

/* Contact aside */
.contact-aside { display: flex; flex-direction: column; gap: 20px; }

.contact-detail {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-detail svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-detail strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.contact-detail p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}
.contact-detail a { color: var(--accent); }
.contact-detail a:hover { color: var(--accent-hover); }

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner { display: flex; flex-direction: column; gap: 24px; }

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-top .logo { font-size: 1rem; }

.footer-nav { display: flex; gap: 24px; }
.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-bottom a { color: var(--accent); }

/* ==========================================
   REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-item--wide { grid-column: span 2; }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile nav */
    .burger { display: flex; }

    .nav {
        position: fixed;
        top: 0; right: 0;
        width: 100%; height: 100dvh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease);
        z-index: 1000;
    }
    .nav.open {
        opacity: 1;
        pointer-events: all;
    }
    .nav a { font-size: 1.2rem; color: var(--text); }
    .nav-cta { border: none; padding: 0; }

    /* Hero */
    .hero { min-height: auto; padding: 140px 0 80px; }
    .hero-counters { gap: 24px; flex-wrap: wrap; }
    .counter strong { font-size: 1.2rem; }

    /* Bento */
    .bento { grid-template-columns: 1fr; }
    .bento-item--wide { grid-column: span 1; }

    /* Reviews */
    .reviews-track { grid-template-columns: 1fr; }
    .reviews-compact { flex-direction: column; }

    /* Schedule */
    .schedule-box {
        flex-direction: column;
        gap: 24px;
        padding: 28px;
        text-align: center;
    }
    .schedule-left { flex-direction: column; gap: 8px; }
    .schedule-row { font-size: 0.85rem; }

    /* Form */
    .field-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-top { flex-direction: column; gap: 16px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-counters { gap: 16px; }
}

/* ---------- Print ---------- */
@media print {
    #header, .hero-glow, .hero-grid-bg, .burger, .btn, .contact-map { display: none !important; }
    body { color: #000; background: #fff; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
