/* 
 * U|Partner Landing Page - Estilos CSS
 * Versión estática para integración en WordPress
 */

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

:root {
    /* Colores principales */
    --color-primary: #CC722E;
    --color-text-light: #FAFAFA;
    --color-white: #FFFFFF;
    --color-black: #000000;
    
    /* Fuentes */
    --font-primary: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'halyard-display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-tertiary: 'pragmatica-web', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   HEADER / NAVEGACIÓN
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background: transparent;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

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

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

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===========================
   SECCIÓN HERO
   =========================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img,
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 2rem;
    text-align: left;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--color-text-light);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-tertiary);
    font-size: 0.9375rem;
    font-weight: 400;
    padding-bottom: 0.25rem;
    border-bottom: 1.5px solid var(--color-primary);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta:hover {
    color: var(--color-text-light);
    border-bottom-color: var(--color-text-light);
    padding-bottom: 0.5rem;
}

/* ===========================
   SECCIÓN CONTACTO
   =========================== */
.contact-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    padding: var(--spacing-xl) 2rem;
}

.contact-container {
    max-width: 800px;
    text-align: center;
    padding: 2rem;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.contact-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--color-text-light);
    opacity: 0.9;
}

.contact-cta {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-tertiary);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}

.contact-cta:hover {
    color: var(--color-text-light);
    border-bottom-color: var(--color-text-light);
    transform: translateY(-2px);
}

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

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablets */
@media screen and (max-width: 1024px) {
    .header {
        padding: 1.25rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-content {
        max-width: 700px;
    }
}

/* Móviles */
@media screen and (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .logo img {
        height: 32px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        font-size: 1.125rem;
        padding: 0.75rem 0;
    }
    
    .hero-content {
        padding: 1.5rem;
        text-align: left;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .nav-menu {
        width: 80%;
    }
}

/* ===========================
   UTILIDADES
   =========================== */
.no-scroll {
    overflow: hidden;
}

/* Mejora de rendimiento */
.hero-background img,
.hero-background video {
    will-change: transform;
}

/* Accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para accesibilidad */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}
