/* 
 * Custom CSS for ETA Londres
 * Bootstrap 5 compatible styles with custom design
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #0f2c48;
    --secondary-color: #af2726;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    --black-color: #000000;
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h5 {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

p {
    font-size: 16px;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* ===== BOOTSTRAP COLOR OVERRIDES ===== */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0a1f33;
    border-color: #0a1f33;
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #8b1e1d;
    border-color: #8b1e1d;
    color: #fff;
}

/* ===== HEADER STYLES ===== */
.top-bar {
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.header {
    position: relative;
    z-index: 1000;
}

.logo-img {
    transition: var(--transition);
    background: transparent !important;
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.1);
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo {
    background: transparent !important;
}

.logo a {
    background: transparent !important;
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
    min-height: 60px;
    box-shadow: var(--box-shadow);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    color: #fff !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

/* ===== MEGA MENU STYLES ===== */
.mega-dropdown {
    position: static;
}

.mega-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1140px;
    background-color: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin-top: 0;
    z-index: 1050;
}

.mega-menu .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--dark-color);
    border-bottom: 1px solid #f8f9fa;
}

.mega-menu .dropdown-item:hover,
.mega-menu .dropdown-item:focus {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mega-menu .dropdown-item i {
    font-size: 0.875rem;
    transition: var(--transition);
}

.mega-menu .dropdown-item:hover i {
    transform: translateX(3px);
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    max-height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 44, 72, 0.8), rgba(175, 39, 38, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.hero-buttons .btn {
    margin: 0.75rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 4rem 0;
}

.section-primary {
    background: linear-gradient(135deg, var(--primary-color), #1a3a5c);
    color: var(--white-color);
}

.section-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #c92d2c);
    color: var(--white-color);
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-outline-light {
    border: 2px solid #fff !important;
    color: #fff !important;
}

.btn-outline-light:hover {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    border-color: #fff !important;
}

.btn-apply {
    background: linear-gradient(45deg, var(--secondary-color), #d63031);
    color: var(--white-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-apply:hover {
    background: linear-gradient(45deg, #8b1e1d, var(--secondary-color));
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(175, 39, 38, 0.4);
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(175, 39, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(175, 39, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(175, 39, 38, 0);
    }
}

/* ===== TILES/CARDS STYLES ===== */
.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tile {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tile-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tile h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tile p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: #fff;
    border-bottom: none;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ===== ACCORDION STYLES ===== */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--white-color);
}

/* ===== LIST STYLES ===== */
.list-numbered {
    counter-reset: item;
    padding-left: 0;
}

.list-numbered li {
    display: block;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
    counter-increment: item;
}

.list-numbered li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: var(--white-color);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

ul.list-styled {
    list-style: none;
    padding-left: 0;
}

ul.list-styled li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

ul.list-styled li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb-nav {
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '';
}

.breadcrumb-item a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-color), #1a3a5c);
    color: var(--white-color);
}

.footer h5 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white-color);
    transform: translateX(3px);
}

.footer .contact-info p {
    margin-bottom: 1rem;
}

.footer .contact-info i {
    width: 20px;
    text-align: center;
}

/* ===== IMAGE STYLES ===== */
.img-fluid {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.img-fluid.loaded {
    opacity: 1;
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

/* ===== UTILITY CLASSES ===== */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.border-white-50 {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 510px;
        max-height: 510px;
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid #dee2e6;
        border-radius: 0;
    }
    
    .mega-menu .container {
        padding: 0;
    }
    
    .mega-menu .row {
        margin: 0;
    }
    
    .mega-menu .col-lg-6 {
        padding: 0;
    }
    
    .mega-menu .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f8f9fa;
        border-radius: 0;
    }
    
    .mega-menu .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Mobile menu improvements */
    .navbar-collapse {
        background-color: var(--primary-color);
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95);
        border: none;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
        margin-top: 0;
        border-radius: 0;
    }
    
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 460px;
        max-height: 460px;
        padding: 2.5rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 2.5rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-content .lead {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
        line-height: 1.4;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        margin: 0.5rem;
    }
    
    .tile {
        padding: 1.5rem;
    }
    
    .tile-icon {
        font-size: 2.5em;
    }
    
    /* Mobile header improvements */
    .header .row {
        align-items: center;
    }
    
    .logo-img {
        max-height: 80px !important;
        min-width: auto !important;
        width: auto;
    }
    
    /* Mobile menu button improvements */
    .btn-outline-primary {
        border-width: 2px;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 440px;
        max-height: 440px;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.25;
    }
    
    .hero-content .lead {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        line-height: 1.4;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.75rem 0;
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    /* Extra small screen header adjustments */
    .header .py-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .logo-img {
        max-height: 70px !important;
    }
    
    .header .text-center h2 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .header .text-center p {
        font-size: 0.8rem !important;
    }
    
    /* Mobile menu improvements for very small screens */
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }
    
    .dropdown-item {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .mega-menu {
        padding: 0.5rem !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .breadcrumb-nav,
    .btn,
    .pulse-button {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: var(--dark-color) !important;
        min-height: auto !important;
    }
    
    .hero-section::before {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .pulse-button {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .tile {
        border: 2px solid var(--dark-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

.step-number,
.timeline-marker{
  background: #0f2c48;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* ===== MOBILE MENU ENHANCEMENTS ===== */
@media (max-width: 991.98px) {
    /* Improve touch targets for mobile */
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .dropdown-toggle::after {
        margin-left: auto;
        border-top: 0.4em solid;
        border-right: 0.4em solid transparent;
        border-bottom: 0;
        border-left: 0.4em solid transparent;
    }
    
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    /* Mobile dropdown improvements */
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem !important;
        color: var(--dark-color) !important;
        border-bottom: 1px solid #f1f3f4;
        min-height: 48px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: var(--light-color) !important;
        color: var(--primary-color) !important;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Mega menu mobile specific styles */
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1) !important;
        border: none !important;
        border-radius: 0 !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
    }
    
    .mega-menu .container {
        padding: 0 !important;
        max-width: none !important;
    }
    
    .mega-menu .row {
        margin: 0 !important;
    }
    
    .mega-menu .col-lg-6 {
        padding: 0 !important;
        width: 100% !important;
        flex: none !important;
    }
    
    .mega-menu .dropdown-item {
        padding: 0.75rem 1.5rem !important;
        border-bottom: 1px solid #f1f3f4;
        border-radius: 0 !important;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .mega-menu .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .mega-menu .dropdown-item i {
        margin-right: 0.75rem;
        width: 16px;
        text-align: center;
    }
    
    /* Mobile navbar improvements */
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.5);
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    .navbar-collapse {
        background-color: var(--primary-color);
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .nav-item {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Smooth transitions for mobile menu */
    .dropdown-menu,
    .mega-menu {
        transition: all 0.3s ease-in-out;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    
    .dropdown-menu.show,
    .mega-menu.show {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .nav-link:hover,
    .dropdown-item:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Increase touch targets */
    .nav-link,
    .dropdown-item,
    .btn {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Add active states for touch feedback */
    .nav-link:active,
    .dropdown-item:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        transform: scale(0.98);
    }
}