/* ============================================
   ITALMX — Tema Industrial
   ============================================ */

:root {
    --navy:    #0d1b2e;
    --navy-mid:#162033;
    --orange:  #e85d04;
    --orange-hover: #c94f00;
    --gray-dark: #2c3e50;
    --gray-mid:  #6b7a8d;
    --gray-light:#e8edf2;
    --white:   #ffffff;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-dark); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13, 27, 46, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--orange);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: 2px; }
.logo-ital { color: var(--white); }
.logo-mx   { color: var(--orange); }
.logo-dot  { color: var(--orange); }

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { color: var(--orange); border-bottom-color: var(--orange); }

.lang-switch {
    display: flex;
    gap: 0.3rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    overflow: hidden;
}
.lang-switch a { padding: 0.2rem 0.5rem; font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.6); transition: all 0.2s; }
.lang-switch a.active, .lang-switch a:hover { background: var(--orange); color: var(--white); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); }

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
#content { min-height: 100vh; padding-top: 64px; }
#page-section { transition: opacity 0.25s ease, transform 0.25s ease; }
#form-mensaje { display: none; padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.9rem; margin-top: 0.5rem; }

/* ============================================
   INICIO (Hero)
   ============================================ */
.inicio {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/hero-bg.jpg') center center / cover no-repeat;
    background-color: var(--navy);
}
.inicio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,46,0.88) 0%, rgba(13,27,46,0.65) 60%, rgba(232,93,4,0.15) 100%);
}
.inicio-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 5rem 2rem 4rem; }
.inicio-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
    max-width: 750px;
}
.inicio-title span { color: var(--orange); }
.inicio-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================
   SERVICIOS HOME
   ============================================ */
.servicios-home { background: var(--white); padding: 4rem 2rem; }
.servicios-inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.servicios-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
}
.servicios-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--orange);
    margin: 0.5rem auto 1.25rem;
}
.servicios-desc { color: var(--gray-mid); font-size: 0.97rem; line-height: 1.8; max-width: 680px; margin: 0 auto 3rem; }
.servicios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.servicio-item { display: flex; flex-direction: column; align-items: center; gap: 1rem; cursor: pointer; transition: transform 0.2s; }
.servicio-item:hover { transform: translateY(-4px); }
.servicio-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(232,93,4,0.3);
    transition: box-shadow 0.2s;
}
.servicio-item:hover .servicio-circle { box-shadow: 0 12px 32px rgba(232,93,4,0.45); }
.servicio-circle img { width: 64px; height: 64px; object-fit: contain; filter: brightness(0) invert(1); }
.servicio-item h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); letter-spacing: 0.5px; text-transform: uppercase; }

/* ============================================
   SECCIONES — utilidades comunes
   ============================================ */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 5rem 2rem; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: 3px;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--orange); margin: 0.75rem auto 3rem; }

/* ============================================
   NOSOTROS
   ============================================ */
.nosotros { background: var(--white); }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.nosotros-texto h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--navy); letter-spacing: 1px; margin-bottom: 1.25rem; }
.nosotros-texto p { color: var(--gray-mid); font-size: 0.97rem; line-height: 1.8; margin-bottom: 1rem; }
.nosotros-texto .btn { margin-top: 1rem; }
.nosotros-diferencial { display: flex; flex-direction: column; gap: 1.5rem; }
.dif-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border-radius: 8px; background: var(--gray-light); transition: box-shadow 0.2s; }
.dif-item:hover { box-shadow: 0 6px 20px rgba(13,27,46,0.1); }
.dif-icon { font-size: 1.8rem; flex-shrink: 0; }
.dif-item h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.dif-item p { font-size: 0.875rem; color: var(--gray-mid); }

/* ============================================
   PRODUCTOS
   ============================================ */
.productos { background: var(--gray-light); }
.productos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 4rem; }
.producto-card { background: var(--navy-mid); border-radius: 8px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; }
.producto-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(232,93,4,0.25); }
.producto-img { height: 160px; background: linear-gradient(135deg, var(--gray-dark), var(--navy)); display: flex; align-items: center; justify-content: center; }
.producto-icon { font-size: 3rem; opacity: 0.6; }
.producto-info { padding: 1.25rem; }
.producto-info h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: 1px; margin-bottom: 0.5rem; }
.producto-info p { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 0.75rem; }
.producto-link { font-size: 0.82rem; font-weight: 600; color: var(--orange); transition: opacity 0.2s; }
.producto-link:hover { opacity: 0.75; }
.productos-cta { background: var(--navy); border-radius: 12px; text-align: center; padding: 3rem 2rem; }
.productos-cta h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--white); letter-spacing: 1px; margin-bottom: 0.5rem; }
.productos-cta p { color: rgba(255,255,255,0.65); margin-bottom: 1.75rem; font-size: 0.97rem; }


.cat-img-foto {
    width: 100%;
    height: 210px;
    padding: 0;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: none;
}

.cat-img-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================
   CONTACTO — TABS
   ============================================ */
.contacto { background: var(--gray-light); }
.contacto-info-bar { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; padding: 1rem 1.5rem; background: var(--white); border-radius: 8px; border-left: 4px solid var(--orange); font-size: 0.9rem; color: var(--gray-dark); }
.contacto-info-bar a { color: var(--orange); font-weight: 600; }
.ctabs { display: flex; gap: 0.5rem; margin-bottom: 0; flex-wrap: wrap; }
.ctab { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--white); border: 2px solid #dde3ea; border-bottom: none; border-radius: 8px 8px 0 0; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px; color: var(--gray-mid); cursor: pointer; transition: all 0.2s; }
.ctab:hover { color: var(--navy); border-color: var(--navy); }
.ctab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ctab-icon { font-size: 1.1rem; }
.ctab-panel { display: none; background: var(--white); border-radius: 0 8px 8px 8px; overflow: hidden; box-shadow: 0 4px 24px rgba(13,27,46,0.08); }
.ctab-panel.active { display: block; }
.cpanel-header { padding: 2rem 2.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.cpanel-general     { background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%); }
.cpanel-refacciones { background: linear-gradient(135deg, #1a1a2e 0%, #e85d04 100%); }
.cpanel-mantenimiento { background: linear-gradient(135deg, #0f3460 0%, #16213e 100%); }
.cpanel-instalaciones { background: linear-gradient(135deg, #1b2838 0%, #2d5016 100%); }
.cpanel-header-text h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: 1px; margin-bottom: 0.4rem; }
.cpanel-header-text p { color: rgba(255,255,255,0.75); font-size: 0.9rem; max-width: 480px; }
.cpanel-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cpanel-badges span { background: rgba(255,255,255,0.15); color: var(--white); padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.25); }
.contacto-form { display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contacto-form input, .contacto-form select, .contacto-form textarea { padding: 0.75rem 1rem; border: 1.5px solid #dde3ea; border-radius: 6px; font-family: var(--font-body); font-size: 0.95rem; background: #f8fafc; color: var(--gray-dark); transition: border-color 0.2s, box-shadow 0.2s; width: 100%; }
.contacto-form input:focus, .contacto-form select:focus, .contacto-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,93,4,0.1); background: var(--white); }
.btn-refacciones { background: linear-gradient(135deg, #1a1a2e, #e85d04); color: var(--white); border: none; padding: 0.85rem 2rem; border-radius: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 1px; cursor: pointer; transition: opacity 0.2s, transform 0.2s; align-self: flex-start; }
.btn-mantenimiento { background: linear-gradient(135deg, #0f3460, #1a5276); color: var(--white); border: none; padding: 0.85rem 2rem; border-radius: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 1px; cursor: pointer; transition: opacity 0.2s, transform 0.2s; align-self: flex-start; }
.btn-instalaciones { background: linear-gradient(135deg, #1b2838, #2d6a4f); color: var(--white); border: none; padding: 0.85rem 2rem; border-radius: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 1px; cursor: pointer; transition: opacity 0.2s, transform 0.2s; align-self: flex-start; }
.btn-refacciones:hover, .btn-mantenimiento:hover, .btn-instalaciones:hover { opacity: 0.88; transform: translateY(-2px); }
.form-respuesta { display: none; padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.9rem; }
.form-respuesta.success { background: #d4edda; color: #155724; }
.form-respuesta.error   { background: #f8d7da; color: #721c24; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 3.5rem 2rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--orange); }
.footer-certs { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.cert-badge { border: 1.5px solid rgba(255,255,255,0.3); border-radius: 4px; padding: 0.3rem 0.6rem; font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.7); text-align: center; line-height: 1.2; }
.social-links { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.social-links a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: all 0.2s; }
.social-links a:hover { border-color: var(--orange); color: var(--orange); }
.footer-contact { font-size: 0.82rem; line-height: 1.7; }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.newsletter-form input { flex: 1; min-width: 140px; padding: 0.5rem 0.75rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; background: rgba(255,255,255,0.08); color: var(--white); font-size: 0.85rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button { padding: 0.5rem 1rem; background: var(--orange); color: var(--white); border: none; border-radius: 4px; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.newsletter-form button:hover { background: var(--orange-hover); }
.footer-social-bottom { display: flex; gap: 0.5rem; }
.footer-social-bottom a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.2s; }
.footer-social-bottom a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 1.25rem 2rem; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .productos-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 1.5rem 2rem; gap: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1); align-items: flex-start; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .ctabs { flex-direction: column; }
    .ctab { border-radius: 6px; border: 2px solid #dde3ea; }
    .ctab-panel { border-radius: 8px; }
    .form-row { grid-template-columns: 1fr; }
    .cpanel-header { flex-direction: column; align-items: flex-start; }
    .contacto-form { padding: 1.5rem; }
    .inicio-title { font-size: 2.2rem; }
    .inicio-ctas { flex-direction: column; align-items: flex-start; }
    .nosotros-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .productos-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PRODUCTOS HOME
   ============================================ */
.productos-home {
    background: var(--white);
    padding: 5rem 2rem;
}

.productos-home-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.productos-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.productos-home-img {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(13, 27, 46, 0.16);
    border-left: 6px solid var(--orange);
}

.productos-home-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.productos-home-text {
    max-width: 560px;
}

.productos-home-text .eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.productos-home-text h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    color: var(--navy);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.productos-home-text p {
    color: var(--gray-mid);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .productos-home-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .productos-home-img img {
        height: 280px;
    }
}

/* ============================================
   PRODUCTOS — CATEGORÍAS Y DETALLE
   ============================================ */
.productos { background: var(--gray-light); }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cat-card {
    background: var(--navy-mid);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 2px solid transparent;
}

.cat-card:hover,
.cat-card.active {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(232,93,4,0.3);
    border-color: var(--orange);
}

.cat-img {
    height: 140px;
    background: linear-gradient(135deg, var(--navy), var(--gray-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-info { padding: 1.25rem; }

.cat-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.cat-info p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-ver-mas {
    background: none;
    border: 1.5px solid var(--orange);
    color: var(--orange);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ver-mas:hover,
.cat-card.active .btn-ver-mas {
    background: var(--orange);
    color: var(--white);
}

.cat-detalle {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13,27,46,0.12);
    margin-top: 1rem;
}

.btn-cerrar-detalle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--gray-mid);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: color 0.2s;
}

.btn-cerrar-detalle:hover { color: var(--navy); }

.detalle-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
    padding: 2rem 2.5rem;
}

.detalle-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.detalle-header p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

.detalle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 2rem;
}

.detalle-item {
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-light);
    transition: box-shadow 0.2s;
}

.detalle-item:hover { box-shadow: 0 6px 20px rgba(13,27,46,0.1); }

.detalle-item-img {
    height: 180px;
    background: var(--navy-mid);
    overflow: hidden;
}

.detalle-item-img img { width: 100%; height: 100%; object-fit: cover; }

.detalle-img-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detalle-item-info { padding: 1.25rem; }

.detalle-item-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.detalle-item-info p { font-size: 0.82rem; color: var(--gray-mid); line-height: 1.6; }

.detalle-cta {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--gray-light);
}

@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .detalle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr; }
    .detalle-grid { grid-template-columns: 1fr; }
}

/* Panel de modelos */
.modelos-panel {
    background: var(--navy);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    grid-column: 1 / -1;
}

.modelos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modelos-header h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.btn-cerrar-modelos {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cerrar-modelos:hover { border-color: var(--orange); color: var(--orange); }

.modelos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.modelo-item {
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.modelo-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.modelo-item p {
    padding: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    line-height: 1.4;
}

.btn-ver-modelos {
    background: none;
    border: 1px solid var(--orange);
    color: var(--orange);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.btn-ver-modelos:hover { background: var(--orange); color: var(--white); }

@media (max-width: 768px) {
    .modelos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   ASISTENTE INTERACTIVO
   ============================================ */
.asistente-section {
    background: var(--navy);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.asistente-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,93,4,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.asistente-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.asistente-header {
    text-align: center;
    margin-bottom: 3rem;
}

.asistente-badge {
    display: inline-block;
    background: rgba(232,93,4,0.15);
    color: var(--orange);
    border: 1px solid rgba(232,93,4,0.3);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.asistente-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.asistente-header p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

.asistente-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.asistente-card {
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    text-align: center;
}

.asistente-card:hover {
    background: rgba(232,93,4,0.12);
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(232,93,4,0.2);
}

.asistente-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.asistente-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.asistente-card p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

.asistente-card-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: var(--orange);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.asistente-card:hover .asistente-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.asistente-quiz {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.quiz-progress {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--orange);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.quiz-pregunta {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quiz-opciones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quiz-opcion {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-opcion:hover {
    background: rgba(232,93,4,0.15);
    border-color: var(--orange);
    color: var(--white);
    transform: translateX(4px);
}

.quiz-nav {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.btn-quiz-back {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quiz-back:hover { border-color: var(--white); color: var(--white); }

.asistente-resultado { margin-bottom: 2rem; }

.resultado-card {
    background: linear-gradient(135deg, rgba(232,93,4,0.15) 0%, rgba(13,27,46,0.8) 100%);
    border: 1.5px solid rgba(232,93,4,0.4);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
}

.resultado-badge {
    display: inline-block;
    background: rgba(232,93,4,0.2);
    color: var(--orange);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.resultado-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.resultado-card > p {
    color: rgba(255,255,255,0.7);
    font-size: 0.97rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.resultado-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-outline-dark {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline-dark:hover { border-color: var(--white); color: var(--white); }

.btn-reiniciar {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-reiniciar:hover { color: rgba(255,255,255,0.8); }

.asistente-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-quiz-start {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quiz-start:hover { background: var(--orange-hover); transform: translateY(-2px); }

.btn-comparar {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.2);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-comparar:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

@media (max-width: 768px) {
    .asistente-cards { grid-template-columns: repeat(2, 1fr); }
    .quiz-opciones { grid-template-columns: 1fr; }
    .asistente-footer { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .asistente-cards { grid-template-columns: 1fr; }
}

/* Tags de productos recomendados */
.resultado-productos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.75rem;
    align-items: center;
}

.resultado-prod-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    margin-bottom: 0.25rem;
}

.resultado-prod-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comparador-panel {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.comparador-box {
    position: relative;
    width: min(980px, 100%);
    background: linear-gradient(145deg, #071019, #101820);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 38px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    color: #fff;
    animation: comparadorIn 0.25s ease;
}

@keyframes comparadorIn {
    from { opacity: 0; transform: translateY(25px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.comparador-cerrar {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.comparador-box h3 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 12px 0;
}

.comparador-box > p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
}

.comparador-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.comparador-tab {
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.25s;
}

.comparador-tab.active,
.comparador-tab:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: translateY(-2px);
}

.comparador-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.comparador-destacado {
    background: radial-gradient(circle at top left, rgba(232,93,4,0.35), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 24px;
    padding: 28px;
}

.comparador-destacado .icono {
    font-size: 3rem;
    margin-bottom: 14px;
}

.comparador-destacado h4 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 10px;
}

.comparador-destacado p {
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
}

.comparador-specs {
    display: grid;
    gap: 12px;
}

.comparador-spec {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 16px 18px;
}

.comparador-spec span {
    display: block;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.comparador-spec strong {
    color: #fff;
    font-size: 1rem;
}

.comparador-cta {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .comparador-box {
        padding: 28px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .comparador-content {
        grid-template-columns: 1fr;
    }
}

.modelo-img-wrap {
    position: relative;
    overflow: hidden;
}

.modelo-hover {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 46, 0.94);
    color: #fff;
    padding: 1rem;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modelo-img-wrap:hover .modelo-hover {
    opacity: 1;
    transform: translateY(0);
}

.modelo-hover h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.modelo-hover p {
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.75);
    padding: 0;
    margin-bottom: 0.8rem;
}

.btn-solicitar-modelo {
    background: var(--orange);
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.modelos-panel{
    margin-top:24px;
    background:#041b3a;
    border-radius:18px;
    padding:24px;
}

.modelos-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}

.modelos-header h4{
    color:#fff;
    font-size:28px;
    margin:0;
}

.btn-cerrar-modelos{
    background:transparent;
    border:1px solid rgba(255,255,255,0.3);
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
}

.modelos-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
}

.modelo-item{
    background:#10284b;
    border-radius:14px;
    overflow:hidden;
}

.modelo-img-wrap{
    position:relative;
    height:220px;
    overflow:hidden;
}

.modelo-img-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.modelo-item p{
    color:#fff;
    padding:14px;
    margin:0;
    font-weight:600;
}

.modelo-hover{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.82);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
    opacity:0;
    transition:0.3s ease;
}

.modelo-img-wrap:hover .modelo-hover{
    opacity:1;
}

.modelo-hover h5{
    color:#fff;
    margin-bottom:10px;
    font-size:20px;
}

.modelo-hover p{
    color:#d9d9d9;
    font-size:14px;
    line-height:1.5;
    margin-bottom:18px;
}

.btn-solicitar-modelo{
    background:#ff6a00;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    text-decoration:none;
    font-weight:700;
}



.modal-producto {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-producto-box {
    background: #ffffff;
    color: var(--navy);
    width: min(760px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 32px;
    position: relative;
}

.modal-producto-box h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-producto-box p {
    white-space: pre-line;
    line-height: 1.7;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.modal-producto-cerrar {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: var(--orange);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}
/* ── Modal: media (imagen / video) ─────────────────────────────── */
.modal-media {
    width: calc(100% + 64px);
    margin: -32px -32px 28px -32px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

.modal-media-img img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
}

.modal-media-video iframe,
.modal-media-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    border-radius: 18px 18px 0 0;
}

.modal-producto-body {
    padding-top: 4px;
}


/* ── Modal tabs (imagen / video) ───────────────────────────────── */
.modal-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    background: #f7f7f7;
}

.modal-tab-btn {
    flex: 1;
    padding: 11px 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.modal-tab-btn.active {
    color: #E8610A;
    border-bottom-color: #E8610A;
    background: #fff;
}

.modal-tab-btn:hover:not(.active) {
    color: #555;
    background: #eee;
}

.modal-tab-panel.modal-media-img img,
.modal-tab-panel.solo img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.modal-tab-panel.modal-media-video iframe,
.modal-tab-panel.modal-media-video video,
.modal-tab-panel.solo iframe,
.modal-tab-panel.solo video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

/* ── Galería de fotos con dots ─────────────────────────────────── */
.modal-galeria {
    position: relative;
    line-height: 0;
}

.modal-galeria img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.galeria-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.galeria-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.galeria-dot.active {
    background: #E8610A;
}

/* ── Fichas técnicas descargables ──────────────────────────────── */
.modal-fichas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-ficha-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1.5px solid #E8610A;
    border-radius: 8px;
    color: #E8610A;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.modal-ficha-btn:hover {
    background: #E8610A;
    color: #fff;
}

.modal-ficha-btn svg {
    flex-shrink: 0;
}

/* ── Botón "Ver información" en items de categoría ─────────────── */
.btn-ver-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
    padding: 0.3rem 0.75rem;
    background: none;
    border: 1px solid var(--orange);
    border-radius: 4px;
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ver-info-item:hover {
    background: var(--orange);
    color: var(--white);
}

/* ── Modal media base ──────────────────────────────────────────── */
.modal-media {
    width: calc(100% + 64px);
    margin: -32px -32px 28px -32px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

.modal-media-img img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
}

.modal-media-video iframe,
.modal-media-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    border-radius: 18px 18px 0 0;
}

.modal-producto-body {
    padding-top: 4px;
}