:root {
    --primary-color: #017cba;
    --primary-hover: #0169a0;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --bg-light: #f8f9fa;
}

/* Layout Principal */
body {
    background-color: var(--bg-light);
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header y Logos */
.header-main {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to right, rgba(1, 124, 186, 0.05), rgba(1, 124, 186, 0.1), rgba(1, 124, 186, 0.05));
}

.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-ehero {
    height: 40px;
    width: auto;
}

.logo-dreamlove {
    height: 35px;
    width: auto;
}

/* Título */
h1 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

h1 small {
    color: var(--primary-color);
    font-weight: 500;
}

/* Selector de Idioma y Nota Legal */
.language-selector {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.legal-notice-text {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.legal-notice-text i {
    font-size: 0.9rem;
}

#languageSelect {
    border: 1px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.875rem;
    border-radius: 4px;
    padding: 0.25rem 2rem 0.25rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#languageSelect:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

#languageSelect:focus {
    border-color: white;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.2);
    outline: none;
}

#languageSelect option {
    background-color: white;
    color: var(--text-dark);
    padding: 8px;
}

/* Sección de Filtros */
.filters-section {
    background: linear-gradient(to bottom, white, var(--bg-light));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 71px;
    z-index: 900;
    width: 100%;
    padding: 1rem 0;
}

.filters-section .row {
    margin: 0;
}

.input-group {
    background-color: white;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.input-group:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.input-group-text {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
}

.input-group .form-control,
.input-group .form-select {
    border: none;
    padding-left: 0;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    box-shadow: none;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 124, 186, 0.25);
}

/* Legal Notice */
.legal-notice {
    background: rgba(1, 124, 186, 0.05);
    border-bottom: 1px solid var(--border-color);
}

/* Select2 Personalización */
.select2-container {
    width: 85% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    border: none !important;
    min-height: 38px;
    background-color: transparent !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding-left: 0;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: none !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-top: 4px;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 8px 12px;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.select2-container--bootstrap-5 .select2-search__field {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
}

.select2-container--bootstrap-5 .select2-search__field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 124, 186, 0.25);
    outline: none;
}

/* Servicios */
.services-section {
    flex: 1;
    padding: 1.5rem 0;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-card .card-header {
    background: linear-gradient(to right, rgba(1, 124, 186, 0.05), white);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
}

.service-card .card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-code {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.2;
    display: block;
}

.service-code + small {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    display: block;
    line-height: 1.2;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: flex-start;
    line-height: 1.2;
}

.service-description {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-subtitle {
    color: var(--text-muted);
}

.service-countries {
    font-size: 0.875rem;
    color: #8795a1;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.service-countries:not(.expanded) {
    max-height: 1.5em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-countries.expanded {
    max-height: none;
    white-space: normal;
}

.service-countries-toggle {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.875rem;
    margin-top: auto;
    transition: color 0.3s ease;
}

.service-countries-toggle:hover {
    color: var(--primary-hover);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.footer-logo {
    height: 100px;
    width: auto;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo-partner {
    height: 40px;
    width: auto;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-brand-partner h5 {
    color: #333;
    font-size: 1rem;
}

.footer p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-legal {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-legal .copyright {
    font-size: 0.8rem;
}

.footer-legal .disclaimer {
    max-width: 900px;
    margin: 0 auto;
    color: #6c757d;
    font-size: 0.75rem;
}

.footer a:not(.btn) {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:not(.btn):hover {
    color: var(--primary-hover);
}

.btn-ehero {
    background-color: #017cba;
    border-color: #017cba;
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-ehero:hover {
    background-color: #0169a0;
    border-color: #0169a0;
    color: white;
}

.footer .border-top {
    border-color: rgba(0,0,0,0.1) !important;
}

@media (max-width: 991.98px) {
    .footer-brand, .footer-brand-partner {
        margin-bottom: 2rem;
    }
    
    .footer-logo {
        height: 80px;
    }
    
    .footer-logo-partner {
        height: 35px;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 1.2rem;
    }

    h1 small {
        font-size: 0.9rem;
    }

    .logo-ehero {
        height: 30px;
    }

    .logo-dreamlove {
        height: 25px;
    }

    .header-main {
        position: relative;
    }

    .language-selector {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .filters-section {
        position: sticky;
        top: 40px;
        z-index: 900;
        padding: 0.75rem 0;
    }

    .filters-section .input-group {
        margin-bottom: 0.5rem;
    }

    .filters-section .input-group:last-child {
        margin-bottom: 0;
    }

    .footer {
        text-align: center;
    }

    .footer-logo {
        margin: 0.5rem 0;
    }
} 