/* ============================================================
   ZONA COMPUTERS — CSS Principal
   Paleta: charcoal #222 · naranja #E8500A · azul #1A73E8
   Fondo: #F8F8F8 · Texto: #444
   ============================================================ */

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

:root {
    --color-primary:    #222222;
    --color-orange:     #E8500A;
    --color-orange-dark:#C43F00;
    --color-blue:       #1A73E8;
    --color-blue-dark:  #1558B0;
    --color-bg:         #F8F8F8;
    --color-bg-alt:     #FFFFFF;
    --color-text:       #444444;
    --color-text-light: #777777;
    --color-border:     #E0E0E0;
    --color-footer-bg:  #1C1C1C;
    --color-footer-text:#AAAAAA;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius:    8px;
    --radius-lg: 14px;
    --shadow:    0 2px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 6px 28px rgba(0,0,0,.12);
    --transition: .2s ease;
    --header-h:  68px;
    --container: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* --- Contenedor --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    height: var(--header-h);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.site-logo img { height: 44px; width: auto; }

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    background: var(--color-orange);
    color: #fff;
    margin-left: auto;
    white-space: nowrap;
    padding: 7px 18px;
    border-radius: var(--radius);
    border: 1.5px solid var(--color-orange);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.header-phone:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.header-phone svg { stroke: currentColor; flex-shrink: 0; }

.header-spacer { height: var(--header-h); }

/* --- Navegación --- */
.site-nav { margin-left: 16px; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav > ul > li > a {
    display: block;
    padding: 8px 14px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--color-primary);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > a.active {
    background: #f0f0f0;
    color: var(--color-orange);
}

/* CTA nav */
.site-nav .nav-cta {
    background: var(--color-orange) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: var(--radius) !important;
}
.site-nav .nav-cta:hover {
    background: var(--color-orange-dark) !important;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    padding: 8px 0;
    z-index: 100;
}
.dropdown li a {
    display: block;
    padding: 9px 18px;
    font-size: .875rem;
    color: var(--color-text);
    transition: background var(--transition);
}
.dropdown li a:hover { background: #f5f5f5; color: var(--color-orange); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-cart-mobile {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}
.header-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: 80px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-primary); color: #fff; }
.section--orange { background: var(--color-orange); color: #fff; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 10px;
}
.section--dark .eyebrow,
.section--orange .eyebrow { color: rgba(255,255,255,.75); }

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 16px;
}
.section--dark h2,
.section--orange h2 { color: #fff; }

.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 580px;
    margin: 0 auto;
}
.section--dark p,
.section--orange p { color: rgba(255,255,255,.8); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
}
.btn-primary:hover {
    background: var(--color-orange-dark);
    border-color: var(--color-orange-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--color-orange);
    border-color: var(--color-orange);
}
.btn-secondary:hover {
    background: var(--color-orange);
    color: #fff;
}

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

.btn-white {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
}

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .82rem; }

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
    background: #fff;
    border-color: #fff;
    color: var(--color-orange);
}

/* ============================================================
   HERO — HOME
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3a3a3a 100%);
    color: #fff;
    padding: 90px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,80,10,.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,115,232,.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content .eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}
.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}
.hero-content h1 span { color: var(--color-orange); }
.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.hero-trust-item {
    display: flex;
    flex-direction: column;
}
.hero-trust-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-orange);
}
.hero-trust-item span {
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hero-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(4px);
    transition: background var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,.1); }
.hero-card-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}
.hero-card-icon.orange { background: rgba(232,80,10,.2); color: #FF8A5C; }
.hero-card-icon.blue   { background: rgba(26,115,232,.2); color: #6EB3FF; }
.hero-card-text strong { display: block; font-size: .95rem; font-weight: 600; color: #fff; }
.hero-card-text span   { font-size: .8rem; color: rgba(255,255,255,.55); }

/* ============================================================
   GRID DE SERVICIOS
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-orange);
}

.service-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.service-icon.orange { background: rgba(232,80,10,.1); color: var(--color-orange); }
.service-icon.blue   { background: rgba(26,115,232,.1); color: var(--color-blue); }
.service-icon.dark   { background: rgba(34,34,34,.08);  color: var(--color-primary); }

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.service-card p {
    font-size: .9rem;
    color: var(--color-text-light);
    flex: 1;
    margin-bottom: 20px;
}
.service-card .link-more {
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-orange);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}
.service-card .link-more:hover { color: var(--color-orange-dark); }
.service-card .link-more::after { content: '→'; transition: transform var(--transition); }
.service-card:hover .link-more::after { transform: translateX(4px); }

/* ============================================================
   GRID VERIFACTU
   ============================================================ */
.vf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.vf-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.vf-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--color-orange);
}
.vf-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}
.vf-card p {
    font-size: .875rem;
    color: var(--color-text-light);
    flex: 1;
}
.vf-card .link-more {
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-orange);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.vf-card .link-more::after { content: '→'; transition: transform var(--transition); }
.vf-card:hover .link-more::after { transform: translateX(4px); }

/* ============================================================
   BAND CTA / CONTACTO RÁPIDO
   ============================================================ */
.cta-band {
    background: linear-gradient(90deg, var(--color-orange) 0%, #ff6b2b 100%);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.cta-band h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-band p { opacity: .9; margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 56px 0 40px;
}

.footer-logo img { filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-desc { font-size: .875rem; line-height: 1.7; margin-bottom: 18px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-footer-text);
    transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--color-orange); color: #fff; }

.footer-col h4 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin-bottom: 16px;
}
.footer-col ul li + li { margin-top: 8px; }
.footer-col ul a {
    font-size: .875rem;
    transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--color-orange); }

.footer-col address { font-style: normal; }
.footer-col address p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .875rem;
    margin-bottom: 10px;
}
.footer-col address svg { flex-shrink: 0; margin-top: 3px; stroke: var(--color-orange); }
.footer-phones { display: inline-flex; flex-wrap: wrap; gap: 0 4px; align-items: center; }
.footer-col address a:hover { color: var(--color-orange); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom p { font-size: .8rem; }
.footer-bottom a:hover { color: var(--color-orange); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 800;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 13px 20px 13px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(37,211,102,.4);
    font-size: .85rem;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(37,211,102,.5);
    color: #fff;
}
.whatsapp-float span { display: none; }
@media (min-width: 768px) {
    .whatsapp-float span { display: inline; }
}

/* ============================================================
   LISTA CON PUNTO NARANJA (reutilizable en cualquier página)
   ============================================================ */
.eq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}
.eq-list li {
    font-size: .85rem;
    color: var(--color-text-light);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.eq-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.text-center  { text-align: center; }
.text-orange  { color: var(--color-orange); }
.text-blue    { color: var(--color-blue); }
.text-muted   { color: var(--color-text-light); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
}
.badge-orange { background: rgba(232,80,10,.12); color: var(--color-orange); }
.badge-blue   { background: rgba(26,115,232,.12); color: var(--color-blue); }
.badge-green  { background: rgba(34,197,94,.12);  color: #16a34a; }
.badge-dark   { background: rgba(34,34,34,.08);   color: var(--color-primary); }

/* ============================================================
   HOME SOFTWARE GRID
   ============================================================ */
.sw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 768px) {
    .sw-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-inner  { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero-content { min-width: 0; }
    .hero-visual { display: none; }
    .header-phone { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 36px; }

    /* Nav móvil */
    .nav-toggle { display: flex; margin-left: 0; }
    .header-cart-mobile { display: flex; margin-left: auto; }
    .nav-cart-desktop { display: none; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: #fff;
        border-top: 1px solid var(--color-border);
        padding: 16px 24px 24px;
        box-shadow: var(--shadow-lg);
        margin-left: 0;
        text-align: left;
    }
    .site-nav.open { display: block; }
    .site-nav > ul { flex-direction: column; gap: 0; align-items: stretch; width: 100%; }
    .site-nav > ul > li > a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--color-border); }
    .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        display: block;
    }
    .has-dropdown .dropdown { display: block; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .site-footer { padding-bottom: 76px; }

    /* Logo col centrado en móvil */
    .footer-col:first-child { text-align: center; padding-top: 12px; }
    .footer-col:first-child .footer-social { justify-content: center; }
    .footer-col:first-child .footer-logo img { display: block; margin: 0 auto 14px; }

    .hero { padding: 60px 0 50px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; width: 100%; box-sizing: border-box; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-phones { flex-direction: column; gap: 2px; }
    .footer-phones .footer-sep { display: none; }
}

/* ============================================================
   ZcModal — Modal de notificaciones global
   ============================================================ */
.zcm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.zcm-backdrop.zcm-visible {
    opacity: 1;
    visibility: visible;
}
body.zcm-open { overflow: hidden; }

.zcm-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    padding: 40px 36px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(24px) scale(.97);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.zcm-backdrop.zcm-visible .zcm-card {
    transform: translateY(0) scale(1);
}

.zcm-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.zcm-close:hover { background: #f0f0f0; color: var(--color-primary); }

.zcm-icon-wrap { margin-bottom: 18px; }
.zcm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
}
.zcm-icon svg { width: 32px; height: 32px; }

.zcm-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 10px;
}
.zcm-msg {
    font-size: .95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0 0 24px;
}

.zcm-bar-track {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}
.zcm-bar-fill {
    height: 100%;
    border-radius: 2px;
    width: 100%;
}

@media (max-width: 480px) {
    .zcm-card { padding: 32px 24px 24px; }
}
