:root {
    /* Paleta de Colores Moderna (Azul Marino y Naranja Atardecer) */
    --primary: #0f172a;        /* Azul Noche Profundo */
    --primary-light: #1e293b;  /* Azul Grisáceo */
    --accent: #f97316;         /* Naranja Atardecer Vibrante */
    --accent-hover: #ea580c;   /* Naranja Oscuro */
    --text-main: #f8fafc;      /* Blanco Roto */
    --text-muted: #94a3b8;     /* Gris Azulado */
    --bg-dark: #020617;        /* Azul Casi Negro */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Tipografía */
    --font-sans: 'Outfit', sans-serif;
    
    /* Variables de UI */
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-accent: 0 8px 30px rgba(249, 115, 22, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px; /* Compensa la altura del menú de navegación fijo */
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
}

section {
    padding: 4.5rem 0; /* Reducido para que el contenido encaje mejor en la pantalla */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.divider {
    height: 4px;
    width: 60px;
    background: var(--accent);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.divider.center {
    margin: 0 auto 2rem;
}

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

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
        background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--text-main);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 35px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.05em;
}

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

.nav-links a:not(.btn-primary) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    /* Usa un gradiente temporal, script pondrá la imagen real */
    background: var(--bg-dark);
}

/* La imagen de fondo la cargaremos por CSS para controlarla bien */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg_1774995558707.png'); /* Ruta a actualizar */
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2,6,23,0.3) 0%, rgba(2,6,23,1) 100%);
    z-index: 1;
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    flex: 1;
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.stat-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.pattern-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Services Section */
.services {
    background-color: var(--primary);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    flex: 1 1 280px;
    max-width: 380px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.icon-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.service-info {
    padding: 2.5rem 1.5rem 1.5rem;
}

.service-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}



@media (min-width: 900px) {
    .large-card {
        max-width: 800px;
        width: 100%;
        display: flex;
        flex-direction: row-reverse;
        align-items: stretch;
    }
    .large-card .card-img-wrapper {
        flex: 1;
        width: 50%;
        height: auto;
        min-height: 250px;
    }
    .large-card .service-info {
        flex: 1;
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 3rem;
    }
}

/* Portfolio Section */
.portfolio {
    background-color: var(--primary);
    overflow: hidden;
    padding-bottom: 4rem;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    margin-top: 3rem;
    padding: 1rem 0;
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    padding: 0 1.5rem;
    animation: scroll-left 35s linear infinite;
    width: max-content;
}

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

.collage-item {
    width: clamp(240px, 30vh, 300px);
    height: clamp(320px, 50vh, 420px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.collage-item:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--accent);
    z-index: 10;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: filter 0.4s ease;
}

.collage-item:hover img {
    filter: brightness(1.1);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); }
}

/* Coverage / Map Section */
.coverage {
    background-color: var(--bg-dark);
    padding: 2.5rem 0; /* Ajustado para que encaje mejor en varios dispositivos */
}

.map-container {
    padding: 1rem;
}

.hidden-overflow {
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: clamp(250px, 45vh, 450px); /* Altura dinámica que se adapta al dispositivo */
    border-radius: var(--radius-md);
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition);
}

.map-container:hover iframe {
    filter: brightness(1) contrast(1);
}

/* Contact/Form Section */
.contact {
    padding: 4rem 0;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

.step-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(2, 6, 23, 0.4);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-align: left;
}

.step-item:hover {
    border-color: var(--accent);
    transform: translateX(10px);
    background: rgba(30, 41, 59, 0.8);
}

.step-num {
    background: var(--accent);
    color: white;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: var(--shadow-accent);
}

.step-text {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.step-text strong {
    color: white;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #1a9e4b;
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
    background: var(--primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

/* Animations Utils */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--primary);
        padding: 2rem;
        border-radius: 0 0 0 1rem;
        box-shadow: -5px 10px 20px rgba(0,0,0,0.3);
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .glass-panel {
        padding: 2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}
