:root {
    /* Variables de Color */
    --primary-color: #f57c00;
    --primary-color-hover: #e67300;
    --dark-bg: #222222;
    --topbar-bg: rgba(30, 30, 30, 0.95);
    --light-bg: #f9f9f9;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #666666;
    
    /* Variables de Tipografía */
    --font-primary: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Variables de Diseño */
    --border-radius: 8px;
    --border-radius-large: 20px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

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

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

ul {
    list-style: none;
}

/* =========================================
   TOP BAR
========================================= */
.top-bar {
    background-color: var(--topbar-bg);
    color: #cccccc;
    font-size: 13px;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar i {
    margin-right: 6px;
    color: var(--primary-color);
}

.social-icons a {
    margin-left: 15px;
    color: #cccccc;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    display: inline-block;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
header {
    position: absolute;
    top: 45px;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    transition: var(--transition);
}

header.scrolled {
    position: fixed;
    top: 0;
    background-color: var(--dark-bg);
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.btn-nav {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
}

.btn-nav:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.6);
}

/* Menú Móvil Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 24px;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg'); /* Se llenará con script o estilo inline */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-short {
    height: 50vh;
    min-height: 400px;
}

.hero-content {
    max-width: 800px;
    color: var(--text-light);
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: capitalize;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Divisor de forma (Olas/Curva) */
.shape-divider {
    display: none;
}

/* =========================================
   FEATURES (Home)
========================================= */
.features-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding: 0 5%;
    padding-bottom: 80px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 40px;
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.feature-box:hover {
    transform: translateY(-10px);
    background-color: #fafafa;
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background-color: rgba(245, 124, 0, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-box:hover .feature-icon-circle {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

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

/* =========================================
   SECCIONES COMUNES
========================================= */
.section {
    padding: 80px 5%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   SERVICES PAGE
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.service-card i {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

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

/* =========================================
   CONTACT PAGE
========================================= */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-muted);
}

.contact-form-wrapper {
    flex: 1.5;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(245, 124, 0, 0.1);
}

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

.submit-btn {
    width: 100%;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
}

.submit-btn:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 124, 0, 0.3);
}

/* =========================================
   FOOTER
========================================= */
footer {
    background-color: var(--dark-bg);
    color: #aaaaaa;
    padding: 60px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaaaaa;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   BRANDS MARQUEE (CARRUSEL)
========================================= */
.brands-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background: #fff;
    /* Sombras a los lados para disimular la entrada/salida */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
    display: flex;
    width: fit-content;
    animation: scroll-marquee 60s linear infinite;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #888;
    font-weight: 600;
    padding: 0 40px;
    white-space: nowrap;
    transition: var(--transition);
}

.brand-item i {
    font-size: 2rem;
    margin-right: 10px;
}

.brand-item:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Desplazamos exactamente la mitad del ancho (la parte original antes del duplicado) */
        transform: translateX(-50%);
    }
}

/* =========================================
   DROPDOWN MENU
========================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Puente invisible para no perder el hover al mover el mouse hacia abajo */
.dropdown::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-bg);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 101;
    border-radius: var(--border-radius);
    top: calc(100% + 15px); /* Un poco separado para que no se sobreponga al texto */
    left: 0;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    text-align: left;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    padding-left: 20px;
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* =========================================
   METRICS SECTION
========================================= */
.metrics-section {
    position: relative;
    padding: 100px 5%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
}

.metrics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.metrics-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.metric-item {
    flex: 1;
    min-width: 200px;
}

.metric-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.metric-text {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 991px) {
    .hero h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .features-container { margin-top: 50px; padding: 20px; }
    .features-section { margin-top: -50px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    header { top: 0; padding: 15px 5%; background-color: var(--dark-bg); }
    
    .hamburger { display: block; }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        padding: 20px 0;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: relative;
        box-shadow: none;
        background-color: rgba(255,255,255,0.05);
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; margin-bottom: 25px; }
    
    .hero, .metrics-section {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }
    
    .hero {
        height: auto;
        min-height: 300px;
        padding: 90px 15px 40px 15px;
    }

    .hero-short {
        height: auto;
        min-height: 250px;
        padding: 80px 15px 30px 15px;
    }
    
    .metrics-section {
        padding: 50px 5%;
    }
    
}


/* Banners específicos y responsive */
.hero-bg-index { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../Banner_Pagina_Web/1.png'); }
.hero-bg-logo { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../Banner_Pagina_Web/3.png'); }
.hero-bg-ads { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/Google-ADS.png'); }
.hero-bg-redes { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../Banner_Pagina_Web/5.png'); }
.hero-bg-web { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../Banner_Pagina_Web/7.png'); }
.hero-bg-team { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/Banner%20Team.png'); }
.hero-bg-blog { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/Banner%20Blog.png'); }

@media (max-width: 768px) {
    .hero-bg-index { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../Banners1920x800/Banner%201.png') !important; }
    .hero-bg-logo { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../Banners1920x800/Banner%203.png') !important; }
    .hero-bg-ads { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../Banners1920x800/Banner%204.png') !important; }
    .hero-bg-redes { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../Banners1920x800/Banner%205.png') !important; }
    .hero-bg-web { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../Banners1920x800/Banner%207.png') !important; }
    .hero-bg-team { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../Banners1920x800/Banner%20Team.png') !important; }
    .hero-bg-blog { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../Banners1920x800/Banner%20Blog.png') !important; }
}
