@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta Osgoro (Extraída del PDF) */
    --primary-color: #E65C00; /* Naranja Industrial Fuerte */
    --primary-hover: #CC5200;
    --dark-bg: #111111; /* Carbón profundo, más premium que un gris básico */
    --dark-surface: #1E1E1E;
    --dark-surface-alt: #282828;
    --light-bg: #F4F4F4; /* Gris muy claro para contraste limpio */
    --white: #FFFFFF;
    
    /* Textos */
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #E0E0E0;
    
    /* Layout */
    --container-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Sombras Premium */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--dark-surface);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* =========================================
   TIPOGRAFÍA Y JERARQUÍA
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.title-xl { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.05; }
.title-lg { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
.title-md { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 800; text-transform: uppercase; }
.title-sm { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }

.text-accent {
    color: var(--primary-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8C42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 600px;
}

.dark-mode-text .subtitle {
    color: var(--text-light);
}

/* =========================================
   LAYOUT Y ESTRUCTURA
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-padding {
    padding: 8rem 0;
}

.bg-dark { background-color: var(--dark-bg); color: var(--white); }
.bg-light { background-color: var(--light-bg); }
.bg-primary { background-color: var(--primary-color); color: var(--white); }

/* Patrón de puntos industriales */
.bg-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}
.bg-pattern-dark {
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel-dark {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   COMPONENTES
   ========================================= */

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Tarjetas Premium */
.card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.card:hover::before {
    transform: scaleX(1);
}

.img-hover-scale {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-hover-scale:hover {
    transform: scale(1.1);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 92, 0, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* Formas Geométricas (Inspirado en el PDF) */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.clip-diagonal-reverse {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
}

.clip-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   FOOTER REDISEÑADO
   ========================================= */
.footer {
    background-color: #050505;
    background-image: linear-gradient(to bottom, rgba(5,5,5,0.98), rgba(5,5,5,0.92)), url('../img/raw/img_p11_48.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

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

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.footer-brand span {
    color: var(--primary-color);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 350px;
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
