/*
Theme Name: Legado Intelectia
Theme URI: 
Description: A premium, minimalist theme for Intelectia based on "Excelencia Silenciosa" design.
Author: Google Deepmind
Author URI: 
Version: 1.0
Text Domain: legado-intelectia
*/

:root {
    /* Paleta Sobria - Excelencia Silenciosa + Azul Intelectia */
    --charcoal-deep: #2c3440;
    --charcoal-medium: #3e4853;
    --sage-muted: #6b7c70;
    --blue-intelectia: #2d5f8d;
    --blue-bright: #3a7ca5;
    --blue-pale: #f0f4f7;
    --green-tech: #5a9b7d;
    --warm-white: #f8f7f4;
    --pure-white: #ffffff;
    --text-primary: #2c3440;
    --text-secondary: #6c7580;
    --border-subtle: #e5e5e0;
    
    /* Tipografía Premium */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    /* Espaciado generoso */
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 6rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--warm-white);
    overflow-x: hidden;
}

/* Header Discreto */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 247, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: rgba(248, 247, 244, 0.98);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-symbol {
    width: 45px;
    height: 45px;
    background: var(--charcoal-deep);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-symbol i {
    color: var(--warm-white);
    font-size: 1.25rem;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal-deep);
    letter-spacing: -0.01em;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--sage-muted);
}

.btn-header {
    padding: 0.75rem 1.75rem;
    background: #1a2332;
    color: #ffffff;
    border-radius: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-header:hover {
    background: #2d3e50;
}

/* Hero Split Screen */
.hero-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.hero-left {
    background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 4rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 2.1;
    opacity: 0.85;
    margin-bottom: 4rem;
    font-weight: 300;
    max-width: 85%;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--sage-muted);
    color: white;
}

.btn-primary:hover {
    background: var(--charcoal-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Right - Neural Network Protagonista */
.hero-right {
    position: relative;
    background: #141b24;
}

#neural-canvas {
    width: 100%;
    height: 100%;
}

/* Container */
.section {
    padding: var(--spacing-xl) 0;
}

.section-gradient {
    background: linear-gradient(to bottom, #f8f7f4 0%, #f0f4f7 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 300;
}

/* Cards con Imágenes - Elegancia Atemporal */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.glass-card {
    background: var(--pure-white);
    border-radius: 0;
    padding: 0;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.5s ease;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: var(--green-tech);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 35, 50, 0.3), rgba(26, 35, 50, 0.6));
}

.glass-card:hover .card-image {
    transform: scale(1.08);
}

.card-content {
    padding: 3rem 2.5rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1.5px solid var(--charcoal-deep);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.5s ease;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--charcoal-deep);
    font-weight: 300;
    transition: all 0.5s ease;
}

.glass-card:hover .card-icon {
    border-color: var(--green-tech);
}

.glass-card:hover .card-icon i {
    color: var(--green-tech);
}

.glass-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.glass-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    font-size: 0.975rem;
}

/* Timeline Blueprint */
.timeline-section {
    background: var(--warm-white);
    color: var(--text-primary);
    position: relative;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.timeline-container {
    position: relative;
    z-index: 2;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-subtle);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 2;
}

.timeline-item:nth-child(even) .timeline-number {
    order: 1;
    text-align: right;
}

.timeline-number {
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 300;
    color: var(--border-subtle);
    line-height: 1;
}

.timeline-content {
    position: relative;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.timeline-content p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--charcoal-deep);
    border-radius: 50%;
    border: 3px solid var(--warm-white);
    z-index: 3;
}

/* Respaldo Institucional - Ultra Sobrio */
.respaldo-section {
    background: var(--pure-white);
    padding: var(--spacing-xl) 0;
}

.respaldo-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--pure-white);
    border-radius: 0;
    padding: 6rem;
    box-shadow: none;
    border: none;
    position: relative;
}

.respaldo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--charcoal-deep);
}

.respaldo-content {
    position: relative;
    z-index: 2;
}

.experience-badge {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 4rem;
}

.experience-number {
    font-family: var(--font-serif);
    font-size: 6rem;
    font-weight: 600;
    color: var(--charcoal-deep);
    line-height: 0.9;
}

.experience-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.respaldo-card h3 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.respaldo-card p {
    font-size: 1.125rem;
    line-height: 2;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.respaldo-stats {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    flex: 1;
        }

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
.site-footer {
    background: var(--charcoal-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-widget h4 {
    font-weight: 500;
    color: white;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-widget a:hover {
    color: white;
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-left {
        padding: 4rem 3rem;
        min-height: 70vh;
    }

    .hero-right {
        min-height: 50vh;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 3rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        order: 1;
    }

    .timeline-dot {
        left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .respaldo-stats {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-left {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .glass-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .respaldo-card {
        padding: 3rem 2rem;
    }
    
    .card-content {
        padding: 2.5rem 2rem;
    }
}
