/* ============================================================
   Servicio Técnico Rober — style.css (v2)
============================================================ */

:root {
    --bg-dark: #070A11;
    --bg-card: rgba(22, 28, 45, 0.6);
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --secondary: #818cf8;
    --wa: #25D366;
    --wa-dark: #1da851;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { overflow-wrap: break-word; }

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

.text-center { text-align: center; }
.relative { position: relative; }

/* Iconos SVG (reemplazan Font Awesome) */
.icon {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

.text-gradient-icon { color: var(--primary); }

/* Gradients and Text */
h1 strong, h2 strong {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* ===== Navbar ===== */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 48px;
    background: rgba(7, 10, 17, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .icon { width: 1.3rem; height: 1.3rem; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Buttons ===== */
.btn-sm, .btn-primary, .btn-secondary, .whatsapp-huge, .btn-maps {
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.btn-sm:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-call {
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--primary);
}

.btn-wa-sm {
    background: var(--wa);
    border-color: transparent;
    color: #fff;
}
.btn-wa-sm:hover { background: var(--wa-dark); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    background: linear-gradient(135deg, var(--wa), var(--wa-dark));
    color: white;
    font-size: 1.15rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--text-main);
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(-3px);
}

/* ===== Hero ===== */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 920px;
    z-index: 10;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}

.blob-1 {
    width: 400px; height: 400px;
    background: var(--primary-glow);
    top: -100px; left: -100px;
}

.blob-2 {
    width: 500px; height: 500px;
    background: rgba(129, 140, 248, 0.2);
    bottom: -200px; right: -100px;
}

.badge-review {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--primary);
    padding: 9px 22px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #fbbf24;
    font-size: 1.05rem;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    text-decoration: none;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.35);
}

.icon-star { width: 0.95rem; height: 0.95rem; color: #fbbf24; }

.badge-review span {
    color: white;
    margin-left: 8px;
    font-weight: 700;
}

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.08;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 720px;
}

.hero p b { color: var(--text-main); font-weight: 600; }

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-trust {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.98rem;
    font-weight: 500;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-trust .icon { color: var(--wa); }

/* ===== Common ===== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.minor-title {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s ease;
}

.glass-panel:hover {
    background: rgba(22, 28, 45, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

/* ===== Stats ===== */
.stats-section {
    padding: 60px 24px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item { padding: 20px; }

.stat-number, .stat-suffix {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-number { font-size: 3.5rem; }
.stat-suffix { font-size: 2rem; }

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ===== Reviews ===== */
.reviews { padding: 80px 24px 40px; }
.grid-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
}

.google-badge {
    position: absolute;
    right: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: #4285F4;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
}

.reviewer-info h3 { margin: 0; font-size: 1.1rem; }
.reviewer-info .stars { color: #fbbf24; font-size: 1rem; letter-spacing: 2px; }

.review-card p {
    font-size: 1rem;
    font-style: italic;
    color: #cbd5e1;
}

/* ===== Services ===== */
.services { padding: 60px 24px; }
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}
.icon-wrapper .icon { width: 1.8rem; height: 1.8rem; }

.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); }

/* ===== Zonas de servicio ===== */
.zonas { padding: 70px 24px; }
.zonas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto 24px;
}
.zonas-list span {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #cbd5e1;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.98rem;
    transition: all 0.25s ease;
}
.zonas-list span:hover {
    background: rgba(56, 189, 248, 0.16);
    color: #fff;
    transform: translateY(-2px);
}
.zonas-note { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Gallery ===== */
.gallery { padding: 80px 24px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.gallery-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(7, 10, 17, 0.9), transparent);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-end;
    transition: bottom 0.4s ease;
}
.gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { bottom: 0; }

/* ===== Marcas y Garantía ===== */
.marcas-garantia {
    padding: 60px 24px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.marcas-list {
    font-size: 1.5rem;
    font-weight: 300;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 2;
}
.marcas-list span { font-weight: 600; color: white; padding: 0 10px; }

.pagos-garantia {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.badge-trust {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* ===== Location & Horarios ===== */
.location-section { padding: 80px 24px; }
.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    margin-bottom: 30px;
}
.map-wrapper iframe { display: block; }
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.location-detail .icon {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--primary);
    margin-top: 4px;
}
.location-detail strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.location-detail p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
}
.tel-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.tel-link:hover { opacity: 0.8; }

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}
.btn-maps:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
}

.horarios-card { padding: 36px; }
.horario-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}
.horario-row:last-child { border-bottom: none; }
.horario-row .dia { font-weight: 600; color: var(--text-main); }
.horario-row .hora { color: #34d399; font-weight: 500; }
.horario-row.cerrado .hora { color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-section { padding: 80px 24px; }
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: rgba(56, 189, 248, 0.3);
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    font-family: inherit;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question .icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
}
.faq-answer.open {
    max-height: 220px;
    padding: 0 24px 20px;
}
.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== CTA Final ===== */
.contact-section {
    padding: 100px 24px;
    background: radial-gradient(circle at center, #0b1c15, var(--bg-dark));
}
.cta-pulse-wrapper {
    position: relative;
    display: inline-block;
    margin: 40px 0;
}
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(37, 211, 102, 0.4);
    animation: pulse-wave 2s ease-out infinite;
    z-index: 1;
}
.delay-pulse { animation-delay: 0.8s; }
@keyframes pulse-wave {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
.whatsapp-huge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: var(--wa);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
    position: relative;
    z-index: 2;
}
.whatsapp-huge:hover {
    transform: scale(1.05);
    background: #1faf54;
}
.footer-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.footer-legal {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
}
.footer-legal a {
    color: var(--text-muted);
    text-decoration: underline;
}
.footer-legal a:hover { color: var(--primary); }

/* ===== Barra fija mobile ===== */
.mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    gap: 1px;
    background: var(--glass-border);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.5);
}
.mobile-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 0;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    color: #fff;
}
.mobile-call { background: #0f1728; color: var(--primary) !important; }
.mobile-wa { background: var(--wa); }

/* ===== Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .fade-in-up, .hover-up { opacity: 1 !important; transform: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .glass-nav { padding: 12px 16px; }
    .logo { font-size: 1.1rem; gap: 8px; }
    .logo .icon { width: 1.15rem; height: 1.15rem; }
    /* En mobile los CTA del nav son redundantes: la barra fija inferior
       ya muestra Llamar + WhatsApp. Los ocultamos para dar lugar al nombre. */
    .nav-actions { display: none; }
    .hero { min-height: auto; padding: 118px 0 56px; }
    .hero h1 { font-size: 2.1rem; }
    .badge-review { font-size: 0.9rem; padding: 8px 16px; }
    .badge-review span { margin-left: 6px; }
    .hero p { font-size: 1.1rem; }
    .cta-group { width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .section-title { font-size: 2rem; }
    .whatsapp-huge { font-size: 1.2rem; padding: 16px 32px; }
    .marcas-list { font-size: 1.2rem; }
    .badge-trust { width: 100%; justify-content: center; }
    .location-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 2.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mobile-bar { display: flex; }
    body { padding-bottom: 56px; } /* espacio para la barra fija */
    .contact-section { padding-bottom: 80px; }
}
