@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --primary: #ED6D09;
    --primary-light: #ff913d;
    --primary-dark: #cc5a00;
    --bg-dark: #1E1E1E;
    --bg-darker: #121212;
    --bg-card: #2a2a2a;
    --text-white: #ffffff;
    --text-gray: #d1d1d1;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

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

.v-center {
    display: flex;
    align-items: center;
}

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

.glass {
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.glass-premium {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

.badge {
    width: fit-content;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(237, 109, 9, 0.1);
    border: 1px solid rgba(237, 109, 9, 0.2);
    color: var(--primary-light);
    margin-bottom: 20px;
}

.badge-gray {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

/* Buttons - Sleek Industrial Tech */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 36px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    gap: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #ff7d1a;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 20px rgba(237, 109, 9, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-bar {
    width: 3px;
    height: 24px;
    background: var(--primary);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    display: block;
    margin-top: -3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 190px 0 100px;
    background: radial-gradient(circle at 80% 20%, rgba(237, 109, 9, 0.08) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

/* Subtle grain texture overlay — adds industrial materiality */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 65px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 45px;
}

.hero-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image img,
.hero-image video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55);
    transform: perspective(1000px) rotateY(-6deg) rotateX(6deg);
    transition: var(--transition);
}

.hero-image:hover img,
.hero-image:hover video {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Section Common Headers */
.section-header {
    max-width: 800px;
    margin: 0 auto 75px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 15px;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Section: Que es CLAC */
.que-es-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.que-es-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
}

.que-es-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.que-es-card {
    padding: 30px;
    border-radius: 16px;
    background: linear-gradient(145deg, #222222, #181818);
    border: 1px solid var(--border);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.que-es-card:hover {
    border-color: rgba(237, 109, 9, 0.25);
    transform: translateX(8px);
}

.que-es-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(237, 109, 9, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.que-es-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.que-es-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.que-es-video-wrapper {
    position: relative;
    width: 100%;
}

.que-es-video {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: 24px;
    overflow: hidden;
}

.que-es-video video {
    width: 100%;
    height: 580px;
    border-radius: 24px;
    transition: var(--transition);
}

.que-es-video:hover video {
    transform: scale(1.02);
}

.video-control-btn {
    position: absolute;
    bottom: 15px;
    right: 150px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.video-control-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    transform: scale(1.1);
}

.video-control-btn i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section: Como Funciona */
.pasos-container {
    margin-top: 50px;
}

.paso-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.paso-row:nth-child(even) {
    grid-template-columns: 1.1fr 1fr;
}

.paso-row:nth-child(even) .paso-info {
    order: 2;
}

.paso-row:nth-child(even) .paso-image {
    order: 1;
}

.paso-row:last-child {
    margin-bottom: 0;
}

.paso-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(237, 109, 9, 0.12);
    line-height: 1;
    margin-bottom: 10px;
}

.paso-info h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.paso-info p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.paso-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.paso-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-white);
}

.paso-feature-item i {
    color: var(--primary);
}

.paso-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-premium);
}

/* Section: Beneficios */
.beneficio-card {
    padding: 35px;
    border-radius: 20px;
    background: linear-gradient(145deg, #1e1e1e, #151515);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.beneficio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.beneficio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(237, 109, 9, 0.3);
    box-shadow: var(--shadow-premium);
}

.beneficio-card:hover::before {
    opacity: 1;
}

.beneficio-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(237, 109, 9, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 25px;
}

.beneficio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.beneficio-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Section: Aplicaciones */
.app-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.app-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.app-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.1) brightness(0.75);
    transition: var(--transition);
}

.app-card:hover .app-card-img {
    transform: scale(1.06);
    filter: grayscale(0) brightness(0.6);
}

.app-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px;
    z-index: 2;
    transition: var(--transition);
}

.app-card-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.app-card:hover .app-card-icon {
    transform: translateY(0);
    opacity: 1;
}

.app-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.app-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    transform: translateY(10px);
    transition: var(--transition);
}

.app-card:hover p {
    transform: translateY(0);
}

/* Section: Respaldo Industrial */
.respaldo-bg {
    background: linear-gradient(rgba(18, 18, 18, 0.94) 0%, rgba(30, 30, 30, 0.94) 100%), url('assets/clac%20(37).webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.respaldo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.respaldo-info h2 {
    font-size: 2.6rem;
    margin-bottom: 25px;
}

.respaldo-info p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.respaldo-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.respaldo-stat-card {
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.respaldo-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.respaldo-stat-card p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
}

/* Section: Especificaciones Tecnicas */
.tecnica-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.tecnica-catalogo {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.tecnica-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 35px;
}

.tecnica-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.tecnica-header h3 {
    font-size: 1.6rem;
}

.tecnica-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tecnica-tabla tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tecnica-tabla tr:last-child {
    border-bottom: none;
}

.tecnica-tabla td {
    padding: 12px 0;
}

.tecnica-tabla td:first-child {
    color: var(--text-gray);
}

.tecnica-tabla td:last-child {
    text-align: right;
    font-weight: 600;
}

.tecnica-render {
    position: sticky;
    top: 140px;
    text-align: center;
}

.tecnica-render img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

/* Section: Proyectos / Casos Real */
.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 30px;
    /* Space for shadow/hover translation */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
    left: -25px;
}

.carousel-btn.next-btn {
    right: -25px;
}

.proyecto-card {
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 20px);
    width: calc(33.333% - 20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
}

/* Responsiveness overrides for carousel cards */
@media (max-width: 992px) {
    .carousel-track {
        gap: 20px;
    }

    .carousel-track .proyecto-card {
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .carousel-btn.prev-btn {
        left: -15px;
    }

    .carousel-btn.next-btn {
        right: -15px;
    }
}

@media (max-width: 600px) {
    .carousel-track .proyecto-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .carousel-btn {
        display: none;
    }
}

.proyecto-card:hover {
    transform: translateY(-8px);
    border-color: rgba(237, 109, 9, 0.25);
    box-shadow: var(--shadow-premium);
}

.proyecto-card:hover .proyecto-img-wrapper img {
    transform: scale(1.05);
}

.proyecto-header {
    padding: 30px;
}

.proyecto-header h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.proyecto-header .tag {
    color: var(--primary-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.proyecto-metric-box {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.proyecto-metric {
    text-align: center;
}

.proyecto-metric-num {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-light);
}

.proyecto-metric-lbl {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
}

.proyecto-body {
    padding: 30px;
}

.proyecto-body p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Section: CTA Final */
.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    align-items: center;
}

.cta-text-side h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.cta-text-side p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 35px;
}

.contact-card {
    padding: 45px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input:not([type="range"]),
select,
textarea {
    padding: 14px 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

/* Custom Range Input Styling to remove default box styles and margins/paddings */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
    padding: 0;
    margin: 15px 0;
    border: none;
    cursor: pointer;
}

/* Range Thumb WebKit */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--text-white);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: var(--primary-light);
}

/* Range Thumb Firefox */
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--text-white);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.25);
    background: var(--primary-light);
}

select option {
    background-color: #1e1e1e;
    color: var(--text-white);
}

input:not([type="range"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(237, 109, 9, 0.15);
}

/* Modern Form CRO validation visual feedback */
input:not([type="range"]):focus:invalid,
select:focus:invalid,
textarea:focus:invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

input:not([type="range"]):not(:placeholder-shown):valid:focus,
select:valid:focus,
textarea:not(:placeholder-shown):valid:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15) !important;
}

/* Form success overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.form-success-overlay i {
    width: 70px;
    height: 70px;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/* Footer */
footer {
    padding: 0;
    background: linear-gradient(180deg, var(--bg-darker) 0%, #0a0a0a 100%);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding: 80px 0 60px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.4;
}

.footer-company {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-company a {
    color: var(--primary-light);
    text-decoration: underline;
    transition: var(--transition);
}

.footer-company a:hover {
    color: var(--primary);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-col-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    width: fit-content;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-col a:hover::after {
    width: 100%;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-contact-list i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-contact-list a {
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-contact-list a:hover {
    color: var(--primary-light);
}

.footer-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 119, 181, 0.15);
    border: 1px solid rgba(0, 119, 181, 0.3);
    border-radius: 8px;
    color: #0077B5;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    width: fit-content;
    margin-top: 8px;
}

.footer-linkedin i {
    width: 18px;
    height: 18px;
}

.footer-linkedin:hover {
    background: rgba(0, 119, 181, 0.25);
    border-color: rgba(0, 119, 181, 0.5);
    transform: translateY(-2px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-inner p {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: var(--text-gray);
    transition: var(--transition);
    position: relative;
}

.footer-legal-links a:hover {
    color: var(--primary-light);
}

.footer-legal-links span {
    color: var(--border);
}

/* WhatsApp Floating */
.whatsapp-floating {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    z-index: 999;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-floating img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.whatsapp-floating:hover {
    transform: scale(1.1) translateY(-3px);
}

/* Mobile CTA Dock */
.mobile-cta-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleLock {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate {
    opacity: 0;
}

.animate.visible {
    opacity: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-left.visible {
    opacity: 1;
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-right.visible {
    opacity: 1;
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale.visible {
    opacity: 1;
    animation: scaleLock 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered delays for premium flow */
.delay-1 {
    animation-delay: 150ms !important;
}

.delay-2 {
    animation-delay: 300ms !important;
}

.delay-3 {
    animation-delay: 450ms !important;
}

.delay-4 {
    animation-delay: 600ms !important;
}

.delay-5 {
    animation-delay: 750ms !important;
}

/* Calculator Base Layout (UI UX Pro Max) */
.calc-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    padding: 45px;
    border-radius: 24px;
}

.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    body {
        padding-bottom: 70px;
        /* Safe padding for bottom mobile cta dock */
    }

    section {
        padding: 80px 0;
    }

    header {
        padding: 20px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 1001;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
        padding: 50px;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-badges-wrapper {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img,
    .hero-image video {
        transform: none;
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-image:hover img,
    .hero-image:hover video {
        transform: scale(1.02);
    }

    .que-es-grid,
    .paso-row,
    .respaldo-grid,
    .tecnica-grid,
    .cta-wrapper,
    .calc-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Stacking reset for even steps (higher specificity override) */
    .paso-row:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .paso-row:nth-child(even) .paso-info {
        order: 1;
    }

    .paso-row:nth-child(even) .paso-image {
        order: 2;
    }

    .tecnica-render {
        position: static;
        margin-bottom: 30px;
    }

    .app-cards,
    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    .respaldo-info {
        text-align: center;
    }

    .mobile-cta-dock {
        display: block;
    }

    .whatsapp-floating {
        bottom: 75px;
        right: 10px;
    }
}

@media (max-width: 600px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .respaldo-stats,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .contact-card {
        padding: 25px;
    }

    .calc-wrapper {
        padding: 25px 20px;
    }

    .calc-results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Robust wrapping and styling for copyright text in mobile viewports */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 0 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-bottom-inner p {
        width: 100%;
    }

    .footer-legal-links {
        justify-content: center;
        width: 100%;
    }
}

/* Accessibility focus styles (UI UX Pro Max) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* FAQ Section Accordion Styles (conversiones.md) */
.faq-item {
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.faq-item.active {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(237, 109, 9, 0.1);
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-question i {
    color: var(--primary);
}

/* Comparison Section Styles (competitor-alternatives) */
.comparativa-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
}

.comparativa-moderna {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
}

.comparativa-moderna th,
.comparativa-moderna td {
    padding: 24px;
    text-align: left;
    vertical-align: middle;
}

.comparativa-moderna th {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.comparativa-moderna .feature-name {
    font-weight: 600;
    color: var(--text-white);
    border-bottom: 1px solid var(--border);
    width: 25%;
}

.comparativa-moderna .col-tradicional {
    color: var(--text-gray);
    border-bottom: 1px solid var(--border);
    width: 35%;
}

.comparativa-moderna .col-clac {
    background: rgba(237, 109, 9, 0.05);
    color: var(--text-white);
    font-weight: 500;
    border-bottom: 1px solid rgba(237, 109, 9, 0.1);
    width: 40%;
    position: relative;
}

/* Highlight CLAC Column borders */
.comparativa-moderna th.col-clac {
    background: rgba(237, 109, 9, 0.1);
    color: var(--primary);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom: 2px solid var(--primary);
}

.comparativa-moderna tr:last-child .col-clac {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-bottom: none;
}

.comparativa-moderna tr:last-child td {
    border-bottom: none;
}

/* Table Icons */
.comparativa-moderna .icon-x {
    color: #ef4444;
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.comparativa-moderna .icon-check {
    color: var(--primary);
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* Hover effect on rows */
.comparativa-moderna tbody tr {
    transition: background 0.3s ease;
}

.comparativa-moderna tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparativa-moderna tbody tr:hover .col-clac {
    background: rgba(237, 109, 9, 0.08);
}

/* ===== Section Visual Differentiation (P1 Fix) ===== */
/* Adds a horizontal accent line above key sections to break visual monotony */
#beneficios {
    position: relative;
}



/* Reduce beneficios grid density on wide screens — more breathing room */
@media (min-width: 1200px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .beneficio-card {
        padding: 30px;
    }
}

/* ===== Marquee / Ticker de Beneficios ===== */
.marquee-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    overflow: hidden;
}

.marquee-track {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-inner {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
}

.marquee-inner:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-white);
    white-space: nowrap;
    padding: 0 28px;
    transition: color 0.3s ease;
}

.marquee-item:hover {
    color: var(--primary-light);
}

.marquee-item i {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.marquee-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.4rem;
    font-weight: 300;
    padding: 0 4px;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===== Timeline Horizontal de 4 Pasos ===== */
@keyframes stepSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes blockPulse {

    0%,
    100% {
        box-shadow:
            inset 0 2px 8px rgba(237, 109, 9, 0.2),
            0 15px 40px rgba(0, 0, 0, 0.4),
            0 0 0 1px var(--border);
    }

    50% {
        box-shadow:
            inset 0 2px 8px rgba(237, 109, 9, 0.3),
            0 25px 60px rgba(237, 109, 9, 0.2);
    }
}

@keyframes tiltReveal {
    0% {
        opacity: 0;
        transform: perspective(1200px) rotateX(20deg) rotateZ(-8deg) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: perspective(1200px) rotateX(10deg) rotateZ(-5deg) translateY(0);
    }
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    margin-top: 80px;
    align-items: start;
}

.timeline-steps::before {
    display: none;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: stepSlideUp 0.8s ease-out forwards;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-step:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-step:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-step:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-step:hover {
    box-shadow: 0 16px 48px rgba(237, 109, 9, 0.15);
    transform: translateY(-4px);
}

.timeline-step-num {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary);
    padding: 6px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.timeline-step-ghost-num {
    display: none;
}

.timeline-step-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.timeline-step-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.timeline-step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step:hover .timeline-step-img img {
    transform: scale(1.08);
}

.timeline-step-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.timeline-step-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #121212;
    letter-spacing: -0.01em;
    margin: 0;
}

.timeline-step-body p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive: stack en mobile */
@media (max-width: 768px) {
    .timeline-steps {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 60px;
    }

    .timeline-steps::before {
        display: none;
    }

    .timeline-step-img {
        height: 160px;
    }

    .timeline-step-body {
        padding: 20px;
    }

    .timeline-step-body h3 {
        font-size: 1.1rem;
    }

    .timeline-step-body p {
        font-size: 0.85rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 50px 0 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 50px;
    }

    .timeline-steps::before {
        display: none;
    }

    .timeline-step {
        border-radius: 16px;
    }

    .timeline-step-img {
        height: 140px;
        border-radius: 16px 16px 0 0;
    }

    .timeline-step-num {
        font-size: 0.7rem;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }

    .timeline-step-body {
        padding: 18px;
        gap: 10px;
    }

    .timeline-step-body h3 {
        font-size: 1rem;
    }

    .timeline-step-body p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 32px;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-tagline {
        font-size: 1rem;
    }

    .footer-col-title {
        font-size: 0.9rem;
    }

    .footer-col a {
        font-size: 0.9rem;
    }

    .footer-contact-list li {
        font-size: 0.9rem;
    }

    .footer-bottom-inner {
        font-size: 0.75rem;
    }

    .footer-legal-links {
        gap: 12px;
        font-size: 0.75rem;
    }
}

/* Lightbox Modal Gallery */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

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

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

.lightbox-content {
    max-width: 80%;
    max-height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.lightbox-thumbnails-container {
    position: absolute;
    bottom: 40px;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.lightbox-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.lightbox-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.lightbox-thumb:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 90%;
        max-height: 60%;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-nav.prev {
        left: 15px;
    }
    
    .lightbox-nav.next {
        right: 15px;
    }
    
    .lightbox-thumbnails-container {
        bottom: 25px;
        max-width: 100%;
    }
    
    .lightbox-thumb {
        width: 50px;
        height: 38px;
    }
}