/*
 * Código realizado por Powerhouse Digital Studio para Sapax.
 * Hoja de estilos principal del Landing Page.
 */

:root {
    --azul-marca: #0c4282;
    --verde-marca: #72ba45;
    --texto-descriptivo: #1a1a1a;
    --bg-light: #f4f7f6;
    --blanco: #ffffff;
    --sombra-suave: 0 10px 25px rgba(0, 0, 0, 0.08);
    --sombra-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transicion: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--texto-descriptivo);
    line-height: 1.6;
    background-color: var(--blanco);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    color: var(--verde-marca);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
}
.section-title.center {
    text-align: center;
}

/* Navbar */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--blanco);
    box-shadow: none; 
    z-index: 1000;
    transition: var(--transicion);
}
.main-header.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

/* ALINEACIÓN MAESTRA: 96% DE ANCHO */
.navbar, .hero-content-wrapper {
    width: 96%;
    max-width: 1600px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.logo img {
    max-height: 110px; 
    margin-left: 0;
}
.logo h2 {
    color: var(--azul-marca);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--azul-marca);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transicion);
}

.nav-links a:hover {
    color: var(--verde-marca);
}

.btn-login-nav {
    background-color: var(--verde-marca);
    color: var(--blanco) !important;
    padding: 10px 25px;
    border-radius: 30px;
}
.btn-login-nav:hover {
    background-color: #5da035;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--azul-marca);
    transition: var(--transicion);
}

/* Hero Section */
.hero-section {
    margin-top: 75px; 
    height: calc(100vh - 75px);
    min-height: 650px;
    position: relative;
    background-color: var(--blanco);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -1px; 
    left: 0;
    width: 100%;
    height: 12vw;
    min-height: 80px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 L1440,0 L1440,80 C960,0 480,180 0,60 Z'/%3E%3C/svg%3E") no-repeat top center;
    background-size: 100% 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 12vw;
    min-height: 80px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,200 L1440,200 L1440,140 C960,20 480,200 0,120 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-slider, .hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 25%, rgba(255,255,255,0) 50%);
    z-index: 2;
}

/* El Wrapper asegura que el contenido respete la cuadrícula del menú */
.hero-content-wrapper {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center; 
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 650px;
    padding-bottom: 20px; 
}

.hero-antetitulo {
    color: var(--verde-marca);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-titulo {
    color: var(--azul-marca);
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitulo {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--texto-descriptivo);
}

.btn-cta {
    display: inline-block;
    background-color: var(--verde-marca);
    color: var(--blanco);
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transicion);
    border: none;
    cursor: pointer;
}
.btn-cta:hover {
    background-color: #5da035;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 186, 69, 0.4);
}

/* Nosotros Section */
.nosotros-section { padding: 80px 0; }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.nosotros-imagen img { border-radius: 20px; box-shadow: var(--sombra-suave); }
.texto-deslizante { position: relative; overflow: hidden; min-height: 200px; }
.texto-slide { display: none; animation: fadeIn 0.5s; }
.texto-slide.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.nosotros-controls { display: flex; align-items: center; gap: 15px; margin-top: 30px; }
.control-btn { background: var(--azul-marca); color: var(--blanco); border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; justify-content: center; align-items: center; transition: var(--transicion); }
.control-btn:hover { background: var(--verde-marca); }
.dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; background: #ccc; border-radius: 50%; cursor: pointer; }
.dot.active { background: var(--verde-marca); }

/* Productos Section */
.productos-section { padding: 80px 0; }
.productos-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; }
.tab-btn { background: transparent; border: 2px solid var(--azul-marca); color: var(--azul-marca); padding: 10px 25px; border-radius: 30px; font-family: 'Poppins', sans-serif; font-weight: 600; cursor: pointer; transition: var(--transicion); }
.tab-btn.active, .tab-btn:hover { background: var(--azul-marca); color: var(--blanco); }
.productos-tab-content { display: none; animation: fadeIn 0.5s; }
.productos-tab-content.active { display: block; }
.productos-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.producto-item { display: flex; background: var(--blanco); border-radius: 20px; box-shadow: var(--sombra-suave); overflow: hidden; transition: var(--transicion); }
.producto-info { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.producto-info h3 { color: var(--azul-marca); font-size: 28px; margin-bottom: 15px; }
.producto-iconos { margin-top: 20px; display: flex; gap: 15px; flex-wrap: wrap; }
.ico-uso, .ico-aroma { background: var(--bg-light); padding: 8px 15px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--azul-marca); border: 1px solid #eee; }
.producto-foto { flex: 1; background: var(--bg-light); display: flex; justify-content: center; align-items: center; padding: 20px; }
.producto-foto img { max-height: 400px; border-radius: 10px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }

/* Beneficios y Nichos */
.beneficios-section, .nichos-section { padding: 80px 0; }
.tarjetas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card-saltito { background: var(--blanco); padding: 40px 30px; border-radius: 20px; box-shadow: var(--sombra-suave); text-align: center; transition: var(--transicion); cursor: default; border: 1px solid #f0f0f0; }
.card-saltito:hover { transform: translateY(-12px); box-shadow: var(--sombra-hover); border-color: var(--verde-marca); }
.tarjeta-icono { width: 70px; height: 70px; margin: 0 auto 20px auto; }
.card-saltito h4 { color: var(--azul-marca); font-size: 18px; margin-bottom: 15px; }

/* FAQ */
.faq-section { padding: 80px 0; }
.accordion-container { max-width: 800px; margin: 0 auto; }
.accordion-item { background: var(--blanco); margin-bottom: 15px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); overflow: hidden; }
.accordion-header { width: 100%; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; background: transparent; border: none; font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; color: var(--azul-marca); cursor: pointer; text-align: left; transition: var(--transicion); }
.accordion-header:hover, .accordion-header.active { background-color: var(--azul-marca); color: var(--blanco); }
.accordion-header .icon { font-size: 20px; transition: transform 0.3s; }
.accordion-header.active .icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: var(--blanco); }
.accordion-body p { padding: 20px 25px; }

/* Footer y Flotantes */
.main-footer { background-color: var(--azul-marca); color: var(--blanco); padding-top: 60px; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-info h4 { font-size: 24px; margin-bottom: 20px; color: var(--verde-marca); }
.social-btn { display: inline-block; background: rgba(255,255,255,0.1); color: var(--blanco); padding: 8px 20px; border-radius: 20px; text-decoration: none; margin-right: 10px; margin-top: 20px; transition: var(--transicion); }
.social-btn:hover { background: var(--verde-marca); }
.footer-map iframe { width: 100%; height: 250px; border: none; border-radius: 15px; }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 20px 0; font-size: 14px; }
.flex-bottom { display: flex; justify-content: space-between; }
.footer-bottom a { color: var(--blanco); text-decoration: none; }
.footer-bottom a:hover { color: var(--verde-marca); }

/* Botones Flotantes */
.float-whatsapp { position: fixed; bottom: 30px; left: 30px; background-color: #25d366; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: var(--sombra-hover); z-index: 100; transition: var(--transicion); }
.float-whatsapp:hover { transform: scale(1.1); }
.float-up { position: fixed; bottom: 30px; right: 30px; background-color: var(--azul-marca); color: white; width: 45px; height: 45px; border-radius: 50%; border: none; font-size: 20px; cursor: pointer; box-shadow: var(--sombra-suave); z-index: 100; opacity: 0; visibility: hidden; transition: var(--transicion); }
.float-up.show { opacity: 1; visibility: visible; }
.float-up:hover { background-color: var(--verde-marca); }

/* Animaciones Sutiles de Entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Responsive */
@media (max-width: 992px) {
    .nosotros-grid, .footer-content { grid-template-columns: 1fr; }
    .producto-item { flex-direction: column; }
    .producto-foto img { max-height: 250px; }
}

@media (max-width: 768px) {
    .hero-titulo { font-size: 36px; }
    .hero-slide::before { background: linear-gradient(0deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%); }
    .hamburger { display: flex; }
    .nav-links { position: absolute; top: 100px; left: -100%; width: 100%; background: var(--blanco); flex-direction: column; padding: 20px 0; box-shadow: 0 10px 10px rgba(0,0,0,0.1); transition: 0.3s; }
    .nav-links.active { left: 0; }
    .flex-bottom { flex-direction: column; text-align: center; gap: 10px; }
}