/* ============================================
   El Venadito Design System
   Shared CSS for elvenadito.net & grupovenadito.mx
   ============================================ */

/* Reset & Variables */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --amber-dark: #d97706;
    --red: #ef4444;
    --red-dark: #dc2626;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-lighter: #334155;
    --slate: #94a3b8;
    --slate-light: #cbd5e1;
    --white: #f8fafc;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(245, 158, 11, 0.15);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-w: 1280px;
    --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--navy);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s;
}

.nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--slate);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover { color: var(--amber); }

.nav-cta {
    background: var(--amber) !important;
    color: var(--navy) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--amber-light) !important;
    transform: translateY(-1px);
}

.lang-switch {
    padding: 6px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--slate-light) !important;
}

.lang-switch:hover { border-color: var(--amber); color: var(--amber) !important; }

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(2%, -2%) rotate(2deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

h1 .highlight {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    color: var(--navy);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--white);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--navy-lighter);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover { border-color: var(--amber); color: var(--amber); }

/* Stats counter */
.stats-row {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item { text-align: left; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--amber);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ============================================
   Section Base
   ============================================ */
.section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Projects / Portfolio
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.project-image .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--navy), transparent);
}

.project-info { padding: 28px; }

.project-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--amber);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(245, 158, 11, 0.1);
}

.project-stat {
    font-size: 0.8rem;
    color: var(--slate);
}

.project-stat strong {
    color: var(--amber);
    display: block;
    font-size: 1.1rem;
}

/* ============================================
   Clients / Logos
   ============================================ */
.clients-section {
    background: var(--navy-light);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.client-logo {
    padding: 16px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate);
    transition: all 0.3s;
    letter-spacing: 1px;
}

.client-logo:hover {
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.3);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-item h3:hover { color: var(--amber); }

.faq-item h3::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--amber);
    transition: transform 0.3s;
}

.faq-item.open h3::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer p {
    padding-top: 16px;
    color: var(--slate);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
}

.cta-section .container { position: relative; z-index: 2; }

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--slate);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate);
    font-size: 0.95rem;
}

.cta-contact-item strong { color: var(--white); }

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 48px 0 32px;
}

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

.footer-brand p {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--amber);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--slate);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--amber); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--slate);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--navy-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ============================================
   Page Header (for secondary pages)
   ============================================ */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
}

.page-header .container { position: relative; z-index: 2; }

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
}

.page-header p {
    color: var(--slate);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   About Page Specifics
   ============================================ */
.timeline { max-width: 700px; margin: 0 auto; }

.timeline-item {
    position: relative;
    padding-left: 48px;
    padding-bottom: 40px;
    border-left: 2px solid var(--glass-border);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--amber);
    border-radius: 50%;
}

.timeline-year {
    font-size: 0.8rem;
    color: var(--amber);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-item h3 {
    font-size: 1.1rem;
    margin: 8px 0;
}

.timeline-item p {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.value-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.value-card .value-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    color: var(--slate);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================
   Google Map Embed
   ============================================ */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

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

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--navy);
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 200;
    }

    .stats-row { gap: 32px; }
    .stat-number { font-size: 2rem; }

    .hero { padding: 100px 0 60px; }

    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .clients-grid { gap: 16px; }
    .cta-contacts { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
