/* ==========================================================================
   Importación de Fuentes Premium
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

/* ✨ NUEVO: Carga Global de Clash Grotesk ✨ */
@font-face {
    font-family: 'ClashGrotesk';
    src: url('fonts/ClashGrotesk-Medium.otf') format('opentype');
    font-weight: 500; 
    font-style: normal;
    font-display: swap; 
}

.fuente-clash {
    font-family: 'ClashGrotesk', sans-serif !important;
    letter-spacing: -1px;
}

/* ==========================================================================
   Variables Globales
   ========================================================================== */
:root {
    --brand-black: #080808;
    --brand-dark: #1a1a1a;
    --brand-gray: #f7f7f9;
    --brand-white: #ffffff;
    --brand-accent: #25D366; 
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Ajustes Base y Tipografía
   ========================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--brand-white);
    color: var(--brand-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar (Bordes rectos) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--brand-gray); }
::-webkit-scrollbar-thumb { background: var(--brand-dark); border-radius: 0px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ==========================================================================
   Menú de Navegación
   ========================================================================== */
.navbar-premium {
    background: transparent;
    transition: var(--transition-smooth);
    padding: 25px 0;
}

.navbar-premium.scrolled {
    background-color: rgba(8, 8, 8, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    position: relative;
    padding: 0.5rem 1.2rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active { color: #ffffff !important; }

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--brand-white);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.navbar-toggler { border: none !important; }
.navbar-toggler:focus { box-shadow: none !important; }

/* ==========================================================================
   Sección Hero (Inicio)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--brand-black);
    color: var(--brand-white);
    overflow: hidden;
    padding-top: 80px;
}

.display-mega {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-glow-1, .hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}
.hero-glow-1 {
    top: -10%; left: -5%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, rgba(0,0,0,0) 70%);
    animation: float 10s infinite alternate ease-in-out;
}
.hero-glow-2 {
    bottom: -20%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0) 70%);
    animation: float 14s infinite alternate-reverse ease-in-out;
}

/* Logo en blanco (SVG) */
.branding-separator-white {
    filter: invert(1) brightness(0.9);
}

/* ==========================================================================
   Tarjetas de Servicios (Bordes Rectos)
   ========================================================================== */
.glass-card {
    background: var(--brand-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0px; 
    padding: 3.5rem 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--glass-shadow);
}

.glass-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9), transparent);
    transform: skewX(-25deg);
    transition: 0.7s;
    z-index: -1;
}

.glass-card:hover::before { animation: shine 1.2s infinite; }

.icon-wrapper {
    width: 80px; height: 80px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 0px; 
    background: var(--brand-gray);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    background: var(--brand-black);
    color: var(--brand-white) !important;
}

.glass-card.dark-mode {
    background: var(--brand-dark);
    color: var(--brand-white);
    border: 1px solid rgba(255,255,255,0.1);
}
.glass-card.dark-mode .icon-wrapper { background: rgba(255,255,255,0.05); }
.glass-card.dark-mode:hover { box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3); }

/* ==========================================================================
   Botones Premium (Bordes Rectos)
   ========================================================================== */
.btn-premium {
    background: var(--brand-white);
    color: var(--brand-black);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 0px; 
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    z-index: 1;
}

.btn-premium::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--brand-gray);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-premium:hover {
    color: var(--brand-black);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}
.btn-premium:hover::after { transform: scaleY(1); }

/* ==========================================================================
   Portafolio (Bordes Rectos)
   ========================================================================== */
.portfolio-card {
    border-radius: 0px; 
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3; 
    background-color: #000;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 40%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: white;
}

.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

/* Swiper Flechas (Cuadradas ahora) */
.swiper-button-next, .swiper-button-prev {
    background-color: var(--brand-white);
    color: var(--brand-black) !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 0px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem !important;
    font-weight: 900;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.15);
    background-color: var(--brand-black);
    color: var(--brand-white) !important;
}

.swiper-pagination { display: none !important; }

/* Testimonios (Bordes rectos) */
.testimony-card {
    background: var(--brand-white);
    border-radius: 0px; 
    padding: 3.5rem;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.quote-icon {
    font-size: 4rem;
    color: rgba(0,0,0,0.03);
    position: absolute;
    top: 20px; right: 30px;
}

/* ==========================================================================
   WhatsApp Flotante
   ========================================================================== */
.whatsapp-wrapper {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px; 
}

.whatsapp-tooltip {
    background-color: #121212; 
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 0px; 
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    white-space: nowrap;
    animation: bounce-x 2s infinite ease-in-out;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #121212;
}

.btn-whatsapp-flotante {
    width: 65px;
    height: 65px;
    background-color: #25D366 !important; /* Blindado: Color directo y obligatorio */
    color: #FFF !important; /* Blindado */
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0px 10px 30px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    text-decoration: none;
    z-index: 99999; /* Asegura que NADA se le ponga encima */
}

.btn-whatsapp-flotante:hover {
    transform: scale(1.15) rotate(-5deg);
    color: #FFF !important;
    box-shadow: 0px 15px 35px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   Animaciones Keyframes
   ========================================================================== */
@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-40px) scale(1.05); }
}

@keyframes shine {
    100% { left: 200%; }
}

@keyframes bounce-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-8px); }
}

.floating {
    animation: float 6s infinite alternate ease-in-out;
}