/* =========================================================
   GamaNet - style.css (Versión Final Blindada a Color 2026)
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    padding-left: 1.2rem;
}

:root {
    --orange: #ff5b18;          
    --orange-hover: #e04a0f;
    --text-dark: #1d1d1f;      
    --text-muted: #515154;
    --background: #ffffff;
    --surface: #f7f8fa;
    --border: #e5e7eb;
    --radius: 18px;
    --transition: .35s ease;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow: 0 20px 50px rgba(0,0,0,.05);
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    padding: 0 1.5%; 
    position: relative;
}

.section {
    padding: 70px 0; 
    scroll-margin-top: 110px; 
}

/* Letreros de las franjas */
.section-label,
.text-orange-bold {
    font-size: 1.15rem; 
    font-weight: 800; 
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange) !important;
    margin-bottom: 1rem;
    display: block;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.1;
}

h2.two-lines {
    max-width: 450px; 
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    color: #111111;
    font-weight: 800;
    margin-bottom: 3.5rem;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: #111111;
    font-weight: 800;
    margin-bottom: 3rem;
}

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

/* ========= BOTONES ========= */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 6px;
    transition: all var(--transition);
    cursor: pointer;
}

.button-orange {
    background-color: var(--orange);
    color: #ffffff;
    border: 1px solid var(--orange);
}

.button-orange:hover {
    background-color: var(--orange-hover);
    border-color: var(--orange-hover);
    transform: translateY(-2px);
}

.button-outline-orange {
    background-color: transparent;
    color: #111111;
    border: 2px solid var(--orange);
}

.button-outline-orange:hover {
    background-color: var(--orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.button-outline-contact {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 16px 34px;
}

.icon-arrow {
    width: 18px;
    height: 18px;
    margin-left: 10px;
}

/* ========================================
     Header (Menú y Logo)
========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner-fluid,
.header-inner {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    height: 110px;
    padding: 0 1.5%; 
}

.brand img {
    display: block;
    object-fit: contain;
    width: 290px; 
    height: auto;
    margin-right: 4rem; 
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 1rem; 
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--orange);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--orange);
}

/* ========================================
     Hero Section
========================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 640px; 
    margin-top: 110px; 
    scroll-margin-top: 110px; 
    display: flex;
    align-items: center;
    background: url("../img/Hero.webp") no-repeat center right;
    background-size: cover;
    overflow: hidden;
}

.hero-mask-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 1) 42%, 
        rgba(255, 255, 255, 0.2) 62%, 
        rgba(255, 255, 255, 0) 85%
    );
    z-index: 1;
}

.hero-container-fluid-inner,
.hero-container-inner {
    width: 100%;
    position: relative;
    z-index: 2;
    padding-left: 1.5%; 
    padding-right: 1.5%;
}

.hero-content {
    max-width: 620px;
    text-align: left;
    padding: 40px 0;
    margin-left: 0; 
}

.hero h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.6rem);
    font-weight: 800;
    color: #111111;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.hero h1 .highlight {
    color: var(--orange);
}

.hero-description {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 55px;
}

.hero-highlights {
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 1.8rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 25px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-item span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
}

.icon-check-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0; 
    background-color: #ffffff;
    border: 2px solid var(--orange);
    border-radius: 50%;
    position: relative;
}

.icon-check {
    width: 18px;
    height: 18px;
    color: var(--orange);
    position: absolute;
    top: 2px;
    left: 2px;
}

.hero-divider {
    width: 1px;
    height: 20px;
    background-color: #d1d5db; 
}

/* ========================================
     Sección Servicios
========================================= */
.services-layout {
    display: flex;
    flex-direction: column;
}

.services-clean-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
}

.service-column-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;   
    text-align: center;    
    padding: 10px 5px;
}

.service-icon-container {
    color: var(--orange);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    width: 75px;
}

.service-icon {
    width: 70px;  
    height: 70px;
}

.service-column-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111111;
}

.grid-vertical-divider {
    width: 1px;
    background-color: #e5e7eb;
    margin: 10px 0;
    align-self: stretch;
    flex-shrink: 0;
}

/* ========================================
     Sección Marcas con las que trabajamos
========================================= */
.brands-container-relative {
    position: relative;
    padding-top: 30px;
    width: 100%;
}

.brand-box-wrapper-frame {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fdfdfd;
    width: 100%;
    position: relative;
}

.section-label-box-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 10;
    background-color: #ffffff; 
    padding: 0 25px;
    font-size: 1.15rem; 
    font-weight: 800;
    text-transform: uppercase;
    color: var(--orange);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.brand-ticker-box {
    overflow: hidden;
    padding: 4rem 0 3.5rem 0;
    display: flex;
    width: 100%;
}

.brand-track {
    display: flex;
    width: max-content;
    animation: scrollBrands 260s linear infinite !important; 
}

.brand-ticker-box:hover .brand-track {
    animation-play-state: paused;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 6.5rem; 
    padding-right: 6.5rem;
}

.brand-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 35px;
}

.brand-item svg {
    display: block;
    height: 100%;
    width: auto;
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.ticker-pause-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.ticker-pause-footer span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pause-indicator-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background-color: #f9f9f9;
    color: #555;
}

.icon-pause-bars {
    width: 12px;
    height: 12px;
}

/* ========================================
     Sección Implementaciones
========================================= */
.section-heading-grid {
    margin-bottom: 3.5rem;
}

.implementations-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
    width: 100%;
}

.implementation-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.implementation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-image-wrapper {
    width: 100%;
    height: 380px; 
    overflow: hidden;
    background: #f4f5f7;
    position: relative;
}

.card-slider {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-slider img {
    height: 100%;
    object-fit: cover; 
    flex-shrink: 0;
}

.slide-apg img { width: 25% !important; }
.slide-frudest img { width: 10% !important; }
.slide-valle img { width: 16.6666% !important; }

.card-body-content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-badge-type {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.card-body-content h3 {
    font-size: 1.4rem;
    color: #111111;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.card-body-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ========================================
     ALINEACIÓN FINAL: Algunos de nuestros clientes (GRANDES A COLOR Y SEPARADOS)
========================================= */
.custom-client-box-wrapper {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fdfdfd;
    width: 100%;
    position: relative;
}

.custom-client-box-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 10;
    background-color: #ffffff; 
    padding: 0 25px;
    font-size: 1.15rem; 
    font-weight: 800;
    text-transform: uppercase;
    color: var(--orange);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.custom-client-ticker {
    overflow: hidden;
    padding: 4.5rem 0; 
    display: flex;
    width: 100%;
}

.custom-client-track {
    display: flex;
    width: max-content;
    animation: scrollBrands 260s linear infinite !important; 
}

.custom-client-ticker:hover .custom-client-track {
    animation-play-state: paused;
}

.custom-client-group {
    display: flex;
    align-items: center;
    /* Espacio amplio garantizado entre logos para que nunca choquen */
    gap: 6.5rem !important; 
    padding-right: 6.5rem !important;
}

.custom-client-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: max-content !important; 
    /* RESTAURADO EL TAMAÑO DE IMPACTO: Altura idéntica al inicio para que luzcan grandes */
    height: 90px !important; 
}

.custom-client-item img {
    display: block;
    width: auto !important; 
    height: 100% !important; 
    object-fit: contain !important; 
    filter: none !important; 
    opacity: 1 !important; 
}

.custom-ticker-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.custom-ticker-footer span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.custom-pause-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background-color: #f9f9f9;
    color: #555;
}

.custom-pause-bars {
    width: 12px;
    height: 12px;
}

/* ========================================
     Sección Quiénes Somos
========================================= */
.about.section {
    padding: 80px 0 100px 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
}

.about-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.2fr; 
    gap: 3.5rem;
    align-items: flex-start; 
    width: 100%;
}

.about-left-text {
    padding-top: 5px;
}

.about-left-text h2 {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #111111;
    margin-bottom: 1.5rem;
}

.about-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-center-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-center-image img {
    width: 100%;
    height: 290px; 
    border-radius: 14px;
    object-fit: cover; 
    object-position: center top; 
}

.about-right-sectors {
    width: 100%;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
}

.about-right-title-wrapper {
    width: 100%;
    padding-left: calc((100% / 3) / 2 - 40px); 
    margin-bottom: 2.2rem;
}

.about-right-title-wrapper .section-label {
    text-align: left !important;
    margin-bottom: 0;
}

.sectors-mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.sector-premium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 5px;
    background: #ffffff;
}

.border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.border-right {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.sector-premium-item .sector-icon-container {
    color: var(--orange);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    width: 65px;
}

.sector-premium-item .sector-icon {
    width: 55px;
    height: 55px;
}

.sector-premium-item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111111;
}

/* ========================================
     SECCIÓN FINAL UNIFICADA: Contacto y Pie (3 Columnas Centradas)
========================================= */
.contact.section {
    background-color: #ffffff !important;
    padding: 80px 0 40px 0;
    width: 100%;
}

.contact-footer-mockup-inner {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
}

.mockup-three-columns {
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 1.1fr;
    gap: 0; 
    align-items: center; 
    width: 100%;
}

.mockup-col {
    display: flex;
    flex-direction: column;
    padding: 10px 2.5rem;
}

.col-brand {
    padding-left: 0;
}

.col-brand img {
    height: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.brand-slogan {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.border-left-discrete {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.mockup-label {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1.2rem;
    letter-spacing: 0.08em;
}

.mockup-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item-link,
.contact-item-static {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color var(--transition);
}

.contact-item-link:hover {
    color: var(--orange);
}

.contact-item-link svg,
.contact-item-static svg {
    width: 18px;
    height: 18px;
    color: var(--text-dark);
    flex-shrink: 0;
}

.col-action-whatsapp {
    align-items: center; 
    padding-right: 0;
}

.mockup-whatsapp-btn {
    border: 2px solid var(--orange) !important;
    background-color: transparent !important;
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px;
    padding: 16px 32px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition);
    white-space: nowrap;
}

.mockup-whatsapp-btn:hover {
    background-color: var(--orange) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.mockup-whatsapp-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.mockup-bottom-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #88888b;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-links a {
    color: #88888b;
    transition: color var(--transition);
}

.legal-links a:hover {
    color: var(--orange);
}

.legal-divider {
    color: #e5e7eb;
}

/* ========= RESPONSIVO GENERAL ========= */
@media (max-width: 1200px) {
    .about-split-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .about-center-image {
        grid-row: 2;
        grid-column: 1 / span 2;
    }
    .about-right-sectors {
        grid-row: 1;
        grid-column: 2;
    }
    .about-right-title-wrapper {
        padding-left: 0;
    }
}

@media (max-width: 1024px) {
    .implementations-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .header-inner-fluid,
    .header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        height: auto;
        padding: 20px 0;
    }
    
    .brand img {
        margin-right: 0;
        width: 240px; 
    }
    
    .main-nav {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        background: #ffffff;
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-mask-overlay {
        display: none;
    }

    .hero-container-fluid-inner,
    .hero-container-inner {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-highlights {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        border-top: none;
    }

    .hero-divider {
        display: none; 
    }

    .services-clean-grid {
        flex-direction: column;
        gap: 2.5rem;
    }

    .grid-vertical-divider {
        display: none;
    }

    .section-label-box-header,
    .custom-client-box-header {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 15px;
        padding: 0;
    }

    .brand-group,
    .custom-client-group {
        gap: 3rem;
    }

    .about-split-layout {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
    }
    .about-center-image {
        grid-row: auto;
        grid-column: auto;
    }
    .about-right-sectors {
        grid-row: auto;
        grid-column: auto;
    }
    .about-right-title-wrapper {
        text-align: center;
    }
    .about-right-title-wrapper .section-label {
        text-align: center !important;
    }
    .sectors-mockup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sector-premium-item {
        border: 1px solid rgba(0, 0, 0, 0.03); 
    }
    
    .mockup-three-columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .mockup-col {
        padding: 1.5rem 0;
        align-items: center;
    }
    .border-left-discrete {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
    .mockup-bottom-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .implementations-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .card-image-wrapper {
        height: 250px; 
    }
}