/* ============================================
PLANTITEX S.A.C. - Main Stylesheet
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');
@import url('./public/404.css');
@import url('./public/detalles.css');
@import url('./public/gallery.css');
@import url('./public/inicio.css');
@import url('./public/nosotros.css');
@import url('./public/privacidad.css');
@import url('./public/productos.css');
@import url('./public/servicio.css');
@import url('./public/testimonio.css');
@import url('./public/contacto.css');
/* ============================================
1. DESIGN TOKENS / CSS VARIABLES
============================================ */
:root {
    /* Brand Colors */
    --primary: #2196F3;
    --primary-hover: #1f79c7;
    --primary-dark: #1565C0;
    --secondary: #1976D2;
    --accent: #64B5F6;
    --accent-light: #E3F2FD;
    /* Surface Colors */
    --surface: #F5F7FA;
    --surface-2: #EEF2F7;
    --white: #FFFFFF;
    /* Text Colors */
    --text-primary: #1A2332;
    --text-secondary: #4A5568;
    --text-tertiary: #90A0B0;
    /* UI Colors */
    --border: #E2E8F0;
    --border-focus: #2196F3;
    --shadow: rgba(33, 150, 243, 0.12);
    --shadow-dark: rgba(26, 35, 50, 0.15);
    --shadow-sm: 0 1px 4px rgba(26,35,50,0.08);
    --shadow-md: 0 4px 16px rgba(26,35,50,0.12);
    --shadow-lg: 0 12px 40px rgba(26,35,50,0.15);
    --success: #25D366;
    --success-dark: #1DA851;
    --error: #E53E3E;
    --warning-color: #FF9800;
    --info: #2196F3;
    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.25rem;
    --text-6xl: 4rem;
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    /* Layout */
    --max-width: 1200px;
    --radius-sm: 4px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
2. RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }
.skip-link { position: absolute; top: -40px; left: 0; padding: 8px 16px; background: var(--primary); color: white; z-index: 9999; transition: top 0.2s; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0; }

/* ============================================
3. UTILITIES
============================================ */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label { display: inline-block; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); background: var(--accent-light); padding: 0.35rem 1rem; border-radius: var(--radius-full); margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); font-weight: 700; color: var(--text-primary); line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { font-size: var(--text-lg); color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================
4. BUTTONS
============================================ */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em; padding: 0.85rem 1.75rem; border-radius: var(--radius-full); transition: var(--transition); white-space: nowrap; min-height: 44px; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 16px var(--shadow); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(33, 150, 243, 0.35); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }
.btn-outline-primary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-lg { font-size: var(--text-base); padding: 1rem 2.25rem; }

/* ============================================
5. HEADER & NAVIGATION
============================================ */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: var(--transition); }
#header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 20px var(--shadow-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); padding: 0.5rem 0.875rem; border-radius: var(--radius-full); transition: var(--transition-fast); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--accent-light); }
.header-cta { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--radius); transition: var(--transition-fast); min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
.hamburger-line { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); transform-origin: center; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1.5rem; box-shadow: 0 8px 24px var(--shadow-dark); z-index: 999; animation: slideDown 0.25s ease; }
.mobile-menu.open { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.5rem; }
.mobile-nav .nav-link { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: var(--text-base); }
.mobile-cta { display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ============================================
6. HERO SECTION
============================================ *//* ============================================
 /* ============================================
   HERO CAROUSEL - CONTENEDOR CORRECTO
============================================ */

.hero-inicio,
.hero-carousel,
.hero-slides,
.hero-slide,
.hero-bg-image {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Si la sombra viene de un contenedor padre */
.hero-inicio::after,
.hero-carousel::after {
    box-shadow: none !important;
    display: none !important;
}

/* Si es un filtro drop-shadow */
.hero-carousel {
    filter: none !important;
}

[class*="hero"] {
    box-shadow: none !important;
    filter: none !important;
}
/* Contenedor principal del hero - debe tener altura fija */
.hero-inicio {
    position: relative;
    width: 100%;
    margin-bottom: 4rem; /* Espacio entre el banner y el contenido siguiente */
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 472px; /* Altura fija obligatoria */
    border-radius: 16px; /* Opcional: bordes redondeados */
    margin: 20px auto;
    max-width: 1400px;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Cada slide - absolute pero DENTRO del contenedor con altura fija */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Enlace que cubre toda la imagen */
.hero-slide .btn-ver-catalogo {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

/* Imagen del banner */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Barra de progreso */
.hero-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 0%;
    background: var(--primary, #2196F3);
    z-index: 5;
    transition: width 0s;
}

.hero-slide.active .hero-progress-bar {
    width: 100%;
    transition: width 5s linear;
}

/* Controles (Puntos) - dentro del carousel */
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e3f2fd;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary, #2196F3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.hero-dot.active {
    border-color: var(--primary, #2196F3);
    transform: scale(1.15);
    background: var(--primary, #2196F3);
   
   
}

.hero-dot.active .dot-progress {
    transform: scale(0.65);
}

.hero-dot:hover {
   
    border-color: var(--accent-light);
    transform: scale(1.1);
}

/* ============================================
   SECCIÓN DE PRODUCTOS - Separada del hero
============================================ */
.productos-home-section {
    padding: 5rem 0;
    background: #f0f2f5;
    position: relative;
    z-index: 1; /* Asegura que esté por encima de cualquier elemento absoluto */
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
        min-height: 350px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .hero-controls {
        bottom: 20px;
        gap: 10px;
    }
    
    .hero-dot {
        width: 45px;
        height: 45px;
    }
    
    .productos-home-section {
        padding: 3rem 0;
    }
}



/* ============================================
10. FOOTER
============================================ */
#footer { background: var(--text-primary); color: rgba(255, 255, 255, 0.75); padding: var(--space-lg) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: var(--space-lg); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { margin-bottom: 1.25rem; }
.footer-bio { font-size: var(--text-sm); line-height: 1.75; margin-bottom: 1.5rem; color: rgba(255,255,255,0.6); }
.social-links { display: flex; gap: 0.75rem; }
.social-link { width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.social-link:hover { background: var(--primary); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; fill: white; }
.footer-col-title { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; color: white; letter-spacing: 0.04em; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link { font-size: var(--text-sm); color: rgba(255,255,255,0.6); transition: var(--transition-fast); display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-link:hover { color: var(--accent); transform: translateX(3px); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.85rem; }
.footer-contact-icon { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; margin-top: 1px; }
.footer-contact-text { font-size: var(--text-sm); color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer-contact-text a { color: rgba(255,255,255,0.6); transition: var(--transition-fast); }
.footer-contact-text a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; font-size: var(--text-xs); color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 1rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); transition: var(--transition-fast); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
11. FLOATING ELEMENTS & COOKIES
============================================ */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.whatsapp-btn { width: 58px; height: 58px; background: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); transition: var(--transition); animation: waBounce 2s ease 3s both; }
.whatsapp-btn:hover { background: var(--success-dark); transform: scale(1.1); }
.whatsapp-btn svg { width: 30px; height: 30px; fill: white; }
@keyframes waBounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
.whatsapp-tooltip { background: var(--text-primary); color: white; font-size: var(--text-xs); font-weight: 600; padding: 0.4rem 0.85rem; border-radius: var(--radius-full); white-space: nowrap; opacity: 0; transform: translateX(10px); transition: var(--transition-fast); pointer-events: none; }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100; background: var(--text-primary); color: white; padding: 1.25rem 1.5rem; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-top: 3px solid var(--primary); }
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cookie-text { font-size: var(--text-sm); color: rgba(255,255,255,0.8); flex: 1; min-width: 280px; }
.cookie-text a { color: var(--accent); font-weight: 600; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-btn { font-size: var(--text-sm); font-weight: 600; padding: 0.55rem 1.25rem; border-radius: var(--radius-full); transition: var(--transition-fast); min-height: 40px; }
.cookie-btn-accept { background: var(--primary); color: white; }
.cookie-btn-accept:hover { background: var(--primary-hover); }
.cookie-btn-reject { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.2); }

/* ============================================
12. RESPONSIVE DESIGN
============================================ */
/* ── Desktop grande (1400px+) ─── */
@media (min-width: 1400px) {
    .container { max-width: 1360px; }
    .hero-carousel { max-width: 1360px; }
}

/* ── Laptop (1024px – 1279px) ─── */
@media (max-width: 1279px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .servicios-grid-container { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet (768px – 1023px) ─── */
@media (max-width: 1023px) {
    .hamburger { display: flex; }
    .nav { display: none; }
    .header-cta .btn { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-card { flex: 0 0 calc(50% - 0.75rem); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .servicios-grid-container { grid-template-columns: repeat(2, 1fr); }
    .cookie-inner { gap: 1rem; }
}

/* ── Mobile (480px – 767px) ─── */
@media (max-width: 767px) {
    .products-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonial-card { flex: 0 0 100%; }
    .hero-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
    .servicios-header-section { padding: 2.5rem 0; }
    .servicios-header-title { font-size: var(--text-2xl); }
    .servicios-grid-container { grid-template-columns: 1fr; gap: 1rem; }
    .servicio-card-item { padding: 1.75rem 1.5rem; }
    .section-title { font-size: var(--text-2xl); }
    .section-subtitle { font-size: var(--text-base); }
    .btn { padding: 0.75rem 1.5rem; font-size: var(--text-sm); }
    .btn-lg { padding: 0.875rem 1.75rem; font-size: var(--text-base); }
}

/* ── Small mobile (< 480px) ─── */
@media (max-width: 479px) {
    .container { padding: 0 1rem; }
    .hero-carousel { margin: 8px; border-radius: 8px; height: 240px; }
    .footer-grid { gap: 1.5rem; }
    .social-links { flex-wrap: wrap; }
    .section-label { font-size: 0.65rem; }
    .product-card { border-radius: var(--radius); }
    .testimonial-card { padding: 1.5rem; }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; justify-content: center; }
}

/* ── Accessibility: reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .hero-slide { transition: none !important; }
    .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── High contrast mode ─── */
@media (prefers-contrast: high) {
    :root {
        --border: #999;
        --text-secondary: #333;
        --text-tertiary: #555;
    }
}