/* 
   Print All - Sistema de Diseño Moderno 2025
   Enfoque: Glassmorphism, Bento Grids, Micro-interacciones
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500&display=swap');

:root {
    /* Paleta CMYK Neón - 2025/2026 Style */
    --cyan: hsl(190, 100%, 60%); /* Más brillante para modo oscuro */
    --cyan-glow: hsla(190, 100%, 60%, 0.6);
    --magenta: hsl(335, 90%, 65%);
    --magenta-glow: hsla(335, 90%, 65%, 0.6);
    --yellow: hsl(48, 100%, 65%);
    --yellow-glow: hsla(48, 100%, 65%, 0.6);
    --key: #ffffff; /* Texto claro */
    
    /* Colores Funcionales Oscuros */
    --primary: var(--cyan);
    --secondary: var(--magenta);
    --accent: var(--yellow);
    --bg-dark: #020617; /* Fondo profundo */
    --bg-card: rgba(255, 255, 255, 0.04);
    --glass-bg: rgba(15, 23, 42, 0.8); /* Glass oscuro */
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Sombras y Efectos de Resplandor */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-md: 0 12px 20px rgba(0,0,0,0.4);
    --glow: 0 0 15px var(--cyan-glow);
    
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

h1 {
    text-shadow: 0 0 20px var(--cyan-glow);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Modern Glassmorphism con grosor reducido */
header.header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 95%;
    top: 1.5rem; /* Ajustado para dar espacio al logo superpuesto */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    padding: 0 2rem;
    height: 70px; /* Barra delgada mantenida */
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.header.scrolled {
    width: 100%;
    top: 0;
    border-radius: 0;
    height: 60px;
    background: rgba(2, 6, 23, 0.95); /* Oscuro en scroll */
    border-bottom: 1px solid var(--cyan-glow);
}

header.header.scrolled .logo-img {
    height: 90px; /* Escalado suave al hacer scroll para usabilidad */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-img {
    height: 115px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--cyan-glow)); /* Brillo sutil inicial */
    transition: var(--transition);
    transform-origin: center;
}

.logo-img-header {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--cyan-glow));
}

.logo-img-dark {
    filter: brightness(0) invert(1); /* Convierte todo el logo a blanco para fondos oscuros */
}

.footer .logo-img {
    height: 120px; /* Logo más grande en el pie de página */
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #cbd5e1; /* Gris claro suave */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
}

/* Hero Section - Immersive Presentation */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 0;
    margin-bottom: 4rem;
}

.carousel-container {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.carousel-track {
    display: flex;
    width: 700%;
    height: 100%;
    animation: smoothCarousel 40s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes smoothCarousel {
    0% { transform: translateX(0); }
    14% { transform: translateX(-14.28%); }
    28% { transform: translateX(-28.56%); }
    42% { transform: translateX(-42.84%); }
    57% { transform: translateX(-57.12%); }
    71% { transform: translateX(-71.4%); }
    85% { transform: translateX(-85.68%); }
    100% { transform: translateX(0); }
}

.carousel-slide {
    width: 14.28%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-overlay {
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    text-wrap: balance;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Buttons - Premium Feel */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--cyan);
    color: white;
    border: none;
    box-shadow: 0 10px 20px var(--cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px var(--cyan-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 100%;
    top: 0;
    left: -100px;
    background: rgba(255,255,255,0.2);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 150%;
}

/* Sections Heading */
.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--cyan-glow);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
    margin: 1rem auto;
    border-radius: 10px;
}

/* Services - Modern Grid */
.services {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--cyan-glow);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--cyan);
    margin: 0 auto 2rem auto;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.service-card:hover .service-icon {
    background: var(--cyan);
    color: white;
    transform: rotate(10deg);
}

.service-card h3 {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
    margin-bottom: 1rem;
}

.service-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}

/* Products - Bento Grid Style */
.products {
    padding: 8rem 0;
    background: #020617;
}

.products .section-title {
    color: var(--magenta);
    text-shadow: 0 0 15px var(--magenta-glow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 32px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.product-card:nth-child(1) { grid-column: span 2; } /* Featured Wide */
.product-card:nth-child(4) { grid-row: span 2; }   /* Featured Tall */

.product-card:hover {
    background: var(--key);
    color: white;
    transform: scale(0.98);
}

.product-image {
    font-size: 3rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.product-card:hover .product-image {
    color: var(--yellow);
}

.product-price {
    margin-top: auto;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cyan);
}

.product-card:hover .product-price {
    color: var(--magenta);
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--bg-dark); /* Tema oscuro */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem; /* Aumentado para un aire más sofisticado */
    align-items: center;
}

.about-content h2 span {
    text-shadow: 0 0 15px var(--magenta-glow);
}

.about-text {
    font-size: 1.2rem;
    color: #94a3b8; /* Gris suave legible */
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature i {
    font-size: 2rem;
    color: var(--magenta);
}

.feature span {
    font-weight: 700;
}

.about-visual {
    position: relative;
    height: 450px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.about-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-carousel-track {
    display: flex;
    width: 400%; /* Para 4 diapositivas */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.about-slide {
    width: 25%;
    height: 100%;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: white;
    color: var(--magenta);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Contact Section - Modern Side-by-Side */
.contact {
    padding: 8rem 0;
    background: var(--bg-dark);
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03); /* Glassmorphism oscuro */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--cyan);
    text-shadow: 0 0 5px var(--cyan-glow);
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.2rem;
    color: white;
    font-family: inherit;
    width: 100%;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--cyan);
    background: rgba(0, 0, 0, 0.4);
    outline: none;
    box-shadow: 0 0 15px var(--cyan-glow);
}

::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer */
footer.footer {
    padding: 4rem 0;
    background: #000;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--cyan);
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: 1fr 1fr; }
}

/* Botón Flotante de WhatsApp - Glassmorphism & Pulse */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background: rgba(37, 211, 102, 0.2); /* WhatsApp Green con transparencia */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    text-decoration: none;
    transition: var(--transition);
    animation: whatsappPulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    background: #25d366;
    color: white;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 80px;
    background: white;
    color: var(--key);
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    header.header { width: 100%; top: 0; border-radius: 0; }
    .nav-list { display: none; }
    
    .about-content { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    
    .products-grid { grid-template-columns: 1fr; }
    .product-card:nth-child(1) { grid-column: span 1; }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    .whatsapp-float .tooltip {
        display: none;
    }
}

/* Animaciones de Scroll Reveal - Suavizado Premium 2025 */
.reveal {
    opacity: 0;
    transform: translateY(20px); /* Desplazamiento reducido para evitar saltos */
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1); /* Duración extendida y curva más perezosa */
    filter: blur(5px); /* Desenfoque más sutil */
    will-change: transform, opacity, filter; /* Optimización de rendimiento */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Retrasos escalonados más naturales para grillas */
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.45s; }
.reveal:nth-child(5) { transition-delay: 0.6s; }
.reveal:nth-child(6) { transition-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}
