/* =============================
   Accesibilidad: Alto contraste
   ============================= */
body.high-contrast .filter-btn {
    color: #fff !important;
    background: var(--primary-blue) !important;
    border: 2px solid #fff !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}
body.high-contrast .filter-btn:hover,
body.high-contrast .filter-btn:focus {
    background: var(--primary-orange) !important;
    color: #000 !important;
    border-color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
    text-decoration: none !important;
}
/* Start Tech Solutions - Estilos Principales */
:root {
    --primary-blue: #3949AB;
    --primary-orange: #FF8C00;
    --dark-blue: #1A237E;
    --light-blue: #E8EAF6;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #9E9E9E;
    --gray-dark: #424242;
    --black: #212121;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

/* Header y Navegación */
header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Mejoras para dispositivos táctiles */
@media (pointer: coarse) {
    nav {
        padding: 0 1rem;
    }
    
    /* Asegurar que todos los elementos táctiles tengan z-index apropiado */
    .nav-links > li {
        position: relative;
        z-index: 10;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo .tech {
    color: var(--primary-orange);
    margin-left: 5px;
}

/* Responsive logo styles */
@media (max-width: 768px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-image {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    /* En pantallas muy pequeñas, ocultar el texto y solo mostrar el logo */
    .logo-text {
        display: none;
    }
    
    .logo {
        justify-content: center;
    }
}

/* Mejoras de accesibilidad para el logo */
.logo:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
    border-radius: 8px;
}

.logo:focus .logo-image {
    transform: scale(1.1);
}

/* Modo de alto contraste para el logo */
body.high-contrast .logo-image {
    filter: contrast(1.5) brightness(1.2);
}

body.high-contrast .logo:focus {
    outline-color: #ffff00;
    background-color: rgba(255, 255, 0, 0.2);
}

/* Logo de fondo transparente en secciones */
.hero-with-logo-bg {
    position: relative;
}

.hero-with-logo-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: url('../images/logo_grande.png') no-repeat center center;
    background-size: contain;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.hero-with-logo-bg .hero-content {
    position: relative;
    z-index: 1;
}

.services-with-logo-bg {
    position: relative;
}

.services-with-logo-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: url('../images/logo_grande.png') no-repeat center center;
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    transform: rotate(15deg);
}

.services-with-logo-bg .container {
    position: relative;
    z-index: 1;
}

/* Responsive para logos de fondo */
@media (max-width: 768px) {
    .hero-with-logo-bg::before {
        width: 250px;
        height: 250px;
        opacity: 0.06;
    }
    
    .services-with-logo-bg::before {
        width: 200px;
        height: 200px;
        opacity: 0.04;
        right: 5%;
        top: 15%;
    }
}

@media (max-width: 480px) {
    .hero-with-logo-bg::before {
        width: 180px;
        height: 180px;
        opacity: 0.05;
    }
    
    .services-with-logo-bg::before {
        width: 150px;
        height: 150px;
        opacity: 0.03;
        right: 2%;
        top: 10%;
    }
}

/* Modo alto contraste para logos de fondo */
body.high-contrast .hero-with-logo-bg::before,
body.high-contrast .services-with-logo-bg::before {
    opacity: 0.02;
    filter: contrast(2) brightness(0.8);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--primary-orange);
    background-color: rgba(255,255,255,0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-orange), #FFA726);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

/* Sections */
section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.card p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Tecnologías */
.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.tech-logo {
    font-size: 2.5rem;
    color: var(--gray-medium);
    transition: color 0.3s ease, transform 0.3s ease;
}

.tech-logo:hover {
    color: var(--primary-blue);
    transform: scale(1.1);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-blue);
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    color: var(--gray-dark);
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.footer-section p {
    color: var(--white);
    line-height: 1.6;
    font-weight: 400;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
    color: var(--primary-orange);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

/* Estilos específicos para la dirección del footer */
.footer-section address {
    font-style: normal;
}

.footer-section address ul li {
    color: var(--white);
    font-weight: 400;
}

.footer-section address ul li a {
    color: var(--white);
    font-weight: 400;
}

.footer-section address ul li i {
    margin-right: 8px;
    color: var(--primary-orange);
}

/* Iconos sociales en el footer */
.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--white) !important;
    transition: all 0.3s ease;
}

.social-icons a:hover,
.social-icons a:focus {
    color: var(--primary-orange) !important;
    transform: translateY(-2px);
}

/* Estilos para iconos sociales en alto contraste */
body.high-contrast .social-icons a {
    color: #ffffff !important;
    background: transparent !important;
    border: 2px solid #ffffff !important;
    padding: 8px !important;
    border-radius: 50% !important;
}

body.high-contrast .social-icons a:hover,
body.high-contrast .social-icons a:focus {
    color: #000000 !important;
    background: #ff6600 !important;
    border-color: #ff6600 !important;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn {
    background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50px !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 73, 171, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        padding: 1rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tech-logos {
        gap: 2rem;
    }

    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Media query específico para tablets e iPad */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .tech-logos {
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-orange { color: var(--primary-orange); }
.text-blue { color: var(--primary-blue); }
.bg-light { background-color: var(--gray-light); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }

/* ==============================================
   ESTILOS DE ACCESIBILIDAD WAI/WCAG
   ============================================== */

/* Skip Links para navegación por teclado */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Focus visible mejorado para accesibilidad */
*:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Botones y enlaces con mejor contraste en focus */
a:focus, 
button:focus,
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.5);
}

/* Clase para contenido visible solo para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Respeto por preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mejoras de contraste para modo de alto contraste */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #001f54;
        --primary-orange: #cc6a00;
        --gray-medium: #666666;
        --gray-dark: #000000;
    }
    
    .card {
        border: 2px solid var(--gray-dark);
    }
    
    .nav-links a:hover {
        background-color: rgba(0,0,0,0.3);
    }
}

/* Tamaños mínimos de toque para móviles (44x44px) */
.nav-links a,
.cta-button,
.btn,
button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border-radius: 50px !important;
}

/* Mejoras para formularios */
label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

input[required]:invalid {
    border: 2px solid #d32f2f;
}

/* Texto de ayuda en formularios */
.form-help {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Estados de error */
.error {
    border: 2px solid #d32f2f;
    background-color: rgba(211, 47, 47, 0.1);
}

.error-message {
    color: #d32f2f;
    font-weight: 600;
    margin-top: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

/* Indicador visual para campos requeridos */
label span[aria-label="requerido"] {
    color: var(--primary-orange);
    font-weight: bold;
}

/* Mejoras para navegación por teclado */
.nav-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Estados hover mejorados para accesibilidad */
.card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Mejoras para iconos decorativos */
.fa[aria-hidden="true"] {
    speak: none;
}

/* ==============================================
   MODO ALTO CONTRASTE MANUAL
   ============================================== */

/* Toggle de idioma - Normalizado como el de contraste */
.language-toggle {
    position: fixed;
    top: 30%; /* Arriba del botón de contraste */
    right: 20px;
    transform: translateY(-50%);
    background: #FF8C00; /* Naranja para idioma */
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseLanguage 3s infinite;
}

@keyframes pulseLanguage {
    0% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(255, 140, 0, 0.7); }
    50% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 10px rgba(255, 140, 0, 0); }
    100% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(255, 140, 0, 0); }
}

.language-toggle:hover {
    background: #3949ab; /* Azul en hover */
    transform: translateY(-50%) scale(1.1); /* Mantiene centrado */
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.language-toggle:focus {
    outline: 3px solid #FF8C00;
    outline-offset: 3px;
}

/* Tooltip para el botón de idioma - Copia exacta del contraste */
.language-toggle::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--black);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1003;
}

.language-toggle:hover::before,
.language-toggle:focus::before {
    opacity: 1;
    visibility: visible;
}

/* Separación clara del botón de contraste */
.contrast-toggle {
    top: 50% !important;
}

@keyframes pulseLanguage {
    0% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(255, 140, 0, 0.7); }
    50% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 10px rgba(255, 140, 0, 0); }
    100% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(255, 140, 0, 0); }
}

.language-toggle:hover {
    background: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.language-toggle:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 3px;
}

/* Estados para lectores de pantalla */
.language-toggle:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 3px;
}

/* Asegurar accesibilidad */
.language-toggle[aria-label] {
    /* El aria-label está presente para lectores de pantalla */
}


@keyframes pulseLanguage {
    0% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(255, 140, 0, 0.7); }
    50% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 10px rgba(255, 140, 0, 0); }
    100% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(255, 140, 0, 0); }
}

.language-toggle:hover {
    background: var(--primary-blue) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
}

.language-toggle:focus {
    outline: 3px solid var(--primary-orange) !important;
    outline-offset: 3px !important;
}

/* Responsive para toggles flotantes */
@media (max-width: 768px) {
    .language-toggle {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
        right: 15px;
        top: 25%;
    }
    
    .contrast-toggle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        right: 15px;
        top: 40%;
    }
}

@media (max-width: 480px) {
    .language-toggle {
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 0.8rem;
        top: 20%;
    }
    
    .contrast-toggle {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
        right: 10px;
        top: 35%;
    }
    
    /* Ajustar tooltips en móvil */
    .language-toggle::before {
        right: 55px;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .contrast-toggle::before {
        right: 55px;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}
.contrast-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: var(--primary-blue) !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: pulseContrast 3s infinite;
}

@keyframes pulseContrast {
    0% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(57, 73, 171, 0.7); }
    50% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 10px rgba(57, 73, 171, 0); }
    100% { box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 0 rgba(57, 73, 171, 0); }
}

.contrast-toggle:hover {
    background: var(--primary-orange) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.contrast-toggle:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 3px;
}

/* Estilos para modo alto contraste manual */
body.high-contrast {
    --primary-blue: #000080;
    --primary-orange: #ff6600;
    --dark-blue: #000040;
    --light-blue: #e6e6ff;
    --white: #ffffff;
    --gray-light: #f0f0f0;
    --gray-medium: #808080;
    --gray-dark: #000000;
    --black: #000000;
}

/* Eliminar sombras que pueden interferir */
body.high-contrast * {
    text-shadow: none !important;
}

/* Aplicar sombras solo donde sea necesario para legibilidad */
body.high-contrast .card {
    border: 3px solid var(--black) !important;
    background: var(--white) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

body.high-contrast .hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-blue) 100%) !important;
    color: var(--white) !important;
}

body.high-contrast .hero h1 {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
}

body.high-contrast .hero p {
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
    font-weight: 500 !important;
}

body.high-contrast .hero .tech {
    color: var(--primary-orange) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
}

body.high-contrast .hero .cta-button {
    background: var(--primary-orange) !important;
    color: var(--black) !important;
    border: 3px solid var(--white) !important;
    font-weight: bold !important;
}

body.high-contrast .nav-links a:hover {
    background-color: rgba(255,255,255,0.3) !important;
}

body.high-contrast header {
    background: linear-gradient(135deg, var(--black), var(--dark-blue)) !important;
}

body.high-contrast .logo {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
}

body.high-contrast .logo .tech {
    color: var(--primary-orange) !important;
}

body.high-contrast .nav-links a {
    color: var(--white) !important;
    font-weight: 600 !important;
}

body.high-contrast .btn, 
body.high-contrast .cta-button {
    border: 2px solid var(--black) !important;
    font-weight: bold !important;
}

body.high-contrast .section-title {
    color: var(--black) !important;
    font-weight: bold !important;
}

body.high-contrast .section-subtitle {
    color: var(--gray-dark) !important;
    font-weight: 600 !important;
}

body.high-contrast p {
    color: var(--black) !important;
    font-weight: 500 !important;
}

body.high-contrast h1, 
body.high-contrast h2, 
body.high-contrast h3, 
body.high-contrast h4, 
body.high-contrast h5, 
body.high-contrast h6 {
    color: var(--black) !important;
    font-weight: bold !important;
}

body.high-contrast .bg-light {
    background: var(--white) !important;
}

body.high-contrast .bg-light * {
    color: var(--black) !important;
}

body.high-contrast .card h3 {
    color: var(--black) !important;
    font-weight: bold !important;
}

body.high-contrast .card p {
    color: var(--gray-dark) !important;
    font-weight: 500 !important;
}

body.high-contrast .contrast-toggle {
    background: var(--primary-orange) !important;
    border: 3px solid var(--black) !important;
    color: var(--white) !important;
}

/* Estilos para toggle de idioma en modo alto contraste */
body.high-contrast .language-toggle {
    background: var(--primary-blue) !important;
    border: 3px solid var(--black) !important;
    color: var(--white) !important;
    font-weight: bold !important;
}
/* Accesibilidad: Forzar texto y borde blanco en todos los botones principales en modo alto contraste */
body.high-contrast .btn,
body.high-contrast .btn-outline,
body.high-contrast .cta-button,
body.high-contrast button {
    color: #fff !important;
    border-color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px !important;
}
body.high-contrast .hero .cta-button {
    background: var(--primary-orange) !important;
    color: #fff !important;
    border: 3px solid var(--white) !important;
    font-weight: bold !important;
}

/* Estilos específicos para footer en alto contraste */
body.high-contrast footer {
    background: #000000 !important;
    color: #ffffff !important;
    border-top: 4px solid #ff6600 !important;
}

body.high-contrast .footer-section h3 {
    color: #ff6600 !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    text-shadow: none !important;
}

body.high-contrast .footer-section p {
    color: #ffffff !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

body.high-contrast .footer-section ul li a {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
}

body.high-contrast .footer-section ul li a:hover,
body.high-contrast .footer-section ul li a:focus {
    color: #ff6600 !important;
    background: #ffffff !important;
    padding: 2px 4px !important;
    text-decoration: none !important;
}

body.high-contrast .footer-bottom {
    color: #ffffff !important;
    font-weight: 500 !important;
    border-top: 2px solid #ff6600 !important;
}

body.high-contrast .footer-section address ul li {
    color: #ffffff !important;
    font-weight: 500 !important;
}

body.high-contrast .footer-section address ul li a {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* Tooltip para el botón de contraste */
.contrast-toggle::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--black);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
}

.contrast-toggle:hover::before,
.contrast-toggle:focus::before {
    opacity: 1;
    visibility: visible;
}

/* Clases para reemplazar estilos inline */

/* Layout helpers */
.hero-padding {
    padding: 4rem 0;
}

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

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

.margin-bottom-2 {
    margin-bottom: 2rem;
}

.margin-bottom-3 {
    margin-bottom: 3rem;
}

.margin-bottom-1 {
    margin-bottom: 1rem;
}

.margin-top-1 {
    margin-top: 1rem;
}

.margin-top-2 {
    margin-top: 2rem;
}

.gap-1 {
    gap: 1rem;
}

/* Typography */
.font-large {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-dark);
}

.font-weight-600 {
    font-weight: 600;
    margin: 0;
}

/* Lists */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 0.5rem;
}

/* Service boxes */
.service-box-azure {
    text-align: center;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 8px;
}

.service-box-aws {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 2px solid var(--light-blue);
}

.service-box-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.service-box-icon-orange {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

/* Button variants */
.btn-secondary {
    margin-left: 1rem;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* Flex utilities */
.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.display-flex {
    display: flex;
}

/* Social icons */
.social-icon-spacing {
    margin-right: 1rem;
    color: var(--primary-orange);
}

.social-icon-last {
    color: var(--primary-orange);
}

/* Process steps */
.process-step-number {
    background: var(--primary-blue);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Filter section */
.filter-section {
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 404 page specific */
.language-content {
    display: none;
}

.language-buttons {
    display: none;
}

.error-description {
    margin-bottom: 1rem;
    color: var(--gray-medium);
}

.help-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-blue);
}

.help-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.help-text {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Utilidades de color */
.text-primary-blue {
    color: var(--primary-blue);
}

/* Listas específicas */
.service-list-margin {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

/* Títulos de sección */
.section-subtitle {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Para elementos que combinan grid y gap */
.grid-gap-margin {
    gap: 1rem;
    margin-top: 1rem;
}

/* Clases específicas adicionales */
.tech-orange {
    color: var(--primary-orange);
}

.hero-text-large {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.hero-text-medium {
    color: var(--gray-medium);
}

.hidden {
    display: none;
}

.btn-outline {
    margin-left: 1rem;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.social-icons a {
    margin-right: 1rem;
    color: var(--primary-orange);
}

.social-icons a:last-child {
    margin-right: 0;
}

.hero-section {
    padding: 4rem 0;
}

.title-left {
    text-align: left;
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-orange));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.team-role {
    color: var(--primary-orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-badge {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0.2rem;
    display: inline-block;
}

/* Variantes de avatares de equipo */
.team-avatar-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-blue));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.team-avatar-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--dark-blue), var(--primary-orange));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.team-avatar-4 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-orange), var(--dark-blue));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.team-avatar-5 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--dark-blue), var(--primary-blue));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.team-avatar-6 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.team-info {
    margin-top: 1.5rem;
}

.team-description {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 8px;
}

/* Últimas clases utilitarias */
.flex-space-between {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.team-skills {
    margin: 0;
    font-size: 0.9rem;
}

.filter-title {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-grid {
    gap: 4rem;
    align-items: start;
}

.faq-grid {
    gap: 2rem;
}

.step-orange {
    background: var(--primary-orange);
}

.margin-bottom-half {
    margin-bottom: 0.5rem;
}

/* Títulos de certificaciones */
.certification-title {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* Texto descriptivo */
.description-text {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

/* Utilidades para grids específicos */
.timeline-grid {
    gap: 2rem;
    margin-top: 2rem;
}

/* Clases específicas para páginas de contacto */
.contact-schedule {
    text-align: center;
    margin-top: 2rem;
}

.schedule-time {
    font-weight: 600;
}

.schedule-available {
    font-weight: 600;
    color: var(--primary-orange);
}

.response-times {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.response-time-item {
    margin-left: 0.5rem;
}

.btn-contact-orange {
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-contact-blue {
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Estados del botón de alto contraste */
.contrast-toggle.active {
    background: #000080 !important;
    border-color: #FF8C00 !important;
}

.contrast-toggle.active i {
    color: #FF8C00 !important;
}

.contrast-toggle.inactive {
    background: #3949AB !important;
    border-color: white !important;
}

.contrast-toggle.inactive i {
    color: white !important;
}

/* Clase para header con efecto de scroll */
.header-scrolled {
    background-color: rgba(57, 73, 171, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}