/* ==================== PROGRESS STEPS - AENA TAB STYLE ==================== */

/* Font faces (kept for backwards compat) */
@font-face{font-family:'Raleway';src:url('../../fonts/Raleway/Raleway-Light.woff2') format('woff2'),url('../../fonts/Raleway/Raleway-Light.woff') format('woff');font-weight:200;font-style:normal;font-display:swap}
@font-face{font-family:'Raleway';src:url('../../fonts/Raleway/Raleway-Regular.woff2') format('woff2'),url('../../fonts/Raleway/Raleway-Regular.woff') format('woff');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Raleway';src:url('../../fonts/Raleway/Raleway-Medium.woff2') format('woff2'),url('../../fonts/Raleway/Raleway-Medium.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Raleway';src:url('../../fonts/Raleway/Raleway-Bold.woff2') format('woff2'),url('../../fonts/Raleway/Raleway-Bold.woff') format('woff');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Raleway';src:url('../../fonts/Raleway/Raleway-ExtraBold.woff2') format('woff2'),url('../../fonts/Raleway/Raleway-ExtraBold.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Arial';src:url('../../fonts/Arial/Arial-Regular.woff2') format('woff2'),url('../../fonts/Arial/Arial-Regular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Arial';src:url('../../fonts/Arial/Arial-Bold.woff') format('woff');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'barajas-icons';src:url('../../fonts/icons/barajas_icons.eot') format('embedded-opentype'),url('../../fonts/icons/barajas_icons.ttf') format('truetype'),url('../../fonts/icons/barajas_icons.woff') format('woff'),url('../../fonts/icons/barajas_icons.svg') format('svg');font-weight:300;font-style:300;font-display:swap}

/* Base body styles */
body {
    background-image: none;
    background-color: #fff;
    background-size: auto;
}
body * {
    font-family: 'Poppins', 'Raleway', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body h1 { font-size: 38px; color: #000000; }
body h1 span { font-size: 38px; color: #DC2626; }
body .top-bar h1 { font-size: 15px; color: #fff; line-height: 1.5em; }
@media screen and (max-width: 1119px) {
    body h1 { font-size: 28px; }
    body h1 span { font-size: 28px; }
}
body h2 { font-size: 36px; font-weight: 600; color: #000000; }
body h2 span { font-size: 36px; color: #DC2626; }
@media screen and (max-width: 1119px) {
    body h2 { font-size: 24px; }
    body h2 span { font-size: 24px; }
}
body h3 { font-size: 24px; color: #000000; }
body p { font-size: 16px; color: #333; }
body p ul { color: #555; padding-left: 20px; }

/* Form elements */
body input.form-control, body select.form-select {
    position: relative; width: 100%; height: 34px;
    font-family: 'Arial'; font-size: 14px;
    background: #ffffff; border: 1px solid #EDEDED;
    border-radius: 0; color: #000000;
}
body input.form-control:focus, body select.form-select:focus {
    box-shadow: none; border-color: #DC2626;
}
body select.form-select {
    background-image: url(../../images/arrow-down.png);
    background-repeat: no-repeat; background-position: 97%; background-size: 4%;
}

/* Field validation */
body .field .field-control { position: relative; }
body .field .field-control.error_field .form-control,
body .field .field-control.error_field .form-select { border: 1px solid #dc3545; }
body .field .field-control.error_field:before {
    position: absolute; right: 32px; bottom: 3px;
    content: '\e950'; font-family: 'barajas-icons'; font-size: 22px; color: #dc3545; z-index: 9;
}
body .field .field-control.success .form-control,
body .field .field-control.success .form-select { border: 1px solid #198754; }
body .field .field-control.success:before {
    position: absolute; right: 32px; bottom: 3px;
    content: '\e92d'; font-family: 'barajas-icons'; font-size: 22px; color: #198754; z-index: 9;
}

/* Buttons */
body button.btn-primary, body a.btn-primary {
    display: block; width: 100%; height: 40px;
    font-family: 'Arial'; font-size: 14px; font-weight: 600;
    background-color: #DC2626; color: #ffffff;
    text-transform: uppercase; border: 1px solid #DC2626; border-radius: 0;
}
body button.btn-primary:hover, body a.btn-primary:hover {
    background: #5e8800; border-color: #5e8800;
}
body button.btn-secondary, body a.btn-secondary {
    width: auto; height: 40px; font-size: 14px; font-weight: 600;
    background-color: #EDEDED; color: #000000;
    text-transform: uppercase; border: 1px solid #5D5D5D; border-radius: 0;
}
body button.btn-secondary:hover, body a.btn-secondary:hover {
    background: #EDEDED; border-color: #EDEDED;
}
body button.btn-primary:active, body a.btn-primary:active,
body button.btn-secondary:active, body a.btn-secondary:active {
    border-color: initial;
}

body a { font-size: 16px; text-decoration: none; color: #DC2626; }
body a:hover { text-decoration: none; }
body label { font-size: 12px; font-weight: 600; color: #000000; text-transform: uppercase; }

/* Card base (non tarifa-card) */
body .card:not(.tarifa-card) {
    display: flex; max-width: 100%; height: 310px;
    background: #ffffff; border-radius: 0;
    box-shadow: none; border: 1px solid #ddd; padding: 0px;
}
body .card:not(.tarifa-card):before {
    content: ''; border-bottom: 3px solid; height: 0px; display: block;
    width: 100%; background: #DC2626; position: absolute; left: 0; bottom: 0;
    border-radius: 0;
}
body .card:not(.tarifa-card) h3 { font-weight: 600; }
body .card:not(.tarifa-card) .card-body { padding: 0; }
body .card:not(.tarifa-card) .card-body p { font-size: 14px; color: #5D5D5D; }
body .card:not(.tarifa-card) .card-body .actions a { font-size: 14px; font-weight: 600; text-transform: uppercase; }
body .card:not(.tarifa-card) .card-body .actions a:after {
    content: '\e90f'; font-family: 'barajas-icons'; font-size: 14px; color: #DC2626;
}
body .card:not(.tarifa-card) .actions-toolbar {
    display: flex; justify-content: center; align-items: center; flex-direction: column;
}
body .card:not(.tarifa-card) .actions-toolbar .btn-primary,
body .card:not(.tarifa-card) .actions-toolbar .btn-secondary {
    display: flex; justify-content: center; align-items: center;
    width: 100%; max-width: 220px; height: 42px; text-align: center;
    background: #DC2626; cursor: pointer;
}
body .card:not(.tarifa-card) .actions-toolbar .btn-primary:hover,
body .card:not(.tarifa-card) .actions-toolbar .btn-secondary:hover { transition: all .3s ease; }
body .card:not(.tarifa-card) .actions-toolbar .btn-secondary {
    background: #EDEDED; border: 0px; margin-top: 12px;
}

/* Loader */
body .loader {
    position: fixed; background: transparent; width: 100%; height: 100%;
    z-index: 999; top: 0; left: 0; display: none;
}
body .loader > div {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
    border-radius: 100%; overflow: hidden;
}
body .loader > div img { max-width: 100px; }

/* Container */
body .container-barajas {
    position: relative; max-width: 1100px; margin: 0 auto; padding-bottom: 0px;
}
body .container-barajas.simple { padding-bottom: 0; }
body .container-barajas .content-agencias {
    display: flex; justify-content: end; align-items: center; padding: 10px 0;
}
body .container-barajas .content-agencias p { color: #9c9c9c; margin: 0; margin-right: 5px; }
body .container-barajas .content-agencias img { width: 30px; height: 30px; }

/* ==================== STEPS PROGRESS - AENA TABS ==================== */
body .container-barajas .steps-progress {
    background: transparent;
    margin: 0 0 20px 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

body .container-barajas .steps-progress-content {
    display: flex;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    flex-wrap: wrap;
}

body .container-barajas .steps-progress-content .step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-right: none;
    opacity: 1;
    cursor: default;
}

body .container-barajas .steps-progress-content .step:first-child {
    border-radius: 0;
}

body .container-barajas .steps-progress-content .step:last-child {
    border-right: 1px solid #ccc;
    border-radius: 0;
}

body .container-barajas .steps-progress-content .step br {
    display: none;
}

body .container-barajas .steps-progress-content .step p {
    font-family: 'Poppins', 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    margin: 0 0 0 5px;
    white-space: nowrap;
}

body .container-barajas .steps-progress-content .step .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    border-radius: 100%;
    background: #e0e0e0;
}

/* Remove the arrow pseudo-elements */
body .container-barajas .steps-progress-content .step:after {
    content: '' !important;
    font-family: inherit !important;
    font-size: 0 !important;
    margin-left: 0 !important;
    display: none !important;
}

body .container-barajas .steps-progress-content .step:before {
    display: none !important;
}

/* Active step - dark background, white text */
body .container-barajas .steps-progress-content .step.active {
    background: #333;
    border-color: #333;
    opacity: 1;
}

body .container-barajas .steps-progress-content .step.active .icon {
    background: #fff;
    color: #333;
}

body .container-barajas .steps-progress-content .step.active p {
    color: #fff;
    font-weight: 700;
}

/* Completed step */
body .container-barajas .steps-progress-content .step.completed {
    background: #f0f0f0;
    border-color: #ccc;
    opacity: 1;
}

body .container-barajas .steps-progress-content .step.completed .icon {
    background: #DC2626;
    color: #fff;
}

body .container-barajas .steps-progress-content .step.completed p {
    color: #333;
}

/* ===== MOBILE STEPS ===== */
@media screen and (max-width: 1119px) {
    body .container-barajas .steps-progress {
        display: block;
        margin: 0 0 15px 0;
    }

    body .container-barajas .steps-progress-content {
        margin-bottom: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    body .container-barajas .steps-progress-content .step {
        display: flex;
        flex-direction: row;
        text-align: center;
        opacity: 1;
        z-index: 1;
        padding: 8px 10px;
        min-width: auto;
    }

    body .container-barajas .steps-progress-content .step .icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
        z-index: 2;
    }

    body .container-barajas .steps-progress-content .step br {
        display: none;
    }

    body .container-barajas .steps-progress-content .step p {
        display: none;
    }

    body .container-barajas .steps-progress-content .step:after {
        content: none !important;
        display: none !important;
    }

    body .container-barajas .steps-progress-content .step:before {
        display: none !important;
    }

    body .container-barajas .steps-progress-content .step.active .icon {
        background: #fff;
        color: #333;
    }

    body .container-barajas .steps-progress-content .step.active {
        background: #333;
        border-color: #333;
    }
}
