/* ==========================================================================
   1. CONFIGURACIÓN DE COLORES Y VARIABLES (VERDE ELEGANTE)
   ========================================================================== */
:root {
    --brand-green: #2b5735;       
    --brand-green-dark: #1e3f26;  
    --text-dark: #2c2c2c;
    --text-gray: #666666;
    --bg-light: #ffffff;
    --bg-offwhite: #fcfcfc;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    max-width: 100vw !important; 
    overflow-x: hidden !important; 
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--brand-green); margin: 0; }
h1 { letter-spacing: -0.5px; }
h2 { font-style: normal; text-transform: uppercase; letter-spacing: 2px; }
p { line-height: 1.8; color: var(--text-gray); font-weight: 300; font-size: 15px; }
a { text-decoration: none; transition: 0.3s; }

/* ==========================================================================
   2. BOTONES GLOBALES
   ========================================================================== */
.btn-primary {
    background-color: var(--brand-green); color: #fff; padding: 14px 30px;
    text-transform: uppercase; font-weight: 700; border: none;
    font-family: 'Lato', sans-serif; font-size: 13px; letter-spacing: 1px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all 0.4s;
}
.btn-primary:hover { background-color: var(--brand-green-dark); transform: translateY(-2px); }

.btn-outline {
    background: transparent; border: 1px solid white; color: white !important;
    padding: 14px 35px; text-transform: uppercase; font-weight: 700;
    font-family: 'Lato', sans-serif; font-size: 13px; letter-spacing: 1px;
    cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-outline:hover { background: white; color: var(--brand-green) !important; }

.btn-white {
    background-color: #ffffff !important; color: var(--brand-green) !important; 
    border: none; padding: 15px 30px; text-transform: uppercase; font-weight: 800;
    font-family: 'Lato', sans-serif; font-size: 13px; letter-spacing: 1px;
    cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; 
    gap: 10px; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
.btn-white:hover { background-color: #f2f2f2 !important; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

/* ==========================================================================
   3. BARRA DE NAVEGACIÓN
   ========================================================================== */
.logo { display: flex; align-items: center; }
.logo img { max-height: 90px; width: auto; transition: all 0.4s ease; }
.logo img:hover { transform: scale(1.02); }
.logo-fallback { display: none; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 24px; color: var(--brand-green); }

nav ul { list-style: none; display: flex; gap: 35px; margin: 0; padding: 0; align-items: center; }
nav ul li { position: relative; }
nav a { font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-family: 'Lato', sans-serif; position: relative; display: block; padding: 10px 0; transition: color 0.3s; }
nav a.active::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 2px; background-color: var(--brand-green); transition: 0.3s; }

#main-header.header-transparent .logo-fallback { color: #ffffff; }
#main-header.header-transparent #logo-img { filter: brightness(0) invert(1); }
#main-header.header-transparent nav a.active::after { background-color: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
#main-header.header-transparent .nav-cta { border: 1px solid #ffffff; color: #ffffff !important; }
#main-header.header-transparent .nav-cta:hover { background: #ffffff; color: var(--brand-green) !important; text-shadow: none !important; }

#main-header.header-scrolled { position: fixed !important; background-color: #ffffff !important; box-shadow: 0 2px 15px rgba(0,0,0,0.08) !important; padding: 8px 5% !important; }
#main-header.header-scrolled .logo img { max-height: 70px; } 
#main-header.header-scrolled .logo-fallback { color: var(--brand-green); }
#main-header.header-scrolled #logo-img { filter: none; }
#main-header.header-scrolled nav a.active::after { background-color: var(--brand-green); }
#main-header.header-scrolled .nav-cta { border: 1px solid var(--brand-green); color: var(--brand-green) !important; }
#main-header.header-scrolled .nav-cta:hover { background: var(--brand-green); color: #ffffff !important; }

/* --- MENÚ DESPLEGABLE (CASCADA) BLINDADO --- */
nav ul li { 
    position: relative; 
}

/* 1. Lo obligamos a estar oculto, flotando y en columna siempre */
nav ul li .dropdown-menu {
    display: none !important; 
    position: absolute !important; 
    top: 100%; 
    left: -15px;
    background-color: #fff; 
    min-width: 260px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); 
    z-index: 2000; 
    padding: 10px 0; 
    border-top: 3px solid var(--brand-green); 
    flex-direction: column !important; 
}

/* 2. Lo obligamos a mostrarse SOLO al pasar el mouse */
nav ul li:hover .dropdown-menu { 
    display: flex !important; 
}

/* 3. Aseguramos que los items de adentro no se pongan en fila */
nav ul li .dropdown-menu li { 
    width: 100%; 
    display: block !important;
}

nav ul li .dropdown-menu a {
    padding: 14px 20px; 
    text-decoration: none; 
    display: block;
    color: var(--text-dark) !important; 
    font-size: 13px; 
    font-weight: 600; 
    transition: background-color 0.2s; 
    text-shadow: none !important;
}

nav ul li .dropdown-menu a:hover { 
    background-color: #f5f8f5; 
    color: var(--brand-green) !important; 
}

nav ul li .dropdown-menu a::after { 
    display: none !important; 
}

/* ==========================================================================
   4. BANNERS Y ENCABEZADOS
   ========================================================================== */
.hero-section { height: 100vh; position: relative; overflow: hidden; background-color: #111; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 0 20px; max-width: 1000px; }
.hero-content h1 { color: white; font-size: 42px; font-family: 'Lato', sans-serif; font-weight: 450; letter-spacing: 4px; margin-bottom: 30px; text-shadow: 2px 2px 10px rgba(0,0,0,0.6); line-height: 1.3; }

.btn-hero { background: transparent; border: 2px solid white; color: white !important; padding: 15px 40px; text-transform: uppercase; font-weight: 700; font-family: 'Lato', sans-serif; font-size: 14px; letter-spacing: 2px; cursor: pointer; transition: 0.4s; display: inline-block; }
.btn-hero:hover { background: var(--brand-green); border-color: var(--brand-green); }

.slider-arrow { 
    cursor: pointer; 
    position: absolute; 
    top: 50%; 
    padding: 20px; 
    margin-top: -30px; 
    color: white; 
    font-weight: bold; 
    font-size: 30px; 
    transition: 0.3s ease; 
    border-radius: 4px; 
    z-index: 5; 
    background: rgba(0,0,0,0.1); 
    
    /* Soporte total para que no se seleccione el texto */
    -webkit-user-select: none; /* Safari y Chrome viejos */
    -moz-user-select: none;    /* Firefox viejo */
    -ms-user-select: none;     /* Internet Explorer / Edge viejo */
    user-select: none;         /* El estándar moderno */
}
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }
.slider-arrow:hover { background-color: rgba(0,0,0,0.6); }

.slider-dots { position: absolute; bottom: 40px; width: 100%; text-align: center; z-index: 5; }
.dot { cursor: pointer; height: 12px; width: 12px; margin: 0 6px; background-color: rgba(255,255,255,0.4); border-radius: 50%; display: inline-block; transition: background-color 0.4s ease; }
.dot.active, .dot:hover { background-color: white; }

.page-header, .service-header { background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; }
.page-header { height: 350px; } .service-header { height: 400px; }
.header-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(43, 87, 53, 0.7); }
.header-content { position: relative; z-index: 2; text-align: center; color: white; }
.header-content h1 { color: white; font-size: 50px; margin-bottom: 10px; letter-spacing: 1px; }
.header-content p { color: rgba(255,255,255,0.9); font-size: 18px; font-style: italic; }

/* ==========================================================================
   5. SECCIONES COMUNES Y SECCIONES INDEX
   ========================================================================== */
.section-header { margin-bottom: 60px; text-align: center; }
.section-header h2 { font-size: 36px; border-bottom: 1px solid #eee; display: inline-block; padding-bottom: 15px; letter-spacing: 3px; }
.section-header h4 { font-family: 'Lato', sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.cards-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }

.services-section { padding: 80px 5% 100px; background-color: var(--bg-light); }
.service-card { background: white; text-align: left; transition: 0.3s; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.02); border-bottom: 3px solid transparent; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-bottom: 3px solid var(--brand-green); }
.card-image-wrapper { height: 240px; overflow: hidden; margin-bottom: 15px; } 
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover img { transform: scale(1.05); }
.service-content { padding: 15px 25px 25px; }
.service-content h3 { font-size: 18px; margin-bottom: 10px; font-family: 'Lato', sans-serif; font-weight: 700; text-transform: uppercase; color: var(--brand-green); }
.card-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }

.integral-section { display: flex; align-items: stretch; background-color: #fff; overflow: hidden; }
.integral-image-box { flex: 1; min-height: 750px; overflow: hidden; position: relative; }
.main-integral-img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: panImage 10s infinite alternate linear; }
@keyframes panImage { 0% { transform: scale(1) translateY(0); } 100% { transform: scale(1.1) translateY(-20px); } }
.integral-content { flex: 1; padding: 60px; background: var(--brand-green); color: white; display: flex; flex-direction: column; justify-content: center; min-height: 750px; }
.integral-content h4 { color: rgba(255,255,255,0.8); font-family: 'Lato', sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.integral-content h2 { color: white; margin-bottom: 30px; font-size: 38px; border-bottom: none;}
.integral-content p { color: rgba(255,255,255,0.9); font-size: 18px; margin-bottom: 40px; }
.tech-list { display: flex; flex-direction: column; gap: 25px; margin-bottom: 30px; }
.tech-item { display: flex; gap: 15px; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.tech-item:last-child { border-bottom: none; }
.tech-icon { font-size: 22px; color: white; opacity: 0.9; min-width: 30px; margin-top: 2px; }
.tech-text h3 { color: white; font-family: 'Lato'; font-size: 16px; margin-bottom: 3px; text-transform: uppercase; font-weight: 700; }
.tech-text p { color: rgba(255,255,255,0.8); font-size: 13px; margin: 0; }
.cta-container { display: flex; justify-content: flex-end; margin-top: 20px; }

.process-section { padding: 100px 5%; background-color: var(--bg-offwhite); text-align: center; }
.steps-container { display: flex; justify-content: space-between; max-width: 1100px; margin: 60px auto 0; position: relative; }
.steps-container::before { content: ''; position: absolute; top: 40px; left: 0; width: 100%; height: 1px; background: #ddd; z-index: 0; }
.step-card { background: transparent; width: 22%; position: relative; z-index: 1; padding: 0 10px; }
.step-icon-box { width: 80px; height: 80px; background: var(--bg-light); border: 2px solid var(--brand-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--brand-green); font-size: 24px; transition: 0.3s; }
.step-card:hover .step-icon-box { background: var(--brand-green); color: white; }
.step-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--text-dark); font-family: 'Lato', sans-serif; text-transform: uppercase; font-weight: 700; }

.testimonials-section { background-color: var(--bg-offwhite); padding: 100px 5%; text-align: center; }
.quotes-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1000px; margin: 50px auto 0; }
.quote-card { background: white; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); position: relative; border-top: 3px solid var(--brand-green); }
.quote-card i { font-size: 26px; color: var(--brand-green); margin-bottom: 20px; display: block; opacity: 0.5; } 
.quote-card p { font-style: italic; font-size: 15px; margin-bottom: 20px; color: #555; }
.quote-card h4 { font-size: 13px; color: var(--brand-green); font-family: 'Lato', sans-serif; font-weight: 700; text-transform: uppercase; }

/* ==========================================================================
   6. NOSOTROS, SERVICIOS, PRODUCTOS, GALERÍA
   ========================================================================== */
.about-section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; display: flex; gap: 60px; align-items: center; }
.about-text { flex: 1; }
.about-text h2 { font-size: 42px; margin-bottom: 30px; letter-spacing: 1px; }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; border-radius: 0; box-shadow: 20px 20px 0px var(--brand-green); }

.values-section { background-color: var(--bg-offwhite); padding: 80px 5%; text-align: center; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 50px auto 0; }
.value-card i { font-size: 40px; color: var(--brand-green); margin-bottom: 20px; }
.value-card h3 { font-size: 22px; margin-bottom: 15px; font-family: 'Lato', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}

.services-detail { padding: 80px 50px; max-width: 1000px; margin: 0 auto; }
.service-row { display: flex; gap: 60px; margin-bottom: 80px; align-items: center; }
.service-row:nth-child(even) { flex-direction: row-reverse; } 
.service-img { flex: 1; height: 350px; overflow: hidden; border-radius: 4px; box-shadow: 20px 20px 0px var(--brand-green); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-img:hover img { transform: scale(1.05); }
.service-info { flex: 1; }
.service-info h2 { font-size: 32px; margin-bottom: 20px; }
.service-info ul { list-style: none; padding: 0; margin-top: 25px; }
.service-info li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; }
.service-info i { color: var(--brand-green); font-size: 18px; margin-top: 4px; }
.btn-service { display: inline-block; margin-top: 10px; padding: 10px 20px; border: 1px solid var(--brand-green); color: var(--brand-green); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; font-weight: 700; transition: 0.3s; }
.btn-service:hover { background: var(--brand-green); color: white; }

.service-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; max-width: 1200px; margin: 80px auto; padding: 0 5%; }
.service-details h2 { font-size: 36px; margin-bottom: 25px; border-bottom: none;}
.benefits-list { list-style: none; padding: 0; margin-top: 30px; }
.benefits-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; background: var(--bg-offwhite); padding: 20px; border-radius: 4px; border-left: 4px solid var(--brand-green); transition: 0.3s; }
.benefits-list li:hover { transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.benefits-list i { color: var(--brand-green); font-size: 24px; margin-top: 2px; min-width: 30px; }
.benefits-list h4 { font-family: 'Lato'; font-size: 16px; margin: 0 0 5px; font-weight: 700; color: var(--brand-green); text-transform: uppercase; }

.service-sidebar { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid #eee; height: fit-content; position: sticky; top: 140px; }
.service-sidebar h3 { font-size: 24px; margin-bottom: 20px; text-align: center; }
.sidebar-text { text-align: center; font-size: 14px; margin-bottom: 20px; }
.btn-full { display: block; width: 100%; padding: 15px; text-align: center; background: var(--brand-green); color: white; text-transform: uppercase; font-weight: 700; border-radius: 4px; margin-bottom: 15px; transition: 0.3s; letter-spacing: 1px; }
.btn-full:hover { background: var(--brand-green-dark); }
.contact-mini { text-align: center; font-size: 14px; color: #888; }
.contact-mini i { color: var(--brand-green); margin-right: 5px; }

.catalog-header { padding: 80px 50px 40px; text-align: center; background: #f9fdf9; }
.catalog-header h1 { font-size: 48px; margin-bottom: 15px; }
.catalog-header p { color: var(--text-gray); max-width: 600px; margin: 0 auto; font-size: 18px; line-height: 1.6; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; padding: 60px 50px; max-width: 1200px; margin: 0 auto; }
.category-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--brand-green); }
.category-img { height: 280px; overflow: hidden; position: relative; }
.category-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.category-card:hover .category-img img { transform: scale(1.05); }
.category-info { padding: 30px; text-align: center; }
.category-info h3 { font-size: 24px; margin-bottom: 15px; }
.example-list { text-align: left; background: #f9f9f9; padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.example-list span { display: block; font-size: 13px; color: #555; margin-bottom: 5px; font-weight: 700; text-transform: uppercase; }
.example-list ul { margin: 0; padding-left: 20px; font-size: 14px; color: #666; }
.btn-consult { display: inline-block; width: 100%; padding: 12px 0; background: var(--brand-green); color: white; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; border-radius: 4px; transition: 0.3s; }
.btn-consult:hover { background: var(--brand-green-dark); }

.portfolio-section { padding: 100px 5%; background: #fff; }
.portfolio-header { text-align: center; margin-bottom: 50px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.portfolio-item { position: relative; height: 350px; overflow: hidden; cursor: pointer;}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(43, 87, 53, 0.85); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: 0.4s; color: white; text-align: center; padding: 20px; }
.portfolio-overlay h3 { color: #ffffff !important; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.portfolio-overlay p { color: rgba(255,255,255,0.8) !important; font-weight: 400; font-size: 14px;}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item.tarjeta-enlace { cursor: pointer; overflow: hidden; }
.portfolio-item.tarjeta-enlace img { transition: transform 0.5s ease; }
.portfolio-item.tarjeta-enlace:hover img { transform: scale(1.05); }

/* ==========================================================================
   7. PÁGINA DE CONTACTO (ESTILOS UNIFICADOS)
   ========================================================================== */
.contact-header {
    background-image: url('https://images.unsplash.com/photo-1599940824399-b87987ceb72a?auto=format&fit=crop&w=2000&q=80');
    background-size: cover; background-position: center; height: 350px;
    display: flex; align-items: center; justify-content: center; position: relative; margin-top: 90px;
}
.contact-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(43, 87, 53, 0.75); z-index: 1; }
.contact-header .header-content { position: relative; z-index: 2; text-align: center; color: white; }
.contact-header h1 { font-family: 'Playfair Display', serif; font-size: 56px; margin-bottom: 10px; color: white; font-weight: 600; }
.contact-header p { font-family: 'Lato', sans-serif; font-size: 20px; font-style: italic; color: rgba(255,255,255,0.9); margin: 0; }

.contact-wrapper { display: flex; gap: 60px; max-width: 1200px; margin: 80px auto; padding: 0 50px; background: #ffffff; }
.contact-info { flex: 1; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--brand-green); margin-bottom: 15px; font-weight: 600; }
.contact-info > p { color: #666; font-size: 15px; margin-bottom: 40px; line-height: 1.6; }

.info-item { display: flex; gap: 20px; margin-bottom: 35px; align-items: flex-start; }
.icon-box { width: 45px; height: 45px; border: 1px solid var(--brand-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brand-green); font-size: 18px; flex-shrink: 0; }
.info-text h4 { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 5px; color: var(--text-dark); text-transform: uppercase; letter-spacing: 1px; }
.info-text p { color: #666; font-size: 14px; line-height: 1.6; margin: 0; }

.social-links { margin-top: 40px; display: flex; gap: 15px; }
.social-links a { display: inline-flex; width: 45px; height: 45px; background: var(--brand-green); color: white; border-radius: 50%; align-items: center; justify-content: center; font-size: 18px; transition: 0.3s; }
.social-links a:hover { background: var(--brand-green-dark); transform: translateY(-3px); }

.map-section { height: 450px; width: 100%; filter: grayscale(15%) contrast(95%); }
.map-section iframe { width: 100%; height: 100%; border: 0; display: block; }

/* EL FORMULARIO (Diseño limpio y sin duplicados) */
.contact-form {
    flex: 1.2;
    background: white;
    padding: 45px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); 
    border-top: 5px solid var(--brand-green);
}
.form-group { margin-bottom: 25px; display: flex; flex-direction: column; text-align: left; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

.contact-form label { font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #e0e0e0; border-radius: 4px; font-family: 'Lato', sans-serif; font-size: 15px; color: #444; background-color: #fafafa; transition: 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-green); outline: none; background-color: white; box-shadow: 0 0 0 3px rgba(43, 87, 53, 0.1); }

/* TRUCO INFALIBLE MENÚ DESPLEGABLE */
.custom-select-wrapper { position: relative; width: 100%; }
.custom-select-wrapper::after { content: '\f0d7'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: var(--brand-green); pointer-events: none; font-size: 16px; }
.custom-select-wrapper select { width: 100%; padding: 15px; padding-right: 40px !important; border: 1px solid #e0e0e0 !important; border-radius: 4px !important; font-family: 'Lato', sans-serif; font-size: 15px; color: #444; background-color: #fafafa !important; cursor: pointer; -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important; }
.custom-select-wrapper select::-ms-expand { display: none !important; }
.custom-select-wrapper select:focus { border-color: var(--brand-green) !important; outline: none !important; background-color: white !important; box-shadow: 0 0 0 3px rgba(43, 87, 53, 0.1) !important; }

.btn-submit-full { width: 100%; background-color: var(--brand-green); color: white; padding: 18px; border: none; border-radius: 4px; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; margin-top: 10px; }
.btn-submit-full:hover { background-color: var(--brand-green-dark); transform: translateY(-2px); }

/* ==========================================================================
   8. FOOTER & CTA FINAL GLOBALES
   ========================================================================== */
.final-cta { background-color: #2c2c2c; padding: 80px 20px; text-align: center; color: white; border-top: 5px solid var(--brand-green); }
.final-cta h2 { color: white; margin-bottom: 20px; font-size: 36px; border-bottom: none; }
.final-cta p { color: rgba(255,255,255,0.7); margin-bottom: 40px; font-size: 16px; }

footer { background-color: #2b5735; color: white; padding: 60px 5%; text-align: center; }
.footer-logo { font-family: 'Playfair Display'; font-size: 24px; margin-bottom: 20px; letter-spacing: 1px; color: #fff;}

.lightbox { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); align-items: center; justify-content: center; flex-direction: column; }
.lightbox-content { max-width: 90%; max-height: 90vh; object-fit: contain; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-radius: 4px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.close-lightbox { position: absolute; top: 20px; right: 40px; color: #f1f1f1; font-size: 45px; font-weight: 300; cursor: pointer; transition: 0.3s; z-index: 3001; line-height: 1; }
.close-lightbox:hover { color: var(--brand-green); }

.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 35px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 4000; display: flex; align-items: center; justify-content: center; transition: 0.3s ease; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* ==========================================================================
   9. ENCABEZADO DUAL Y MENÚ MÓVIL
   ========================================================================== */
#main-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 99999; display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 20px 50px; border: none; }
.menu-toggle { display: none !important; }
.header-right { display: flex !important; position: static !important; height: auto !important; background: transparent !important; flex-direction: row !important; align-items: center; width: auto !important; }
.header-right nav > ul { display: flex !important; flex-direction: row !important; gap: 30px; margin: 0; padding: 0; }

#main-header.header-transparent .header-right nav > ul li a, #main-header.header-transparent .nav-socials a, #main-header.header-transparent .nav-socials .separator { color: #ffffff !important; font-size: 14px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; text-shadow: 1px 1px 4px rgba(0,0,0,0.6) !important; }
#main-header.header-scrolled .header-right nav > ul li a { color: var(--brand-green) !important; text-shadow: none !important; }
#main-header.header-scrolled .nav-socials a { color: var(--text-dark) !important; text-shadow: none !important; }
.nav-socials { display: flex !important; align-items: center; margin-left: 20px; gap: 15px; margin-top: 0 !important; }

#main-header.header-transparent .header-right nav > ul li .dropdown-menu a, #main-header.header-scrolled .header-right nav > ul li .dropdown-menu a { color: var(--text-dark) !important; text-shadow: none !important; font-weight: 600 !important; }
#main-header.header-transparent .header-right nav > ul li .dropdown-menu a:hover, #main-header.header-scrolled .header-right nav > ul li .dropdown-menu a:hover { color: var(--brand-green) !important; background-color: #f5f8f5 !important; }

/* ==========================================================================
   10. MEDIA QUERIES UNIFICADOS (TABLETS Y CELULARES)
   ========================================================================== */
@media (max-width: 1024px) { 
    .values-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 900px) {
    .cards-container { grid-template-columns: repeat(2, 1fr); }
    .about-section { flex-direction: column; }
    .service-container { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { flex-direction: column; padding: 0 20px; }
    
    .integral-section { display: flex !important; flex-direction: column !important; height: auto !important; min-height: 0 !important; }
    .integral-image-box { width: 100% !important; height: 350px !important; position: relative !important; }
    .main-integral-img { width: 100% !important; height: 100% !important; object-fit: cover !important; position: absolute !important; top: 0; left: 0; }
    .integral-content { width: 100% !important; padding: 40px 20px !important; margin-top: 0 !important; }

    #main-header { padding: 15px 25px !important; justify-content: flex-start !important; }
    .menu-toggle { display: block !important; order: -1 !important; margin-right: 20px !important; font-size: 28px; color: var(--brand-green) !important; z-index: 100001 !important; }
    #main-header.header-transparent .menu-toggle { color: #ffffff !important; }
    .logo { order: 2 !important; }
    .header-right { display: none !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100vh !important; background-color: #ffffff !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; z-index: 100000 !important; }
    .header-right.active { display: flex !important; }
    .header-right nav > ul { flex-direction: column !important; text-align: center; gap: 30px; }
    .header-right nav > ul li a { color: var(--brand-green) !important; font-size: 24px !important; text-shadow: none !important; }
    .nav-socials { display: none !important; }
    .nav-socials a { color: var(--brand-green) !important; font-size: 28px !important; text-shadow: none !important; }
    .nav-socials .separator { display: none !important; }
    #main-header.header-transparent .header-right nav > ul li a { color: var(--brand-green) !important; text-shadow: none !important; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden !important; max-width: 100vw !important; }
    .hero-section, .services-section, .integral-section, .process-section, .testimonials-section, .projects-header { overflow-x: hidden !important; max-width: 100vw !important; box-sizing: border-box !important; }

    .hero-content h1 { font-size: 28px; letter-spacing: 2px; }
    .slider-arrow { display: none; }
    .header-content { padding: 0 20px !important; }
    .header-content h1 { font-size: 32px !important; line-height: 1.2 !important; margin-bottom: 15px !important; }
    .header-content p { font-size: 15px !important; }
    .service-details h2, .section-header h2, .about-text h2 { font-size: 26px !important; line-height: 1.3 !important; margin-bottom: 20px !important; }

    .cards-container { grid-template-columns: 1fr; }
    .service-row, .service-row:nth-child(even) { flex-direction: column; }
    .values-grid { grid-template-columns: 1fr !important; }

    .steps-container { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 50px !important; margin-top: 40px !important; }
    .steps-container::before { display: none !important; }
    .step-card { width: 100% !important; max-width: 300px !important; padding: 0 !important; }

    .quotes-container { display: grid !important; grid-template-columns: 1fr !important; gap: 20px !important; padding: 0 15px !important; }

    .projects-header { padding: 100px 15px 15px !important; margin-top: 0 !important; }
    .projects-header h1 { font-size: 32px !important; }
    .gallery-filters { gap: 15px !important; padding: 0 10px; flex-wrap: wrap; }
    .filter-btn { font-size: 11px !important; padding: 5px 0 !important; }
    .portfolio-grid { grid-template-columns: 1fr !important; gap: 15px !important; padding: 0 15px !important; }
    .portfolio-item { border-radius: 4px; overflow: hidden; }
    .portfolio-item img { height: 250px !important; object-fit: cover !important; }
    .category-tag { top: 10px !important; right: 10px !important; padding: 5px 10px !important; font-size: 9px !important; }
    .portfolio-overlay { padding: 15px !important; }
    .portfolio-overlay h3 { font-size: 20px !important; }
    .portfolio-overlay p { font-size: 13px !important; }
}

@media (max-width: 600px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
}

/* ==========================================================================
   NUEVO BOTÓN SECUNDARIO Y CATÁLOGO DE PRODUCTOS
   ========================================================================== */
.btn-outline-green {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    background: transparent;
    color: var(--brand-green);
    border: 2px solid var(--brand-green);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
    margin-bottom: 10px; /* Separa este botón del de Consultar Stock */
    text-align: center;
}
.btn-outline-green:hover {
    background: var(--brand-green);
    color: white;
}

/* ==========================================================================
   CATÁLOGO SIMPLE (ESTILO MINIMALISTA / EDITORIAL)
   ========================================================================== */
.simple-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ¡MAGIA! 4 columnas exactas */
    gap: 50px 30px; /* Reducimos a 30px el espacio lateral para que no queden apretadas */
    padding: 60px 5%;
    max-width: 1200px; /* Ensanchamos el contenedor al máximo estándar */
    margin: 0 auto;
}

.simple-product-card {
    display: flex;
    flex-direction: column;
    text-align: left; 
}

.simple-product-card img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    margin-bottom: 15px;
    background-color: #f5f5f5; 
    cursor: zoom-in; /* ¡Agregamos esto para que aparezca la lupa! */
}

.simple-product-info h3 {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-transform: none;
    border: none;
}

.simple-product-info .short-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.simple-product-info .product-code {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.btn-consult-simple {
    display: inline-block;
    padding: 8px 0;
    color: var(--brand-green);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: 2px solid var(--brand-green);
    transition: 0.3s;
    width: fit-content;
}
.btn-consult-simple:hover {
    color: var(--brand-green-dark);
    border-bottom-color: var(--brand-green-dark);
}

/* En tablets pasamos a 2 columnas */
@media (max-width: 1100px) {
    .simple-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets en vertical */
@media (max-width: 800px) {
    .simple-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Celulares (2 Columnas optimizadas) */
@media (max-width: 600px) {
    .simple-catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* Forzamos a que sean 2 */
        gap: 40px 15px; /* Reducimos el espacio entre columnas a 15px */
        padding: 40px 5%;
    }
    
    /* Achicamos un poco los textos para que no se amontonen */
    .simple-product-info h3 {
        font-size: 15px;
    }
    .simple-product-info .short-desc {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    .simple-product-info .product-code {
        font-size: 11px;
        margin-bottom: 10px;
    }
    .btn-consult-simple {
        font-size: 11px;
        padding: 6px 0;
    }
}


/* ==========================================================================
   SUPER CARRUSEL PROFESIONAL (INLINE Y LIGHTBOX)
   ========================================================================== */

/* 1. Tarjeta base (Le sacamos el position: relative de acá) */
.simple-product-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* 2. NUEVO: Se lo pasamos al contenedor exclusivo de las fotos */
.carousel-container {
    position: relative; /* Ahora las flechas se centran solo en la foto */
}

/* 3. El contenedor de fotos (El carrusel magnético) */
.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-bottom: 15px;
    border-radius: 4px;
    scroll-behavior: smooth;
    
    /* Ocultamos la barra de desplazamiento en todos los navegadores */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
/* Ocultamos la barra para Chrome/Safari */
.product-carousel::-webkit-scrollbar {
    display: none;
}

/* 3. Las fotos dentro del carrusel */
.simple-product-card .product-carousel img {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    scroll-snap-align: start;
    cursor: zoom-in;
    margin-bottom: 0;
}

/* 4. Estilo de las flechas de navegación (Transparentes con fondo sutil al hover) */
.carousel-btn, .lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* Fondo transparente por defecto */
    color: #444; /* Color de la flecha sutil */
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
    opacity: 0.6; /* Súper sutil */
}

/* Efecto hover: se vuelve blanca con fondo verde suave, más visible en PC */
.carousel-btn:hover, .lightbox-btn:hover {
    background-color: rgba(43, 87, 53, 0.1); 
    color: var(--brand-green);
    opacity: 1;
}

/* Posiciones específicas */
.btn-prev { left: 5px; }
.btn-next { right: 5px; }

/* Ocultar flechas inline en celulares (allí es mejor el "swipe" con el dedo) */
@media (max-width: 768px) {
    .carousel-btn {
        display: none !important;
    }
}

/* 5. ESTILOS EXTRA PARA EL VISOR GIGANTE (LIGHTBOX) CON FLECHAS */
.lightbox {
    /* La base ya la tenías en tu styles.css, solo le sumamos position relativa */
    position: fixed;
    z-index: 3000;
    /* ... resto de tu CSS de lightbox ... */
    display: none; /* Se activa con JS */
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn {
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 35px;
    background-color: rgba(0, 0, 0, 0.4); /* Círculo oscuro semi-transparente */
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3005; /* Asegura que floten bien arriba */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.lightbox-btn:hover {
    background-color: var(--brand-green);
    color: white;
}

.lightbox-content {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Las separamos un poco de los bordes de la pantalla */
.lightbox-btn.btn-prev { left: 30px; }
.lightbox-btn.btn-next { right: 30px; }

/* En celulares las achicamos un poco para que no tapen la foto */
@media (max-width: 600px) {
    .lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .lightbox-btn.btn-prev { left: 10px; }
    .lightbox-btn.btn-next { right: 10px; }
}

/* ==========================================================================
   AJUSTES FINALES CELULAR (LISTAS DE PRODUCTOS)
   ========================================================================== */
@media (max-width: 768px) {
    .example-list {
        text-align: center; /* Centra el título "ESPECIES MÁS PEDIDAS" */
    }
    
    .example-list ul {
        display: inline-block; /* Convierte la lista en un bloque centrado */
        text-align: left; /* Mantiene los textos alineados entre sí a la izquierda */
        margin: 0 auto;
    }
}

/* ==========================================================================
   AJUSTE: CENTRADO DE TARJETAS DE CATEGORÍAS EN CELULAR
   ========================================================================== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important; /* Fuerza a que sea 1 sola columna flexible */
        padding: 40px 20px !important; /* Achica el margen lateral gigante de 50px a 20px */
        gap: 30px !important;
    }
    
    .category-img {
        height: auto !important; /* Permite que la foto se adapte mejor */
        aspect-ratio: 4/3; /* Mantiene una proporción linda sin desarmarse */
    }
}

/* ==========================================
   ESTILOS DEL FOOTER (ESCRITORIO Y CELULAR)
   ========================================== */
footer .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 95%; 
    margin: 0 auto;
    padding: 0 20px; 
    /* Sacamos el max-height que rompía el fondo en el celular */
}

.footer-senasa {
    flex: 1; 
    display: flex;
    justify-content: flex-start; 
}

.footer-senasa img {
    width: 180px; 
    height: auto;
    filter: brightness(0) invert(1);
    /* Seguimos usando los márgenes negativos para que no se haga ancho en PC */
    margin-top: -30px;
    margin-bottom: -30px;
    transform: translateY(-3px); 
}

.footer-info {
    flex: 1; 
    text-align: center;
}

.footer-right {
    flex: 1; 
}

/* ==========================================
   AJUSTES EXCLUSIVOS PARA CELULAR
   ========================================== */
@media (max-width: 768px) {
    footer .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px 15px; /* Le damos un buen respiro arriba y abajo */
    }
    
    .footer-senasa {
        display: none; /* MAGIA: Ocultamos el logo de SENASA en la vista móvil */
    }

    .footer-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center; 
        justify-content: center;
        width: 100%;
    }
    
    .footer-info p {
        text-align: center;
        margin-top: 5px; 
        line-height: 1.2; 
    }
    
    .footer-right {
        display: none; /* Mantenemos oculto este div vacío */
    }
}