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

/* Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --accent: #d4af37;
    /* Gold de Élite */
    --accent-hover: #c19b2e;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(13, 18, 31, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Reset y Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Grid & Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.section-title span {
    color: var(--accent);
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

header.scrolled .nav-wrapper {
    padding: 10px 0;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 6px 0;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #f8fafc;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 9, 14, 0.95) 40%, rgba(7, 9, 14, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding-top: 100px;
    color: #ffffff;
}

.hero-content p {
    color: #ffffff;
}

.hero-content .btn-secondary {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-content .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-tag {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    color: #f8fafc;
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Stats Section */
.stats-bar {
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

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

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

/* Pillars Section */
.pillars {
    background-color: #ffffff;
}

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

.pillar-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
    display: inline-block;
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.pillar-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Tech C4 Section */
.tech-c4 {
    background-color: #f8fafc;
    position: relative;
}

.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.tech-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.tech-image:hover img {
    transform: scale(1.05);
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tech-feature-item {
    display: flex;
    gap: 20px;
}

.tech-feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.tech-feature-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.tech-feature-info p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Clients Marquee (Infinity loop) */
.clients-section {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.marquee-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 30px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: marquee 55s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 110px;
    filter: grayscale(100%) brightness(60%);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.marquee-item:hover {
    filter: none;
    opacity: 1;
}

.marquee-item img {
    max-height: 90px;
    max-width: 180px;
    width: 100%;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Services Grid (In servicios.html & index CTA) */
.services-section {
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.service-card-body p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features-list {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #1e293b;
}

.service-features-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

/* Call to Action Banner */
.cta-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #1e293b;
}

.cta-content p {
    color: #475569;
    font-size: 1.15rem;
    margin-bottom: 40px;
}

/* Contact Section (contacto.html & footer) */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-card-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 4px;
}

.contact-item-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.contact-item-row:last-child {
    margin-bottom: 0;
}

.contact-row-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-row-text h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-row-text p,
.contact-row-text a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-row-text a:hover {
    color: var(--accent);
}

.contact-form-column {
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-premium);
}

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

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

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

.form-control {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
    resize: none;
    min-height: 120px;
}

/* About (nosotros.html specifics) */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text h2 span {
    color: var(--accent);
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.about-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-img-box {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.about-img-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-img-box:hover img {
    transform: scale(1.05);
}

.m-v-v-section {
    background-color: var(--bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    text-align: center;
    background-color: var(--bg-primary);
    border: 1px solid var(--glass-border);
    padding: 40px 24px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.value-num {
    font-size: 2.5rem;
    color: rgba(212, 175, 55, 0.2);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 12px;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Certifications Logo Marquee */
.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

.affiliation-logo {
    font-weight: 700;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    width: 100%;
    padding: 20px 10px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.affiliation-logo:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #04060a;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 20px 0;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    color: var(--bg-primary);
    background-color: var(--accent);
    border-color: var(--accent);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--accent);
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Floating WhatsApp / Phone Actions (Hidden as requested) */
.floating-actions {
    display: none !important;
}

.floating-btn {
    display: none !important;
}

.btn-whatsapp {
    display: none !important;
}

.btn-phone {
    display: none !important;
}

/* Inner Page Hero (For nosotros, servicios, contacto) */
.inner-hero {
    position: relative;
    padding: 180px 0 100px 0;
    text-align: center;
    background-color: #07090e;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.inner-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.inner-hero h1 span {
    color: var(--accent);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumbs span {
    color: var(--accent);
}

/* Mobile responsive fixes */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .tech-wrapper,
    .contact-wrapper,
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-image img {
        height: 350px;
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-wrapper {
        padding: 15px 0;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

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