/* =========================================
   ESTILOS ESPECÍFICOS: PÁGINA DE INICIO
   ========================================= */

/* --- GENERALES DE SECCIÓN --- */
.section-padding {
    padding: 80px 10%;
}

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

.section-title {
    color: var(--text-title);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.sec-desc {
    color: var(--text-p);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* =========================================
   SECCIÓN: HERO CORPORATIVO
   ========================================= */
.hero-home {
    height: 80vh;
    min-height: 550px;
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)), url('../img/global/arcadianserver.webp') center/cover;
    display: flex;
    align-items: center;
    padding: 100px 10% 0 10%; 
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e2e8f0;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-emergency {
    background-color: var(--arcadian-red);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-hover);
    border: 2px solid var(--arcadian-red);
}

.btn-emergency:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(239, 68, 68, 0.3);
    background-color: #dc2626;
}

/* =========================================
   SECCIÓN: CARRUSEL DE PARTNERS
   ========================================= */
.partners-section {
    background: linear-gradient(180deg, var(--white) 0%, #f4f7fc 100%);
    padding: 60px 0 20px 0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
}

.partners-title-container {
    text-align: center;
    margin-bottom: 10px;
    padding: 0 20px;
}

.partners-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 8px;
}

.partners-title span {
    color: var(--arcadian-blue);
}

.partners-subtitle {
    color: var(--text-p);
    font-size: 1.1rem;
    font-weight: 400;
}

.partners-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 140px 0 30px 0; 
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-logos 35s linear infinite; 
}

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

.partner-logo {
    position: relative;
    padding: 10px 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.partner-logo img {
    height: 55px; 
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo.syscom-vip img {
    height: 70px;
    filter: grayscale(0%) opacity(1);
}

.partner-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15); 
}

.partner-logo.syscom-vip:hover img {
    transform: scale(1.25);
    filter: drop-shadow(0 10px 15px rgba(42, 110, 242, 0.2));
}

.partner-tooltip {
    position: absolute;
    bottom: 110%; 
    left: 50%;
    transform: translateX(-50%) translateY(15px); 
    color: var(--white);
    padding: 12px 18px;
    border-radius: 8px;
    text-align: center;
    width: 260px; 
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 10;
}

.partner-tooltip .tooltip-header {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.partner-tooltip p {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    color: #f8fafc;
    margin: 0; 
}

.partner-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
}

.partner-logo:hover .partner-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

/* Colores de Categorías para Tooltips */
.cat-storage { background-color: #6366f1; } .cat-storage::after { background-color: #6366f1; }
.cat-network { background-color: #3b82f6; } .cat-network::after { background-color: #3b82f6; }
.cat-distribuidor { background-color: #f59e0b; } .cat-distribuidor::after { background-color: #f59e0b; }
.cat-cctv { background-color: var(--arcadian-red); } .cat-cctv::after { background-color: var(--arcadian-red); }
.cat-cabling { background-color: #10b981; } .cat-cabling::after { background-color: #10b981; }
.cat-telecom { background-color: #ec4899; } .cat-telecom::after { background-color: #ec4899; }
.cat-web { background-color: #06b6d4; } .cat-web::after { background-color: #06b6d4; }
.cat-vip { background-color: var(--arcadian-blue); } .cat-vip::after { background-color: var(--arcadian-blue); }

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

/* =========================================
   SECCIÓN: TARJETAS DE SERVICIOS
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius-card);
    border: 1px solid #e2e8f0;
    border-top: 4px solid transparent;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-hover);
}

.service-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--arcadian-blue);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--arcadian-blue);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-title);
}

.service-card p {
    color: var(--text-p);
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    margin-top: auto;
    color: var(--arcadian-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-link {
    gap: 10px;
    color: var(--arcadian-red);
}

/* =========================================
   SECCIÓN: MSI PREMIUM (ESTILO FINANCIERO)
   ========================================= */
.msi-section {
    background-color: #f8fafc;
    padding-top: 0px;
    padding-bottom: 60px;
}

.msi-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-radius: 24px;
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.5);
    max-width: 1050px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.msi-card::before {
    content: ''; 
    position: absolute; 
    top: -50%; 
    right: -10%;
    width: 600px; 
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.msi-badge {
    background: var(--arcadian-gold);
    color: #000;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.msi-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 35px;
}

.msi-text-side h3 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--arcadian-blue);
    filter: brightness(1.2); 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.text-gold { color: var(--arcadian-gold); }

.cards-icons-premium {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.cards-icons-premium i {
    font-size: 3.5rem; 
    color: #cbd5e1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.cards-icons-premium i:hover {
    color: var(--arcadian-gold);
    transform: translateY(-5px) scale(1.1);
}

.cards-text-info {
    font-size: 0.9rem;
    color: #94a3b8;
    border-left: 2px solid rgba(255,255,255,0.2);
    padding-left: 20px;
    margin-left: 5px;
    font-weight: 600;
}

.bank-text-logo {
    font-size: 2rem;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    user-select: none;
}

.bank-text-logo:hover {
    color: var(--arcadian-gold);
    transform: translateY(-5px) scale(1.1);
}

.msi-amount {
    background: rgba(0,0,0,0.3);
    padding: 35px 45px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.msi-amount span { font-size: 1rem; color: #cbd5e1; display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.msi-amount strong { font-size: 3.5rem; color: var(--white); font-weight: 800; line-height: 1; }
.msi-amount strong span { display: inline; font-size: 1.2rem; color: var(--arcadian-gold); margin-left: 5px; }

.msi-footer-legal {
    display: flex;
    gap: 40px;
    margin-top: 25px;
}

.legal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.legal-item i { color: var(--arcadian-gold); font-size: 1.2rem; }

/* =========================================
   SECCIÓN: ESTADÍSTICAS ANIMADAS (OSCURAS)
   ========================================= */
.metrics-section {
    background: linear-gradient(135deg, var(--text-title) 0%, #1e293b 100%);
    padding: 80px 10%;
    position: relative;
}

.metrics-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.metric-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: var(--radius-card);
    width: 240px;
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

.metric-icon {
    font-size: 2.5rem;
    color: var(--arcadian-gold);
    margin-bottom: 15px;
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.metric-label {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================
   SECCIÓN: PRUEBA SOCIAL Y 5 ESTRELLAS
   ========================================= */
.trust-reviews-section {
    background-color: #f8fafc;
    padding: 60px 10%;
    border-bottom: 1px solid #e2e8f0;
}

.trust-reviews-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    border: 1px solid rgba(42, 110, 242, 0.1);
}

.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.google-g {
    width: 30px;
    height: 30px;
}

.google-rating .stars {
    display: flex;
    gap: 5px;
    color: #fbbc05;
    font-size: 1.5rem;
}

.google-rating .rating-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-title);
}

.reviews-title {
    font-size: 2.2rem;
    color: var(--arcadian-blue);
    margin-bottom: 15px;
    font-weight: 800;
}

.reviews-desc {
    color: var(--text-p);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.reviews-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.reviews-tags span {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--arcadian-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   SECCIÓN: SEDES Y MAPAS (TARJETAS MODERNAS)
   ========================================= */
.sedes-section {
    background-color: var(--white);
}

.sedes-grid {
    display: grid;
    /* Cambio clave: Forza exactamente 3 columnas en pantallas grandes */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Reducido de 40 a 30 para mejor ajuste */
    margin-top: 50px;
}

.sede-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
}

.sede-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(42, 110, 242, 0.1);
}

.sede-map-container {
    height: 280px;
    position: relative;
}

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

.sede-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--arcadian-blue);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.sede-info {
    padding: 30px;
}

.sede-info h3 {
    font-size: 1.5rem;
    color: var(--text-title);
    margin-bottom: 10px;
}

.sede-info p {
    color: var(--text-p);
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sede-map {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f1f5f9;
    color: var(--text-title);
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-sede-map:hover {
    background: var(--arcadian-blue);
    color: white;
}

/* =========================================
   SECCIÓN: METODOLOGÍA Y PROCESO
   ========================================= */
.process-section {
    background-color: var(--white);
    border-top: 1px solid #e2e8f0;
}

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

@media (min-width: 900px) {
    .process-grid::before {
        content: '';
        position: absolute;
        top: 40px; 
        left: 10%;
        right: 10%;
        height: 2px;
        background: border-box rgba(42, 110, 242, 0.2);
        z-index: 1;
        border-top: 2px dashed var(--arcadian-blue);
    }
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(42, 110, 242, 0.1);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 3px solid var(--arcadian-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--arcadian-blue);
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(42, 110, 242, 0.15);
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background: var(--arcadian-blue);
    color: var(--white);
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.3rem;
    color: var(--text-title);
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-p);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   SECCIÓN: INDUSTRIAS Y SECTORES
   ========================================= */
.industries-section {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

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

.industry-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 280px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.industry-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.industry-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    transition: background 0.3s ease;
}

.industry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: var(--white); 
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.industry-content i {
    font-size: 2rem;
    color: var(--arcadian-gold);
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.industry-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: inherit; 
}

.industry-content p {
    font-size: 0.9rem;
    color: #cbd5e1; 
    line-height: 1.5;
    opacity: 0; 
    transition: opacity 0.4s ease;
}

.industry-card:hover .industry-bg {
    transform: scale(1.1); 
}

.industry-card:hover .industry-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.industry-card:hover .industry-content {
    transform: translateY(0); 
}

.industry-card:hover .industry-content p {
    opacity: 1; 
}

/* =========================================
   MEDIA QUERIES GLOBALES (CELULARES Y TABLETS)
   ========================================= */

/* Nuevo breakpoint: Laptops pequeñas y Tablets horizontales */
@media (max-width: 1150px) {
    .sedes-grid {
        /* Pasa a un comportamiento dinámico para evitar que las 3 tarjetas se amontonen */
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 900px) {
    .msi-main-content { 
        flex-direction: column; 
        text-align: center; 
    }
    .bank-logos {
        justify-content: center;
    }
    .msi-footer-legal { 
        flex-direction: column; 
        gap: 15px; 
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 5%; }
    .hero-content h1 { font-size: 2.5rem; }
    
    .msi-card { padding: 30px; }
    .msi-text-side h3 { font-size: 1.8rem; }
    
    .metrics-container { gap: 20px; }
    .metric-item { 
        width: 100%; 
        max-width: 300px; 
        padding: 30px 20px; 
    }
    
    .trust-reviews-container { padding: 30px 20px; }
    .reviews-title { font-size: 1.8rem; }
    .google-rating { flex-wrap: wrap; }
    
    .sedes-grid {
        /* En celular forzamos a 1 sola columna para que sea cómodo scrollear */
        grid-template-columns: 1fr;
    }
}