/* ========================================
   NISSI MARKETING BTL - PREMIUM DESIGN SYSTEM
   Diseño Elegante, Interactivo y Profesional 2025
   ======================================== */

/* ============= VARIABLES CSS ============= */
:root {
    /* Colores Principales */
    --white: #FFFFFF;
    --black: #0A0A0A;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --gray-dark: #343A40;
    --yellow-accent: #E8DE2E;
    --yellow-glow: rgba(232, 222, 46, 0.2);

    /* Sombras Premium */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --shadow-yellow: 0 8px 32px rgba(232, 222, 46, 0.3);

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

/* ============= TIPOGRAFÍA PREMIUM ============= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-medium);
}

/* ============= CONTAINER ============= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============= HEADER PREMIUM ============= */
.header-premium {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.header-premium:hover {
    box-shadow: var(--shadow-md);
}

.navbar-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-premium img {
    height: 65px;
    transition: var(--transition-smooth);
}

.logo-premium:hover img {
    transform: scale(1.05);
}

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

.nav-link-premium {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
}

.nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: var(--yellow-accent);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-link-premium:hover {
    color: var(--yellow-accent);
}

.nav-link-premium:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ============= MENÚ HAMBURGUESA MÓVIL ============= */

/* Botón hamburguesa - oculto en desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #0A0A0A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) { margin-bottom: 5px; }
.hamburger-line:nth-child(2) { margin-bottom: 5px; }

/* Animación X cuando está activo */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============= BOTONES PREMIUM ============= */
.btn-premium {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-premium-primary {
    background: var(--yellow-accent);
    color: var(--black);
    box-shadow: var(--shadow-md);
}

.btn-premium-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-premium-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-yellow);
}

.btn-premium-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium-primary:active {
    transform: translateY(-2px);
}

.btn-premium-outline {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-premium-outline:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============= HERO SECTION PREMIUM ============= */
.hero-premium {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--white);
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, var(--yellow-glow) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-content-premium {
    max-width: 700px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title-premium {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    position: relative;
}

.hero-title-premium .highlight {
    position: relative;
    display: inline-block;
}

.hero-title-premium .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.15em;
    background: var(--yellow-accent);
    z-index: -1;
    animation: underlineExpand 1.2s ease-out 0.5s both;
}

.hero-subtitle-premium {
    font-size: 1.5rem;
    color: var(--gray-medium);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ============= CARDS PREMIUM ============= */
.card-premium {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-premium:hover::before {
    transform: scaleX(1);
}

.card-premium h3 {
    margin-bottom: 1.5rem;
    color: var(--black);
}

.card-premium p {
    color: var(--gray-medium);
    line-height: 1.8;
}

/* ============= STATS SECTION PREMIUM ============= */
.stats-premium {
    padding: var(--spacing-xl) 0;
    background: var(--gray-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.stat-card-premium {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--yellow-glow), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.stat-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-yellow);
}

.stat-card-premium:hover::before {
    opacity: 1;
}

.stat-number-premium {
    font-size: 4rem;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-number-premium .accent {
    color: var(--yellow-accent);
}

.stat-label-premium {
    font-size: 1.125rem;
    color: var(--gray-medium);
    font-weight: 600;
    position: relative;
}

/* ============= SERVICE CARDS PREMIUM ============= */
.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card-premium {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-image-premium {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.service-image-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.service-image-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card-premium:hover .service-image-premium img {
    transform: scale(1.1);
}

.service-card-premium:hover .service-image-premium::after {
    opacity: 1;
}

.service-content-premium {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content-premium h3 {
    margin-bottom: 1rem;
    color: var(--black);
}

.service-content-premium p {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-link-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.service-link-premium:hover {
    color: var(--yellow-accent);
    gap: 1rem;
}

/* ============= TESTIMONIAL PREMIUM ============= */
.testimonial-premium {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-premium::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 8rem;
    color: var(--yellow-accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-premium:hover {
    box-shadow: var(--shadow-xl);
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--yellow-accent);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 1rem;
    color: var(--gray-medium);
}

/* ============= CTA SECTION PREMIUM ============= */
.cta-premium {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, var(--yellow-glow), transparent);
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-premium h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-premium p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============= FOOTER PREMIUM ============= */
.footer-premium {
    background: var(--gray-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-premium h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-premium h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--yellow-accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--yellow-accent);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============= ANIMACIONES ============= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============= UTILIDADES ============= */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.py-xl { padding: var(--spacing-xl) 0; }
.py-lg { padding: var(--spacing-lg) 0; }

/* ============= RESPONSIVE ============= */
@media (max-width: 1200px) {
    .services-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .service-image-premium {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    /* Mostrar hamburguesa */
    .menu-toggle {
        display: flex !important;
    }

    /* Menú móvil - oculto por defecto */
    .nav-menu-premium {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 100px 2rem 2rem !important;
        gap: 0 !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1) !important;
        transition: transform 0.3s ease !important;
        z-index: 1000 !important;
        transform: translateX(100%) !important;
    }

    /* Menú visible cuando está activo */
    .nav-menu-premium.active {
        transform: translateX(0) !important;
    }

    /* Links del menú móvil */
    .nav-menu-premium li {
        width: 100% !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .nav-link-premium {
        display: block !important;
        padding: 1rem 0 !important;
        font-size: 1.1rem !important;
        width: 100% !important;
    }

    .nav-link-premium::after {
        display: none !important;
    }

    /* Botón contacto en móvil */
    .nav-menu-premium .btn-premium {
        margin-top: 1.5rem !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }

    /* Header ajustes */
    .header-premium {
        padding: 1rem 0;
    }

    .logo-premium img {
        height: 50px;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .services-grid-premium {
        grid-template-columns: 1fr;
    }

    .service-image-premium {
        aspect-ratio: 16/9;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ============= WHATSAPP FLOAT BUTTON ============= */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 99999 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    animation: whatsappPulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
    background: #22c55e;
}

.whatsapp-float i {
    font-size: 2rem;
    color: white;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float i {
        font-size: 1.75rem;
    }
}

/* ============= BACK TO TOP BUTTON ============= */
.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--yellow-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 9998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: #d4ca29;
}

.back-to-top i {
    font-size: 1.25rem;
    color: var(--black);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 95px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ============= LOADING SPINNER (Opcional) ============= */
.loading-spinner {
    border: 4px solid rgba(232, 222, 46, 0.2);
    border-top: 4px solid var(--yellow-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============= SOCIAL LINKS IN FOOTER ============= */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(232, 222, 46, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8DE2E;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
    text-decoration: none;
}

.social-links a:hover {
    background: #E8DE2E;
    color: #0A0A0A;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 16px rgba(232, 222, 46, 0.3);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}
