/* ============================================
   QUEBRACHO TECHNOLOGY - MAIN STYLESHEET
   Sistema de diseño profesional y elegante
   ============================================ */

/* ===== VARIABLES CSS ===== */
:root {
    /* Colores Corporativos */
    --color-bg-primary: #010102;
    --color-bg-secondary: #094158;
    --color-accent: #0874A7;
    --color-gold: #C1BE28;
    --color-white: #FFFFFF;
    --color-gray-dark: #343431;
    --color-gray-light: #EDF3F1;
    --color-text-primary: #071217;
    --color-text-secondary: #536267;
    --color-text-muted: rgba(237, 243, 241, 0.72);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0874A7 0%, #094158 100%);
    --gradient-dark: linear-gradient(115deg, #071217 0%, #0b2630 55%, #094158 100%);
    --gradient-hero: radial-gradient(circle at 75% 46%, rgba(8, 116, 167, 0.26), transparent 36%), linear-gradient(115deg, #071217 0%, #0b2630 55%, #094158 100%);
    
    /* Tipografía */
    --font-heading: 'Barlow Condensed', 'Montserrat', sans-serif;
    --font-body: 'Manrope', 'Inter', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.24);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Líneas */
    --line-color: rgba(237, 243, 241, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #071217;
    background-color: #EDF3F1;
    overflow-x: hidden;
    padding-top: 70px;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    color: #536267;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gold { color: #C1BE28; }
.text-accent { color: #0874A7; }
.text-white { color: #FFFFFF; }

.bg-dark { background-color: #010102; }
.bg-accent { background-color: #0874A7; }

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

/* ===== NAVEGACIÓN ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 18, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(237, 243, 241, 0.16);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: 'Barlow Condensed', 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
    max-width: min(440px, 52vw);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
    opacity: 0.92;
    color: #FFFFFF;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    padding: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(193, 190, 40, 0.38);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-logo {
    display: block;
    max-width: 100%;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tagline {
    font-family: 'Manrope', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(193, 190, 40, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-mark {
    color: #C1BE28;
    font-size: 1.8rem;
    margin-right: 10px;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(237, 243, 241, 0.72);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #C1BE28;
}

.site-nav {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.site-nav.is-scrolled {
    background: rgba(4, 12, 16, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-color);
    border-radius: 50%;
    color: rgba(237, 243, 241, 0.72);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.footer-address {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-address i {
    color: var(--color-gold);
    margin-right: 6px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at 75% 46%, rgba(8, 116, 167, 0.26), transparent 36%), linear-gradient(115deg, #071217 0%, #0b2630 55%, #094158 100%);
    padding: 180px 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.55;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: #C1BE28;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-copy {
    color: rgba(237, 243, 241, 0.72);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
    max-width: 520px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid #0874A7;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #FFFFFF;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: #0874A7;
    border-color: #0874A7;
}

.btn-primary:hover {
    background: #094158;
    border-color: #094158;
}

.btn-gold {
    background: #C1BE28;
    border-color: #C1BE28;
    color: #010102;
}

.btn-gold:hover {
    background: #a8a522;
    border-color: #a8a522;
}

.btn-outline {
    background: transparent;
    border-color: #FFFFFF;
}

.btn-outline:hover {
    background: #FFFFFF;
    color: #010102;
}

/* ===== CARDS ===== */
.card {
    background: #FFFFFF;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #071217;
}

.card-text {
    color: #536267;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* ===== GRID SYSTEM ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== SECCIONES ===== */
.section {
    padding: 4rem 0;
}

.section-dark {
    background: #010102;
    color: #FFFFFF;
}

.section-light {
    background: #EDF3F1;
    color: #071217;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    margin-bottom: 0;
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-family: 'Barlow Condensed', 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #C1BE28;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #536267;
    margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #010102;
    color: rgba(237, 243, 241, 0.72);
    padding: 4rem 0 3rem;
    border-top: 1px solid rgba(237, 243, 241, 0.16);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-family: 'Barlow Condensed', 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-logo {
    display: block;
    max-width: 280px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

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

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

.footer-links a {
    color: rgba(237, 243, 241, 0.72);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #C1BE28;
}

.footer-bottom {
    border-top: 1px solid rgba(237, 243, 241, 0.16);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-dev {
    margin: 0;
    color: rgba(237, 243, 241, 0.55);
    font-size: 0.8rem;
}

.footer-dev a {
    color: #C1BE28;
    font-weight: 600;
    text-decoration: none;
}

.footer-dev a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-nav {
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* Menú móvil: estilos completos en responsive.css */

    .hero {
        padding: 140px 1.5rem 3rem;
    }

    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .btn {
        padding: 12px 20px;
        font-size: 0.75rem;
    }

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== UTILIDADES DE ANIMACIÓN ===== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-primary: #010102;
        --color-gray-light: #0b2630;
        --color-text-primary: #EDF3F1;
        --color-text-secondary: rgba(237, 243, 241, 0.72);
    }
}

body.dark-mode {
    --color-bg-primary: #010102;
    --color-gray-light: #0b2630;
    --color-text-primary: #EDF3F1;
    --color-text-secondary: rgba(237, 243, 241, 0.72);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(8, 116, 167, 0.2);
    border-top-color: #0874A7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FORMULARIOS ===== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-fast);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ===== ALERTAS ===== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}
