/* ===================================
   MAR Y TIERRA - CSS v3
   Febrero 2026 - Con carrusel + JSON
   =================================== */

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-blue: #1e5a7d;
    --deep-ocean: #0d2f44;
    --sky-blue: #4a9ebe;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-gray: #5a5a5a;
    --border-light: #e0e0e0;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
img { max-width: 100%; height: auto; display: block; }
section { padding: 4rem 0; scroll-margin-top: 80px; }

/* NAVEGACIÓN */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all var(--transition-normal);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 60px; width: auto; transition: transform var(--transition-normal); }
.logo-img:hover { transform: scale(1.05); }

.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }

.nav-link {
    color: var(--deep-ocean); text-decoration: none; font-weight: 500;
    font-size: 0.95rem; transition: color var(--transition-fast); position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: var(--sky-blue); transition: width var(--transition-normal);
}
.nav-link:hover, .nav-link.active { color: var(--primary-blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.lang-switch { margin-left: 0.5rem; }
.lang-btn {
    background: var(--primary-blue); color: white; border: none;
    padding: 0.35rem 0.6rem; border-radius: 5px;
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-fast); letter-spacing: 0.5px;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.45rem center;
    padding-right: 1.4rem;
}
.lang-btn:hover, .lang-btn:focus { background-color: var(--sky-blue); outline: none; }
.lang-btn option { background: var(--primary-blue); color: white; }

.mobile-menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 5px;
}
.mobile-menu-toggle span {
    width: 25px; height: 3px; background: var(--deep-ocean);
    transition: all var(--transition-normal); border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

/* HERO */
.hero {
    position: relative; min-height: 75vh;
    display: flex; align-items: center; justify-content: center;
    background: url('hero-background.jpg') center/cover no-repeat fixed;
    color: white; overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,47,68,0.85), rgba(30,90,125,0.75)); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 8vh 2rem 2rem; }
.hero-logo { width: 300px; height: auto; margin: 0 auto 1.5rem; display: block; filter: drop-shadow(0 10px 40px rgba(0,0,0,0.5)); }
.hero-logo img { width: 100%; height: auto; display: block; margin: 0 auto; }
.hero-divider { width: 100px; height: 3px; background: linear-gradient(90deg, transparent, white, transparent); margin: 1rem auto; }
.hero-subtitle { font-size: clamp(1.3rem,3vw,1.8rem); font-weight: 300; margin-bottom: 0.75rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-description { font-size: clamp(1rem,2vw,1.2rem); font-weight: 300; line-height: 1.6; margin-bottom: 1.5rem; opacity: 0.95; }

.wave-divider { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave-svg { position: relative; display: block; width: calc(100% + 1.3px); height: 120px; }
.wave-path { animation: waveMotion 20s ease-in-out infinite; }
.wave-path.wave-2 { animation-delay: -5s; }
.wave-path.wave-3 { animation-delay: -10s; }
@keyframes waveMotion { 0%,100%{transform:translateX(0)} 50%{transform:translateX(-10px)} }

/* ELEMENTOS COMUNES */
.section-header { text-align: center; margin-bottom: 2rem; }
.section-label { display: inline-block; color: var(--sky-blue); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem,5vw,3rem); color: var(--deep-ocean); margin-bottom: 1rem; }
.section-subtitle { font-size: clamp(1rem,2.5vw,1.2rem); color: var(--text-gray); margin-top: 0.5rem; }
.title-decoration { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem auto; }
.decoration-line { width: 60px; height: 2px; background: var(--sky-blue); }
.decoration-circle { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-blue); }

/* NOSOTROS */
.nosotros { background: white; }
.nosotros-historia { margin-bottom: 3rem; }

/* Header de historia */
.historia-header { margin-bottom: 1.5rem; }
.historia-header .section-header { text-align: left; }
.historia-header .title-decoration { justify-content: flex-start; }
.historia-header .section-subtitle { text-align: left; font-size: 1.3rem; color: var(--primary-blue); }

/* Body: grid en desktop */
.historia-body { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.historia-text { order: 1; }
.historia-image { order: 2; }

.historia-text .lead-text { font-size: 1.15rem; line-height: 1.8; margin-bottom: 1.25rem; }
.historia-text p { font-size: 1.05rem; line-height: 1.7; color: var(--text-gray); }
.historia-image { width: 100%; min-height: 400px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.historia-image img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }

/* Valores */
.nosotros-valores { margin-bottom: 3rem; padding: 2rem 0; }
.valores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr)); gap: 1.25rem; max-width: 1000px; margin: 0 auto; }
.valor-card { background: white; padding: 1.5rem; border-radius: 15px; text-align: center; box-shadow: 0 3px 15px rgba(0,0,0,0.08); transition: all var(--transition-normal); border: 2px solid transparent; }
.valor-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); border-color: var(--sky-blue); }
.valor-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.valor-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--deep-ocean); margin-bottom: 0.5rem; }
.valor-card p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.5; }

/* Detalles */
.nosotros-detalles { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; background: var(--off-white); padding: 2rem; border-radius: 20px; }
.detalle-columna { background: white; padding: 2rem; border-radius: 15px; box-shadow: 0 3px 15px rgba(0,0,0,0.06); }
.detalle-titulo { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary-blue); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.detalle-icon { font-size: 1.8rem; }
.detalle-intro { font-size: 1rem; color: var(--text-gray); line-height: 1.6; margin-bottom: 1.25rem; }
.detalle-lista { list-style: none; padding: 0; }
.detalle-lista li { padding: 0.75rem 0 0.75rem 1.5rem; position: relative; line-height: 1.6; font-size: 0.95rem; }
.detalle-lista li::before { content: "✓"; position: absolute; left: 0; color: var(--sky-blue); font-weight: bold; font-size: 1.2rem; }
.detalle-lista li strong { color: var(--primary-blue); }

/* Presencia Global */
.nosotros-global { text-align: center; padding: 2rem 0; }
.global-titulo { font-family: var(--font-display); font-size: 2rem; color: var(--deep-ocean); margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.global-icon { font-size: 2.5rem; }
.global-intro { font-size: 1.1rem; color: var(--text-gray); max-width: 700px; margin: 0 auto 2.5rem; line-height: 1.7; }
.global-mercados { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr)); gap: 2rem; max-width: 800px; margin: 0 auto 2.5rem; }
.mercado-card { background: white; padding: 1.75rem 1.25rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: all var(--transition-normal); border: 2px solid transparent; }
.mercado-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-color: var(--sky-blue); }
.mercado-flag { font-size: 3.5rem; margin-bottom: 0.75rem; }
.mercado-card h4 { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary-blue); margin-bottom: 0.4rem; }
.mercado-card p { font-size: 0.95rem; color: var(--text-gray); }
.global-vision { background: linear-gradient(135deg, rgba(74,158,190,0.1), rgba(30,90,125,0.1)); padding: 1.75rem; border-left: 4px solid var(--sky-blue); border-radius: 10px; max-width: 900px; margin: 0 auto; }
.global-vision p { font-size: 1.05rem; line-height: 1.7; margin: 0; }

/* CERTIFICACIONES */
.certificaciones { background: var(--off-white); }
.certificaciones-intro { max-width: 800px; margin: 0 auto 2.5rem; text-align: center; font-size: 1.1rem; color: var(--text-gray); line-height: 1.8; }
.certificaciones-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; margin-bottom: 2.5rem; padding: 2rem 0; }
.certificacion-logo { width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; }
.certificacion-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15)); transition: transform var(--transition-normal); }
.certificacion-logo:hover img { transform: scale(1.05); }
.certificaciones-footer { margin-top: 2.5rem; }
.cert-highlight { background: linear-gradient(135deg, var(--primary-blue), var(--deep-ocean)); color: white; padding: 2rem; border-radius: 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.cert-highlight h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 1rem; }
.cert-highlight p { font-size: 1.05rem; line-height: 1.8; opacity: 0.95; }

/* PRODUCTOS */
.productos { background: white; }
.productos-intro { max-width: 800px; margin: 0 auto 2.5rem; text-align: center; font-size: 1.1rem; color: var(--text-gray); line-height: 1.8; }
.productos-category { margin-bottom: 3rem; }
.category-title { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.2rem); color: var(--primary-blue); text-align: center; margin-bottom: 2rem; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.category-icon { font-size: clamp(2rem,5vw,2.5rem); }
.productos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,200px),1fr)); gap: 1.5rem; }
.producto-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: all var(--transition-normal); display: flex; flex-direction: column; }
.producto-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* CARRUSEL DE PRODUCTO */
.producto-image { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--off-white); position: relative; }
.producto-slider { display: flex; width: 100%; height: 100%; transition: transform 0.4s ease; }
.producto-slider img { min-width: 100%; width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
/* Dots indicadores */
.slider-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.slider-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); border: 1px solid rgba(0,0,0,0.2); transition: all var(--transition-fast); cursor: pointer; padding: 0; }
.slider-dot.active { background: white; transform: scale(1.2); }
/* Flechas de navegación */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--deep-ocean); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-fast); z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.slider-arrow.prev { left: 6px; }
.slider-arrow.next { right: 6px; }
.producto-card:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: white; }
/* Touch: mostrar flechas siempre en móvil */
@media (hover: none) {
    .slider-arrow { opacity: 0.7; }
}

.producto-content { padding: clamp(1rem,3vw,1.5rem); text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.producto-content h4 { font-family: var(--font-display); font-size: clamp(1.1rem,2.5vw,1.3rem); color: var(--deep-ocean); margin-bottom: 0.3rem; }
.scientific-name { font-size: clamp(0.85rem,2vw,0.95rem); font-weight: 300; color: var(--text-gray); }
.productos-cta { text-align: center; margin-top: 2rem; padding: 2rem 1.5rem; background: var(--off-white); border-radius: 20px; }
.productos-cta p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 1.5rem; }
.cta-button { display: inline-block; background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue)); color: white; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all var(--transition-normal); box-shadow: 0 5px 20px rgba(30,90,125,0.3); }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(30,90,125,0.4); }

/* GALERÍA */
.galeria { background: var(--off-white); }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); gap: 1.25rem; }
.galeria-item { position: relative; border-radius: 15px; overflow: hidden; min-height: 200px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all var(--transition-normal); }
.galeria-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CONTACTO */
.contacto { background: white; }
.contacto-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contacto-info h3 { font-family: var(--font-display); font-size: 2rem; color: var(--deep-ocean); margin-bottom: 1rem; }
.contacto-info p { font-size: 1.05rem; color: var(--text-gray); line-height: 1.7; margin-bottom: 2rem; }
.info-items { display: flex; flex-direction: column; gap: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { font-size: 1.8rem; flex-shrink: 0; }
.info-content h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--deep-ocean); margin-bottom: 0.5rem; }
.info-content p { font-size: 0.95rem; color: var(--text-gray); margin: 0; }
.info-content a { color: var(--primary-blue); text-decoration: none; transition: color var(--transition-fast); }
.info-content a:hover { color: var(--sky-blue); }

.contacto-form-wrapper { background: var(--off-white); padding: 2rem; border-radius: 20px; }
.contacto-form h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--deep-ocean); margin-bottom: 1.5rem; text-align: center; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; color: var(--deep-ocean); margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-group input,
.form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--border-light); border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem; transition: border-color var(--transition-fast); }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--sky-blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-button { width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue)); color: white; border: none; border-radius: 50px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all var(--transition-normal); box-shadow: 0 5px 20px rgba(30,90,125,0.3); }
.submit-button:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(30,90,125,0.4); }

/* FOOTER */
.footer { background: var(--off-white); padding: 2.5rem 0 0; }
.footer-content { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 2rem; align-items: start; padding: 2rem 0; }
.footer-logo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logo img { width: 120px; height: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.95rem; color: var(--text-gray); font-style: italic; }
.footer-info { text-align: center; }
.footer-info h4 { font-size: 0.9rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--text-gray); }
.footer-info h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--deep-ocean); }
.footer-info p { font-size: 0.9rem; color: var(--text-gray); }
.footer-contact { text-align: center; }
.footer-contact p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-contact a { color: var(--primary-blue); text-decoration: none; transition: color var(--transition-fast); }
.footer-contact a:hover { color: var(--sky-blue); }
.footer-bottom { background: var(--deep-ocean); color: white; text-align: center; padding: 1.5rem 0; }
.footer-bottom p { margin: 0; font-size: 0.9rem; }

/* WHATSAPP */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 20px rgba(37,211,102,0.4); z-index: 999; transition: all var(--transition-normal); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 35px; height: 35px; color: white; }


/* Clickable items */
.producto-card { cursor: pointer; }
.galeria-item { cursor: pointer; }

/* ANIMACIONES */
[data-aos] { opacity: 1; transition: transform 0.6s ease-out; }
.aos-animate[data-aos="fade-up"] { animation: smoothSlideUp 0.6s ease-out; }
.aos-animate[data-aos="fade-right"] { animation: smoothSlideRight 0.6s ease-out; }
.aos-animate[data-aos="fade-left"] { animation: smoothSlideLeft 0.6s ease-out; }
.aos-animate[data-aos="zoom-in"] { animation: smoothScale 0.6s ease-out; }

@keyframes smoothSlideUp { from{transform:translateY(20px);opacity:0.7} to{transform:translateY(0);opacity:1} }
@keyframes smoothSlideRight { from{transform:translateX(-20px);opacity:0.7} to{transform:translateX(0);opacity:1} }
@keyframes smoothSlideLeft { from{transform:translateX(20px);opacity:0.7} to{transform:translateX(0);opacity:1} }
@keyframes smoothScale { from{transform:scale(0.95);opacity:0.7} to{transform:scale(1);opacity:1} }

/* RESPONSIVE - Tablet */
@media (max-width: 968px) {
    .nav-menu { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); background: white; flex-direction: column; justify-content: flex-start; padding: 2rem; gap: 1.5rem; transition: left var(--transition-normal); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
    .nav-menu.active { left: 0; }
    .mobile-menu-toggle { display: flex; }

    /* Historia — mantener grid lado a lado */
    .historia-body { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .historia-text .lead-text { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.75rem; }
    .historia-text p { font-size: 0.9rem; line-height: 1.6; }
    .historia-header .section-title { font-size: clamp(1.5rem, 4vw, 2.2rem); }
    .historia-header .section-subtitle { font-size: 1rem; }
    .historia-image { min-height: 280px; }
    .historia-image img { min-height: 280px; }

    /* Detalles — mantener lado a lado */
    .nosotros-detalles { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.5rem; }
    .detalle-columna { padding: 1.25rem; }
    .detalle-titulo { font-size: 1.2rem; }
    .detalle-intro { font-size: 0.88rem; margin-bottom: 0.75rem; }
    .detalle-lista li { font-size: 0.85rem; padding: 0.5rem 0 0.5rem 1.25rem; }

    .contacto-content { grid-template-columns: 1fr; }
    .certificaciones-grid { gap: 2.5rem; }
    .certificacion-logo { width: 120px; height: 120px; }
}

/* RESPONSIVE - Mobile */
@media (max-width: 768px) {
    section { padding: 3rem 0; }
    .container { padding: 0 1rem; }
    .hero { min-height: 70vh; }
    .hero-logo { width: 240px; margin-bottom: 1.25rem; }
    .hero-content { padding-top: 6vh; }

    /* =============================================
       Historia — Float wrapping (texto en L)
       ============================================= */
    .historia-header { margin-bottom: 1rem; }
    .historia-header .section-header { text-align: center; }
    .historia-header .title-decoration { justify-content: center; }
    .historia-header .section-subtitle { text-align: center; font-size: 1rem; }
    .historia-header .section-title { font-size: clamp(1.4rem, 4vw, 1.8rem); }
    .historia-header .section-label { font-size: 0.75rem; }

    /* Switch from grid to block for float behavior */
    .historia-body { display: block; }

    /* Image floats right — text wraps in L-shape */
    .historia-image {
        float: right;
        width: 45%;
        min-height: auto;
        margin: 0.25rem 0 0.75rem 1rem;
        border-radius: 12px;
        shape-outside: margin-box;
    }
    .historia-image img { min-height: auto; border-radius: 12px; }

    /* Clear float after body */
    .historia-body::after { content: ''; display: table; clear: both; }

    .historia-text .lead-text { font-size: 0.88rem; line-height: 1.55; margin-bottom: 0.6rem; }
    .historia-text p { font-size: 0.85rem; line-height: 1.55; }

    /* Valores — 2 columnas en móvil */
    .valores-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .valor-card { padding: 1rem 0.75rem; }
    .valor-icon { font-size: 2rem; margin-bottom: 0.4rem; }
    .valor-card h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
    .valor-card p { font-size: 0.78rem; line-height: 1.4; }

    /* Detalles — lado a lado + contenido centrado */
    .nosotros-detalles { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem; }
    .detalle-columna { padding: 1rem; text-align: center; }
    .detalle-titulo { font-size: 1.05rem; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
    .detalle-icon { font-size: 1.3rem; }
    .detalle-intro { font-size: 0.8rem; line-height: 1.5; margin-bottom: 0.6rem; }
    .detalle-lista { text-align: left; }
    .detalle-lista li { font-size: 0.78rem; padding: 0.4rem 0 0.4rem 1.1rem; line-height: 1.45; }
    .detalle-lista li::before { font-size: 1rem; }

    /* Presencia Global — 3 en línea */
    .global-titulo { font-size: 1.5rem; }
    .global-icon { font-size: 1.8rem; }
    .global-intro { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .global-mercados { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-width: 100%; }
    .mercado-card { padding: 1rem 0.5rem; }
    .mercado-flag { font-size: 2.2rem; margin-bottom: 0.4rem; }
    .mercado-card h4 { font-size: 1rem; }
    .mercado-card p { font-size: 0.78rem; }
    .global-vision { padding: 1.25rem; }
    .global-vision p { font-size: 0.88rem; }

    /* Productos — 3 columnas en móvil */
    .productos-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .producto-content { padding: 0.6rem 0.4rem; }
    .producto-content h4 { font-size: 0.85rem; }
    .scientific-name { font-size: 0.7rem; }
    .productos-intro { font-size: 0.95rem; }
    .category-title { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin-bottom: 1.25rem; }

    /* Galería — 3 columnas */
    .galeria-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .galeria-item { min-height: 120px; border-radius: 10px; }

    /* Certificaciones */
    .certificaciones-grid { gap: 2rem; }
    .certificacion-logo { width: 100px; height: 100px; }

    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

/* RESPONSIVE - Small Mobile */
@media (max-width: 480px) {
    section { padding: 2.5rem 0; }
    .hero { min-height: 65vh; }
    .hero-logo { width: 200px; margin-bottom: 1rem; }
    .hero-content { padding-top: 5vh; }
    .hero-divider { margin: 0.75rem auto; }

    /* Historia float — más compacto */
    .historia-header { margin-bottom: 0.75rem; }
    .historia-header .section-label { font-size: 0.65rem; margin-bottom: 0.2rem; }
    .historia-header .section-title { font-size: 1.15rem; margin-bottom: 0.3rem; }
    .historia-header .section-subtitle { font-size: 0.82rem; }
    .historia-header .title-decoration { margin: 0.35rem auto; gap: 0.5rem; }
    .historia-header .decoration-line { width: 30px; }
    .historia-header .decoration-circle { width: 5px; height: 5px; }

    .historia-image { width: 42%; margin: 0.15rem 0 0.6rem 0.75rem; }
    .historia-text .lead-text { font-size: 0.8rem; line-height: 1.5; margin-bottom: 0.5rem; }
    .historia-text p { font-size: 0.78rem; line-height: 1.5; }

    /* Valores — 2 columnas */
    .valores-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .valor-card { padding: 0.75rem 0.5rem; }
    .valor-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
    .valor-card h3 { font-size: 0.82rem; }
    .valor-card p { font-size: 0.7rem; }

    /* Detalles — lado a lado centrado */
    .nosotros-detalles { gap: 0.75rem; padding: 0.75rem; }
    .detalle-columna { padding: 0.75rem; text-align: center; }
    .detalle-titulo { font-size: 0.9rem; justify-content: center; }
    .detalle-icon { font-size: 1.1rem; }
    .detalle-intro { font-size: 0.72rem; line-height: 1.4; margin-bottom: 0.5rem; }
    .detalle-lista li { font-size: 0.7rem; padding: 0.3rem 0 0.3rem 1rem; line-height: 1.4; }
    .detalle-lista li::before { font-size: 0.85rem; }

    /* Presencia Global — 3 en línea */
    .global-mercados { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .mercado-card { padding: 0.75rem 0.35rem; }
    .mercado-flag { font-size: 1.8rem; margin-bottom: 0.3rem; }
    .mercado-card h4 { font-size: 0.85rem; }
    .mercado-card p { font-size: 0.7rem; }

    /* Productos — 3 columnas, más compacto */
    .productos-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .producto-content { padding: 0.5rem 0.3rem; }
    .producto-content h4 { font-size: 0.75rem; }
    .scientific-name { font-size: 0.6rem; }
    .slider-arrow { width: 22px; height: 22px; font-size: 11px; }
    .slider-dots { bottom: 4px; gap: 3px; }
    .slider-dot { width: 5px; height: 5px; }

    /* Galería — 3 columnas */
    .galeria-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .galeria-item { min-height: 90px; border-radius: 8px; }

    .certificacion-logo { width: 80px; height: 80px; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-float svg { width: 28px; height: 28px; }
}

/* RESPONSIVE - Extra Small (320px) */
@media (max-width: 360px) {
    .historia-image { width: 40%; margin-left: 0.5rem; }
    .historia-text .lead-text { font-size: 0.75rem; }
    .historia-text p { font-size: 0.72rem; }

    .nosotros-detalles { gap: 0.5rem; padding: 0.5rem; }
    .detalle-columna { padding: 0.5rem; }
    .detalle-titulo { font-size: 0.8rem; }
    .detalle-intro { font-size: 0.68rem; }
    .detalle-lista li { font-size: 0.65rem; }

    .productos-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
    .producto-content h4 { font-size: 0.7rem; }
    .scientific-name { font-size: 0.55rem; }
}
