/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Colors - Brand Colors */
    --color-red: #ee1b24;
    --color-red-dark: #cc151e;
    --color-blue: #051a47;
    --color-blue-dark: #020c24;
    --color-blue-light: #0f2c6e;

    --color-white: #ffffff;
    --color-light: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-500: #94a3b8;
    --color-gray-800: #334155;
    --color-text: #0f172a;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 8rem 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows - Clean & Minimal */
    --shadow-sm: 0 4px 6px rgba(5, 26, 71, 0.05);
    --shadow-md: 0 10px 15px rgba(5, 26, 71, 0.08);
    --shadow-lg: 0 20px 30px rgba(5, 26, 71, 0.12);
    --shadow-glass: 0 8px 32px rgba(5, 26, 71, 0.08);
}

/* ==========================================================================
   Resets & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-blue-dark);
    background-image: linear-gradient(rgba(5, 26, 71, 0.85), rgba(5, 26, 71, 0.85)), url('../images/background5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-blue);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: transparent;
}

.text-red {
    color: var(--color-red);
}

.text-white {
    color: var(--color-white);
}

/* ==========================================================================
   Shape Dividers
   ========================================================================== */
.custom-shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

.shape-fill-white {
    fill: transparent;
}

.shape-fill-light {
    fill: transparent;
}

.shape-fill-blue {
    fill: var(--color-blue);
}

.shape-fill-red {
    fill: var(--color-red);
}

@media (min-width: 768px) {

    .custom-shape-divider-top svg,
    .custom-shape-divider-bottom svg {
        height: 60px;
    }
}

/* Make sections relative for absolute dividers */
.section,
.hero,
.contacto,
.footer {
    position: relative;
}

/* Typography Utilities */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.title-eye-icon {
    width: 30px;
    height: 30px;
    display: inline-block;
    flex-shrink: 0;
}

.section-title span {
    color: var(--color-red);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-800);
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(238, 27, 36, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 27, 36, 0.4);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

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

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(5, 26, 71, 0.85);
    /* Azul del tema con opacidad */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo-img {
    height: 65px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
    transition: var(--transition-base);
}

.navbar.scrolled .logo-text {
    color: var(--color-blue);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: var(--transition-base);
}

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

.nav-link:hover,
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--color-red);
}

.btn-contact {
    background-color: var(--color-white);
    color: var(--color-blue) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background-color: var(--color-gray-100);
    color: var(--color-blue) !important;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

.navbar.scrolled .mobile-toggle {
    color: var(--color-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 150px;
    color: var(--color-white);
    /* Fades out at the bottom to blend seamlessly with the Landing Page background */
    background: linear-gradient(to bottom, var(--color-blue-dark) 0%, var(--color-blue-dark) 60%, rgba(2, 12, 36, 0) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../images/HERO1.jpg');
    background-size: cover;
    background-position: right center;
    /* Efecto difuminado más sutil para integrar con la siguiente sección */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

.hero-img {
    display: none;
    /* No longer used */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Solid Navy fading to transparent on the right */
    background: linear-gradient(90deg, rgba(5, 26, 71, 1) 0%, rgba(5, 26, 71, 0.85) 30%, rgba(5, 26, 71, 0.4) 55%, transparent 75%);
    z-index: 1;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* ==========================================================================
   Nosotros Section
   ========================================================================== */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nosotros-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.nosotros-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-blue);
    color: var(--color-white);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    border: 5px solid var(--color-white);
}

.experience-badge .number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-red);
    line-height: 1;
}

.experience-badge .text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.125rem;
    color: var(--color-gray-800);
    margin-bottom: 2rem;
}

/* Tabs */
.tabs {
    margin-bottom: 2rem;
}

.tab-headers {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray-500);
    cursor: pointer;
    position: relative;
    transition: var(--transition-base);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-red);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.tab-btn.active {
    color: var(--color-blue);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--color-blue);
}

.features-list i {
    color: var(--color-red);
    font-size: 1.25rem;
}

/* ==========================================================================
   Servicios Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 3rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.service-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--color-blue);
    z-index: -1;
    transition: var(--transition-base);
}

.service-card:hover .service-content::before {
    height: 100%;
}

.service-icon {
    position: absolute;
    top: -35px;
    left: 2rem;
    width: 70px;
    height: 70px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-red);
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--color-red);
    color: var(--color-white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-blue);
    transition: var(--transition-base);
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--color-white);
}

.service-card p {
    color: var(--color-gray-800);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    transition: var(--transition-base);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-red);
}

.service-card:hover .service-link {
    color: var(--color-white);
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}


/* ==========================================================================
   Marcas Section (Infinite Slider)
   ========================================================================== */
.marcas {
    overflow: hidden;
}

.brands-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.brands-slider-container::before,
.brands-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.brands-slider-container::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.brands-slider-container::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.brands-track {
    display: flex;
    width: max-content;
}

.brand-item {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-200);
    text-transform: uppercase;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    height: 80px;
    /* Altura igual para todas las imágenes */
}

.brand-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: var(--transition-base);
}

.brand-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Galería Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

/* Make some items span more for masonry feel */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 26, 71, 0.9) 0%, rgba(5, 26, 71, 0.2) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* ==========================================================================
   Contacto Section
   ========================================================================== */
.contacto {
    background-color: var(--color-blue);
    position: relative;
}

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

.info-items {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.info-item i {
    font-size: 2rem;
    color: var(--color-red);
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.info-item h4 {
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-blue);
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--color-light);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(5, 26, 71, 0.1);
}

/* Custom Multi Select */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    padding: 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    background: var(--color-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-gray-500);
}

.custom-select-trigger.has-value {
    color: var(--color-text);
}

.custom-select-trigger::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform var(--transition-base);
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
}

.custom-option {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background var(--transition-base);
}

.custom-option:hover {
    background: var(--color-light);
}

.custom-option input {
    width: auto;
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--color-blue-dark);
    color: var(--color-white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.slogan {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--color-red);
    transform: translateY(-3px);
}

.footer h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-red);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--color-red);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--color-red);
    font-size: 1.25rem;
}

.map-placeholder {
    width: 100%;
    height: 150px;
    background: var(--color-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.map-placeholder span {
    position: absolute;
    z-index: 1;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {

    .nosotros-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nosotros-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        grid-column: span 1;
    }

    .gallery-item:nth-child(1) {
        grid-row: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-bg {
        background-position: 65% center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Mobile Menu */
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-white);
        padding: 6rem 2rem;
        transition: var(--transition-base);
        box-shadow: var(--shadow-glass);
    }

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

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-link {
        color: var(--color-blue);
        font-size: 1.25rem;
    }
}

.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-float img {
    width: 80%;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .25);
    transition: transform .3s ease;
}

.whatsapp-float img:hover {
    transform: scale(1.08);
}

/* --- DARK HIGH-TECH FUTURISTIC OVERRIDES --- */
html {
    background-color: var(--color-blue-dark);
}

body {
    background-color: transparent;
    color: var(--color-white);
}

body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background-image: url('../images/background1.jpg');
    background-size: cover;
    background-position: center;
    transform: rotate(20deg);
    /* Cambia el ángulo de la imagen de fondo */
    z-index: -10;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Capa súper suave y transparente para dejar ver los colores */
    background: linear-gradient(135deg, rgba(2, 12, 36, 0.5) 0%, rgba(5, 26, 71, 0.1) 100%);
    z-index: -9;
    pointer-events: none;
}

.section,
.bg-light,
.contacto,
.marcas {
    background: transparent !important;
}

.servicios {
    background: transparent !important;
    position: relative;
    padding-top: 10rem !important;
    padding-bottom: 10rem !important;
}

.servicios-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Sombras sólidas sin difuminar (0px blur) en azul más oscuro */
    filter: drop-shadow(0 -2px 0 rgba(0, 85, 204, 0.8)) drop-shadow(0 2px 0 rgba(0, 85, 204, 0.8));
}

.servicios-bg-shape {
    width: 100%;
    height: 100%;
    background: rgba(1, 6, 20, 0.6);
    /* Azul oscuro con opacidad al 0.6 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 5vw, 30% 0, 100% 5vw, 100% calc(100% - 5vw), 70% 100%, 0 calc(100% - 5vw));
}

.servicios .custom-shape-divider-top,
.marcas .custom-shape-divider-top {
    display: none !important;
}

.brands-slider-container::before,
.brands-slider-container::after {
    display: none !important;
}

.footer {
    background: rgba(2, 12, 36, 0.40) !important;
    /* Azul oscuro con opacidad más transparente */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.custom-shape-divider-top .shape-fill-white,
.custom-shape-divider-top .shape-fill-light,
.custom-shape-divider-bottom .shape-fill-white,
.custom-shape-divider-bottom .shape-fill-light {
    fill: rgba(5, 26, 71, 0.4) !important;
    /* Semi-transparent dark blue to blend with background */
}

.section-title {
    color: var(--color-white) !important;
}

.section-title span {
    color: var(--color-red) !important;
}

.section-subtitle,
.lead-text,
p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-title .text-red {
    color: var(--color-red) !important;
}

.service-card {
    background: rgba(5, 26, 71, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.service-content {
    background: transparent !important;
}

.service-content::before {
    background: rgba(238, 27, 36, 0.8) !important;
    border-radius: 0 0 16px 16px !important;
}

.service-icon {
    background: rgba(5, 26, 71, 0.8) !important;
    border: 2px solid var(--color-red) !important;
    color: var(--color-red) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

.service-card:hover .service-icon {
    background: var(--color-red) !important;
    color: var(--color-white) !important;
    box-shadow: 0 0 20px rgba(238, 27, 36, 0.6) !important;
}

.service-card h3 {
    color: var(--color-white) !important;
    font-weight: 700;
}

.contact-form-wrapper {
    background: rgba(5, 26, 71, 0.6) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6) !important;
}

.contact-info h2,
.contact-info p,
.contact-info h4 {
    color: var(--color-white) !important;
}

.experience-badge {
    background: rgba(5, 26, 71, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-red) !important;
    border-radius: 20px !important;
    color: var(--color-white) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.btn-primary {
    background: var(--color-red) !important;
    box-shadow: 0 0 15px rgba(238, 27, 36, 0.5) !important;
    border: none !important;
    border-radius: 50px !important;
    color: var(--color-white) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--color-red-dark) !important;
    box-shadow: 0 0 25px rgba(238, 27, 36, 0.8) !important;
}

.btn-contact {
    background: transparent !important;
    color: var(--color-white) !important;
    border: 1px solid var(--color-white) !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-contact:hover {
    background: var(--color-red) !important;
    border-color: var(--color-red) !important;
    color: var(--color-white) !important;
    box-shadow: 0 0 15px rgba(238, 27, 36, 0.5) !important;
}

.navbar.scrolled {
    background: rgba(5, 26, 71, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar.scrolled .nav-link {
    color: var(--color-white) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--color-red) !important;
}

.navbar.scrolled .mobile-toggle {
    color: var(--color-white) !important;
}

input,
textarea,
.custom-select-trigger {
    background: rgba(5, 26, 71, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: var(--color-white) !important;
}

input:focus,
textarea:focus {
    border-color: var(--color-red) !important;
    box-shadow: 0 0 10px rgba(238, 27, 36, 0.3) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.custom-select-options {
    background: var(--color-blue-dark) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
}

.custom-option {
    color: var(--color-white) !important;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.custom-select-trigger {
    color: var(--color-white) !important;
}

.tab-btn {
    color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn.active {
    color: var(--color-white) !important;
}

.tab-btn::after {
    background: var(--color-red) !important;
}

.badge {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--color-white) !important;
    border-radius: 50px !important;
}

.info-item i {
    color: var(--color-white) !important;
    background: var(--color-red) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px rgba(238, 27, 36, 0.5) !important;
}

.info-item h4 {
    color: var(--color-white) !important;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Invert logos to white */
.brand-item img {
    filter: brightness(0) invert(1) opacity(0.7) !important;
}

.brand-item:hover img {
    filter: brightness(0) invert(1) opacity(1) !important;
    transform: scale(1.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white) !important;
}

.nav-link::after {
    background-color: var(--color-red) !important;
}

/* Additional specific overrides */
.features-list li {
    color: var(--color-white) !important;
}

.features-list i {
    color: var(--color-red) !important;
}

.footer h3,
.footer p {
    color: var(--color-white) !important;
}

label {
    color: var(--color-white) !important;
}

/* Mobile menu */
@media (max-width: 768px) {
    .nav-menu {
        background: rgba(5, 26, 71, 0.95) !important;
        backdrop-filter: blur(15px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
}


/* ==========================================================================
   Colección Section
   ========================================================================== */
.coleccion {
    position: relative;
    padding: var(--section-padding);
    background-color: var(--color-blue-dark);
    overflow: hidden;
}

.coleccion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../images/optica.jpg');
    /* You can change this image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.coleccion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 12, 36, 0.85);
    /* Dark but transparent overlay */
    z-index: 1;
}

#tienda-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.coleccion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.coleccion-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.coleccion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 26, 71, 0.8), transparent);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-base);
}

.coleccion-item:hover::before {
    opacity: 1;
}

.coleccion-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.coleccion-item:hover img {
    transform: scale(1.1);
}

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

@media (max-width: 576px) {
    .coleccion-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Promo CTA Section
   ========================================================================== */
.promo-cta {
    position: relative;
    padding: 6rem 0;
    background: var(--color-white);
    overflow: hidden;
}

.promo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(238, 27, 36, 0.05) 0%, transparent 70%);
}

.promo-maintitle {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-blue);
    text-transform: uppercase;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.promo-maintitle span {
    color: var(--color-red);
}

.promo-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.promo-feature-card {
    background: var(--color-blue-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-feature-card .feature-img {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.promo-feature-card .feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.promo-feature-card:hover .feature-img img {
    transform: scale(1.05);
}

.promo-feature-card .feature-content {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--color-blue-dark), var(--color-blue));
    color: var(--color-white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 6px solid var(--color-red);
}

.feature-content h3 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feature-content p {
    font-size: 1rem;
    color: var(--color-gray-200);
    font-weight: 300;
}

/* Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--color-light) 0%, #ffe6e6 100%);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(238, 27, 36, 0.1);
    position: relative;
}

.promo-banner-content {
    padding: 4rem;
    flex: 1;
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-blue);
    margin-bottom: 1rem;
}

.banner-title span {
    color: var(--color-red);
}

.banner-discount {
    margin: 2rem 0;
}

.text-top {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue-light);
    display: block;
    margin-bottom: 0.5rem;
}

.discount-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discount-main .number {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-red);
    line-height: 1;
    background: linear-gradient(135deg, var(--color-red), var(--color-blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discount-main .text-side {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-blue);
    line-height: 1.1;
}

.text-bottom {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-blue);
    display: block;
    margin-top: 0.5rem;
}

.banner-action {
    margin-top: 2rem;
}

.banner-action p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-gray-500);
    margin-bottom: 0.5rem;
}

.promo-banner-img {
    flex: 1;
    height: 100%;
    min-height: 400px;
    background-image: url('../images/promo2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.promo-banner-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, #ffe6e6, transparent);
}

@media (max-width: 992px) {
    .promo-features {
        grid-template-columns: 1fr;
    }

    .promo-banner {
        flex-direction: column;
    }

    .promo-banner-img {
        width: 100%;
        height: 300px;
        min-height: 300px;
    }

    .promo-banner-img::before {
        background: linear-gradient(to bottom, #ffe6e6, transparent);
        width: 100%;
        height: 30%;
    }
}

@media (max-width: 768px) {
    .promo-maintitle {
        font-size: 2rem;
    }

    .banner-title {
        font-size: 2rem;
    }

    .discount-main .number {
        font-size: 4rem;
    }

    .discount-main .text-side {
        font-size: 1.2rem;
    }

    .text-bottom {
        font-size: 1.2rem;
    }

    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 75px;
    height: 75px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float img {
    width: 45px;
    height: 45px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 35px;
        height: 35px;
    }
}