/* public/styles/style.css */

/* ------------------------------ */
/* VARIABLES Y ESTILOS GLOBALES   */
/* ------------------------------ */

:root {
    --color-primary: #716048; /* Marrón corporativo */
    --color-secondary: #ef8729; /* Naranja CTA */
    --color-accent: #f3d46e; /* Amarillo detalles */
    --color-text: #333333;
    --color-background: #ffffff;
    --color-light-bg: #f9f9f9;
    --color-border: #e0e0e0;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}

[data-theme="dark"] {
    --color-primary: #8a7a61;
    --color-secondary: #ff983f;
    --color-accent: #f5d97e;
    --color-text: #f0f0f0;
    --color-background: #1a1a1a;
    --color-light-bg: #252525;
    --color-border: #444444;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--color-primary); }

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

a:hover {
    opacity: 0.8;
}

section {
    padding: 80px 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(239, 135, 41, 0.4);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 135, 41, 0.5);
    color: white;
}

.cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}
.cta-button-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ------------------------------ */
/* 16. ANIMACIONES DE FADE-IN     */
/* ------------------------------ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------ */
/* 1. NAVBAR                      */
/* ------------------------------ */
.navbar {
    width: 100%;
    padding: 15px 0;
    background-color: var(--color-background);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo img {
    height: 70px;
    display: block;
}

.navbar-links {
    display: flex;
    gap: 30px;
}

.navbar-links a {
    color: var(--color-text);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: var(--transition);
}

/* ------------------------------ */
/* 2. HERO SECTION                */
/* ------------------------------ */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://placehold.co/1920x1080/f3d46e/f3d46e?text='); /* Placeholder: Replace with actual background image */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding-top: 80px; /* Navbar offset */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-content h1 {
    color: white;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}


/* ------------------------------ */
/* 7. SECCIÓN CONFIANZA Y SLIDER  */
/* ------------------------------ */
.trust-section {
    background-color: var(--color-light-bg);
    padding: 60px 0;
}
.trust-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    color: var(--color-primary);
}
.logo-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.logo-slider::before, .logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--color-light-bg) 0%, rgba(249,249,249,0) 100%);
}
[data-theme="dark"] .logo-slider::before {
    background: linear-gradient(to right, var(--color-light-bg) 0%, rgba(37,37,37,0) 100%);
}
.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--color-light-bg) 0%, rgba(249,249,249,0) 100%);
}
[data-theme="dark"] .logo-slider::after {
    background: linear-gradient(to left, var(--color-light-bg) 0%, rgba(37,37,37,0) 100%);
}
.logo-track {
    display: flex;
    width: calc(200px * 12 + 60px * 12); /* (logo width + gap) * number of logos (original + duplicados) */
    animation: scroll 30s linear infinite;
}
.logo-track img {
    height: 80px;
    width: 200px;
    object-fit: contain;
    filter: none;
    opacity: 0.8;
    margin: 0 30px;
    transition: filter 0.3s, opacity 0.3s;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Responsive para logos de clientes */
@media (max-width: 1199px) {
    .logo-track img {
        height: 70px;
        width: 180px;
        margin: 0 25px;
    }
    
    .logo-track {
        width: calc(180px * 12 + 50px * 12);
    }
    
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-230px * 6)); }
    }
}

@media (max-width: 991px) {
    .logo-track img {
        height: 60px;
        width: 160px;
        margin: 0 20px;
    }
    
    .logo-track {
        width: calc(160px * 12 + 40px * 12);
    }
    
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-200px * 6)); }
    }
}

@media (max-width: 767px) {
    .logo-track img {
        height: 50px;
        width: 140px;
        margin: 0 15px;
    }
    
    .logo-track {
        width: calc(140px * 12 + 30px * 12);
    }
    
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-170px * 6)); }
    }
}

@media (max-width: 575px) {
    .logo-track img {
        height: 45px;
        width: 120px;
        margin: 0 12px;
    }
    
    .logo-track {
        width: calc(120px * 12 + 24px * 12);
    }
    
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-144px * 6)); }
    }
}

@media (max-width: 479px) {
    .logo-track img {
        height: 40px;
        width: 100px;
        margin: 0 10px;
    }
    
    .logo-track {
        width: calc(100px * 12 + 20px * 12);
    }
    
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-120px * 6)); }
    }
}
.logo-track img:hover {
    filter: none;
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-260px * 6)); } /* -(logo width + gap) * número de logos originales */
}

/* ------------------------------ */
/* 3. SECCIÓN BENEFICIOS          */
/* ------------------------------ */
.benefits-section {
    background-color: var(--color-background);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.benefit-card {
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
}
.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}
.benefit-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* Responsive para benefit cards */
@media (max-width: 767px) {
    .benefit-card {
        padding: 25px 20px;
    }
    
    .benefit-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 575px) {
    .benefit-card {
        padding: 20px 15px;
    }
    
    .benefit-icon {
        font-size: 2.2rem;
    }
}

@media (max-width: 479px) {
    .benefit-card {
        padding: 18px 12px;
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
}

/* ------------------------------ */
/* 4. SECCIÓN CÓMO FUNCIONA       */
/* ------------------------------ */
.how-it-works-section {
    background-color: var(--color-light-bg);
}
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.step {
    text-align: center;
    position: relative;
    padding: 20px;
}
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--color-background);
    box-shadow: 0 0 0 3px var(--color-secondary);
}
.step p {
    font-size: 0.9rem;
}

/* Responsive para steps */
@media (max-width: 767px) {
    .step {
        padding: 15px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .step p {
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .step {
        padding: 12px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .step p {
        font-size: 0.8rem;
    }
}

@media (max-width: 479px) {
    .step {
        padding: 10px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .step p {
        font-size: 0.75rem;
    }
}

/* ------------------------------ */
/* 5. SECCIÓN PRODUCTOS           */
/* ------------------------------ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.product-card {
    background-color: var(--color-light-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.product-card h3 {
    margin: 20px 20px 10px;
}
.product-card p {
    margin: 0 20px 15px;
    flex-grow: 1;
}
.product-card span {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Centrar y limitar el ancho del botón de contacto en las cards de productos */
.product-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

.product-cta-small {
    min-width: 120px;
    max-width: 180px;
    width: auto;
    margin: 0 auto;
    display: inline-block;
}

/* Ajuste para que el botón no se estire al borde */
.product-card .product-cta-container {
    padding: 0 16px;
}

/* ------------------------------ */
/* 8. SECCIÓN TESTIMONIOS         */
/* ------------------------------ */
.testimonials-section {
    background-color: var(--color-light-bg);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.testimonial-card {
    background-color: var(--color-background);
    padding: 40px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 5px solid var(--color-secondary);
}
.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}
.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}
.testimonial-card cite {
    font-style: normal;
}

/* ------------------------------ */
/* 9. SECCIÓN FAQ (PREGUNTAS)     */
/* ------------------------------ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-container details {
    background-color: var(--color-light-bg);
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid var(--color-border);
}
.faq-container details[open] {
    background-color: var(--color-background);
}
.faq-container summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    color: var(--color-primary);
}
.faq-container summary::-webkit-details-marker {
    display: none;
}
.faq-container summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: transform 0.2s;
}
.faq-container details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-container details p {
    padding: 0 20px 20px;
    border-top: 1px solid var(--color-border);
    margin-top: 10px;
    padding-top: 20px;
}

/* ------------------------------ */
/* 10. FORMULARIO COTIZACIÓN      */
/* ------------------------------ */
.quote-section {
    background-color: var(--color-light-bg);
}
.quote-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.quote-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.quick-contact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}
.quick-contact p, .quick-contact a {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text);
}
.quick-contact a:hover {
    color: var(--color-secondary);
}
.quote-form {
    background-color: var(--color-background);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.quote-form h4 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background-color: var(--color-light-bg);
    color: var(--color-text);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(239, 135, 41, 0.2);
}
.quote-form button {
    width: 100%;
    border: none;
}
.quote-form textarea {
    resize: none;
    min-height: 100px;
    max-height: 100px;
}

/* Mensajes del formulario */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estado de carga del botón */
.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

/* Animación de carga */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

/* ------------------------------ */
/* 12. FOOTER                     */
/* ------------------------------ */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}
.footer a, .footer p {
    color: rgba(255, 255, 255, 0.8);
}
.footer h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col a {
    display: block;
    margin-bottom: 8px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a svg {
    stroke: white;
    width: 24px;
    height: 24px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* ------------------------------ */
/* 13. BARRA DE COOKIES           */
/* ------------------------------ */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-background);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1100;
    display: none;
    border-top: 1px solid var(--color-border);
}
.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cookie-content p {
    margin: 0;
}
.cookie-bar #accept-cookies {
    white-space: nowrap;
}

/* ------------------------------ */
/* 14. WHATSAPP FLOTANTE          */
/* ------------------------------ */
/* WhatsApp flotante a la izquierda */
.whatsapp-flotante {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
    border: none;
    /* Elimina cualquier fondo o superposición extra */
}
.whatsapp-flotante svg {
    width: 40px;
    height: 40px;
    display: block;
    z-index: 1;
    /* Asegura que el ícono esté por encima */
}
.whatsapp-flotante:hover {
    transform: scale(1.1);
}

/* Botón flotante de chatbot a la derecha */
.chatbot-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    background-color: #716048;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
    border: none;
}
.chatbot-flotante svg {
    width: 32px;
    height: 32px;
    display: block;
}
.chatbot-flotante:hover {
    transform: scale(1.1);
    background-color: #ef8729;
}

/* ------------------------------ */
/* 15. MODO OSCURO (TOGGLE)       */
/* ------------------------------ */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 28px;
  transition: background 0.3s;
}
.theme-switch .icon-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s;
  z-index: 2;
}
.theme-switch .icon-sun,
.theme-switch .icon-moon {
  width: 16px;
  height: 16px;
  stroke: #f39c12;
  fill: none;
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s;
}
.theme-switch .icon-sun {
  opacity: 1;
}
.theme-switch .icon-moon {
  stroke: #444;
}
.theme-switch input:checked + .slider {
  background: var(--color-secondary);
}
.theme-switch input:checked + .slider .icon-thumb {
  left: 27px;
}
.theme-switch input:checked + .slider .icon-sun {
  opacity: 0;
}
.theme-switch input:checked + .slider .icon-moon {
  opacity: 1;
}


/* ------------------------------ */
/* RESPONSIVIDAD (MEDIA QUERIES)  */
/* ------------------------------ */

/* Extra Large Devices (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    h1 { font-size: 3.8rem; }
    h2 { font-size: 2.8rem; }
}

/* Large Devices (1200px - 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Large Devices (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.4rem; }
    
    .testimonials-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    .quote-content { 
        grid-template-columns: 1fr; 
        gap: 40px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Medium Devices (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.4rem; }
    
    section { 
        padding: 70px 0; 
    }
    
    .navbar-logo img {
        height: 60px;
    }
    
    .navbar-links {
        gap: 25px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Small Devices (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.3rem; }
    
    section { 
        padding: 60px 0; 
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .navbar-logo img {
        height: 55px;
    }
    
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: var(--shadow);
        gap: 15px;
    }
    
    .navbar-links.active {
        display: flex;
    }
    
    .navbar-links a {
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .quote-form {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
}

/* Extra Small Devices (480px - 575px) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.2rem; }
    
    section { 
        padding: 50px 0; 
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-logo img {
        height: 50px;
    }
    
    .navbar-actions {
        gap: 15px;
    }
    
    .theme-switch {
        width: 45px;
        height: 24px;
    }
    
    .theme-switch .icon-thumb {
        width: 18px;
        height: 18px;
    }
    
    .theme-switch .icon-sun,
    .theme-switch .icon-moon {
        width: 14px;
        height: 14px;
    }
    
    .quote-form {
        padding: 25px 15px;
    }
    
    .quote-form h4 {
        font-size: 1.3rem;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .cta-button-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 25px 15px;
    }
    
    .testimonial-card img {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-card blockquote {
        font-size: 1rem;
    }
    
    .faq-container summary {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .faq-container details p {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }
}

/* Very Small Devices (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 10px;
    }
    
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.1rem; }
    
    section { 
        padding: 40px 0; 
    }
    
    .navbar-logo img {
        height: 45px;
    }
    
    .navbar-links {
        padding: 15px 0;
    }
    
    .navbar-links a {
        font-size: 1rem;
        padding: 8px 0;
    }
    
    .quote-form {
        padding: 20px 12px;
    }
    
    .quote-form h4 {
        font-size: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .cta-button-secondary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .testimonial-card {
        padding: 20px 12px;
    }
    
    .testimonial-card img {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-card blockquote {
        font-size: 0.95rem;
    }
    
    .faq-container summary {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .faq-container details p {
        padding: 0 12px 12px;
        font-size: 0.85rem;
    }
    
    .whatsapp-flotante {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-flotante svg {
        width: 30px;
        height: 30px;
    }
}

/* Hero container responsive */
.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    gap: 2rem;
}

.hero__content-left {
    flex: 1 1 350px;
    min-width: 300px;
    max-width: 600px;
}

.hero__content-right {
    flex: 1 1 350px;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.hero__cta-group {
    margin-top: 1.2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__cta,
.hero__cta-alt {
    padding: 12px 30px;
    font-size: 1rem;
}

.hero__image {
    max-width: 420px;
    width: 100%;
    border-radius: 1.5rem;
    object-fit: cover;
}

/* Hero responsive breakpoints */
@media (max-width: 1199px) {
    .hero__title {
        font-size: 3rem;
    }
    
    .hero__subtitle {
        font-size: 1.2rem;
    }
    
    .hero__image {
        max-width: 380px;
    }
}

@media (max-width: 991px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    
    .hero__content-left,
    .hero__content-right {
        flex: none;
        max-width: 100%;
    }
    
    .hero__title {
        font-size: 2.8rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .hero__image {
        max-width: 350px;
    }
}

@media (max-width: 767px) {
    .hero__container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .hero__cta-group {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .hero__cta,
    .hero__cta-alt {
        width: 100%;
        min-width: unset;
        padding: 12px 25px;
    }
    
    .hero__image {
        max-width: 300px;
    }
}

@media (max-width: 575px) {
    .hero__container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .hero__title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero__subtitle {
        font-size: 0.95rem;
    }
    
    .hero__cta,
    .hero__cta-alt {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero__image {
        max-width: 280px;
    }
}

@media (max-width: 479px) {
    .hero__container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero__title {
        font-size: 1.9rem;
    }
    
    .hero__subtitle {
        font-size: 0.9rem;
    }
    
    .hero__cta,
    .hero__cta-alt {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .hero__image {
        max-width: 250px;
    }
}

/* Animación de entrada para el hero */
.hero__content-left,
.hero__content-right {
    opacity: 0;
    transform: translateY(40px);
    animation: hero-fade-in-up 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}
.hero__content-right {
    animation-delay: 0.5s;
}
@keyframes hero-fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón de contacto pequeño en productos */
.product-cta-small {
    font-size: 0.95rem;
    padding: 7px 18px;
    border-radius: 24px;
    min-width: 90px;
}

/* Logos de clientes: estilos específicos para hover */
.client-logo:hover {
    filter: none;
    opacity: 1;
}

/* Íconos de beneficios: tamaño uniforme */
.benefit-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
}

/* ------------------------------ */
/* 18. SECCIÓN GALERÍA            */
/* ------------------------------ */
.gallery-section {
    background-color: var(--color-light-bg);
    padding: 80px 0;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    background-color: var(--color-background);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(113, 96, 72, 0.9) 0%,
        rgba(239, 135, 41, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.gallery-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.gallery-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.gallery-cta {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-background);
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* Animaciones para la galería */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    animation: galleryFadeIn 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }

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

/* Responsive para la galería */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .gallery-item img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-content h3 {
        font-size: 1.2rem;
    }
    
    .gallery-content p {
        font-size: 0.9rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }
    
    .gallery-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 400px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-content h3 {
        font-size: 1.1rem;
    }
    
    .gallery-content p {
        font-size: 0.85rem;
    }
    
    .gallery-cta {
        padding: 1.5rem;
    }
    
    .gallery-cta p {
        font-size: 1rem;
    }
}