html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0A0A0A;
    --accent-red: #FF3B30;
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-body);
}

/* Video y Overlay de fondo */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.65) 0%, rgba(10, 10, 10, 1) 100%);
    z-index: -1;
}
@media (max-width: 767px) {
    .bg-video {
        display: none !important;
    }
    .bg-overlay {
        background: linear-gradient(to bottom, rgba(10, 10, 10, 0.65) 0%, rgba(10, 10, 10, 1) 100%), url('/og-image.jpg') center/cover no-repeat fixed;
    }
}


/* Barra de Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 6%;
    background: transparent;
    position: relative;
    z-index: 10;
}

.logo-container {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-5px);
}

/* Control exacto del logo */
.nav-logo-img {
    width: 220px;
    height: auto;
    max-height: 60px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

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

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--accent-red);
    opacity: 1;
}

.nav-links a.cart-icon {
    display: flex;
    align-items: center;
    opacity: 1;
}

.nav-links a.cart-icon svg {
    transition: stroke 0.3s ease;
}

.nav-links a.cart-icon:hover svg {
    stroke: var(--accent-red);
}

.nav-links a.btn-cotizar-sm {
    background-color: var(--accent-red);
    color: var(--text-white);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 1;
    border: 1px solid transparent;
}

.nav-links a.btn-cotizar-sm:hover {
    background-color: transparent;
    color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
}

/* Sección Hero */
.hero {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    padding: 0 6% 4rem 6%;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 60%;
    animation: fadeIn 1s ease-out;
}

.pre-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #B0B0B0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    /* Bordes ligeramente redondeados premium */
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-white);
    border: 2px solid var(--accent-red);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-red);
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Cómo Funciona Section */
.how-it-works {
    background-color: var(--bg-color);
    padding: 5rem 10%;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-bottom: 4rem;
    text-transform: uppercase;
    opacity: 0.8;
}

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

.step-card {
    display: flex;
    flex-direction: column;
}

.step-icon {
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card p {
    font-family: var(--font-body);
    color: #A1A1AA;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sección Catálogo Bento */
.catalog-section {
    background-color: var(--bg-color);
    padding: 2rem 10% 6rem 10%;
    position: relative;
    z-index: 10;
}

.bento-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(3, 200px);
    gap: 1.5rem;
}

/* .catalogo-grid: definido una sola vez más abajo (sección CATÁLOGO COMPLETO) */

.bento-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1A1A1A;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.2);
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.bento-card:hover img {
    opacity: 1;
}

.item-large {
    grid-row: span 3;
}

.item-small {
    grid-column: 2;
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    pointer-events: none;
}

.bento-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.item-large .bento-overlay h3 {
    font-size: 2.5rem;
}

.bento-overlay p {
    font-size: 1rem;
    color: var(--text-gray);
}

/* Animaciones simples */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

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

/* Diseño responsivo (Tablets y Móviles) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }

    .navbar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        align-items: flex-start;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .how-it-works {
        padding: 4rem 6%;
        width: 100%;
        box-sizing: border-box;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .catalog-section {
        padding: 4rem 6%;
        width: 100%;
        box-sizing: border-box;
    }

    .bento-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1.5rem;
        width: 100%;
    }

    .item-large {
        grid-column: 1;
        grid-row: auto;
        min-height: 350px;
    }

    .item-small {
        grid-column: 1;
        grid-row: auto;
        min-height: 250px;
    }
}

/* --- Added rules below --- */
/* Sección Nosotros */
.about-us {
    background-color: #0A0A0A;
    padding: 8rem 10%;
    position: relative;
    z-index: 10;
}

.about-container {
    max-width: 900px;
}

.about-title {
    font-family: var(--font-heading);
    color: #FFFFFF;
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #A1A1AA;
    line-height: 1.8;
}

.operator-banner {
    border: 2px solid #FF3B30;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 59, 48, 0.05) 0%, transparent 100%);
}

.banner-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.5;
}

/* Modificación de catálogo para pointer-events */
.bento-overlay {
    pointer-events: auto;
}

.btn-add-cart {
    margin-top: 1rem;
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 0.3s ease;
}

.btn-add-cart:hover {
    background-color: #d12f25;
}

/* Contact Section */
.contact-section {
    background-color: #0A0A0A;
    padding: 6rem 10%;
    position: relative;
    z-index: 10;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #A1A1AA;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-links-direct a {
    display: block;
    color: var(--accent-red);
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-links-direct a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #1A1A1A;
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #0A0A0A;
    border: 1px solid #333333;
    border-radius: 6px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

.form-group textarea {
    resize: vertical;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Footer */
.footer {
    background-color: #000000;
    border-top: 1px solid #1a1a1a;
    padding: 5rem 10% 2rem 10%;
    position: relative;
    z-index: 10;
}

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

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

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.footer-logo-aerotech {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1;
    color: var(--text-white);
}

.footer-logo-accent {
    color: var(--accent-red);
}

.footer-logo-media {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--text-gray);
    margin-top: 3px;
}

.footer-slogan {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.copyright {
    text-align: center;
    color: #555555;
    font-size: 0.75rem;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
}

@media (max-width: 768px) {
    .about-us {
        padding: 4rem 6%;
    }

    .footer {
        padding: 4rem 6% 2rem 6%;
    }

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

/* --- Cart Widget Styles --- */
#cart-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FF3B30;
    border-radius: 35px;
    width: 70px;
    height: 70px;
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}

#cart-widget:hover, #cart-widget.abierto {
    width: 320px;
    background-color: #111111;
    border: 2px solid #FF3B30;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    cursor: default;
    height: 350px;
}

/* Icon & Badge */
.cart-icon-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: opacity 0.3s ease;
}

.cart-icon-wrapper svg {
    margin-right: 2px;
}

#cart-widget:hover .cart-icon-wrapper, #cart-widget.abierto .cart-icon-wrapper {
    opacity: 0;
    pointer-events: none;
}

#cart-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    color: #FF3B30;
    font-weight: 700;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-family: var(--font-body);
}

/* Content */
.cart-content {
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
    transition-delay: 0s;
}

#cart-widget:hover .cart-content, #cart-widget.abierto .cart-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.2s;
}

.cart-content h3 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

#cart-list {
    margin-bottom: auto;
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
}

#cart-list li {
    background: #1A1A1A;
    color: var(--text-gray);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

#btn-send-whatsapp {
    width: 100%;
    background-color: #FF3B30;
    color: #FFFFFF;
    border: none;
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

/* --- Catálogo Completo CSS --- */
.catalogo-layout {
    display: flex;
    gap: 3rem;
    padding: 2.5rem 6% 6rem 6%;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
    min-height: 80vh;
}

.sidebar-filtros {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-filtros h3 {
    font-family: var(--font-heading);
    color: var(--text-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.btn-filtro {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid #333;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filtro:hover {
    border-color: var(--accent-red);
    color: var(--text-white);
}

.btn-filtro.active {
    background-color: var(--accent-red);
    color: var(--text-white);
    border-color: var(--accent-red);
}

.catalogo-completo-section {
    flex-grow: 1;
    min-width: 0; /* permite que la cuadrícula se ajuste sin desbordar el flex */
}

@media (max-width: 768px) {
    .catalogo-layout {
        flex-direction: column;
        padding-top: 1rem;
    }

    .sidebar-filtros {
        width: 100%;
        margin-bottom: 2rem;
    }
}

#btn-send-whatsapp:hover {
    background-color: #d12f25;
}

/* --- DISEÑO DE CATÁLOGO (UNIFICADO Y CORREGIDO) --- */
.catalog-section {
    background-color: var(--bg-color);
    padding: 2rem 10% 6rem 10%;
    position: relative;
    z-index: 10;
}

/* Cuadrícula única del catálogo: 4 col. escritorio, 2 tablet, 1 móvil */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 340px;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

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

.card-producto {
    background-color: #0a0a0a !important;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-producto:hover {
    transform: translateY(-5px);
    border-color: #FF3B30;
}

/* Espacio forzado para la imagen */
.card-img-container {
    width: 100%;
    height: 250px !important;
    min-height: 250px;
    background-color: #1a1a1a;
    display: block;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

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

.tag-categoria {
    color: #FF3B30;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-info h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.8rem;
}

.card-info p {
    color: #A1A1AA;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-add-cart {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #FF3B30;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    width: 100%;
    margin-top: auto;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: #FF3B30;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .catalog-section {
        padding: 4rem 6%;
    }
}

/* --- SECCIÓN REDES SOCIALES --- */
.social-section {
    background-color: var(--bg-color);
    padding: 3rem 10%;
    position: relative;
    z-index: 10;
    border-top: 1px solid #1a1a1a;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: var(--text-white);
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-icon:hover {
    background-color: transparent;
    color: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
}

@media (max-width: 768px) {
    .social-section {
        padding: 3rem 6%;
    }
    .social-icons-container {
        gap: 1.5rem;
    }
    .social-icon {
        width: 50px;
        height: 50px;
    }
}
/* --- RESPONSIVO MÓVIL (ajustes finales) --- */
img { max-width: 100%; }


@media (max-width: 768px) {
    .navbar {
        padding: 1.2rem 6%;
        gap: 1rem;
        width: 100%;
    }

    .nav-logo-img {
        width: 160px;
        max-height: 48px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 0.8rem 1.2rem;
    }

    .hero {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content h1 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .pre-title {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    .bento-container,
    .catalogo-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        grid-auto-rows: auto !important;
        justify-items: center;
        gap: 1.2rem;
        overflow: visible;
    }

    .bento-card,
    .catalogo-grid .bento-card,
    .item-large,
    .item-small {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: max-content;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;
        overflow: hidden;
        grid-row: auto !important;
        grid-column: 1 !important;
    }

    .bento-card img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .bento-overlay {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 1.5rem 1.2rem 24px 1.2rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
        pointer-events: auto;
    }

    .item-large .bento-overlay h3 {
        font-size: 1.6rem;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .card-img-container {
        height: 200px !important;
        min-height: 200px;
    }

    .sidebar-filtros {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-filtros h3 {
        width: 100%;
        margin-bottom: 0.2rem;
    }

    .section-title {
        letter-spacing: 0.2em;
    }

    /* El carrito no depende de hover en táctil */
    #cart-widget:hover, #cart-widget.abierto {
        width: min(320px, calc(100vw - 40px));
    }
}

/* Nota informativa: productos disponibles con camarógrafo y operador */
.nota-equipo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.65);
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 8px;
}

.nota-equipo .nota-equipo-icono {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Filtros: lista de botones (columna en escritorio; fila con scroll horizontal en celular) */
.filtros-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .sidebar-filtros {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.8rem;
        min-width: 0;
    }

    .sidebar-filtros h3 {
        margin-bottom: 0;
    }

    .filtros-lista {
        flex-direction: row;
        gap: 0.6rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .filtros-lista .btn-filtro {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Tarjeta de video (portafolio) y modal */
.portafolio-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
}

.video-modal[hidden] {
    display: none;
}

.video-modal-content {
    position: relative;
    width: min(100%, 1100px);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: #1A1A1A;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.video-modal-close:hover {
    background: #FF3B30;
}

/* Lightbox de fotos (portafolio) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox .video-modal-close {
    top: 1rem;
    right: 1rem;
}
/* Flecha de regreso */
.btn-volver-atras {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #333;
    background-color: rgba(26, 26, 26, 0.9);
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-volver-atras:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateX(-3px);
}

/* Botón deshabilitado (equipos próximamente) */
.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
    background-color: transparent;
}

.btn-add-cart:disabled:hover {
    background-color: transparent;
}

/* Protección contra descarga y arrastre de fotos y videos */
img,
video {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}


/* --- Renta por paquete --- */
a.btn-add-cart { display: inline-block; text-align: center; text-decoration: none; box-sizing: border-box; }
.btn-venta { display: inline-block; margin-top: 6px; font-size: 0.8rem; color: #ddd; text-decoration: underline; }
.frase-equipo { font-size: 0.85rem; color: #ddd; margin: 0 0 8px 0; line-height: 1.4; }
.catalogo-grid.equipo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .catalogo-grid.equipo-grid { grid-template-columns: 1fr; }
}
.rv-nota { text-align: center; color: #A1A1AA; margin: 0 auto 2rem auto; max-width: 800px; font-size: 1.05rem; }
.falta { color: #f2b01d; font-weight: 600; }

/* Botón Clientes (menú principal, compartido en todas las páginas) */
.nav-links a.btn-portal-clientes {
    background-color: #f26b1d;
    color: #FFFFFF;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 1;
    border: 1px solid transparent;
}
.nav-links a.btn-portal-clientes:hover,
.nav-links a.btn-portal-clientes:focus-visible {
    background-color: #d4560c;
    color: #FFFFFF;
}
@media (max-width: 768px) {
    .nav-links a.btn-portal-clientes { padding: 0.5rem 1rem; font-size: 0.8rem; }
}

/* --- Tarjetas y desglose de precios de paquetes --- */
.paquetes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1120px;
    margin: 0 auto;
}
@media (max-width: 960px) {
    .paquetes-grid { grid-template-columns: 1fr; }
}
.paquete-card {
    display: flex;
    flex-direction: column;
    background-color: #161616;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 1.5rem;
    box-sizing: border-box;
}
.paquete-card h3 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.15rem;
    margin: 0 0 0.7rem 0;
}
.paquete-card h3 a {
    color: var(--text-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.paquete-card h3 a:hover {
    color: var(--accent-red);
}
.paquete-resumen {
    font-family: var(--font-body);
    color: #A1A1AA;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 1rem 0;
}
.paquete-precio-titulo {
    font-family: var(--font-heading);
    color: #f59e0b;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
}
.paquete-precio-sub {
    font-family: var(--font-body);
    color: #8E8E98;
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0 0 0.9rem 0;
}
.paquete-opciones {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.paquete-opciones li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
    color: #D4D4D8;
    font-size: 0.9rem;
    line-height: 1.45;
}
.paquete-opciones .op-precio {
    color: #D4D4D8;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.paquete-cta {
    margin-top: auto;
    padding-top: 0.5rem;
}
.paquete-cta a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.paquete-cta a:hover {
    color: var(--accent-red);
}

/* --- Visor de fotos (Lightbox con navegación, deslizar y protección contra descarga) --- */
.lightbox {
    padding: 4rem 4.5rem 2.5rem 4.5rem;
    background: rgba(0, 0, 0, 0.94);
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    cursor: grab;
}

.lightbox-stage:active {
    cursor: grabbing;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}

.lightbox-escudo {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
}

.lightbox .video-modal-close {
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

.lightbox-volver {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #333;
    background: #1A1A1A;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-volver:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.lightbox-contador {
    position: absolute;
    top: 1.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: #A1A1AA;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid #333;
    background: rgba(26, 26, 26, 0.85);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.lightbox-nav.prev {
    left: 1rem;
}

.lightbox-nav.next {
    right: 1rem;
}

.lightbox-nav[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 4rem 1rem 2rem 1rem;
    }
    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    .lightbox-nav.prev {
        left: 0.5rem;
    }
    .lightbox-nav.next {
        right: 0.5rem;
    }
}

/* --- Página de listado de paquetes (/paquetes.html) --- */
.pagina.pagina-ancha { max-width: 1200px; }
.paquetes-listado {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}
@media (max-width: 960px) {
    .paquetes-listado { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .paquetes-listado { grid-template-columns: 1fr; }
}
.paquete-card-listado { padding: 0; overflow: hidden; }
.paquete-card-listado > :not(.paquete-foto) { margin-left: 1.5rem; margin-right: 1.5rem; }
.paquete-card-listado .paquete-foto { display: block; aspect-ratio: 4 / 3; background: #1A1A1A; margin-bottom: 1.2rem; }
.paquete-card-listado .paquete-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.paquete-card-listado h2 { font-family: var(--font-heading); color: var(--text-white); font-size: 1.25rem; margin-top: 0; margin-bottom: 0.7rem; }
.paquete-card-listado h2 a { color: var(--text-white); text-decoration: none; }
.paquete-card-listado h2 a:hover { color: var(--accent-red); }
.paquete-card-listado .paquete-btn { display: block; box-sizing: border-box; text-align: center; text-decoration: none; margin-top: auto; margin-bottom: 1.5rem; width: auto; }


/* ---------- Ventana "Antes de cotizar" (nombre y fechas antes de WhatsApp) ---------- */
.dlg-solicitud {
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 0;
    width: min(420px, calc(100vw - 32px));
    background: #141414;
    color: var(--text-white);
    font-family: var(--font-body);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    margin: auto;
    max-height: calc(100vh - 32px);
}
.dlg-solicitud::backdrop { background: rgba(0, 0, 0, 0.7); }
.dlg-sol-form { position: relative; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.dlg-sol-form h3 { font-family: var(--font-heading); font-size: 1.35rem; margin: 0; padding-right: 32px; }
.dlg-sol-sub { margin: -6px 0 2px; color: var(--text-gray); font-size: 0.95rem; }
.dlg-sol-campo { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: #D4D4D8; font-weight: 500; }
.dlg-sol-campo input {
    font: inherit; font-size: 16px; color: var(--text-white); background: #0F0F0F;
    border: 1px solid #333333; border-radius: 8px; padding: 12px 14px; min-height: 46px; width: 100%; box-sizing: border-box;
    color-scheme: dark;
}
.dlg-sol-campo input:focus { outline: 2px solid var(--accent-red); outline-offset: -1px; border-color: transparent; }
.dlg-sol-fechas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dlg-sol-nota { margin: -4px 0 0; color: var(--text-gray); font-size: 0.85rem; }
.dlg-sol-error { margin: 0; color: #FCA5A5; font-size: 0.9rem; min-height: 0; }
.dlg-sol-error:empty { display: none; }
.dlg-sol-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dlg-sol-enviar {
    margin-top: 4px; min-height: 50px; border: 0; border-radius: 8px; background: var(--accent-red); color: #FFFFFF;
    font: inherit; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
}
.dlg-sol-enviar:hover { filter: brightness(1.08); }
.dlg-sol-cerrar {
    position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 8px;
    background: transparent; color: var(--text-gray); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.dlg-sol-cerrar:hover { color: var(--text-white); background: #1F1F1F; }
@media (max-width: 420px) { .dlg-sol-fechas { grid-template-columns: 1fr; } }

/* ===== Carrusel de promociones: reemplaza el hero (home) ===== */
.hero.hero-promos {
    display: block;
    padding: 0;
    height: max(calc(100vh - 130px), 600px); /* altura fija: sin saltos al cambiar de slide */
    min-height: 0;
}
.promo-carousel {
    position: relative;
    height: 100%;
}
.promo-slides {
    position: absolute;
    inset: 0;
}
.promo-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    column-gap: 2rem;
    padding: 0 10% 4.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.promo-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease, visibility 0s;
}
/* Slide 1 = hero original: solo texto */
.promo-slide.promo-slide-hero {
    display: flex;
    align-items: center;
}
.promo-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.promo-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    color: var(--text-white);
    text-transform: uppercase;
}
.promo-apoyo {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.5;
    color: #D4D4D4;
}
.promo-nota {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-gray);
}
.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}
.promo-actions .btn { cursor: pointer; }
.promo-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 65%;
}
.promo-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: none;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}
.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.55);
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.promo-arrow:hover { background: var(--accent-red); }
.promo-prev { left: 1.5%; }
.promo-next { right: 1.5%; }
.promo-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.25rem; /* por encima del borde inferior; el carrito flotante queda a la derecha */
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    z-index: 3;
}
.promo-dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s, transform 0.2s;
}
.promo-dot[aria-current="true"]::before { background: var(--accent-red); transform: scale(1.25); }
.promo-arrow:focus-visible,
.promo-dot:focus-visible,
.promo-actions .btn:focus-visible { outline: 2px solid var(--text-white); outline-offset: 2px; }

@media (max-width: 1024px) {
    .promo-text h2 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .hero.hero-promos { height: max(calc(100svh - 130px), 660px); }
    .promo-slide {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        align-content: center;
        row-gap: 1rem;
        padding: 1rem 10% 3.5rem;
    }
    .promo-slide.promo-slide-hero { display: flex; padding-top: 0; }
    .promo-text { gap: 0.6rem; }
    .promo-text h2 { font-size: 1.55rem; }
    .promo-apoyo { font-size: 0.95rem; line-height: 1.4; }
    .promo-nota { font-size: 0.72rem; }
    .promo-actions { gap: 0.6rem; margin-top: 0.25rem; }
    .promo-actions .btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
    .promo-media { max-height: none; height: 100%; }
    .promo-arrow { width: 34px; height: 34px; font-size: 0.8rem; top: 45%; }
    .promo-prev { left: 0.25rem; }
    .promo-next { right: 0.25rem; }
    .promo-dots { bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .promo-slide,
    .promo-slide.is-active { transition: none; }
    .promo-dot::before { transition: none; }
}
