/* === VARIABLES Y RESET === */
:root {
    --primary-color: #3a9952;
    --primary-dark: #2a7841;
    --primary-light: #4caf50;
    --secondary-color: #ff8a00;
    --secondary-dark: #e67a00;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f9f9f9;
    --white: #ffffff;
    --black: #222222;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    --font-main: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-light);
    overflow-x: hidden;
    width: 100%;
}

/* Personalizar scrollbar para navegadores webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    overflow-x: hidden;
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 var(--space-sm);
    }
    
    :root {
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
    }
}

/* === LOADER ANIMADO === */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    text-align: center;
    animation: pulse 2s infinite;
}

.loader h2 {
    font-size: 2.5rem;
    margin-top: var(--space-md);
    color: var(--primary-color);
    letter-spacing: 2px;
}

.plus-symbol {
    color: var(--secondary-color);
    font-weight: 900;
}

.plant-animation {
    position: relative;
    width: 120px;
    height: 150px;
    margin: 0 auto var(--space-md);
}

.soil {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, #a67c52, #8c6239);
    border-radius: 0 0 50% 50%;
}

.stem {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 0;
    background-color: var(--primary-color);
    animation: grow-stem 2s forwards ease-out;
}

.leaf {
    position: absolute;
    width: 30px;
    height: 20px;
    background-color: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    transform-origin: center bottom;
}

.leaf-left {
    left: 30px;
    top: 60px;
    transform: rotate(-45deg) scale(0);
    animation: grow-leaf-left 1s 1s forwards ease-out;
}

.leaf-right {
    right: 30px;
    top: 80px;
    transform: rotate(45deg) scale(0);
    animation: grow-leaf-right 1s 1.5s forwards ease-out;
}

.flower {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 0 10px rgba(255, 138, 0, 0.5);
    animation: bloom 1s 2s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes grow-stem {
    0% { height: 0; }
    100% { height: 80px; }
}

@keyframes grow-leaf-left {
    0% { opacity: 0; transform: rotate(-45deg) scale(0); }
    100% { opacity: 1; transform: rotate(-45deg) scale(1); }
}

@keyframes grow-leaf-right {
    0% { opacity: 0; transform: rotate(45deg) scale(0); }
    100% { opacity: 1; transform: rotate(45deg) scale(1); }
}

@keyframes bloom {
    0% { transform: translateX(-50%) scale(0); }
    50% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    width: 100%;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -2;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease, transform 8s ease;
    transform: translateZ(-1px) scale(1.1);
}

.slider-image.active {
    opacity: 1;
    transform: translateZ(-1px) scale(1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(27, 94, 32, 0.8));
    z-index: -1;
    overflow: hidden;
}

/* Efecto de ondas animadas superpuestas */
.hero-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.03), rgba(56, 142, 60, 0.05), transparent);
    opacity: 0.15;
    transform-origin: 50% 50%;
}

.wave1 {
    animation: wave-animation 45s infinite linear;
    transform: rotate(30deg);
}

.wave2 {
    animation: wave-animation 40s infinite linear;
    transform: rotate(60deg);
    background: linear-gradient(90deg, transparent, rgba(27, 94, 32, 0.02), rgba(46, 125, 50, 0.04), transparent);
}

.wave3 {
    animation: wave-animation 35s infinite linear;
    transform: rotate(45deg);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.015), rgba(13, 71, 16, 0.03), transparent);
}

.wave4 {
    animation: wave-animation 30s infinite linear;
    transform: rotate(15deg);
    background: linear-gradient(90deg, transparent, rgba(85, 185, 90, 0.02), rgba(67, 160, 71, 0.04), transparent);
}

@keyframes wave-animation {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(0%) rotate(360deg);
    }
}

/* Efecto de partículas brillantes */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    display: block;
    background-color: rgba(255, 255, 255, 0.8);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    animation: particle-animation 20s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: particle-animation-1 25s infinite;
}

.particle:nth-child(2) {
    top: 40%;
    left: 25%;
    animation: particle-animation-2 28s infinite;
}

.particle:nth-child(3) {
    top: 60%;
    left: 40%;
    animation: particle-animation-3 30s infinite;
}

.particle:nth-child(4) {
    top: 80%;
    left: 60%;
    animation: particle-animation-4 22s infinite;
}

.particle:nth-child(5) {
    top: 30%;
    left: 70%;
    animation: particle-animation-5 26s infinite;
}

.particle:nth-child(6) {
    top: 70%;
    left: 85%;
    animation: particle-animation-6 24s infinite;
}

.particle:nth-child(7) {
    top: 15%;
    left: 50%;
    animation: particle-animation-7 29s infinite;
}

.particle:nth-child(8) {
    top: 90%;
    left: 25%;
    animation: particle-animation-8 27s infinite;
}

.particle:nth-child(9) {
    top: 45%;
    left: 80%;
    animation: particle-animation-9 23s infinite;
}

.particle:nth-child(10) {
    top: 50%;
    left: 15%;
    animation: particle-animation-10 31s infinite;
}

@keyframes particle-animation-1 {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    25% {
        transform: scale(2) translate(50px, 20px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.5) translate(100px, -30px);
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    75% {
        transform: scale(2) translate(50px, -50px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

@keyframes particle-animation-2 {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    25% {
        transform: scale(2) translate(-30px, 50px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.5) translate(-60px, 80px);
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    75% {
        transform: scale(2) translate(-30px, 40px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

@keyframes particle-animation-3 {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    25% {
        transform: scale(2) translate(40px, -40px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.5) translate(80px, -80px);
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    75% {
        transform: scale(2) translate(40px, -40px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

@keyframes particle-animation-4 {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    25% {
        transform: scale(2) translate(-50px, -30px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.5) translate(-100px, -60px);
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    75% {
        transform: scale(2) translate(-50px, -30px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

@keyframes particle-animation-5 {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
    25% {
        transform: scale(2) translate(30px, 40px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.5) translate(60px, 80px);
        opacity: 0.6;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    75% {
        transform: scale(2) translate(30px, 40px);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

/* Animaciones para las partículas restantes */
@keyframes particle-animation-6 {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    33% { transform: scale(1.8) translate(-40px, -60px); opacity: 0.5; }
    66% { transform: scale(1.4) translate(-80px, -20px); opacity: 0.7; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
}

@keyframes particle-animation-7 {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    33% { transform: scale(1.8) translate(60px, 40px); opacity: 0.5; }
    66% { transform: scale(1.4) translate(20px, 80px); opacity: 0.7; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
}

@keyframes particle-animation-8 {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    33% { transform: scale(1.8) translate(50px, -50px); opacity: 0.5; }
    66% { transform: scale(1.4) translate(100px, -25px); opacity: 0.7; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
}

@keyframes particle-animation-9 {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    33% { transform: scale(1.8) translate(-60px, 30px); opacity: 0.5; }
    66% { transform: scale(1.4) translate(-30px, 60px); opacity: 0.7; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
}

@keyframes particle-animation-10 {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    33% { transform: scale(1.8) translate(40px, 70px); opacity: 0.5; }
    66% { transform: scale(1.4) translate(80px, 35px); opacity: 0.7; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
}

/* Efecto de luz radial */
.radial-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(76, 175, 80, 0.3) 0%, 
        rgba(56, 142, 60, 0.2) 30%, 
        rgba(27, 94, 32, 0.1) 60%, 
        transparent 70%);
    z-index: -1;
    animation: pulse-light 15s infinite alternate;
}

@keyframes pulse-light {
    0% {
        opacity: 0.5;
        background-position: 0% 0%;
    }
    50% {
        opacity: 0.7;
        background-position: 100% 100%;
    }
    100% {
        opacity: 0.5;
        background-position: 0% 0%;
    }
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: normal;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.btn-outline {
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    font-weight: 700;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 138, 0, 0.4);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* === SECCIÓN DE CATEGORÍAS === */
.categories {
    padding: var(--space-xl) 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    color: var(--text-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en desktop */
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.category-card {
    background-color: rgba(58, 153, 82, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(58, 153, 82, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon i, 
.category-icon svg {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.category-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Responsive para categorías */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr; /* 1 columna en móviles */
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* === SECCIÓN ACERCA DE NOSOTROS === */
.about {
    padding: var(--space-xl) 0;
    position: relative;
    background-color: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    height: 500px;
}

.about-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background-image: url('https://images.unsplash.com/photo-1589923188900-85dae523342b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    animation: float 3s ease-in-out infinite;
}

.leaf-1 {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    top: -20px;
    right: 20px;
    animation-delay: 0s;
    animation-duration: 4s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.leaf-2 {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    bottom: 40px;
    left: -20px;
    animation-delay: 1s;
    animation-duration: 5s;
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
}

.tool-1 {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    bottom: -20px;
    right: 30%;
    animation-delay: 2s;
    background-image: url('https://cdn-icons-png.flaticon.com/512/1359/1359738.png');
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.about-text h2 {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.about-text p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(58, 153, 82, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.diagonal-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0% 100%);
}

/* === SECCIÓN DE TESTIMONIOS === */
.testimonials {
    padding: var(--space-xl) 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 340px;
    margin-top: var(--space-xl);
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-slow);
    visibility: hidden;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.testimonial-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.3);
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--primary-light);
}

.testimonial-slide:nth-child(1) .author-avatar {
    background-image: url('https://randomuser.me/api/portraits/women/62.jpg');
}

.testimonial-slide:nth-child(2) .author-avatar {
    background-image: url('https://randomuser.me/api/portraits/men/32.jpg');
}

.testimonial-slide:nth-child(3) .author-avatar {
    background-image: url('https://randomuser.me/api/portraits/women/70.jpg');
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-lg);
    gap: var(--space-lg);
}

.testimonial-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    color: var(--text-dark);
}

.testimonial-arrow:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(58, 153, 82, 0.2);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* === SECCIÓN DE CONTACTO === */
.contact {
    padding: var(--space-xl) 0;
    background-color: var(--background-light);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: var(--space-xl);
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-info .section-title {
    color: var(--white);
    text-align: left;
    margin-bottom: var(--space-lg);
}

.contact-info .section-title::after {
    left: 0;
    transform: none;
    background: var(--white);
}

.contact-details {
    margin-top: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    opacity: 0.8;
    line-height: 1.6;
}

.contact-text a {
    color: var(--white);
    text-decoration: underline;
    transition: opacity var(--transition-medium);
}

.contact-text a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-medium);
}

.social-link:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form-container {
    padding: var(--space-xl);
}

.contact-form {
    display: grid;
    gap: var(--space-md);
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    background-color: var(--white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all var(--transition-medium);
}

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

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-medium);
}

.form-group input:focus ~ .form-highlight,
.form-group textarea:focus ~ .form-highlight {
    width: 100%;
}

.submit-btn {
    justify-self: start;
    margin-top: var(--space-sm);
    overflow: hidden;
    position: relative;
}

.btn-text, .btn-icon {
    position: relative;
    z-index: 1;
    transition: all var(--transition-medium);
}

.btn-icon {
    margin-left: 0.5rem;
    transform: translateX(-20px);
    opacity: 0;
}

.submit-btn:hover .btn-text {
    transform: translateX(-10px);
}

.submit-btn:hover .btn-icon {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container, .contact-info {
        padding: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .contact-details {
        margin-top: var(--space-lg);
    }
    
    .contact-item {
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .contact-text h3 {
        font-size: 1.1rem;
    }
    
    .contact-text p {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .submit-btn {
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .contact-form-container, .contact-info {
        padding: var(--space-md);
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* === FOOTER === */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
}

.footer-top {
    padding: var(--space-xl) 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.footer-description {
    opacity: 0.7;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    opacity: 0.7;
    transition: all var(--transition-medium);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    opacity: 0.7;
}

.footer-contact i {
    margin-top: 5px;
}

.footer-bottom {
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-bottom p {
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Footer Sitemap */
.footer-sitemap {
    padding: var(--space-md) 0;
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.footer-sitemap h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-sitemap ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.footer-sitemap a {
    opacity: 0.6;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-sitemap a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-lg);
    }
    
    .footer-logo h2 {
        font-size: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-sitemap ul {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-top {
        padding: var(--space-lg) 0;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Sección de Fichas Técnicas */
.technical-sheets {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
}

.search-container {
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
    font-size: 18px;
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #757575;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-input:not(:placeholder-shown) ~ .search-clear {
    opacity: 1;
}

.sheets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .sheets-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 20px;
    }
    
    .technical-sheets {
        padding: 60px 0;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-input {
        padding: 12px 15px 12px 45px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .sheets-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .technical-sheets {
        padding: 40px 0;
    }
    
    .search-input {
        padding: 10px 15px 10px 40px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 15px;
        font-size: 16px;
    }
}

.sheet-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sheet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.sheet-preview {
    height: 180px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-icon {
    font-size: 60px;
    color: #4CAF50;
    opacity: 0.8;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sheet-card:hover .preview-overlay {
    opacity: 1;
}

.preview-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.preview-btn:hover {
    background: #388E3C;
}

.sheet-info {
    padding: 20px;
}

.sheet-title {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sheet-brand {
    color: #757575;
    font-size: 14px;
    margin: 0 0 15px;
}

.sheet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f1f1f1;
    color: #555;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 40px 0;
}

.no-results-icon {
    font-size: 50px;
    color: #bdbdbd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    color: #757575;
    margin-bottom: 20px;
}

.reset-search {
    margin: 0 auto;
}

/* Estilos para el filtro de categorías (dropdown) */
.filter-container {
    margin-top: 15px;
    width: 100%;
}

.filter-select-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.filter-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.category-filter {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 30px;
    background-color: var(--white);
    border: 2px solid var(--primary-light);
    font-size: 1rem;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.filter-select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

@media (max-width: 768px) {
    .filter-select-wrapper {
        max-width: 100%;
    }
    
    .category-filter {
        padding: 10px 15px 10px 40px;
        font-size: 0.9rem;
    }
    
    .sheet-preview .preview-overlay {
        flex-direction: column;
        gap: 10px;
    }
    
    .preview-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* Mejoras para la visualización de fichas técnicas */
.sheet-preview .preview-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.preview-btn {
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 5px;
}

.preview-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.view-btn {
    background: rgba(76, 175, 80, 0.1);
}

.download-btn {
    background: rgba(76, 175, 80, 0.2);
}

.success-message {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.success-message .success-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .success-message {
        padding: 30px 15px;
    }
    
    .success-message .success-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .success-message h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .success-message p {
        font-size: 14px;
    }
}

/* Paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f0f0f0;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.page {
    font-weight: 500;
}

.pagination-btn.page.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-btn.prev i,
.pagination-btn.next i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pagination-container {
        gap: 0.3rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.6rem;
        min-width: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        margin-top: 1.5rem;
        gap: 0.2rem;
    }
    
    .pagination-btn {
        padding: 0.3rem 0.5rem;
        min-width: 30px;
        font-size: 0.8rem;
    }
    
    /* Mostrar solo botones esenciales en móvil para evitar sobrecarga */
    .pagination-btn.page:not(.active) {
        display: none;
    }
    
    .pagination-btn.page.active {
        margin: 0 0.3rem;
    }
    
    .pagination-container::after {
        content: 'Página ' attr(data-current) ' de ' attr(data-total);
        font-size: 0.8rem;
        margin-left: 0.5rem;
        color: var(--text-light);
    }
}

/* === NAVEGACIÓN === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1001;
}

.navbar-logo span {
    color: var(--primary-color);
}

.navbar-logo img {
    height: 40px;
    margin-right: 0.5rem;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-item {
    margin-left: 2.5rem;
    position: relative;
}

.navbar-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

.navbar-link:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.navbar-link:hover:before,
.navbar-link.active:before {
    visibility: visible;
    transform: scaleX(1);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
}

.burger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.burger span:nth-child(1) {
    top: 0px;
}

.burger span:nth-child(2),
.burger span:nth-child(3) {
    top: 9px;
}

.burger span:nth-child(4) {
    top: 18px;
}

.navbar-toggle.active .burger span:nth-child(1) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.navbar-toggle.active .burger span:nth-child(2) {
    transform: rotate(45deg);
}

.navbar-toggle.active .burger span:nth-child(3) {
    transform: rotate(-45deg);
}

.navbar-toggle.active .burger span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
}

/* Menú móvil */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0.8rem 1rem;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Empieza fuera de la pantalla */
        width: 80%; /* Ancho ajustado para mejor visualización en móvil */
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start; /* Alinear desde arriba */
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: all 0.3s ease-in-out; /* Transición suave */
        z-index: 1001; /* Mayor que el overlay */
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .navbar-menu.active {
        left: 0; /* Se mueve a la vista */
    }
    
    .navbar-item {
        margin: 0.8rem 0;
        width: 100%;
        text-align: left;
    }
    
    .navbar-link {
        font-size: 1.2rem;
        padding: 0.8rem;
        display: block;
        width: 100%;
    }
    
    .navbar-link:before {
        display: none;
    }
    
    .navbar-link:hover,
    .navbar-link.active {
        background-color: var(--primary-light);
        color: var(--white);
        border-radius: var(--radius-md);
    }
    
    .navbar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .navbar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Navbar scrolled */
.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .navbar-link {
    color: var(--text-dark);
}

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

.navbar.scrolled .navbar-toggle {
    color: var(--text-dark);
}

main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@media (max-width: 768px) {
    /* Evitar que los elementos superen el ancho del viewport en móviles */
    .container, 
    section, 
    footer, 
    header,
    .products-grid, 
    .sheets-grid,
    .contact-wrapper,
    .footer-columns,
    .categories-grid {
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Mejorar el menú móvil */
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 1rem 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    /* Asegurar que los textos no desborden */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Controlar el tamaño de los elementos internos */
    .modal-content, 
    .product-card, 
    .sheet-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ajustar tamaños de fuente para móviles */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
