/* ========================================================
   HOME / ACE - SWISS PRECISION MINIMAL DESIGN (RESPONSIVO)
======================================================== */

/* ========================================================
   HERO CAROUSEL
======================================================== */
.HeroCarousel {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 580px;
    overflow: hidden;
    background-color: var(--ace-navy);
}

.HeroCarousel__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.HeroCarousel__item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.HeroCarousel__item.active {
    opacity: 1;
    pointer-events: auto;
}

.HeroCarousel__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.HeroCarousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 28, 53, 0.92) 0%,
        rgba(8, 28, 53, 0.75) 50%,
        rgba(8, 28, 53, 0.45) 100%
    );
}

.HeroCarousel__content {
    position: absolute;
    top: 52%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 740px;
    z-index: 2;
    color: var(--white);
}

.hero-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7DD3FC;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.HeroCarousel__content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.HeroCarousel__content p {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 580px;
    font-weight: 400;
    margin-bottom: 24px;
}

/* Grupo de botones de llamada a la acción (CTA) */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    background: #0260A8;
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(2, 96, 168, 0.35);
    transition: all 0.2s ease;
}

.btn-hero-primary:hover {
    background: #013F7B;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 96, 168, 0.45);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

/* Indicadores Minimalistas */
.HeroCarousel__indicators {
    position: absolute;
    bottom: 32px;
    left: 8%;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.HeroCarousel__indicators button {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.HeroCarousel__indicators button.active {
    background: #38BDF8;
    width: 48px;
}

.HeroCarousel__prev,
.HeroCarousel__next {
    display: none;
}

/* ========================================================
   SECCIÓN QUIÉNES SOMOS (ABOUT US)
======================================================== */
.About-Us {
    padding: 90px 10%;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.section-mini-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ace-blue-accent);
    margin-bottom: 6px;
}

.About-Us h2 {
    color: var(--ace-navy);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 24px;
    text-align: center;
}

.About-Us p {
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.8;
    color: #475569;
    max-width: 880px;
    margin: 14px auto 0;
    text-align: center;
}

.About-Us b {
    color: var(--ace-navy);
    font-weight: 600;
}

/* Micro-tarjetas de valor en Quiénes Somos */
.about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 36px auto 0;
    text-align: left;
}

.about-highlight-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.about-highlight-card:hover {
    border-color: #38BDF8;
    background: #FFFFFF;
    box-shadow: 0 6px 16px rgba(8, 28, 53, 0.06);
    transform: translateY(-2px);
}

.about-highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-highlight-icon.text-sky { color: #0260A8; }
.about-highlight-icon.text-amber { color: #FDBD06; }
.about-highlight-icon.text-emerald { color: #10B981; }

.about-highlight-text {
    display: flex;
    flex-direction: column;
}

.about-highlight-text strong {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ace-navy);
    line-height: 1.2;
}

.about-highlight-text span {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========================================================
   TARJETAS DE SERVICIOS - SWISS PRECISION
======================================================== */
.card-SectionInfo {
    width: 100%;
    padding: 85px 0;
    background: var(--surface-muted);
}

.info-container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

.section-main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--ace-navy);
    letter-spacing: -0.02em;
    margin: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card-info {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-info:hover {
    transform: translateY(-4px);
    border-color: var(--ace-blue-primary);
    box-shadow: 0 16px 36px -10px rgba(8, 28, 53, 0.12);
}

.content-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 0;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #081C35;
}

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

.card-info:hover .card-img-wrapper img {
    transform: scale(1.04);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(8, 28, 53, 0.88);
    backdrop-filter: blur(4px);
    color: #7DD3FC;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-badge.card-badge-amber {
    color: #FDE047;
    border-color: rgba(253, 189, 6, 0.4);
}

.card-badge.card-badge-emerald {
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.4);
}

.content-card h3 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ace-blue-primary);
    letter-spacing: 0.08em;
    padding: 20px 24px 0;
    margin: 0;
}

.content-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ace-navy);
    letter-spacing: -0.02em;
    padding: 6px 24px 0;
    margin: 0;
}

.content-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 10px 24px 20px;
    margin: 0;
    flex-grow: 1;
}

.content-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ace-blue-primary);
    text-decoration: none;
    padding: 14px 24px;
    border-top: 1px solid var(--border-light);
    background: #FAFBFD;
    transition: all 0.2s ease;
}

.content-info:hover {
    color: #FFFFFF;
    background: var(--ace-blue-primary);
}

.content-info i {
    transition: transform 0.2s ease;
}

.content-info:hover i {
    transform: translateX(4px);
}

/* ========================================================
   RESPONSIVE DESIGN (TABLETS & MÓVILES - APP TECH HUB)
   Garantía: Desktop (> 992px) permanece 100% INTACTO
======================================================== */
@media (max-width: 991.98px) {
    /* Safe-Clearance en Hero para despejar el header fijo */
    .HeroCarousel {
        height: 68vh;
        min-height: 460px;
    }

    .HeroCarousel__content {
        top: 53%;
        left: 6%;
        max-width: 88%;
        transform: translateY(-50%);
    }

    /* BARRA DE ATRIBUTOS RÁPIDOS (QUICK HUB) */
    .mobile-quick-hub {
        margin: 16px 14px 14px;
        padding: 14px 16px;
        background: #FFFFFF;
        border: 1px solid #E2E8F0;
        border-radius: 18px;
        box-shadow: 0 4px 18px -4px rgba(8, 28, 53, 0.08);
    }

    .mobile-quick-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .mobile-quick-tag {
        font-family: var(--font-heading);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #0260A8;
        display: inline-flex;
        align-items: center;
    }

    .mobile-quick-sub {
        font-size: 0.68rem;
        color: #64748B;
        font-weight: 600;
    }

    .mobile-quick-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        text-align: center;
    }

    .mobile-quick-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: #0F172A;
        padding: 8px 4px;
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .mobile-quick-item:active {
        background: #F1F5F9;
        transform: scale(0.96);
    }

    .mobile-quick-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        transition: transform 0.2s ease;
    }

    .mq-biller {
        background: rgba(2, 96, 168, 0.12);
        color: #0260A8;
        border: 1px solid rgba(2, 96, 168, 0.25);
    }

    .mq-scada {
        background: rgba(16, 185, 129, 0.12);
        color: #059669;
        border: 1px solid rgba(16, 185, 129, 0.25);
    }

    .mq-sedes {
        background: rgba(245, 158, 11, 0.12);
        color: #D97706;
        border: 1px solid rgba(245, 158, 11, 0.25);
    }

    .mq-contacto {
        background: rgba(139, 92, 246, 0.12);
        color: #7C3AED;
        border: 1px solid rgba(139, 92, 246, 0.25);
    }

    .mobile-quick-label {
        font-family: var(--font-heading);
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.2;
        color: #1E293B;
    }

    /* LIVE METRICS TICKER */
    .mobile-metrics-ticker {
        margin: 0 14px 20px;
        background: linear-gradient(135deg, #081C35 0%, #0F2D54 100%);
        border-radius: 18px;
        padding: 16px;
        color: #FFFFFF;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px 14px;
        border: 1px solid rgba(56, 189, 248, 0.22);
        box-shadow: 0 8px 24px -6px rgba(8, 28, 53, 0.28);
    }

    .mobile-metric-box {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-metric-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #38BDF8;
        font-size: 1.05rem;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-metric-data {
        display: flex;
        flex-direction: column;
    }

    .mobile-metric-num {
        font-family: var(--font-heading);
        font-size: 1.2rem;
        font-weight: 800;
        line-height: 1;
        color: #FFFFFF;
        letter-spacing: -0.02em;
    }

    .mobile-metric-num span {
        color: #38BDF8;
    }

    .mobile-metric-txt {
        font-size: 0.68rem;
        color: #94A3B8;
        font-weight: 500;
        margin-top: 3px;
        line-height: 1.2;
    }

    /* PESTAÑAS INTERACTIVAS QUIÉNES SOMOS */
    .mobile-about-tabs-wrap {
        margin-bottom: 8px;
    }

    .mobile-about-tabs {
        display: flex;
        gap: 8px;
        justify-content: center;
        margin-bottom: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .mobile-about-tab {
        background: #FFFFFF;
        border: 1px solid #CBD5E1;
        border-radius: 8px;
        padding: 7px 14px;
        font-family: var(--font-heading);
        font-size: 0.76rem;
        font-weight: 700;
        color: #475569;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .mobile-about-tab.active {
        background: #081C35;
        border-color: #081C35;
        color: #FFFFFF;
        box-shadow: 0 4px 12px rgba(8, 28, 53, 0.15);
    }

    .mobile-about-content {
        background: #F8FAFC;
        border: 1px solid #E2E8F0;
        border-radius: 14px;
        padding: 14px 16px;
        font-size: 0.88rem;
        line-height: 1.6;
        color: #475569;
        text-align: center;
        min-height: 85px;
    }

    .mobile-about-content strong {
        color: #081C35;
    }

    .About-Us {
        padding: 55px 5%;
    }

    .card-SectionInfo {
        padding: 55px 0;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* HERO TÁCTIL EN TELÉFONOS (SAFE CLEARANCE CONTRA FIXED NAVBAR) */
    .HeroCarousel {
        height: 60vh;
        min-height: 420px;
        max-height: 520px;
    }

    .HeroCarousel__content {
        top: 55%;
        left: 5%;
        right: 5%;
        transform: translateY(-50%);
        max-width: 100%;
        text-align: center;
    }

    .hero-category-badge {
        font-size: 0.72rem;
        padding: 4px 12px;
        margin-bottom: 10px;
        border-radius: 9999px;
        background: rgba(56, 189, 248, 0.15);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(56, 189, 248, 0.35);
    }

    .HeroCarousel__content h1 {
        font-size: clamp(1.45rem, 5.5vw, 2.1rem);
        margin-bottom: 10px;
        line-height: 1.15;
    }

    .HeroCarousel__content p {
        font-size: 0.86rem;
        line-height: 1.5;
        margin: 0 auto 16px;
        max-width: 92%;
        color: rgba(255, 255, 255, 0.9);
    }

    .hero-cta-group {
        justify-content: center;
        gap: 8px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 8px 16px;
        font-size: 0.82rem;
        border-radius: 8px;
    }

    .btn-hero-secondary {
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .HeroCarousel__indicators {
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        gap: 6px;
    }

    .HeroCarousel__indicators button {
        width: 20px;
        height: 3px;
    }

    .HeroCarousel__indicators button.active {
        width: 34px;
        background: #38BDF8;
    }

    /* GRID MÉTRICAS EN 2 COLUMNAS PARA SMARTPHONES */
    .mobile-metrics-ticker {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 14px;
        padding: 14px 16px;
    }

    .About-Us {
        padding: 38px 1.25rem 32px;
    }

    .About-Us h2 {
        font-size: 1.48rem;
        margin-bottom: 14px;
    }

    .about-highlights-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }
}

@media (max-width: 640px) {
    .card-SectionInfo {
        padding: 36px 0 42px;
    }

    .info-container {
        width: 100%;
        padding: 0 1rem;
    }

    /* Swipe horizontal fluido en móvil */
    .cards-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        padding-bottom: 12px;
    }

    .card-info {
        min-width: 275px;
        max-width: 82vw;
        flex-shrink: 0;
        scroll-snap-align: start;
        border-radius: 12px;
        box-shadow: 0 4px 14px -3px rgba(8, 28, 53, 0.08);
    }

    .card-img-wrapper {
        height: 160px;
    }

    .content-card h3 {
        padding: 14px 16px 0;
        font-size: 0.72rem;
    }

    .content-card h4 {
        padding: 4px 16px 0;
        font-size: 1.15rem;
    }

    .content-card p {
        padding: 8px 16px 16px;
        font-size: 0.84rem;
    }

    .content-info {
        padding: 12px 16px;
        font-size: 0.82rem;
        font-weight: 700;
    }
}
