/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6b0000; /* Vino Tinto */
    --secondary-color: #d4af37; /* Dorado Metálico */
    --accent-color: #c5a059;
    --text-color: #2c2c2c;
    --light-bg: #fdfaf5; /* Beige Minimalista */
    --plateado: #e0e0e0;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Swiper Overrides */
.swiper-button-next, .swiper-button-prev {
    color: var(--secondary-color) !important;
    z-index: 100;
    background: rgba(0,0,0,0.5); /* Fondo oscuro para contraste */
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
    transition: var(--transition);
    top: 50% !important;
    transform: translateY(-50%);
}

.swiper-button-next { right: 15px !important; }
.swiper-button-prev { left: 15px !important; }

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1rem !important;
    font-weight: bold;
}



.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

.venta-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.venta-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--light-bg);
    scroll-behavior: smooth;
    letter-spacing: 0.5px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--light-bg);
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    margin: 15px auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.rounded { border-radius: 4px; }
.img-fluid { width: 100%; height: auto; object-fit: cover; }
img, video, canvas { max-width: 100%; height: auto; }

/* Botones Universales */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn.small {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* Header y Navegación */
header {
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--plateado);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.nav-logo {
    height: 50px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition);
    letter-spacing: 1.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--text-color);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu a:hover, .dropdown-menu a.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    padding-left: 30px;
}

/* Page Header (Subpáginas) */
.page-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.page-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.brand-logo-header {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    animation: scaleIn 0.8s ease;
}

.page-header h2 {
    font-size: 4rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.page-header p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Welding Animation v2 (Fragmented Logo) */
#welding-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#sparks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.welding-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#logo-assembly-container {
    position: relative;
    width: 100px; /* Tamaño moneda */
    height: 100px;
    perspective: 1200px;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    #logo-assembly-container {
        width: 80px; /* 20% más pequeño en móvil */
        height: 80px;
    }
}

#welding-logo-png {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.welding-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 5vw, 3.5rem);
    color: var(--secondary-color);
    letter-spacing: 10px;
    margin: 0;
    padding: 0 20px;
    font-weight: 700;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .welding-title {
        font-size: 1.2rem; /* Tamaño fijo para control total */
        letter-spacing: 4px; /* Reducción de espacio para que quepa */
        padding: 0 10px;
    }
}


.building-text {
    color: #444;
    margin-top: 15px;
    font-size: 0.7rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 0;
}

#skip-intro {
    position: absolute;
    bottom: 40px;
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    z-index: 20;
}

#skip-intro:hover {
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Slider Section (Home) */
.slider-container {
    position: relative;
    height: 85vh;
    overflow: hidden;
    background: var(--primary-color);
}

.slider {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-content {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 100;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.slider-controls .prev { left: 30px; }
.slider-controls .next { right: 30px; }

/* About Section Redesign */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 120px 0;
    align-items: center;
}

/* Video Components */
.video-section {
    padding: 100px 0;
    background: #050000;
    color: var(--white);
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.video-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: block;
}

.video-card h4 {
    padding: 20px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-align: left;
    margin: 0;
}

/* Event Timeline (Fumexpo) */
.fumexpo-event-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    margin: 40px auto 80px auto;
    padding: 60px 40px !important;
}

.event-timeline-container {
    position: relative;
    padding: 20px 0 50px 0;
}

.fumexpo-swiper {
    width: 100%;
    padding-bottom: 50px !important;
}

.timeline-img-box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 3px solid var(--white);
    aspect-ratio: 4/3;
}

.timeline-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-img-box:hover img {
    transform: scale(1.05);
}

/* Value Boxes */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 80px 0;
}

.value-item {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-text h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text hr {
    width: 60px;
    border: none;
    border-top: 3px solid var(--secondary-color);
    margin: 0 0 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
}

.about-img-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.about-img-container:hover img {
    transform: scale(1.05);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.about-img img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.about-img img:hover {
    transform: translateY(-10px);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-chip {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--plateado);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.filter-chip.active, .filter-chip:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
    gap: 15px;
    padding: 20px 0;
}

.bento-item {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 2px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.bento-item:hover {
    border-color: var(--secondary-color);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.bento-item:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-overlay h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bento-overlay span {
    color: var(--white);
    font-size: 0.7rem;
    border-bottom: 1px solid var(--secondary-color);
}

/* Rejilla asimétrica */
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-large { grid-column: span 2; grid-row: span 2; }

@media screen and (max-width: 1200px) {
    .bento-grid { grid-template-columns: repeat(4, 1fr); }
}

@media screen and (max-width: 768px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .bento-large, .bento-wide { grid-column: span 2; }
    .slider-controls .prev { left: 15px; }
    .slider-controls .next { right: 15px; }
}

@media screen and (max-width: 480px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide, .bento-tall { grid-column: span 1; grid-row: span 1; }
}

/* Contact Page Redesign */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3, .contact-form-large h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.contact-info p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    width: 25px;
}

.contact-map {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--plateado);
    height: 300px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
}

.contact-form-large {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Boutique Store Styles (Venta) */
.venta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.product-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.product-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-specs {
    list-style: none;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-specs li {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-specs li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.product-price-box {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.consult-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
    text-align: center;
}

.consult-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* News & Updates Styles (Eventos) */
.news-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    margin-bottom: 80px;
}

.news-hero-img {
    height: 100%;
    min-height: 450px;
    overflow: hidden;
}

.news-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.news-hero:hover .news-hero-img img {
    transform: scale(1.05);
}

.news-hero-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: inline-block;
}

.news-hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 100px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.news-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-card-content {
    padding: 30px;
    flex: 1;
}

.news-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-card-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Brands Carousel (Home) */
.brands-preview {
    padding: 80px 0;
    background: #fcfcfc;
}

.brands-swiper {
    padding: 20px 0;
}

.brands-swiper .swiper-wrapper {
    transition-timing-function: linear !important; /* Movimiento fluido */
}

.brands-swiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

.brand-item {
    display: block;
    width: 150px;
    height: 100px;
    transition: var(--transition);
}

.brand-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* IA Console & Memory Styles */
.ai-dashboard.chat-mode {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    padding: 0;
}

.chat-interface {
    display: flex;
    flex-direction: column;
    background: #111;
    border-right: 1px solid rgba(255,255,255,0.1);
    height: 600px;
    padding: 20px;
}

.chat-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Scrollbar para chat */
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.chat-message {
    display: flex;
    gap: 15px;
    max-width: 90%;
    animation: fadeIn 0.3s ease;
}

.chat-message.ai {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-message.ai .msg-avatar { background: var(--secondary-color); color: #000; }
.chat-message.user .msg-avatar { background: var(--primary-color); color: #fff; }

.msg-content {
    background: #222;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #eee;
}

.chat-message.user .msg-content {
    background: #333;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 30px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.chat-attach-btn, .chat-send-btn {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.chat-attach-btn:hover, .chat-send-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.chat-send-btn { color: #888; }
.chat-send-btn.active { color: var(--primary-color); }

#chat-text-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 5px;
    outline: none;
}

.user-uploaded-img {
    max-width: 200px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    margin-top: 10px;
}

/* Canvas Container Update */
.ai-dashboard.chat-mode .ai-canvas-container {
    border: none;
    border-radius: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.memory-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.memory-item {
    min-width: 250px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid var(--plateado);
}

.memory-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.memory-item p {
    padding: 15px;
    font-size: 0.8rem;
    color: #444;
    margin: 0;
    font-style: italic;
    border-top: 1px solid #eee;
}

/* Footer */
footer {
    background: #2a0000; /* Vino Tinto más profundo */
    color: #d1d1d1;
    padding: 100px 0 0;
    border-top: 3px solid var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--secondary-color);
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.footer-brands-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.footer-brands-mini img {
    width: 100%;
    filter: grayscale(1) invert(1);
    opacity: 0.5;
    transition: var(--transition);
}

.footer-brands-mini img:hover {
    filter: grayscale(0) invert(0);
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-socials {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-socials a:hover {
    background: var(--secondary-color);
    color: #2a0000;
    transform: translateY(-5px);
}

.footer-bottom {
    background: #1a0000;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #888;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.float-btn span {
    position: absolute;
    right: 75px;
    background: rgba(0,0,0,0.85);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    color: var(--white);
}

.float-btn:hover span { opacity: 1; }
.float-btn:hover { transform: scale(1.15); }
.whatsapp-btn { background-color: #25d366; }
.quote-btn { background-color: var(--primary-color); }

/* Gallery Page Detail */
.gallery-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery-grid-detail .gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-grid-detail .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-grid-detail .gallery-item:hover img {
    transform: scale(1.05);
}

/* Modal Gallery (Venta) */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    animation: fadeScale 0.4s;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover { color: var(--secondary-color); }

.modal-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px;
}

.modal-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border: 1px solid transparent;
}

.modal-thumb:hover, .modal-thumb.active {
    opacity: 1;
    border-color: var(--secondary-color);
}

/* Simulator Section (Servicios) */
.simulator-section {
    padding: 100px 0;
    background: var(--white);
    border-top: 1px solid var(--plateado);
}

/* AI Dashboard (Simulador) */
.ai-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--white);
    padding: 40px;
    margin: 60px 0;
}

.ai-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ai-controls h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-upload-area {
    border: 2px dashed rgba(212, 175, 55, 0.5);
    padding: 40px 20px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
}

.ai-upload-area:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--secondary-color);
}

.ai-upload-area i {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.ai-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-btn {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ai-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.ai-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-canvas-container {
    background: #000;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

#ai-canvas {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.ai-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--secondary-color);
}

.ai-spinner {
    font-size: 3rem;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-color);
    opacity: 0;
    z-index: 10;
}

@media screen and (max-width: 992px) {
    .ai-dashboard {
        grid-template-columns: 1fr;
    }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Specific reveal directions */
.reveal-left { transform: translateX(-50px); opacity: 0; transition: all 1s ease; }
.reveal-right { transform: translateX(50px); opacity: 0; transition: all 1s ease; }
.reveal-left.active, .reveal-right.active { transform: translateX(0); opacity: 1; }

.service-card.active, .venta-card.active, .gallery-card.active {
    animation: fadeScale 0.8s ease forwards;
}

/* Responsive */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--primary-color); margin: 5px; transition: all 0.3s ease; }

@media screen and (max-width: 992px) {
    .about, .services-detail .service-item, .event-featured, .contact-page .contact-wrapper, .news-hero {
        grid-template-columns: 1fr;
    }
    .hero-content h2 { font-size: 2.5rem; }
    .page-header h2 { font-size: 2.2rem; }
    .section-title { font-size: 2.5rem; }
}

@media screen and (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    nav {
        display: flex;
        justify-content: center; /* Centra el logo */
        align-items: center;
        position: relative;
        height: 60px;
    }

    .logo a {
        gap: 8px;
    }

    .nav-logo {
        height: 35px;
    }

    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .nav-links {
        position: fixed;
        left: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: 80%;
        padding-left: 40px;
        transform: translateX(-100%);
        transition: transform 0.5s ease-in;
        z-index: 2000; /* Por encima de todo */
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        visibility: hidden;
    }

    .burger {
        display: block;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2001;
        cursor: pointer;
    }

    .brands-preview-grid, .past-events .events-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .float-btn span { display: none; }
    .section-title { font-size: 2rem; }
}

@media screen and (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .logo-text { font-size: 0.9rem; }
}

.nav-active { visibility: visible; transform: translateX(0%); }

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0px); }
}

.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
