/* ===== CONFIGURACIÓN DE TAILWIND CSS ===== */
/* Esta configuración se aplica globalmente */
:root {
    --primary-blue: #0074bc;
    --secondary-orange: #e4852b;
    --light-gray: #f8fafc;
}

/* ===== CONFIGURACIÓN BASE ===== */
html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ===== RESPONSIVIDAD DE TEXTOS ===== */
/* Asegurar que los textos pasen a nueva línea manteniendo palabras completas */
p, span, h1, h2, h3, h4, h5, h6, li, td, th, div {
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

/* ===== EFECTOS HOVER MINIMALISTAS ===== */
.commitment-card:hover .commitment-icon {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.sector-card:hover .sector-icon {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* ===== ANIMACIONES PERSONALIZADAS MINIMALISTAS ===== */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}


/* ===== MENSAJES DE FORMULARIO MINIMALISTAS ===== */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid;
}

.form-message.success {
    background-color: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
}

.form-message.error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Solo CSS necesario para casos que Tailwind no puede cubrir directamente */

/* Asegurar que html también tenga overflow-x hidden */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Asegurar que todos los elementos principales no causen overflow */
body, nav, section, main {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevenir que los textos largos se desborden (word-wrap ya está en Tailwind pero lo reforzamos) */
p, span, h1, h2, h3, h4, h5, h6, li, td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ajustes específicos para móviles - solo para casos que Tailwind no puede manejar */
@media (max-width: 640px) {
    /* Ajustar elementos con left-1/2 y translate para que no se salgan */
    [class*="left-1/2"][class*="-translate"] {
        max-width: calc(100vw - 2rem) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* Asegurar que el navbar no cause overflow */
    nav {
        overflow-x: hidden !important;
    }
    
    nav > div {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== ESTILOS PARA FOCUS VISIBLE ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--secondary-orange);
    outline-offset: 2px;
}

/* ===== BOTÓN CONTACTO SCROLLED ===== */
.navbar-btn-scrolled:hover i {
    color: white !important;
}

/* ===== TÍTULO HERO ===== */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 44px !important;
    }
}

/* ===== TÍTULO SOBRE NOSOTROS ===== */
@media (min-width: 1024px) {
    .titulo-sobre-nosotros {
        font-size: 36px !important;
    }
}

/* ===== LÍNEA DECORATIVA SOBRE NOSOTROS ===== */
.decorative-line {
    background: linear-gradient(to right, #0074bc 0%, #F97316 50%, transparent 100%);
}

/* ===== LÍNEA DIVISORIA AZUL CON GRADIENTE ===== */
.decorative-line-blue {
    background: linear-gradient(to right, transparent 0%, #0074bc 5%, #0074bc 95%, transparent 100%);
    height: 1px;
    width: 100%;
}

/* ===== LÍNEA DIVISORIA NARANJA CON GRADIENTE ===== */
.decorative-line-orange {
    background: linear-gradient(to right, #e4852b 0%, #e4852b 50%, transparent 100%);
}

/* ===== SOMBRA SUAVE Y AMPLIA PARA CUADROS ===== */
.shadow-soft {
    box-shadow: rgba(30, 34, 40, .01) 0 2px 1px, rgba(30, 34, 40, .01) 0 4px 2px, rgba(30, 34, 40, .01) 0 8px 4px, rgba(30, 34, 40, .01) 0 16px 8px, rgba(30, 34, 40, .015) 0 32px 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-soft:hover {
    transform: scale(1.02);
    box-shadow: rgba(30, 34, 40, .02) 0 2px 1px, rgba(30, 34, 40, .02) 0 4px 2px, rgba(30, 34, 40, .02) 0 8px 4px, rgba(30, 34, 40, .02) 0 16px 8px, rgba(30, 34, 40, .03) 0 32px 16px;
}

/* ===== ICONO CON DEGRADADO NARANJA A AZUL ===== */
.icon-gradient {
    background: linear-gradient(to top, #F97316, #0074bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CUADROS DE PERFILES CON ESQUINA INFERIOR DERECHA PRONUNCIADA ===== */
.profile-card-rounded {
    border-radius: 1rem 1rem 4rem 1rem;
}

/* ===== DEGRADADO NARANJA EN FOTOGRAFÍAS DE PERFILES PROFESIONALES ===== */
.profile-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top right, rgba(228, 133, 43, 0.7) 0%, rgba(228, 133, 43, 0.5) 30%, rgba(228, 133, 43, 0.2) 50%, transparent 70%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.group:hover .profile-image-container::after {
    opacity: 0;
}

/* ===== CUADROS CON ESQUINA INFERIOR DERECHA PRONUNCIADA ===== */
.bottom-right-rounded {
    border-radius: 1rem 1rem 4rem 1rem;
}


/* ===== LÍNEA DECORATIVA AZUL A NARANJA ===== */
.decorative-line-blue-orange {
    background: linear-gradient(to right, #0074bc, #F97316);
    height: 5px;
    width: 100%;
}

/* ===== GRADIENTE DEL FOOTER ===== */
.footer-gradient {
    background: linear-gradient(to bottom, #0074bc 0%, #F97316 100%);
}

/* ===== GRADIENTE DE SERVICIOS ===== */
.services-gradient {
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

/* ===== GRADIENTE DEL CTA ===== */
.cta-gradient {
    background: linear-gradient(to right, #0074bc, #F97316);
}

/* ===== TEXTURA DE LÍNEAS DECORATIVAS EN CTA ===== */
#cta-lines-texture {
    background-image: 
        repeating-linear-gradient(15deg, transparent 0px, transparent 2px, rgba(255,255,255,0.3) 2px, rgba(255,255,255,0.3) 3px),
        repeating-linear-gradient(-15deg, transparent 0px, transparent 2px, rgba(255,255,255,0.3) 2px, rgba(255,255,255,0.3) 3px),
        repeating-linear-gradient(45deg, transparent 0px, transparent 1px, rgba(255,255,255,0.2) 1px, rgba(255,255,255,0.2) 2px),
        repeating-linear-gradient(-45deg, transparent 0px, transparent 1px, rgba(255,255,255,0.2) 1px, rgba(255,255,255,0.2) 2px);
    background-size: 100% 100%;
    pointer-events: none;
}



/* ===== ESTILOS DE IMPRESIÓN MINIMALISTAS ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        font-family: 'Inter', sans-serif;
    }
    
    
    /* Eliminar sombras en impresión */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}
