/* Reset y Variables */
:root {
    --primary-color: #1a0f0a;
    --secondary-color: #FF6B35;
    --accent-color: #F7931E;
    --accent-pink: #E91E63;
    --accent-purple: #9C27B0;
    --accent-blue: #2196F3;
    --accent-teal: #00BCD4;
    --accent-green: #4CAF50;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-light: #faf8f6;
    --bg-white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #E91E63 100%);
    --gradient-secondary: linear-gradient(135deg, #9C27B0 0%, #2196F3 50%, #00BCD4 100%);
    --bubble-bg: #ffffff;
    --bubble-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    --bubble-size: 48px;
    --bubble-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Colores cerámicos tradicionales mexicanos */
    --ceramic-azul: #003DA5;
    --ceramic-amarillo: #FFD700;
    --ceramic-verde: #2E7D32;
    --ceramic-naranja: #FF6B35;
    --ceramic-rojo: #D32F2F;
    --ceramic-rosa: #EC407A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    box-shadow: none;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-logo .logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    cursor: pointer;
}

.nav-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.navbar.scrolled .nav-logo .logo-img {
    height: 45px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: white;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Eliminar línea inferior */
.nav-link::after {
    display: none;
}

/* Hover específico por sección */
.nav-link[href="#inicio"]:hover {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.nav-link[href="#nosotros"]:hover {
    background: var(--accent-pink);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.nav-link[href="#proceso"]:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.4);
}

.nav-link[href="#galeria"]:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.nav-link[href="#clientes"]:hover {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.nav-link[href="#testimonios"]:hover {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

/* Estados activos con colores de fondo */
.nav-link.active[data-section="inicio"] {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.nav-link.active[data-section="nosotros"] {
    background: var(--accent-pink);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.nav-link.active[data-section="proceso"] {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.4);
}

.nav-link.active[data-section="galeria"] {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.nav-link.active[data-section="clientes"] {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.nav-link.active[data-section="testimonios"] {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.nav-link.active[data-section="contacto"] {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.nav-link-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link-cta:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.nav-link-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section con Video de Fondo */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.logo-watermark {
    width: 400px;
    height: auto;
    filter: brightness(1.2) contrast(0.8);
    mix-blend-mode: overlay;
}

.logo-pulse {
    animation: pulse-logo 4s ease-in-out infinite;
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.12;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.18;
    }
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Imagen de respaldo si no hay video */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darker overlay requested by user */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    /* Restore white text color */
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-small {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}

.hero-cta:hover {
    background: var(--gradient-secondary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(233, 30, 99, 0.5);
}

/* Animaciones Hero */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    text-align: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.logo-brand-header {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.logo-section-badge {
    width: 80px;
    height: auto;
    border-radius: 50%;
    padding: 10px;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.logo-section-badge:hover {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.logo-brand-accent {
    margin-bottom: 1rem;
}

.logo-accent-small {
    width: 60px;
    height: auto;
    opacity: 0.9;
    transition: var(--transition);
    cursor: pointer;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.logo-accent-small:hover {
    transform: scale(1.2) rotate(-10deg);
    opacity: 1;
}

/* About Section */
.about {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.brand-logo-float {
    position: absolute;
    top: 10%;
    right: 5%;
    z-index: 1;
    opacity: 0.05;
    pointer-events: none;
}

.floating-logo {
    width: 250px;
    height: auto;
    animation: float-rotate 20s ease-in-out infinite;
}

@keyframes float-rotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-quote {
    background: white;
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
    font-style: italic;
    font-size: 1.2rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    position: relative;
}

.about-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.about-img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.about-img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    height: 100%;
}

.about-img-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.about-img-4 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.about-img-5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.about-img-6 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    height: 200px;
}

.about-img-7 {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    height: 200px;
}

/* Features Section */
.features {
    background: white;
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2;
}

.feature-card-1 .feature-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(233, 30, 99, 0.2));
    color: var(--accent-pink);
}

.feature-card-1:hover .feature-icon {
    background: var(--accent-pink);
    color: white;
    transform: rotate(360deg) scale(1.1);
}

.feature-card-2 .feature-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.2));
    color: var(--secondary-color);
}

.feature-card-2:hover .feature-icon {
    background: var(--secondary-color);
    color: white;
    transform: rotate(360deg) scale(1.1);
}

.feature-card-3 .feature-icon {
    background: linear-gradient(135deg, rgba(247, 147, 30, 0.1), rgba(247, 147, 30, 0.2));
    color: var(--accent-color);
}

.feature-card-3:hover .feature-icon {
    background: var(--accent-color);
    color: white;
    transform: rotate(360deg) scale(1.1);
}

.feature-card-4 .feature-icon {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.2));
    color: var(--accent-blue);
}

.feature-card-4:hover .feature-icon {
    background: var(--accent-blue);
    color: white;
    transform: rotate(360deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Process Section */
.process {
    background: var(--bg-light);
}

.process-intro {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.process-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.process-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.process-intro-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.img-float {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.img-float.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.img-float.fade-in {
    opacity: 1;
    transform: scale(1);
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    flex-direction: row;
}

.timeline-item:nth-child(even) .timeline-content {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0.6;
}

/* Estado activado del marcador */
.timeline-marker.active {
    opacity: 1;
    transform: translateX(-50%) scale(1.25);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.timeline-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #bbb;
    transition: all 0.5s ease;
}

/* Colores cerámicos tradicionales mexicanos para cada paso */
.timeline-item[data-step="1"] .timeline-marker.active {
    background: var(--ceramic-azul);
    border-color: var(--ceramic-azul);
    animation: pulseColor 2s ease-in-out infinite;
}

.timeline-item[data-step="1"] .timeline-marker.active .timeline-number {
    color: white;
}

.timeline-item[data-step="2"] .timeline-marker.active {
    background: var(--ceramic-amarillo);
    border-color: var(--ceramic-amarillo);
    animation: pulseColor 2s ease-in-out infinite;
}

.timeline-item[data-step="2"] .timeline-marker.active .timeline-number {
    color: var(--primary-color);
}

.timeline-item[data-step="3"] .timeline-marker.active {
    background: var(--ceramic-verde);
    border-color: var(--ceramic-verde);
    animation: pulseColor 2s ease-in-out infinite;
}

.timeline-item[data-step="3"] .timeline-marker.active .timeline-number {
    color: white;
}

.timeline-item[data-step="4"] .timeline-marker.active {
    background: var(--ceramic-naranja);
    border-color: var(--ceramic-naranja);
    animation: pulseColor 2s ease-in-out infinite;
}

.timeline-item[data-step="4"] .timeline-marker.active .timeline-number {
    color: white;
}

.timeline-item[data-step="5"] .timeline-marker.active {
    background: var(--ceramic-rojo);
    border-color: var(--ceramic-rojo);
    animation: pulseColor 2s ease-in-out infinite;
}

.timeline-item[data-step="5"] .timeline-marker.active .timeline-number {
    color: white;
}

.timeline-item[data-step="6"] .timeline-marker.active {
    background: var(--ceramic-rosa);
    border-color: var(--ceramic-rosa);
    animation: pulseColor 2s ease-in-out infinite;
}

.timeline-item[data-step="6"] .timeline-marker.active .timeline-number {
    color: white;
}

/* Animación de pulso para los números activos */
@keyframes pulseColor {

    0%,
    100% {
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
        transform: translateX(-50%) scale(1.25);
    }

    50% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        transform: translateX(-50%) scale(1.3);
    }
}

.timeline-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.timeline-text {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.timeline-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.timeline-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.timeline-image {
    flex: 1;
}

.timeline-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Video Parallax Section */



.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 15, 10, 0.7) 0%, rgba(255, 107, 53, 0.5) 50%, rgba(233, 30, 99, 0.5) 100%);
}

.video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.video-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-content p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.video-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Gallery Section */
.gallery {
    background: white;
    overflow: hidden;
}

/* Carrusel Horizontal */
.horizontal-carousel {
    width: 100%;
    overflow: hidden;
    margin: 2rem 0;
    position: relative;
    cursor: grab;
    user-select: none;
}

.horizontal-carousel:active {
    cursor: grabbing;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav svg {
    stroke: var(--secondary-color);
}

.carousel-nav-left {
    left: 20px;
}

.carousel-nav-right {
    right: 20px;
}

@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-left {
        left: 10px;
    }

    .carousel-nav-right {
        right: 10px;
    }
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.carousel-left-to-right .carousel-track {
    animation-name: scrollLeft;
}

.carousel-right-to-left .carousel-track {
    animation-name: scrollRight;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.carousel-item {
    flex: 0 0 auto;
    width: 350px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
}

.carousel-item:hover {
    transform: translateY(-10px);
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Pausar animación al hover */
.horizontal-carousel:hover .carousel-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .carousel-item {
        width: 280px;
    }

    .carousel-item img {
        height: 320px;
    }
}

.gallery-filter {
    display: none;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    height: 350px;
    box-shadow: var(--shadow);
}

.gallery-item.hide {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
    opacity: 1;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-light);
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Google Reviews */
.google-reviews {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.google-reviews h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-name {
    font-weight: 600;
    color: var(--primary-color);
}

.review-date {
    font-size: 0.85rem;
    color: #999;
}

.review-stars {
    color: #FFD700;
    margin-bottom: 1rem;
}

.review-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(233, 30, 99, 0.9) 100%),
        url('../assets/Imagen30.png') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.05;
}

.cta-logo-watermark {
    width: 500px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.contact-icon-phone {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(233, 30, 99, 0.2));
    color: var(--accent-pink);
}

.contact-icon-phone:hover {
    background: var(--accent-pink);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.contact-icon-whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.2));
    color: #25D366;
}

.contact-icon-whatsapp:hover {
    background: #25D366;
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.contact-icon-email {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.2));
    color: var(--secondary-color);
}

.contact-icon-email:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.contact-icon-location {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.2));
    color: var(--accent-green);
}

.contact-icon-location:hover {
    background: var(--accent-green);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.contact-icon-social {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.2));
    color: var(--accent-blue);
}

.contact-icon-social:hover {
    background: var(--accent-blue);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-text a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    font-weight: 500;
}

.contact-text a:hover {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: white !important;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    /* Force reset to override .contact-text a styles */
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-username {
    font-size: 0.85rem;
    color: #444;
    font-weight: 600;
    text-align: center;
}

.social-link svg {
    flex-shrink: 0;
    filter: none;
    /* Icon is text-colored (white) via fill/stroke */
}

/* Colores específicos de redes sociales */
.social-link-facebook {
    background: linear-gradient(135deg, #1877F2, #0C63D4);
}

.social-link-instagram {
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
}

.social-link-tiktok {
    background: linear-gradient(135deg, #000000, #010101);
}

.social-link-youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
}

/* Efecto hover: solo iluminación sutil */
.social-link:hover {
    filter: brightness(1.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: none;
    /* Ensure no movement */
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2a2a2a 0%, #3f3f3f 100%);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.footer-logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(255, 107, 53, 0.3));
}

.footer-logo p {
    opacity: 0.8;
    font-style: italic;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
}

.footer-bottom a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--gradient-secondary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-lg);
}

/* Bubble Menu Styles */
.bubble-menu-nav {
    position: fixed;
    top: 2rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 999;
}

.bubble {
    width: var(--bubble-size);
    height: var(--bubble-size);
    border-radius: 50%;
    background: var(--bubble-bg);
    box-shadow: var(--bubble-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: var(--bubble-transition);
}

.bubble-logo-container {
    width: auto;
    min-height: var(--bubble-size);
    height: var(--bubble-size);
    padding: 0 1.2rem;
    border-radius: calc(var(--bubble-size) / 2);
    cursor: pointer;
}

.bubble-logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.bubble-logo-img {
    max-height: 60%;
    height: auto;
    object-fit: contain;
}

.bubble-menu-toggle {
    width: var(--bubble-size);
    height: var(--bubble-size);
    border: none;
    background: var(--bubble-bg);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: var(--bubble-transition);
}

.bubble-menu-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.bubble-menu-toggle:active {
    transform: scale(0.95);
}

.menu-line {
    width: 26px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    display: block;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-line+.menu-line {
    margin-top: 6px;
}

.bubble-menu-toggle.open .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

.bubble-menu-toggle.open .menu-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.bubble-menu-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 998;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bubble-menu-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.bubble-pills-list {
    list-style: none;
    margin: 0;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    row-gap: 1rem;
    width: 100%;
    max-width: 1400px;
    pointer-events: auto;
    justify-content: center;
}

.bubble-pill-item {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex: 0 0 calc(100% / 3);
    box-sizing: border-box;
    padding: 0 0.5rem;
}

.bubble-pill-item:nth-child(4):nth-last-child(2) {
    margin-left: calc(100% / 6);
}

.bubble-pill-link {
    width: 100%;
    min-height: 160px;
    padding: 3rem 2rem;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1;
    border-radius: 999px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border: 4px solid var(--pill-border, transparent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    will-change: transform;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
}

.bubble-pill-link.show {
    animation: bubblePop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bubblePop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.1) rotate(var(--rotation, 0deg));
    }

    100% {
        transform: scale(1) rotate(var(--rotation, 0deg));
        opacity: 1;
    }
}

@media (min-width: 900px) {
    .bubble-pill-link {
        transform: rotate(var(--rotation, 0deg)) scale(0);
    }

    .bubble-pill-link.show {
        transform: rotate(var(--rotation, 0deg)) scale(1);
    }

    .bubble-pill-link:hover {
        transform: rotate(var(--rotation, 0deg)) scale(1.06);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .bubble-pill-link:active {
        transform: rotate(var(--rotation, 0deg)) scale(0.94);
    }
}

.bubble-pill-link[data-color="orange"] {
    --pill-bg: var(--secondary-color);
    --pill-color: white;
}

.bubble-pill-link[data-color="pink"] {
    --pill-bg: var(--accent-pink);
    --pill-color: white;
}

.bubble-pill-link[data-color="gold"] {
    --pill-bg: var(--accent-color);
    --pill-color: white;
}

.bubble-pill-link[data-color="blue"] {
    --pill-bg: var(--accent-blue);
    --pill-color: white;
}

.bubble-pill-link[data-color="purple"] {
    --pill-bg: var(--accent-purple);
    --pill-color: white;
}

.bubble-pill-link:hover {
    background: var(--pill-bg, #f3f4f6);
    color: var(--pill-color, var(--primary-color));
}

.bubble-pill-label {
    display: inline-block;
    transform: translateY(24px);
    opacity: 0;
    transition: all 0.4s ease;
}

.bubble-pill-link.show .bubble-pill-label {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .about-grid {
        gap: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-watermark {
        width: 300px;
    }

    .floating-logo {
        width: 180px;
    }

    .cta-logo-watermark {
        width: 350px;
    }

    .process-timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
        transform: none;
    }

    .timeline-marker.active {
        transform: scale(1.15);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        flex-direction: column;
        padding-left: 100px;
    }

    .testimonials-carousel,
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .reviews-grid::-webkit-scrollbar {
        height: 6px;
    }

    .reviews-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .reviews-grid::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 10px;
    }

    .review-card {
        flex: 0 0 85%;
        max-width: 320px;
        scroll-snap-align: center;
        padding: 1.5rem;
        min-height: auto;
    }

    .review-card p {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 899px) {
    .bubble-menu-nav {
        padding: 0 1.5rem;
        top: 1.5rem;
    }

    .bubble-menu-overlay {
        align-items: center;
        padding: 100px 0 20px 0;
        overflow-y: auto;
    }

    .bubble-pills-list {
        flex-direction: column;
        row-gap: 0.75rem;
        padding: 0 1rem;
        max-width: 500px;
    }

    .bubble-pill-item {
        flex: 0 0 100%;
        margin-left: 0 !important;
        padding: 0;
    }

    .bubble-pill-link {
        font-size: clamp(1.4rem, 5vw, 2rem);
        padding: 1.2rem 1.5rem;
        min-height: 70px;
        border-width: 3px;
        transform: scale(0) rotate(0deg);
    }

    .bubble-pill-link.show {
        transform: scale(1) rotate(0deg);
    }

    .bubble-pill-link:hover {
        transform: scale(1.04) rotate(0deg);
    }

    .bubble-pill-link:active {
        transform: scale(0.96) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .process-intro {
        grid-template-columns: 1fr;
    }

    .timeline-text h3 {
        font-size: 1.4rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .video-content h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .logo-watermark {
        width: 250px;
    }

    .floating-logo {
        width: 120px;
    }

    .logo-section-badge {
        width: 60px;
    }

    .cta-logo-watermark {
        width: 250px;
    }

    .brand-logo-float {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (min-width: 768px) {
    :root {
        --bubble-size: 56px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-content-donramon h2::after {
        animation: none
    }
}


/* ==================================================
   ================================================== */

@media (max-width: 768px) {

    /* Galería optimizada - 2 filas con carrusel */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        grid-auto-rows: 180px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        padding: 1rem 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        grid-auto-flow: column;
        max-height: 380px;
    }

    .gallery-grid::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 10px;
    }

    .gallery-item {
        scroll-snap-align: start;
        height: 180px;
        width: 160px;
    }

    .gallery-item img {
        height: 100%;
        object-fit: cover;
    }

    /* Features layout fix - 2 columns grid */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 0;
        overflow: visible;
    }

    .features-grid::-webkit-scrollbar {
        height: 6px;
    }

    .features-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .features-grid::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 10px;
    }

    .feature-card {
        flex: 1 1 auto;
        width: 100%;
        scroll-snap-align: none;
    }


}

/* ===================================
   SECCIÓN VIDEO DON RAMÓN
   =================================== */

.video-parallax-wrapper {
    width: 100%;
}

.video-parallax {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
}

.parallax-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.video-text-section {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1810 50%, #1a0f0a 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.video-text-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, #F7931E, #FFD700, transparent);
}

.video-text-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.video-text-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
    line-height: 1.3;
}

.video-text-section p {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #f5f5f5;
    font-weight: 300;
    line-height: 1.8;
}

.video-text-section .video-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: #d4af37;
    opacity: 0.9;
    margin-top: 1.5rem;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 1024px) {
    .video-parallax {
        height: 60vh;
        min-height: 400px;
    }

    .video-text-section {
        padding: 80px 20px;
    }

    .video-text-section h2 {
        font-size: 2.8rem;
    }

    .video-text-section p {
        font-size: 1.2rem;
    }

    .video-text-section .video-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .video-parallax {
        height: 50vh;
        min-height: 350px;
    }

    .video-text-section {
        padding: 60px 20px;
    }

    .video-text-section h2 {
        font-size: 2.2rem;
    }

    .video-text-section p {
        font-size: 1.1rem;
    }

    .video-text-section .video-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-parallax {
        height: 40vh;
        min-height: 300px;
    }

    .video-text-section {
        padding: 50px 20px;
    }

    .video-text-section h2 {
        font-size: 1.8rem;
    }

    .video-text-section p {
        font-size: 1rem;
    }

    .video-text-section .video-subtitle {
        font-size: 0.95rem;
    }
}

/* ========================================
   SECCIÓN CLIENTES
   ======================================== */

.clientes {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.cliente-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.cliente-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.cliente-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cliente-item:hover img {
    transform: scale(1.05);
}

/* Responsive Clientes */
@media (max-width: 1024px) {
    .clientes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .clientes {
        padding: 80px 0;
    }

    .clientes-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        margin-bottom: 20px;
    }

    .clientes-grid::-webkit-scrollbar {
        height: 6px;
    }

    .clientes-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .clientes-grid::-webkit-scrollbar-thumb {
        background: var(--accent-green);
        border-radius: 10px;
    }

    .cliente-item {
        flex: 0 0 45%;
        max-width: 280px;
        scroll-snap-align: center;
    }

    .cliente-item img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .cliente-item {
        flex: 0 0 75%;
        max-width: 260px;
    }

    .cliente-item img {
        height: 200px;
    }
}

/* ========================================
   GALERÍA MATERIA PRIMA
   ======================================== */

.materia-prima-gallery {
    margin: 60px 0;
    padding: 0;
}

.materia-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.materia-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.materia-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.materia-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .materia-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .materia-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .materia-gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .materia-gallery-grid {
        grid-template-columns: 1fr;
    }

    .materia-gallery-item img {
        height: 250px;
    }
}

/* Overlay para nombres de clientes */
.cliente-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    padding: 20px;
    opacity: 1;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
}

.cliente-overlay h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
}

/* OCULTAR descripción en el overlay */
.cliente-overlay p {
    display: none;
}

/* Colores diferentes para cada cliente */
.cliente-item:nth-child(1):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(255, 107, 53, 0.95) 0%, rgba(255, 107, 53, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(2):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(33, 150, 243, 0.95) 0%, rgba(33, 150, 243, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(3):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(233, 30, 99, 0.95) 0%, rgba(233, 30, 99, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(4):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(156, 39, 176, 0.95) 0%, rgba(156, 39, 176, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(5):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(76, 175, 80, 0.95) 0%, rgba(76, 175, 80, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(6):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(247, 147, 30, 0.95) 0%, rgba(247, 147, 30, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(7):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(211, 47, 47, 0.95) 0%, rgba(211, 47, 47, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(8):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(0, 188, 212, 0.95) 0%, rgba(0, 188, 212, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(9):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(236, 64, 122, 0.95) 0%, rgba(236, 64, 122, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(10):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(63, 81, 181, 0.95) 0%, rgba(63, 81, 181, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(11):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(255, 193, 7, 0.95) 0%, rgba(255, 193, 7, 0.7) 70%, transparent 100%);
}

.cliente-item:nth-child(12):hover .cliente-overlay {
    background: linear-gradient(to top, rgba(46, 125, 50, 0.95) 0%, rgba(46, 125, 50, 0.7) 70%, transparent 100%);
}

.cliente-item:hover .cliente-overlay h4 {
    transform: scale(1.08);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.cliente-item {
    cursor: pointer;
}

@media (max-width: 768px) {
    .cliente-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    }

    .cliente-overlay h4 {
        font-size: 0.95rem;
    }
}

/* ========================================
   GALERÍA - COLORES DIFERENTES AL HOVER
   ======================================== */

.gallery-item:nth-child(1):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(255, 107, 53, 0.95) 0%, rgba(255, 107, 53, 0.6) 50%, transparent 100%);
}

.gallery-item:nth-child(2):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(233, 30, 99, 0.95) 0%, rgba(233, 30, 99, 0.6) 50%, transparent 100%);
}

.gallery-item:nth-child(3):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(33, 150, 243, 0.95) 0%, rgba(33, 150, 243, 0.6) 50%, transparent 100%);
}

.gallery-item:nth-child(4):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(156, 39, 176, 0.95) 0%, rgba(156, 39, 176, 0.6) 50%, transparent 100%);
}

.gallery-item:nth-child(5):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(76, 175, 80, 0.95) 0%, rgba(76, 175, 80, 0.6) 50%, transparent 100%);
}

.gallery-item:nth-child(6):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(247, 147, 30, 0.95) 0%, rgba(247, 147, 30, 0.6) 50%, transparent 100%);
}

.gallery-item:nth-child(7):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(211, 47, 47, 0.95) 0%, rgba(211, 47, 47, 0.6) 50%, transparent 100%);
}

.gallery-item:nth-child(8):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(0, 188, 212, 0.95) 0%, rgba(0, 188, 212, 0.6) 50%, transparent 100%);
}

.gallery-item:nth-child(9):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(236, 64, 122, 0.95) 0%, rgba(236, 64, 122, 0.6) 50%, transparent 100%);
}

.gallery-item:nth-child(10):hover .gallery-overlay {
    background: linear-gradient(to top, rgba(63, 81, 181, 0.95) 0%, rgba(63, 81, 181, 0.6) 50%, transparent 100%);
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(-5px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========================================
   LIGHTBOX - MODAL PARA IMÁGENES
   ======================================== */

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lightbox-info p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--secondary-color);
    color: white;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-image {
        max-height: 60vh;
    }

    .lightbox-info {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .lightbox-info h3 {
        font-size: 1.5rem;
    }

    .lightbox-info p {
        font-size: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }
}

/* ========================================
   MENÚ ADAPTATIVO - MÓVIL Y DESKTOP
   ======================================== */

/* Mostrar navbar en desktop, ocultar en móvil */
@media (min-width: 900px) {
    .navbar {
        display: block !important;
    }

    .bubble-menu-nav {
        display: none !important;
    }
}

@media (max-width: 899px) {
    .navbar {
        display: none !important;
    }
}

/* ========================================
   VERSIÓN MÓVIL - BUBBLE MENU
   ======================================== */
@media (max-width: 899px) {

    /* Mantener el bubble menu en móvil */
    .bubble-menu-nav {
        display: flex;
    }

    .desktop-nav {
        display: none !important;
    }
}

/* ========================================
   VERSIÓN DESKTOP - MENÚ HORIZONTAL
   ======================================== */
@media (min-width: 900px) {

    /* Ocultar bubble menu en desktop */
    .bubble-menu-nav {
        display: none !important;
    }

    .bubble-menu-overlay {
        display: none !important;
    }

    /* Ocultar el menú dinámico ya que usamos navbar */
    .desktop-nav {
        display: none !important;
    }
}

/* ========================================
   SCROLL BEHAVIOR - Menú siempre visible
   ======================================== */
@media (min-width: 900px) {
    .desktop-nav {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ========================================
   FIX CRÍTICO: GALERÍA VISIBLE
   ======================================== */

.gallery {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    visibility: visible !important;
}

.gallery-item {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    height: 350px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Forzar que scroll-reveal no oculte la galería */
.gallery .scroll-reveal,
.gallery-item.scroll-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.gallery-item.scroll-reveal.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ========================================
   COLORES DE SECCIÓN ACTIVA EN NAVBAR
   ======================================== */

.nav-link {
    transition: all 0.3s ease;
}

/* ========================================
   CARRUSEL MATERIA PRIMA CON TRIÁNGULOS
   ======================================== */

.materia-prima-carousel {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.carousel-main-image {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
}

.carousel-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.carousel-triangle-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.triangle-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    position: relative;
}

.triangle-btn svg {
    width: 100%;
    height: 100%;
}

.triangle-btn polygon {
    fill: #D1D5DB;
    transition: all 0.3s ease;
}

.triangle-btn:hover polygon {
    fill: var(--secondary-color);
    transform: scale(1.1);
}

.triangle-btn.active polygon {
    fill: var(--secondary-color);
    transform: scale(1.2);
}

.triangle-btn:hover {
    transform: translateY(-5px);
}

.triangle-btn.active {
    transform: translateY(-8px);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-main-image {
        height: 350px;
    }

    .triangle-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-triangle-nav {
        gap: 1rem;
    }
}

/* ========================================
   CARRUSEL CON CÍRCULOS DE COLORES
   ======================================== */

.process-intro-image {
    position: relative;
}

.carousel-circle-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.circle-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.circle-btn:hover {
    transform: scale(1.3);
}

.circle-btn.active {
    transform: scale(1.5);
}

/* Colores específicos por botón */
.circle-btn[data-color="naranja"] {
    background: #D1D5DB;
}

.circle-btn[data-color="naranja"]:hover,
.circle-btn[data-color="naranja"].active {
    background: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

.circle-btn[data-color="rosa"] {
    background: #D1D5DB;
}

.circle-btn[data-color="rosa"]:hover,
.circle-btn[data-color="rosa"].active {
    background: var(--accent-pink);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.6);
}

.circle-btn[data-color="amarillo"] {
    background: #D1D5DB;
}

.circle-btn[data-color="amarillo"]:hover,
.circle-btn[data-color="amarillo"].active {
    background: var(--accent-color);
    box-shadow: 0 0 15px rgba(247, 147, 30, 0.6);
}

.circle-btn[data-color="azul"] {
    background: #D1D5DB;
}

.circle-btn[data-color="azul"]:hover,
.circle-btn[data-color="azul"].active {
    background: var(--accent-blue);
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.6);
}

.circle-btn[data-color="verde"] {
    background: #D1D5DB;
}

.circle-btn[data-color="verde"]:hover,
.circle-btn[data-color="verde"].active {
    background: var(--accent-green);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

@media (max-width: 768px) {
    .carousel-circle-nav {
        gap: 1rem;
    }

    .circle-btn {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   MEJORAS PARA GALERÍA Y FILTRADO
   ======================================== */

.gallery-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-caption h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

/* Botón Ver Todo */
.view-all-btn {
    margin: 2rem auto;
    display: block;
    padding: 1rem 3rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 1400px;
    width: 100%;
    position: relative;
    margin: 2rem auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.modal-container h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.modal-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-gallery-item:hover {
    transform: translateY(-10px);
}

.modal-gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
}

.modal-gallery-caption {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

@media (max-width: 768px) {
    .modal-container {
        padding: 2rem 1rem;
    }

    .modal-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .modal-gallery-item img {
        height: 280px;
    }
}

/* Sección de Valores */
.valores-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8e0 100%);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.valor-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.valor-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.5rem;
}

.valor-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.valor-card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}