/* ==========================================================================
   Estilos Específicos para la Subpágina Técnico Integral de PC (Clon Wiltech)
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    src: url('fonts/InterVariable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

/* Variables de tema */
:root {
    --brand: #f44401;
    --brand-hover: #d63d00;
}

/* Forzar Fondo Principal */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0f;
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.light-mode {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

/* Navbar same height as main page (sin logo) */
.navbar {
    min-height: 94px;
    display: flex;
    align-items: center;
}
.nav-container {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ==========================================================================
   Cabecera de la Subpágina (Hero / Intro)
   ========================================================================== */
.tecnico-intro {
    padding: 140px 20px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tecnico-intro h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .tecnico-intro h1 {
    background: linear-gradient(135deg, #1d1d1f 0%, #6e6e73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tecnico-intro p {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #86868b;
    line-height: 1.6;
}

body.light-mode .tecnico-intro p {
    color: #515154;
}

/* ==========================================================================
   Estructura de Secciones de Reparaciones (Clonado Wiltech)
   ========================================================================== */
.reparaciones-wrapper {
    max-width: 1000px;
    margin: 30px auto 80px;
    padding: 0 20px;
}

.reparaciones-seccion {
    scroll-margin-top: 110px; /* Alineación perfecta con el menú al ir a un anchor */
    margin-bottom: 40px;
}

/* Glass Card de la Sección (Exacta a Wiltech: degradado negro a cyan con overlay de opacidad) */
.reparaciones-glass-card {
    background-image: linear-gradient(0deg, rgba(48, 48, 48, 0.5), rgba(48, 48, 48, 0.5)), linear-gradient(180deg, #000000FA 0%, #A9FCFF 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid #AAAAAA1A;
    border-radius: 24px;
    box-shadow: 0px 9px 21px 0px rgba(0, 0, 0, 0.4);
    padding: 40px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

body.light-mode .reparaciones-glass-card {
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), linear-gradient(180deg, #FFFFFFFA 0%, #A9FCFF 100%);
    border-color: rgba(170, 170, 170, 0.2);
    box-shadow: 0px 9px 21px 0px rgba(0, 0, 0, 0.06);
}

/* Header: Dos Columnas (Texto + Imagen) */
.reparaciones-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.reparaciones-header-text {
    width: 60%;
}

.reparaciones-header-text h2 {
    font-family: 'Inter', sans-serif;
    font-size: 45px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1.1;
    transition: color 0.3s ease;
}

body.light-mode .reparaciones-header-text h2 {
    color: #1d1d1f;
}

.reparaciones-header-text p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.6;
    transition: color 0.3s ease;
}

body.light-mode .reparaciones-header-text p {
    color: #3a3a3c;
}

body.light-mode .reparaciones-list-card {
    background-color: #ffffff;
    border: 1px solid #dadada;
}

body.light-mode .reparaciones-list-item {
    color: #1d1d1f;
    border-bottom: 1px solid #e5e5e5;
}

body.light-mode .reparaciones-list-item:hover {
    color: var(--brand);
}

body.light-mode .reparaciones-list-title {
    color: #1d1d1f;
}

body.light-mode .reparaciones-list-desc {
    color: #6e6e73;
}

body.light-mode .reparaciones-list-icon {
    color: var(--brand);
}

body.light-mode .reparaciones-price-old {
    color: #98989d;
}

.reparaciones-header-img {
    width: 35%;
    display: flex;
    justify-content: flex-end;
}

.reparaciones-header-img img {
    max-width: 100%;
    height: 180px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.reparaciones-glass-card:hover .reparaciones-header-img img {
    transform: scale(1.03);
}

/* List Card de Servicios */
.reparaciones-list-card {
    background-color: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px 40px;
    margin-bottom: 50px;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

.reparaciones-list-card:hover {
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.14);
}

/* Distribución en 2 columnas */
.reparaciones-list-cols {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.reparaciones-list-col {
    width: 48%;
    display: flex;
    flex-direction: column;
}

/* Ítems individuales de la lista */
.reparaciones-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.reparaciones-list-item:last-child {
    border-bottom: none;
}

.reparaciones-list-item:hover {
    color: var(--brand);
    transform: translateX(4px);
}

/* Iconos de la lista (Color azul-verdoso exacto a Wiltech: #154649) */
.reparaciones-list-icon {
    font-size: 25px;
    color: #154649;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.reparaciones-list-item:hover .reparaciones-list-icon {
    transform: scale(1.12);
}

.reparaciones-list-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.4;
}

.reparaciones-list-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.reparaciones-list-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #e0e0e0;
    font-weight: 400;
    line-height: 1.3;
}

body.light-mode .reparaciones-list-title {
    color: #1d1d1f;
}

.reparaciones-list-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #98989d;
    line-height: 1.3;
}

.reparaciones-list-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.reparaciones-price-old {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6e6e73;
    text-decoration: line-through;
}

.reparaciones-price-new {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--brand);
    font-weight: 700;
}

/* ==========================================================================
   Botón Atrás en el Navbar
   ========================================================================== */
.back-nav-btn {
    display: none;
}

.back-mobile-btn {
    display: none;
}

/* Sobreescribir scroll spy: mismo color que los otros links del nav */
.desktop-menu a.active {
    color: inherit !important;
    border-bottom-color: currentColor !important;
}

body.light-mode .desktop-menu a.active {
    color: inherit !important;
    border-bottom-color: currentColor !important;
}

/* Desktop: Volver a la izquierda, links al centro, botones tema/menu a la derecha */
@media (min-width: 993px) {
    .nav-container {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        max-width: 100% !important;
        padding: 0 30px !important;
    }
    .back-nav-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 500;
        color: white;
        text-decoration: none;
        transition: color 0.25s ease;
        border-bottom: none;
        background: none;
        border-radius: 0;
        padding: 0;
        padding-right: 20px;
        justify-self: start;
    }
    .back-nav-btn:hover {
        color: var(--brand);
    }
    .back-nav-btn i {
        font-size: 0.8rem;
    }
    .desktop-menu {
        display: flex !important;
        justify-content: center;
        gap: clamp(20px, 2vw, 40px) !important;
        justify-self: center;
    }
    .nav-right-btns {
        display: flex !important;
        align-items: center;
        gap: 16px;
        justify-self: end;
    }
    .back-mobile-btn {
        display: none !important;
    }
}

/* ==========================================================================
   Navbar Mobile (misma ubicación óptima que principal)
   ========================================================================== */
@media (max-width: 992px) {
    .back-nav-btn {
        display: none !important;
    }
    .nav-container {
        padding: 0 15px;
        justify-content: space-between;
        width: 100%;
    }

    .back-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s ease;
        cursor: pointer;
        flex-shrink: 0;
    }

    body.light-mode .back-mobile-btn {
        color: #1d1d1f;
    }

    .back-mobile-btn:hover {
        color: var(--brand);
    }
}

/* Centrado vertical e integracion de logo */
.navbar .logo {
    transition: transform 0.2s ease;
}
.navbar .logo:hover {
    transform: scale(1.02);
}

/* Ajustes de separador de contacto */
.contact-card-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
body.light-mode .contact-card-section {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Diseño Responsivo (Adaptación Móvil y Tablets)
   ========================================================================== */
@media (max-width: 992px) {
    .tecnico-intro {
        padding: 120px 20px 30px;
    }
    
    .tecnico-intro h1 {
        font-size: 2.3rem;
    }
    
    .reparaciones-header {
        flex-direction: column-reverse;
        gap: 25px;
        text-align: center;
    }
    
    .reparaciones-header-text,
    .reparaciones-header-img {
        width: 100% !important;
        justify-content: center;
    }
    
    .reparaciones-header-img img {
        max-height: 185px;
        height: auto;
    }
    
    .reparaciones-glass-card {
        padding: 30px;
    }
    
    .reparaciones-list-cols {
        flex-direction: column;
        gap: 0;
    }
    
    .reparaciones-list-col {
        width: 100% !important;
    }
    
    .reparaciones-list-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    
    .reparaciones-list-col:last-child .reparaciones-list-item:last-child {
        border-bottom: none !important;
    }
    
    .reparaciones-seccion {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .reparaciones-glass-card {
        padding: 18px;
    }
    
    .reparaciones-header-img img {
        max-height: 140px;
        height: auto;
    }
    
    .reparaciones-list-card {
        padding: 15px 20px;
        margin-bottom: 30px;
    }
    
    .tecnico-intro h1 {
        font-size: 1.9rem;
    }
    
    .tecnico-intro p {
        font-size: 1rem;
    }
    
    .reparaciones-header-text h2 {
        font-size: 24px;
    }
    
    .reparaciones-list-text {
        font-size: 14px;
    }
}
