/* ============================================
   UNITY HCM - Main CSS
   Variables, Reset, Tipografía y Layout Base
   ============================================ */

/* Variables CSS */
:root {
    /* Colores principales */
    --navy-primary: 30, 64, 107;
    --navy-dark: 36, 55, 89;
    --navy-overlay: 39, 55, 86;
    --blue-secondary: 30, 115, 190;
    
    /* Texto */
    --text-dark: 36, 55, 89;
    --text-gray: 103, 103, 103;
    --text-white: 255, 255, 255;
    --bg-white: 255, 255, 255;
    
    /* Footer */
    --footer-dark: 37, 37, 37;
    --footer-gray: 74, 74, 74;
    --footer-light: 204, 204, 204;
    --copyright-gray: 119, 119, 119;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transiciones */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* Fuentes */
    --font-sans: 'Open Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: rgb(var(--text-gray));
    line-height: 1.6;
    background-color: rgb(var(--bg-white));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Main Section - Asegurar visibilidad completa del texto */
main {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

/* Tipografía Estandarizada */
h1, h2, h3, h4, h5, h6 {
    color: rgb(var(--text-dark));
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 600;
}

h5 {
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2.25rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.75rem;
        line-height: 1.4;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

p {
    font-size: 1rem;
    line-height: 1.5rem;
    color: rgb(var(--text-gray));
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilidades de Accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Container */
.container-custom {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1200px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 768px) {
    .container-custom {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* Section Spacing */
.section-spacing {
    padding-top: 3rem;
    padding-bottom: 3rem;
    overflow-x: hidden;
    overflow-y: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .section-spacing {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .section-spacing {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

/* Section spacing reducido - Para secciones que necesitan menos espacio superior */
.section-spacing-reduced {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-spacing-reduced {
        padding-top: 2.5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1024px) {
    .section-spacing-reduced {
        padding-top: 3rem;
        padding-bottom: 6rem;
    }
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: rgb(var(--navy-primary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--navy-dark));
}

/* Clases de utilidad para colores */
.text-navy-primary {
    color: rgb(var(--navy-primary));
}

.text-navy-dark {
    color: rgb(var(--navy-dark));
}

.text-blue-secondary {
    color: rgb(var(--blue-secondary));
}

.text-text-gray {
    color: rgb(var(--text-gray));
}

.text-gray-400 {
    color: #9ca3af;
}

.text-white {
    color: rgb(var(--text-white));
}

.bg-navy-primary {
    background-color: rgb(var(--navy-primary));
}

.bg-navy-dark {
    background-color: rgb(var(--navy-dark));
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: rgb(var(--bg-white));
}

.bg-black\/40 {
    background-color: rgba(0, 0, 0, 0.4);
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-footer-dark {
    background-color: rgb(var(--footer-dark));
}

.text-footer-light {
    color: rgb(var(--footer-light));
}

.text-footer-gray {
    color: rgb(var(--footer-gray));
}

.text-copyright-gray {
    color: rgb(var(--copyright-gray));
}

.border-footer-light {
    border-color: rgb(var(--footer-light));
}

/* Grid System */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-1 {
    flex: 1 1 0%;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-16 > * + * {
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .space-y-16 > * + * {
        margin-top: 5rem;
    }
}

/* Spacing Utilities */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-\[80px\] {
    margin-top: 80px;
}

.ml-6 {
    margin-left: 1.5rem;
}

@media (min-width: 768px) {
    .md\:mt-\[120px\] {
        margin-top: 120px;
    }
}

/* Positioning */
.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Display */
.hidden {
    display: none;
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }
    
    .lg\:hidden {
        display: none;
    }
}

/* Width & Height */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.w-\[180px\] {
    width: 180px;
}

.h-\[45px\] {
    height: 45px;
}

.w-\[220px\] {
    width: 220px;
}

.h-\[55px\] {
    height: 55px;
}

@media (min-width: 768px) {
    .md\:w-\[244px\] {
        width: 244px;
    }
    
    .md\:h-\[60px\] {
        height: 60px;
    }
    
    .md\:w-\[300px\] {
        width: 300px;
    }
    
    .md\:h-\[75px\] {
        height: 75px;
    }
    
    .md\:py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

@media (min-width: 768px) {
    .md\:text-left {
        text-align: left;
    }
}

/* Font Sizes - Estandarizados */
.text-xs {
    font-size: 0.75rem;
    line-height: 1.5;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-base {
    font-size: 1rem;
    line-height: 1.6;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.6;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 1.4;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 1.3;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 1.3;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .md\:text-3xl {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .md\:text-4xl {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .md\:text-5xl {
        font-size: 3.5rem;
        line-height: 1.2;
    }
    
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.6;
    }
    
    .md\:text-2xl {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    
    .md\:text-3xl {
        font-size: 2rem;
        line-height: 1.3;
    }
}

/* Font Weights - Estandarizados */
.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Max Width */
.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-\[300px\] {
    max-width: 300px;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Grid Columns */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 1024px) {
    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    
    .lg\:col-span-8 {
        grid-column: span 8 / span 8;
    }
    
    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }
}

@media (min-width: 1280px) {
    .xl\:inline-block {
        display: inline-block;
    }
}

/* Sticky Positioning */
.sticky {
    position: sticky;
}

.top-24 {
    top: 6rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Padding */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-\[120px\] {
    padding-top: 120px;
}

@media (min-width: 768px) {
    .md\:py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Border */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-gray-700 {
    border-color: #374151;
}

.border-transparent {
    border-color: transparent;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-sm {
    border-radius: calc(var(--radius) - 4px);
}

/* Cursor */
.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-pointer {
    cursor: pointer;
}

/* Pointer Events */
.pointer-events-none {
    pointer-events: none;
}

/* Shadows */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

.duration-300 {
    transition-duration: 0.3s;
}

/* Hover States */
.hover\:text-white:hover {
    color: rgb(var(--text-white));
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

/* Object Fit */
.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Leading */
.leading-relaxed {
    line-height: 1.625;
}

/* Flex Shrink */
.flex-shrink-0 {
    flex-shrink: 0;
}

