/* ==========================================================================
   Base & Variables
   ========================================================================== */
   :root {
    /* Color Palette - Premium Corporate */
    --oxford-blue: #0B192C;       
    --oxford-nav: #081220; 
    --navy-light: #152744;     
    --bronze-champagne: #C5A059;  
    --bronze-hover: #D8B572;      
    --emerald-dark: #0F4C3A;      
    
    --white: #FFFFFF;
    --slate-light: #F4F7F6;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-light: #9CA3AF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-light { background-color: var(--slate-light); }
.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--oxford-blue); }
.bg-navy-light { background-color: var(--navy-light); }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-light { color: var(--text-light) !important; }
.text-bronze { color: var(--bronze-champagne) !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 3rem; }
.mt-5 { margin-top: 4rem; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--bronze-champagne);
    color: var(--white);
    border: 2px solid var(--bronze-champagne);
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background-color: var(--bronze-hover);
    border-color: var(--bronze-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

.btn-transparent {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-transparent:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-nav {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 50px;
}

.btn-outline-nav:hover {
    background-color: var(--white);
    color: var(--oxford-blue);
    border-color: var(--white);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(8, 18, 32, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-casc {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--white);
    letter-spacing: 2.5px;
}

.logo-line {
    width: 100%;
    border: none;
    border-top: 1.5px solid var(--white);
    margin: 4px 0 4px 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--bronze-champagne);
    transition: width 0.3s ease;
}

.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background: url('hero-bg.png') center/cover no-repeat;
    background-color: var(--oxford-blue);
    padding-top: 5rem; /* Evita choque con navbar */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11, 25, 44, 0.95) 0%, rgba(11, 25, 44, 0.7) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 850px;
}

.eyebrow {
    display: inline-block;
    color: var(--bronze-champagne);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 3rem;
}

.eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 2rem; height: 2px;
    background-color: var(--bronze-champagne);
}

.hero-title {
    color: var(--white);
    font-size: clamp(3.5rem, 6vw, 5rem); 
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-title .highlight {
    font-weight: 400; 
    font-style: italic;
    color: var(--white);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 3rem;
    font-weight: 300;
}

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

/* ==========================================================================
   General Sections
   ========================================================================== */
.section {
    padding: 7rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    color: var(--bronze-champagne);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--oxford-blue);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 750px;
}

/* ==========================================================================
   Filosofía y Valores (Nuestra Firma)
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.firma-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--oxford-blue);
    transition: var(--transition-smooth);
}

.firma-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.firma-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--oxford-blue);
}

.firma-card p {
    color: var(--text-secondary);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.valor-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.valor-item h4 {
    margin-bottom: 0.5rem;
    color: var(--oxford-blue);
    font-size: 1.15rem;
}

.valor-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   Servicios (5 Pilares)
   ========================================================================== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.servicio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.servicio-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--bronze-champagne);
    transform: translateY(-5px);
}

.servicio-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.servicio-title {
    color: var(--white);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.servicio-title span {
    color: var(--bronze-champagne);
    font-weight: 300;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.servicio-list {
    list-style: none;
}

.servicio-list li {
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.servicio-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--bronze-champagne);
}

/* ==========================================================================
   Liderazgo (Directivos)
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.team-profile {
    background: var(--slate-light);
    padding: 1rem;
}

.team-border {
    border: 1px solid #E5E7EB;
    padding: 3rem;
    background: var(--white);
    height: 100%;
}

.team-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--slate-light);
}

.team-header h3 {
    color: var(--oxford-blue);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.team-role {
    color: var(--bronze-champagne);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-experience {
    font-size: 1.1rem;
    color: var(--oxford-blue);
    margin-bottom: 1rem;
}

.team-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.team-sectors {
    margin-top: 2rem;
    background: var(--slate-light);
    padding: 1.5rem;
    border-radius: 6px;
}

.team-sectors strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--oxford-blue);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   Animations & Intersections
   ========================================================================== */
.section-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-fade.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links, .nav-cta { display: none; } /* En prod requiere JS hamburguesa */
    .hero-title { font-size: 3rem; }
    .section { padding: 4rem 0; }
    .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .grid-2 { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
}
