/* Wisa 2026-10-24: extraido del <style> inline de index.php.
   HTML5 no permite <style> dentro de <body>; el validador W3C lo
   marcaba como error. */
.hero-section {
    background: linear-gradient(135deg, #003399 0%, #001f66 100%);
    position: relative;
    overflow: hidden;
}

.wave-container {
    bottom: -1px;
}

.search-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.benefit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--bs-primary-maritime) !important;
}

.step-number {
    transition: transform 0.3s ease;
}

.step-number:hover {
    transform: scale(1.1);
}

.cta-final {
    background: linear-gradient(135deg, #003399 0%, #002266 100%);
}

.job-card {
    transition: transform 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.bg-contrast {
    background-color: #f0f7ff !important;
}

/* RESPONSIVE IMPROVEMENTS */
@media (max-width: 1199.98px) {
    .display-3 { font-size: 2.75rem; }
    .display-4 { font-size: 2.25rem; }
    .display-5 { font-size: 2rem; }
}

@media (max-width: 991.98px) {
    .hero-section { 
        padding-top: 3rem !important; 
        padding-bottom: 3rem !important; 
    }
    
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
    
    .search-card .row {
        flex-direction: column;
    }
    
    .search-card .col-md-8,
    .search-card .col-md-4 {
        width: 100%;
    }
    
    .search-card .col-md-4 {
        margin-top: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    .display-5 { font-size: 1.5rem; }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .p-4, .p-5 {
        padding: 1.5rem !important;
    }
    
    .benefit-card,
    .job-card .card-body {
        padding: 1.25rem !important;
    }
    
    .d-flex.flex-column.flex-sm-row {
        flex-direction: column !important;
    }
    
    .d-flex.flex-column.flex-sm-row .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .d-flex.flex-column.flex-sm-row .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .display-3 { font-size: 1.75rem; }
    .display-4 { font-size: 1.5rem; }
    .display-5 { font-size: 1.25rem; }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .p-4, .p-5 {
        padding: 1rem !important;
    }
    
    .row.g-4 {
        gap: 1rem !important;
    }
    
    .col-6 {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

/* Touch improvements */
.btn, .card, .list-group-item-action {
    -webkit-tap-highlight-color: transparent;
}

/* Focus states for accessibility */
.btn:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.25);
    outline: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better form controls on mobile */
.form-select-lg {
    padding: 0.75rem 2.25rem 0.75rem 1rem;
}

/* Fix for button text on small screens */
.btn .fw-bold {
    white-space: nowrap;
}

@media (max-width: 400px) {
    .btn .fw-bold {
        font-size: 0.9rem;
    }
}

/* Loading animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card, .benefit-card {
    animation: fadeInUp 0.5s ease-out;
}
