/* styles.css */
:root {
    --dark: #012052;
    --verde: hsl(142, 71%, 45%);
    --azul: #085ac9;
    --steel: #01690b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--dark);
    color: #ffffff;
}

.font-title {
    font-family: 'Syncopate', sans-serif;
}

/* FADE IN ANIMATION PARA SECCIONES */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Slider */
#hero-slider {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 76, 191, 0.95) 20%, rgba(1, 118, 30, 0.526) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
}

.slide.active .slide-bg {
    animation: kenburns 15s linear infinite alternate;
}

@keyframes kenburns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Glass effect */
.glass {
    background: rgba(2, 158, 49, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Neo button */
.neo-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.neo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.neo-button:hover::before {
    left: 100%;
}

/* Product hover */
.product-hover:hover {
    border-color: var(--verde);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

/* Progress bar */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 30;
}

.progress-bar {
    height: 100%;
    background: var(--verde);
    width: 0%;
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-content {
    max-height: 300px;
}

.faq-item.active i.fa-plus {
    transform: rotate(45deg);
}

/* Animaciones llamativas */
.pulse-glow-verde {
    animation: pulse-glow-verde 2s infinite;
}

@keyframes pulse-glow-verde {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.pulse-glow-azul {
    animation: pulse-glow-azul 2s infinite;
}

@keyframes pulse-glow-azul {
    0% {
        box-shadow: 0 0 0 0 rgba(8, 90, 201, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(8, 90, 201, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(8, 90, 201, 0);
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.contact-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.contact-input:focus {
    border-color: var(--azul);
    box-shadow: 0 0 20px rgba(8, 90, 201, 0.3);
    outline: none;
}

/* Botones flotantes */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.float-btn.whatsapp {
    background: #25D366;
}

.float-btn.call {
    background: var(--azul);
}

.float-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 10px 25px rgba(8, 90, 201, 0.4);
}

.float-btn i {
    animation: bounce-float 2s infinite;
}

@keyframes bounce-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.float-btn .tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.float-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Fondos de secciones */
section {
    transition: background 0.3s ease;
}

section:nth-child(odd) {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.02) 0%, transparent 40%);
}

section:nth-child(even) {
    background: linear-gradient(180deg, rgba(8, 90, 201, 0.02) 0%, transparent 40%);
}

#industria {
    background: linear-gradient(135deg, rgba(8, 90, 201, 0.05) 0%, rgba(0, 0, 0, 0.95) 100%) !important;
}

#contacto {
    background: white !important;
}

#inicio {
    background: transparent !important;
}

footer {
    background: #000 !important;
}

.bg-zinc-950.border-y {
    background: #090b0f !important;
}

/* Transición suave para las imágenes de productos */
.group img {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.group:hover img {
    transform: scale(1.05);
}
/* HEADER - Logo GRANDE */
header a[href="#inicio"] img {
    width: 130px !important;
    height: auto !important;
    max-height: 90px !important;
}

/* FOOTER - Logo PEQUEÑO */
footer .flex.items-center.gap-3 img,
.footer-logo,
.footer-logo-premium img {
    width: 140px !important;
    height: 80px !important;
}

/* Responsive */
@media (max-width: 768px) {
    header .flex.items-center.gap-3 img {
        width: 70px !important;
        height: 70px !important;
    }
    
    footer .flex.items-center.gap-3 img,
    .footer-logo,
    .footer-logo-premium img {
        width: 45px !important;
        height: 45px !important;
    }
}
/* styles.css (adiciones al final) */

/* Efecto Scroll Down (NUEVO) */
.scroll-down {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
}

.scroll-down::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        top: 8px;
    }
    80% {
        opacity: 0;
        top: 30px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* Mejoras menú móvil */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

#mobile-menu.active {
    transform: translateX(0);
}

.mobile-link {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    position: relative;
    padding: 0.5rem 0;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #22c55e;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 80%;
}

/* Ajuste para header en móvil */
@media (max-width: 1024px) {
    header nav {
        padding: 0.75rem 1.5rem;
    }
}

/* Asegurar que el texto de los slides sea legible en móvil */
@media (max-width: 640px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }
    .slide-content p {
        font-size: 0.875rem;
    }
}
/* ===== TEXTOS JUSTIFICADOS ===== */
.justify-text {
    text-align: justify;
    text-justify: inter-word;
}

/* Aplicar a textos específicos */
#nosotros p.text-slate-400,
#beneficios-grid p.text-slate-400,
.faq-content .text-slate-400 {
    text-align: justify;
    text-justify: inter-word;
}

/* Para mejor legibilidad en móvil */
@media (max-width: 640px) {
    .justify-text,
    #nosotros p.text-slate-400,
    #beneficios-grid p.text-slate-400,
    .faq-content .text-slate-400 {
        text-align: left; /* En móvil es mejor left para facilitar lectura */
    }
}
/* Garantizar visibilidad de la sección de productos */
#productos {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px;
}

#productos-grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1.5rem !important;
    min-height: 300px;
}

@media (min-width: 640px) {
    #productos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    #productos-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

#productos-grid .group {
    min-height: 350px;
    background: rgba(0, 0, 0, 0.3);
}