/* VARIABLES & RESET */
:root {
    --primary-dark: #1a1a1d;
    /* Negro Industrial */
    --secondary-dark: #2c2c2e;
    /* Gris Antracita */
    --accent-orange: #ff6b00;
    /* Naranja Seguridad */
    --accent-blue: #007bff;
    /* Azul Confianza */
    --text-light: #f5f5f5;
    --text-grey: #a0a0a0;
    --font-heading: 'Audiowide', cursive;
    /* Nueva Tipo Tecnológica */
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* HEADER LANGUAGE SELECTOR */
.header-lang-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

.header-lang-selector .lang-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.header-lang-selector .lang-link:hover {
    color: #fff;
    border-color: var(--accent-orange);
    background: rgba(255, 107, 0, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.header-lang-selector .lang-link.active {
    color: #fff;
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

@media (max-width: 768px) {
    .header-lang-selector {
        display: none;
        /* Hidden on desktop view in mobile, handled by mobile-lang-selector */
    }
}

/* HEADER */
.main-header {
    background-color: rgba(26, 26, 29, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Efecto rebote suave */
}

/* Animación Logo Hover */
.logo:hover {
    transform: scale(1.05);
    /* Pequeño zoom general */
}

.logo:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.6));
    /* Resplandor naranja en SVG */
    transform: rotate(5deg);
    /* Rotación sutil del icono */
    transition: transform 0.4s ease, filter 0.3s ease;
}

.logo:hover span {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    /* Brillo en texto */
}

.logo svg {
    transition: transform 0.4s ease, filter 0.3s ease;
}

.logo .icon-grid {
    color: var(--accent-orange);
    margin-right: 10px;
    font-size: 1.4em;
}

.logo .highlight {
    color: var(--text-grey);
}

/* DESKTOP NAV */
.main-nav {
    margin-right: auto;
    /* Push navigation to the right if needed, but flex-between handles it */
    margin-left: 60px;
    /* Minimum spacing between logo and menu */
}

.main-nav ul {
    display: flex;
    gap: 40px;
    /* Increased from 30px for better breathing room */
    align-items: center;
    list-style: none;
}

/* ANIMACIÓN MENÚ IMPACTANTE */
.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 12px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Efecto Fondo Deslizante (Hover) */
.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-orange);
    transform: skewX(-20deg);
    /* Inclinación dinámica */
    transform-origin: left;
    transition: width 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
    z-index: -1;
    opacity: 0;
}

.main-nav a:hover::before,
.main-nav a.active::before {
    width: 100%;
    opacity: 1;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Eliminamos el subrayado antiguo */
.main-nav a::after {
    display: none;
}

/* Highlighted Nav Item (Blog) - Fix for hover contrast */
.main-nav a.nav-highlight {
    color: var(--accent-orange);
}

/* Placeholder color for form inputs */
.form-group input::placeholder {
    color: #999;
}

/* Form footer styles */
.form-footer {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 15px;
    text-align: left;
    font-style: italic;
}

.main-nav a.nav-highlight:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    /* Enhance readability */
}

.btn-cta {
    background-color: var(--accent-orange);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    font-weight: bold;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-cta::after {
    display: none;
    /* No underline for button */
}

/* Fix for weird background effect */
.main-nav .btn-cta::before {
    display: none;
    content: none;
}

.btn-cta:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

/* Hide mobile language selector on desktop */
.mobile-lang-selector {
    display: none;
}

/* MOBILE NAV PANEL */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #1a1a1d;
        padding: 80px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .main-nav a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #333;
    }

    .main-nav a::after {
        display: none;
        /* Simplificar efecto en móvil */
    }

    .btn-cta {
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }

    /* Mobile Language Selector */
    .mobile-lang-selector {
        display: flex !important;
        gap: 10px;
        padding-top: 20px;
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .mobile-lang-selector .lang-link {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .mobile-lang-selector .lang-link:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .mobile-lang-selector .lang-link.active {
        background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
        border-color: #ff6b00;
        color: #fff;
        font-weight: 600;
        box-shadow: 0 0 15px rgba(255, 107, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
    }

    .mobile-lang-selector .lang-link.active::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transform: rotate(45deg);
        animation: shine 3s infinite;
    }

    @keyframes shine {
        0% {
            transform: translateX(-100%) translateY(-100%) rotate(45deg);
        }

        100% {
            transform: translateX(100%) translateY(100%) rotate(45deg);
        }
    }
}

/* HERO SECTION (Fusión) */
.hero {
    height: 85vh;
    /* Quitamos el background de imagen para poner el video */
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 1. Fondo de Video/Imagen con Animación */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.75;
    /* Más visible - aumentado de 0.6 a 0.75 */
    animation: kenBurnsZoom 20s ease-in-out infinite alternate;
    /* Animación de zoom suave */
}

/* Animación Ken Burns - Zoom lento y suave */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
        /* Zoom del 10% */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente ajustado para mejor visibilidad de la imagen */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Encima de video y overlay */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 50px;
}

/* HERO TEXT */
.text-col {
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.text-orange {
    color: var(--accent-orange);
}

.text-blue {
    color: var(--accent-blue);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-grey);
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-orange);
    padding-left: 20px;
}

/* HERO BUTTONS */
.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    /* Alineación vertical */
}

.btn-primary {
    background-color: var(--accent-orange);
    /* Cambio a naranja para destacar más */
    padding: 15px 35px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    white-space: nowrap;
    /* Evita que el texto y flecha bajen de línea */
    display: inline-flex;
    /* Para alinear icono y texto */
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Rebote suave */
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphism sutil */
    padding: 15px 35px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    /* Salto y ligero zoom */
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.5);
    background-color: #ff7b1a;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* HERO FORM CARD */
.hero-form-card {
    background: rgba(44, 44, 46, 0.95);
    padding: 30px;
    border-radius: 8px;
    border-top: 5px solid var(--accent-blue);
    width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    /* Más espacio interior */
    background: #1a1a1d;
    border: 1px solid #555;
    /* Borde un poco más visible */
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    /* Letra más grande (aprox 17-18px) */
    appearance: none;
    /* Elimina estilos por defecto del navegador para uniformidad */
}

/* Estilo específico para las opciones del desplegable */
.form-group select option {
    background: #1a1a1d;
    color: #fff;
    padding: 10px;
    font-size: 1.1rem;
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #ff8533;
}

/* SECTIONS */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    margin: 10px auto 0;
}

.text-left {
    text-align: left;
}

.text-left::after {
    margin: 10px 0 0;
}

.products-section {
    padding: 80px 0;
    background-color: var(--secondary-dark);
}

/* GRID 4 COLUMNAS (Original) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* GRID 2 COLUMNAS (Nuevo) */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
}

/* TARJETA APAISADA (Landscape) */
.card-landscape {
    height: 300px !important;
    /* Forzar altura menor */
}

.card-landscape .card-icon {
    font-size: 2.5rem;
    /* Icono ajustado */
    margin-bottom: 10px;
}

/* TARJETAS DARK SPARK (Estilo Chispas/Industrial) */
.dark-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #333;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4));
    z-index: 1;
    transition: background 0.3s ease;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Texto abajo */
    padding: 30px;
    color: #fff;
    transform: translateY(20px);
    /* Texto ligeramente hundido */
    transition: transform 0.4s ease;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    opacity: 0.8;
    transition: all 0.4s ease;
    transform: translateY(0);
}

.dark-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.dark-card p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
    opacity: 0;
    /* Oculto al principio */
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.btn-link {
    font-weight: bold;
    color: var(--accent-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* HOVER EFFECTS: LA MAGIA */
.dark-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 107, 0, 0.2);
    /* Resplandor naranja */
    border-color: var(--accent-orange);
}

.dark-card:hover .card-bg {
    transform: scale(1.1);
    /* Zoom de fondo */
}

.dark-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(255, 107, 0, 0.1));
    /* Tinte naranja sutil */
}

.dark-card:hover .card-content {
    transform: translateY(-10px);
    /* Sube el contenido */
}

.dark-card:hover .card-icon {
    transform: translateY(-10px) scale(1.1);
    color: #fff;
    text-shadow: 0 0 15px var(--accent-orange);
    /* Icono al estilo chispa */
    opacity: 1;
}

.dark-card:hover p,
.dark-card:hover .btn-link {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* PRODUCT CARDS (Estilo Industrial) */
.product-card {
    background-color: var(--primary-dark);
    border: 1px solid #333;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
}

.card-img {
    height: 250px;
    background-color: #000;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--accent-orange);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.card-content i {
    color: var(--accent-orange);
    margin-right: 10px;
}

.card-content p {
    color: var(--text-grey);
    font-size: 0.95rem;
}

/* INSTAGRAM SECTION */
.instagram-section {
    padding: 80px 0;
    background-color: #000;
}

.insta-header {
    margin-bottom: 40px;
}

.btn-insta {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.insta-item {
    height: 250px;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #333;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.insta-item:hover {
    background-color: #333;
    color: #555;
}

/* FOOTER */
.main-footer {
    padding: 30px 0;
    background-color: #111;
    text-align: center;
    border-top: 1px solid #333;
    color: var(--text-grey);
    font-size: 0.9rem;
}

/* --- ANIMACIONES Y EFECTOS VISUALES (AGREGADO) --- */

/* 2. Botón WhatsApp Flotante con Latido */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 20px;
    /* Cambiado a la izquierda */
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: 0.3s;
    text-decoration: none;
    /* Fix para no heredar subrauado */
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #fff;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 20px;
    /* A la derecha */
    width: 60px;
    /* Mismo tamaño que whatsapp para simetría */
    height: 60px;
    background-color: transparent;
    /* Transparente con borde */
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-orange);
    color: #fff;
    /* Invertir colores al hover */
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
    /* Brillo neón intenso */
}

.back-to-top:hover i {
    animation: arrow-bounce 0.8s infinite;
}

/* Button Back To Top Animation */
@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* SECTION DONDE ESTAMOS */
.location-section {
    padding: 80px 0;
    background-color: #1a1a1d;
    /* Slightly lighter than main bg */
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-info h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.location-info .address {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.location-info .address i {
    color: var(--accent-orange);
    margin-top: 5px;
}

.directions-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-left: 4px solid var(--accent-orange);
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.directions-box h4 {
    color: var(--accent-orange);
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.directions-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    filter: grayscale(100%) invert(92%) contrast(83%);
    /* Map Dark Mode Hack */
    transition: filter 0.3s ease;
    border: 2px solid #333;
}

.location-map iframe:hover {
    filter: none;
    /* Show colors on hover */
    border-color: var(--accent-orange);
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-map iframe {
        height: 300px;
    }
}

/* 3. Logo Interactivo (Efecto Reja) */
.logo:hover .icon-grid {
    display: inline-block;
    animation: grid-shake 0.5s ease-in-out;
    color: var(--text-light);
    /* Cambio de color al pasar */
}

@keyframes grid-shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* 4. Botones "Vivos" (Shine Effect) */
.btn-primary,
.btn-cta,
.btn-submit {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after,
.btn-cta::after,
.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after,
.btn-cta:hover::after,
.btn-submit:hover::after {
    left: 100%;
}

/* Efecto Lift */
.btn-primary:hover,
.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.4);
    /* Sombra naranja */
}

/* SECCIÓN INSTAGRAM (Dinámica) */
.instagram-section {
    padding: 80px 0;
    background-color: #000;
}

.insta-header {
    margin-bottom: 40px;
}

.btn-insta {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
}

.btn-insta:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columnas en escritorio */
    gap: 5px;
    /* Separación mínima estilo feed */
}

.insta-item {
    position: relative;
    aspect-ratio: 1 / 1;
    /* Cuadrado perfecto */
    overflow: hidden;
    cursor: pointer;
    background-color: #222;
    /* Placeholder color */
}

.insta-item:hover .insta-bg {
    transform: scale(1.1);
    /* Zoom in */
    filter: brightness(0.6);
    /* Oscurecer */
}

.insta-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.insta-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    /* Oculto por defecto */
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    pointer-events: none;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-stats {
    display: flex;
    gap: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.insta-stats i {
    margin-right: 5px;
}

@media (max-width: 992px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .insta-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .insta-item {
        aspect-ratio: 4/3;
        border-radius: 8px;
    }
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 400px;
    background: rgba(26, 26, 29, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-orange);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner h4 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-cookie-accept {
    background: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-cookie-accept:hover {
    background: #ff8533;
    transform: translateY(-2px);
}

.btn-cookie-settings {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-cookie-settings:hover {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 576px) {
    .cookie-banner {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
}

/* PÁGINA DE BLOG */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/archive/Fondo3.webp');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
    margin-bottom: 60px;
    border-bottom: 4px solid var(--accent-orange);
}

.blog-header h1 {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.blog-card {
    background: #222;
    /* Dark Mode */
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
    /* Sello Dark Spark */
    border-color: var(--accent-orange);
}

.blog-card-img {
    height: 220px;
    background-color: #1a1a1d;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #333;
}

.blog-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.3;
}

.blog-card p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-orange);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: auto;
    /* Push to bottom */
}

.read-more:hover {
    color: #fff;
    transform: translateX(5px);
}

/* --- Botones de Contacto con Vida --- */
.contact-buttons-grid {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
}

.btn-live:hover {
    cursor: pointer;
    filter: brightness(1.1);
}

.btn-live i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Llamar - Pulse Animation */
.btn-call {
    background: linear-gradient(135deg, #007bff, #0056b3);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Email - Hover Glow */
.btn-email {
    background: linear-gradient(135deg, #ff6b00, #e65100);
}

.btn-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.4);
}

/* WhatsApp - Shake/Pulse */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-buttons-grid {
        flex-direction: column;
        width: 100%;
    }

    .btn-live {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Scroll fix for contact anchor */
#contacto {
    scroll-margin-top: 150px;
}

/* ========================================
   MOBILE RESPONSIVE FIXES
   ======================================== */

/* Tablet and Mobile - 768px and below */
@media (max-width: 768px) {
    .top-bar .flex-between {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .contact-info {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-info a,
    .contact-info span {
        margin-right: 0;
        font-size: 0.75rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo svg {
        width: 35px !important;
        height: 35px !important;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .text-col {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .hero-form-card {
        width: 100% !important;
        max-width: 100%;
        padding: 25px 20px;
    }

    .hero-form-card h3 {
        font-size: 1.4rem;
    }

    .form-group input,
    .form-group select {
        font-size: 1rem;
        padding: 12px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .logo svg {
        width: 30px !important;
        height: 30px !important;
    }

    .top-bar {
        font-size: 0.7rem;
    }

    .contact-info a,
    .contact-info span {
        font-size: 0.7rem;
    }

    .hero-form-card {
        padding: 20px 15px;
    }

    .hero-form-card h3 {
        font-size: 1.2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 12px;
    }
}

/* ADDITIONAL RESPONSIVE FIXES FOR MOBILE */
@media (max-width: 400px) {
    .logo {
        font-size: 0.9rem !important;
    }

    .logo svg {
        width: 25px !important;
        height: 25px !important;
        margin-right: 5px !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .card-landscape {
        height: 250px !important;
    }

    .whatsapp-float,
    .back-to-top {
        width: 50px !important;
        height: 50px !important;
        font-size: 25px !important;
        bottom: 15px !important;
    }

    .whatsapp-float {
        left: 15px !important;
    }

    .back-to-top {
        right: 15px !important;
    }
}

/* Fix global overflow sources */
html,
body {
    overflow-x: clip !important;
}

.hero-content,
.grid-2-cols,
.location-grid,
.footer-grid,
.product-card {
    max-width: 100% !important;
}

/* --- Automated Instagram Feed --- */
#insta-feed-container {
    width: 100%;
    min-height: 400px;
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.insta-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    color: #888;
    border-radius: 12px;
    text-align: center;
}

.insta-placeholder i {
    color: var(--accent-orange);
    margin-bottom: 15px;
}

#insta-feed-container iframe {
    width: 100% !important;
    border: none !important;
    border-radius: 12px;
}

/* FEATURED STAR PRODUCT */
.featured-card {
    grid-column: span 2;
    height: 450px !important;
    border: 2px solid var(--accent-orange);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: attr(data-badge);
    position: absolute;
    top: 45px;
    right: -95px;
    background: var(--accent-orange);
    color: #fff;
    padding: 8px 0;
    width: 320px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 0.7rem;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.featured-card:hover {
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.6);
    transform: translateY(-15px) scale(1.01);
}

@media (max-width: 992px) {
    .featured-card {
        grid-column: span 1;
    }
}

/* TOP SALES BADGE */
.top-sales-badge {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    text-transform: uppercase;
}

/* REDESIGN ENHANCEMENTS */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1.2s ease-out;
}

.hero-form-card {
    border: 2px solid var(--accent-orange);
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sales Focus: Pulse on CTAs */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 120%;
}