.sub-hero-section {
    position: relative;
    min-height: clamp(260px, 35vh, 420px);
    background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1920&q=80') no-repeat center 40%/cover;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(30px, 4vh, 50px);
    overflow: hidden;
}

.sub-hero-section .tech-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 17, 28, 0.97) 0%, rgba(6, 17, 28, 0.5) 100%);
    z-index: 1;
}

.sub-hero-container {
    position: relative;
    z-index: 2;
    color: var(--blanco);
    padding-top: clamp(100px, 12vh, 130px);
}

.sub-hero-container .section-subtitle {
    color: var(--turquesa-light);
    text-align: left;
}

.sub-hero-container h1 {
    font-family: var(--fuente-titulos);
    font-size: clamp(24px, 3.5vw, 44px);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.sub-hero-container .subtitle {
    font-size: clamp(13px, 1.2vw, 16px);
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(25px, 4vw, 50px);
    align-items: center;
    margin-bottom: 60px;
}

.about-content h2 {
    font-family: var(--fuente-titulos);
    font-size: clamp(22px, 2.5vw, 36px);
    font-weight: 800;
    color: var(--azul-safeway);
    margin-bottom: 20px;
    line-height: 1.2;
}

.elocuent-paragraph {
    font-size: 17px;
    color: #475569;
    margin-bottom: 18px;
    line-height: 1.85;
}

.feature-bullets {
    margin-top: 30px;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gris-claro);
    border-radius: 8px;
    border-left: 3px solid var(--turquesa-safeway);
}

.bullet-item i {
    font-size: 22px;
    color: var(--turquesa-safeway);
    margin-top: 2px;
    flex-shrink: 0;
}

.bullet-item strong {
    display: block;
    margin-bottom: 4px;
}

.about-graphics {
    background: var(--blanco);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(15, 59, 99, 0.12);
}

.stat-box {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-box:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.stat-box .number-big {
    font-family: var(--fuente-titulos);
    font-size: 40px;
    font-weight: 900;
    color: var(--turquesa-safeway);
    display: block;
    line-height: 1.1;
}

.stat-box p {
    font-size: 14px;
    color: #64748B;
    margin-top: 5px;
}

/* --- IDEOLOGÍA EMPRESARIAL INTERACTIVA (CONTROL CENTER DASHBOARD) --- */

.ideologia-empresarial-container {
    background: radial-gradient(circle at center, #0e2743 0%, var(--azul-dark) 100%);
    border: 1px solid rgba(20, 163, 166, 0.15);
    border-radius: 20px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-heavy), 0 0 40px rgba(15, 110, 112, 0.15);
}

/* Rejilla de fondo tecnológico */
.ideologia-empresarial-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 30px 30px;
    background-image:
        linear-gradient(to right, rgba(20, 163, 166, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(20, 163, 166, 0.03) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

/* Efecto de línea de escaneo */
.ideologia-empresarial-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(20, 163, 166, 0.35), transparent);
    animation: cyberScan 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes cyberScan {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

/* Título de la sección */
.ideologia-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.ideologia-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 163, 166, 0.12);
    color: var(--turquesa-light);
    border: 1px solid rgba(20, 163, 166, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.ideologia-header h2 {
    font-family: var(--fuente-titulos);
    font-size: 38px;
    font-weight: 900;
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.tech-lines-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.tech-dot {
    width: 6px;
    height: 6px;
    background: var(--turquesa-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--turquesa-light);
}

.tech-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--turquesa-light), transparent);
}

/* Conexiones SVG */
.svg-connections-container {
    position: absolute;
    top: 140px;
    left: 0;
    width: 100%;
    height: 150px;
    pointer-events: none;
    z-index: 1;
}

.tech-svg-paths {
    width: 100%;
    height: 100%;
}

.data-pulse {
    stroke-linecap: round;
    stroke-dasharray: 12 120;
    animation: flowData 4s linear infinite;
}

.flow-reverse {
    animation-delay: -2s;
}

@keyframes flowData {
    0% {
        stroke-dashoffset: 132;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Grid de las tarjetas */
.ideologia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Estilos de Tarjeta (Glassmorphism) */
.ideologia-card {
    background: rgba(11, 30, 51, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Esquinas decorativas futuristas */
.tech-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1.5px solid transparent;
    pointer-events: none;
}

.tech-corner.top-left {
    top: 10px;
    left: 10px;
    border-top-color: rgba(20, 163, 166, 0.4);
    border-left-color: rgba(20, 163, 166, 0.4);
}

.tech-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-bottom-color: rgba(20, 163, 166, 0.4);
    border-right-color: rgba(20, 163, 166, 0.4);
}

/* Superposición de Brillo */
.card-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(20, 163, 166, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ideologia-card:hover .card-glow-overlay {
    opacity: 1;
}

/* Resplandores específicos de tarjeta */
.card-mision:hover {
    border-color: rgba(16, 185, 129, 0.35);
    /* Green glow */
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
    transform: translateY(-5px);
}

.card-vision:hover {
    border-color: rgba(20, 163, 166, 0.35);
    /* Cyan glow */
    box-shadow: 0 15px 40px rgba(20, 163, 166, 0.15);
    transform: translateY(-5px);
}

.card-valores:hover {
    border-color: rgba(139, 92, 246, 0.35);
    /* Purple glow */
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
    transform: translateY(-5px);
}

/* Cabecera HUD */
.card-header-hud {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.card-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.card-status-dot.green {
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
}

.card-status-dot.blue {
    background: #14A3A6;
    box-shadow: 0 0 6px #14A3A6;
}

.card-status-dot.purple {
    background: #8B5CF6;
    box-shadow: 0 0 6px #8B5CF6;
}

/* Contenedores de iconos */
.card-icon-container {
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 28px;
    z-index: 2;
}

.card-mision .card-icon {
    color: #10B981;
}

.card-vision .card-icon {
    color: #14A3A6;
}

.card-valores .card-icon {
    color: #8B5CF6;
}

/* Efecto Radar en Misión */
.radar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    animation: radarRing 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    pointer-events: none;
}

@keyframes radarRing {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Efecto Retícula de Escáner en Visión */
.scan-reticle {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 1px dashed rgba(20, 163, 166, 0.5);
    border-radius: 50%;
    animation: spinReticle 15s linear infinite;
    pointer-events: none;
}

@keyframes spinReticle {
    100% {
        transform: rotate(360deg);
    }
}

/* Efecto Pulso de Escudo en Valores */
.shield-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    animation: shieldPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shieldPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

/* Textos comunes de tarjetas */
.ideologia-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 22px;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 15px;
}

.ideologia-card .card-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
}

/* Acordeón de Valores */
.valores-accordion {
    width: 100%;
    margin-top: 10px;
    text-align: left;
}

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

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--fuente-cuerpo);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.value-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-title i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.chevron-icon {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header:hover {
    color: #c084fc;
    /* light purple */
}

.accordion-header:hover .value-title i {
    color: #c084fc;
}

/* Estilos de Item Activo */
.accordion-item.active .accordion-header {
    color: #c084fc;
}

.accordion-item.active .value-title i {
    color: #a855f7;
    /* magenta/purple */
}

.accordion-item.active .chevron-icon {
    transform: rotate(180deg);
    color: #c084fc;
}

/* Contenido de Acordeón */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.6;
    padding-bottom: 14px;
    margin: 0;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pilar-card {
    background: var(--blanco);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 59, 99, 0.08);
    transition: all 0.35s ease;
    opacity: 1;
    transform: none;
    animation: none;
}

.pilar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(15, 59, 99, 0.15);
}

.pilar-number {
    font-family: var(--fuente-titulos);
    font-size: 52px;
    font-weight: 900;
    color: rgba(15, 110, 112, 0.08);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

.pilar-icon {
    font-size: 28px;
    color: var(--azul-safeway);
    margin-bottom: 18px;
}

.pilar-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 18px;
    margin-bottom: 12px;
}

.pilar-card p {
    font-size: 14px;
    color: #64748B;
}

.table-responsive-wrap {
    overflow-x: auto;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-critico {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-alto {
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-moderado {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.sectores-wrap {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sectores-title {
    font-family: var(--fuente-titulos);
    font-size: 22px;
    margin-bottom: 25px;
}

.sectores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.sector-item {
    background: var(--blanco);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sector-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 59, 99, 0.1);
    color: var(--turquesa-safeway);
}

.sector-item i {
    color: var(--turquesa-safeway);
}

.bases-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.bases-list li {
    background: var(--blanco);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.bases-list li i {
    color: var(--turquesa-safeway);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-col h2 {
    font-family: var(--fuente-titulos);
    font-size: 34px;
    margin-bottom: 15px;
    color: var(--azul-safeway);
}

.contact-info-col p {
    color: #64748B;
    font-size: 16px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 500;
}

.contact-method i {
    color: var(--turquesa-safeway);
    font-size: 20px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--blanco);
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.contact-form-col {
    background: var(--blanco);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(15, 59, 99, 0.12);
}

.lead-form h3 {
    font-family: var(--fuente-titulos);
    font-size: 22px;
    color: var(--azul-safeway);
    margin-bottom: 25px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-family: var(--fuente-cuerpo);
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--gris-claro);
    color: var(--carbon-safeway);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--turquesa-safeway);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 110, 112, 0.12);
    background: var(--blanco);
}

.btn-submit {
    width: 100%;
    background: var(--azul-safeway);
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    font-size: 16px;
    padding: 15px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--turquesa-safeway);
    transform: translateY(-2px);
}

.form-response {
    margin-top: 15px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-response.success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid #059669;
    display: block;
}

.form-response.error {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid #EF4444;
    display: block;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: var(--fuente-titulos);
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--azul-safeway);
}

.legal-content .lead {
    font-size: 18px;
    color: #64748B;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h4 {
    font-family: var(--fuente-titulos);
    font-size: 20px;
    color: var(--azul-safeway);
    margin-bottom: 12px;
    border-left: 4px solid var(--turquesa-safeway);
    padding-left: 15px;
}

.legal-section p,
.legal-section ul {
    font-size: 16px;
    color: #475569;
    line-height: 1.85;
}

.legal-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 59, 99, 0.08);
    background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
        linear-gradient(to right, rgba(255, 255, 255, 0), white 70%) 100% 0,
        radial-gradient(farthest-side at 0% 50%, rgba(15, 59, 99, 0.12), transparent),
        radial-gradient(farthest-side at 100% 50%, rgba(15, 59, 99, 0.12), transparent) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--blanco);
    min-width: 600px;
}

.modal-table thead tr {
    background: linear-gradient(135deg, var(--azul-safeway), #0a2d4e);
}

.modal-table th {
    padding: 16px 22px;
    text-align: left;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.modal-table th:first-child {
    border-radius: 12px 0 0 0;
}

.modal-table th:last-child {
    border-radius: 0 12px 0 0;
}

.modal-table td {
    padding: 16px 22px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    vertical-align: middle;
    line-height: 1.5;
}

.modal-table tbody tr:nth-child(even) td {
    background: rgba(15, 59, 99, 0.025);
}

.modal-table tbody tr:hover td {
    background: rgba(15, 110, 112, 0.06) !important;
    transition: background 0.2s ease;
}

.modal-table tbody tr.row-critico td {
    border-left: 4px solid #EF4444;
}

.modal-table tbody tr.row-critico td:first-child {
    padding-left: 18px;
}

.modal-table tbody tr.row-alto td {
    border-left: 4px solid #F59E0B;
}

.modal-table tbody tr.row-alto td:first-child {
    padding-left: 18px;
}

.modal-table tbody tr.row-moderado td {
    border-left: 4px solid #10B981;
}

.modal-table tbody tr.row-moderado td:first-child {
    padding-left: 18px;
}

.modal-table tbody tr.hidden-row {
    display: none;
}

.modal-table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.badge-critico {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-alto {
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-moderado {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.table-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.table-tab {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: var(--blanco);
    color: #64748B;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-tab:hover {
    border-color: var(--turquesa-safeway);
    color: var(--turquesa-safeway);
    transform: translateY(-1px);
}

.table-tab.active {
    background: var(--azul-safeway);
    color: var(--blanco);
    border-color: var(--azul-safeway);
    box-shadow: 0 4px 12px rgba(15, 59, 99, 0.25);
}

.table-tab.active.tab-critico {
    background: #DC2626;
    border-color: #DC2626;
}

.table-tab.active.tab-alto {
    background: #B45309;
    border-color: #B45309;
}

.table-tab.active.tab-moderado {
    background: #047857;
    border-color: #047857;
}

@media (max-width: 640px) {
    .table-responsive {
        background: none;
        box-shadow: none;
        overflow-x: visible;
    }

    .modal-table {
        min-width: unset;
    }

    .modal-table thead {
        display: none;
    }

    .modal-table tbody tr {
        display: block;
        margin-bottom: 14px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(15, 59, 99, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .modal-table tbody tr.row-critico {
        border-left: 4px solid #EF4444;
    }

    .modal-table tbody tr.row-alto {
        border-left: 4px solid #F59E0B;
    }

    .modal-table tbody tr.row-moderado {
        border-left: 4px solid #10B981;
    }

    .modal-table td {
        display: block;
        padding: 10px 16px;
        font-size: 13px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        border-left: none !important;
        padding-left: 16px !important;
    }

    .modal-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #94A3B8;
        margin-bottom: 3px;
    }

    .modal-table tbody tr:nth-child(even) td {
        background: rgba(15, 59, 99, 0.02);
    }

    .modal-table tbody tr:hover td {
        background: rgba(15, 110, 112, 0.05) !important;
    }
}

.modal-table th {
    font-size: 11px;
}

.modal-table td {
    font-size: 14px;
}

@media (max-width: 1024px) {

    .about-grid,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mision-vision-grid {
        grid-template-columns: 1fr;
    }

    .sub-hero-container h1 {
        font-size: 30px;
    }

    .sub-hero-container .subtitle {
        font-size: 14px;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .stat-box .number-big {
        font-size: 32px;
    }

    .bases-list {
        flex-direction: column;
    }

    .map-layout {
        grid-template-columns: 1fr;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .legal-content h2 {
        font-size: 26px;
    }

    .legal-section h4 {
        font-size: 17px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .pilares-grid {
        grid-template-columns: 1fr;
    }

    .table-responsive {
        font-size: 13px;
    }

    .modal-table th,
    .modal-table td {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .sub-hero-container h1 {
        font-size: 24px;
    }

    .about-content h2 {
        font-size: 22px;
    }

    .elocuent-paragraph {
        font-size: 15px;
    }

    .bullet-item {
        flex-direction: column;
        gap: 10px;
    }

    .about-graphics {
        padding: 22px;
    }

    .contact-form-col {
        padding: 24px;
    }
}