/* 
   VIALINVERT SA - CORE DESIGN SYSTEM
   Professional Infrastructure Aesthetics
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Primary Colors */
    --primary: #004b93;
    --primary-dark: #003566;
    --primary-light: #0060c0;
    
    /* Secondary Colors */
    --secondary: #8ec63f;
    --secondary-hover: #7db037;
    
    /* Neutrals */
    --dark: #0f172a;
    --slate: #475569;
    --light-slate: #94a3b8;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: rgba(226, 232, 240, 0.8);
    
    /* Accent & Semantic */
    --accent: #f59e0b; /* Amber for caution/machinery feel */
    --white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASIC --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--dark);
    line-height: 1.6;
}

.service-text ul li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: var(--slate);
    font-size: 1rem;
}

.service-text ul li i {
    margin-top: 0.3rem;
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- COMPONENTS --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Layout Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

nav.scrolled .nav-links a {
    color: var(--slate);
}

nav.scrolled .nav-links a:hover, 
nav.scrolled .nav-links a.active {
    color: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--white);
    font-size: 0.93rem;
    position: relative;
    opacity: 0.85;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 75, 147, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Services Page Enhancements */
.service-number {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.4;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition);
}

.service-row:hover .service-number {
    opacity: 1;
    transform: translateX(10px);
}

.service-text h2 {
    position: relative;
    z-index: 2;
}

/* Service Rows & Layout */
.service-section { margin-bottom: 150px; }
.service-row { display: flex; align-items: center; gap: 4rem; margin-top: 120px; transition: var(--transition); }
.service-row.reverse { flex-direction: row-reverse; }
.service-text { flex: 1; }
.service-text p {
    line-height: 1.8;
    color: var(--slate);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    max-width: 650px;
}
.service-img { 
    flex: 1; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: var(--shadow-xl); 
    transition: var(--transition);
}
.service-img img { width: 100%; height: 450px; object-fit: cover; }

.service-row:hover .service-img {
    transform: scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links { display: flex; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 900px) {
    .service-row { flex-direction: column !important; gap: 3rem; margin-top: 60px !important; }
    .service-img { width: 100% !important; min-height: 250px; }
    .service-img img { height: 100%; }
    .service-number { font-size: 3.5rem; }
    .service-text p { font-size: 1rem; line-height: 1.7; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero h1 { font-size: 2.5rem; }
}

/* Machinery Catalog Styles */
.machinery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.machine-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.machine-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.machine-img-container {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.machine-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.machine-card:hover .machine-img-container img {
    transform: scale(1.1);
}

.machine-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.machine-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.machine-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.machine-description {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.specs-table {
    width: 100%;
    font-size: 0.85rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--light-slate);
    font-weight: 500;
}

.spec-value {
    color: var(--primary);
    font-weight: 700;
}

.others-card {
    grid-column: 1 / -1;
    background: var(--primary-dark);
    color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .others-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* --- DISEÑO INDUSTRIAL SHOWCASE --- */
.industrial-section {
    padding: 0; /* Ocupamos todo el ancho */
    overflow: hidden;
}

.industrial-row {
    display: flex;
    min-height: 500px;
    background: var(--white);
}

.industrial-row:nth-child(even) {
    flex-direction: row-reverse;
}

.panel-img {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.industrial-row:hover .panel-img img {
    transform: scale(1.05);
}

.panel-info {
    flex: 1;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.industrial-row:nth-child(odd) .panel-info {
    border-left: 8px solid var(--secondary);
}

.industrial-row:nth-child(even) .panel-info {
    border-right: 8px solid var(--secondary);
    text-align: right;
    align-items: flex-end;
}

.panel-number {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 75, 147, 0.1);
    position: absolute;
    top: 2rem;
    z-index: -1;
}

.industrial-row:nth-child(odd) .panel-number { left: 4rem; }
.industrial-row:nth-child(even) .panel-number { right: 4rem; }

.panel-info h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.panel-info p {
    font-size: 1.15rem;
    color: var(--slate);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.btn-industrial {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: var(--transition);
}

.btn-industrial:hover {
    background: var(--secondary);
    color: white;
}

/* --- INDUSTRIAL SECTION RESPONSIVE --- */
@media (max-width: 768px) {
    .industrial-row {
        flex-direction: column !important;
        min-height: auto;
    }

    .panel-img {
        width: 100%;
        height: 280px;
        flex: none;
    }

    .panel-info {
        padding: 2.5rem 1.5rem;
        border-left: none !important;
        border-right: none !important;
        border-top: 6px solid var(--secondary);
        text-align: left !important;
        align-items: flex-start !important;
    }

    .panel-info h3 {
        font-size: 1.5rem;
    }

    .panel-info p {
        font-size: 1rem;
    }

    .panel-number {
        font-size: 5rem;
        top: 1rem;
        right: 1rem !important;
        left: auto !important;
    }

    .section-title h2 {
        font-size: 2rem !important;
    }
}

/* --- CONTACT HUB & FORMS --- */
.contact-hub {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.15);
    background: var(--white);
    margin-top: -60px; /* Sobreposición sutil sobre el header */
    position: relative;
    z-index: 10;
}

.contact-card-info {
    background: var(--primary-dark);
    padding: 5rem 4rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.contact-card-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(142, 198, 63, 0.05);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-text h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text p {
    color: var(--light-slate);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.contact-card-form {
    padding: 5rem 4rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--primary-dark);
    font-family: inherit;
    transition: all 0.3s ease;
    display: block;
}

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23004b93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 3rem;
    cursor: pointer;
}

.form-control:focus {
    background: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px -10px rgba(142, 198, 63, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: var(--light-slate);
    opacity: 0.7;
}

textarea.form-control {
    resize: none;
}

.btn-submit {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
    .contact-hub {
        grid-template-columns: 1fr;
        margin-top: 0;
        border-radius: 0; /* Ocupa todo el ancho en móviles */
    }
    
    .contact-card-info, .contact-card-form {
        padding: 4rem 1.5rem;
        min-width: 0;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .info-text h4 {
        font-size: 1.1rem;
    }
}

/* --- MOBILE MENU & NAVIGATION --- */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--secondary);
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001; /* Above nav links */
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100vh !important;
        background: var(--bg-body) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2rem !important;
        box-shadow: none !important;
        z-index: 1000 !important;
        margin: 0 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        transform: none !important;
    }
    
    .nav-links.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .nav-links li {
        width: 100%;
        list-style: none;
        text-align: center;
    }
    
    .nav-links li a {
        display: inline-block;
        padding: 1.2rem;
        font-size: 1.5rem;
        border-bottom: none;
        color: var(--primary-dark) !important;
        font-weight: 700;
    }
    
    .nav-cta {
        display: none; /* Ocultar el botón presupuestar del header en móvil para dejar espacio al menú */
    }
    
    /* Overlay background when menu is open */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    color: white;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 992px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple items */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* --- ABOUT PAGE SPECIFIC --- */
.about-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .about-title span {
        display: block;
        margin-top: 0.5rem;
    }
}
/* --- NEW PROJECT GALLERY (Full-Bleed) --- */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-card-full {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
}

.project-card-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-card-full .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-full:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    z-index: 2;
}

.project-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-overlay .location {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    display: block;
}

/* Responsive Projects */
@media (max-width: 768px) {
    .projects-showcase {
        grid-template-columns: 1fr;
    }
    
    .project-card-full {
        height: 350px;
    }
    
    .project-overlay h3 {
        font-size: 1.4rem;
    }
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: fadeIn 0.4s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-nav:hover {
    background: var(--secondary);
    color: white;
}

.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

.lightbox-info {
    margin-top: 30px;
    text-align: center;
    color: var(--white);
}

.lightbox-info h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.lightbox-counter {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1100px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-nav { width: 45px; height: 45px; background: rgba(0,0,0,0.6); }
    .lightbox-modal { padding: 20px; }
}

/* --- SERVICE INTERNAL SLIDER --- */
.service-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.service-img.is-slider {
    cursor: default;
    aspect-ratio: 16/10; 
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1120;
}

/* Progress bar at the bottom */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--secondary);
    width: 0%;
    z-index: 15;
}

.slider-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slider-wrapper img.active {
    opacity: 1;
    z-index: 2;
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-img:hover .slider-arrows {
    opacity: 1;
}

.slider-arrow {
    background: rgba(15, 23, 42, 0.7);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

@media (max-width: 768px) {
    .slider-arrows {
        opacity: 1;
    }
    .slider-arrow {
        width: 32px;
        height: 32px;
    }
}
