/* ============================================
   asomayor_estilos.css
   Hoja de estilos principal - Versión organizada
   ============================================ */

/* ===== VARIABLES GLOBALES ===== */
:root {
    --blue-dark: #262e6c;
    --blue-light: #1f93a6;
    --silver: #c0c0c0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.16);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== ESTILOS BASE ===== */
body {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    background: #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
    color: #273f85;
    font-weight: 600;
}

/* ===== BOTONES ===== */
.btn-primary-custom {
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    transition: 0.5s;
    color: #fff;
    background: var(--blue-dark);
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-primary-custom:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--blue-light);
    color: var(--blue-light);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}
.btn-outline-custom:hover {
    background: var(--blue-light);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background: var(--blue-light);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    border: none;
}
.btn-secondary-custom:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.btn-sm-custom {
    padding: 8px 20px;
    font-size: 14px;
}
.btn-lg-custom {
    padding: 18px 50px;
    font-size: 18px;
}
.btn-block-custom {
    display: block;
    width: 100%;
}

/* ===== CARDS ===== */
.modern-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}
.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img-top-custom {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-horizontal {
    display: flex;
    flex-wrap: wrap;
}
.card-horizontal .card-img {
    flex: 0 0 40%;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}
.card-horizontal .card-body {
    flex: 1;
}

/* ===== SOMBRAS PROFESIONALES ===== */
.shadow-pro-1 {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
.shadow-pro-1:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.shadow-pro-2 {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}
.shadow-pro-2:hover {
    box-shadow: 0 25px 35px -8px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.shadow-pro-3 {
    box-shadow: 0 8px 20px rgba(31, 147, 166, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.shadow-pro-3:hover {
    box-shadow: 0 12px 28px rgba(31, 147, 166, 0.25);
    transform: translateY(-3px);
}

.shadow-pro-4 {
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.08), -10px -10px 20px rgba(255, 255, 255, 0.5);
    background: #f8fafc;
    transition: var(--transition);
}
.shadow-pro-4:hover {
    box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.1), -5px -5px 15px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.shadow-pro-5 {
    box-shadow: 0 35px 40px -12px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}
.shadow-pro-5:hover {
    box-shadow: 0 40px 50px -15px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px);
}

.shadow-pro-6 {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
.shadow-pro-6:hover {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 12px -2px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.shadow-pro-7 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(38, 46, 108, 0.15);
    transition: var(--transition);
}
.shadow-pro-7:hover {
    box-shadow: 0 16px 40px rgba(38, 46, 108, 0.25);
    transform: translateY(-3px);
}

.shadow-pro-8 {
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.08);
    position: relative;
    transition: var(--transition);
}
.shadow-pro-8::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue-light), var(--blue-dark));
    border-radius: 12px 12px 0 0;
}
.shadow-pro-8:hover {
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.shadow-badge-pro {
    display: inline-block;
    background: #1e293b;
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-family: monospace;
}

/* ===== ICON BOX ===== */
.icon-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    height: 100%;
}
.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.icon-box .icon {
    width: 80px;
    height: 80px;
    background: var(--blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}
.icon-box h4 {
    color: var(--blue-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}
.icon-box p {
    color: #6c757d;
}

/* ===== FORMULARIOS ===== */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    display: block;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}
.form-control:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(31, 147, 166, 0.2);
}
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23262e6c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}
.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--blue-light);
}
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.input-group {
    display: flex;
    align-items: stretch;
}
.input-group-text {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-right: none;
    padding: 0 16px;
    border-radius: 10px 0 0 10px;
}
.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

/* ===== ALERTAS ===== */
.alert-custom {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid;
}
.alert-success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}
.alert-info {
    background: #e3f2fd;
    border-color: var(--blue-light);
    color: var(--blue-dark);
}
.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}
.alert-danger {
    background: #ffebee;
    border-color: #f03535;
    color: #c62828;
}

/* ===== BADGES ===== */
.badge-custom {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-primary {
    background: var(--blue-light);
    color: white;
}
.badge-secondary {
    background: var(--blue-dark);
    color: white;
}
.badge-success {
    background: #28a745;
    color: white;
}

/* ===== TABLAS ===== */
.table-custom {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table-custom thead tr {
    background: var(--blue-dark);
    color: white;
}
.table-custom th, .table-custom td {
    padding: 1rem;
    text-align: left;
}
.table-custom tbody tr {
    border-bottom: 1px solid #eef2f6;
}
.table-custom tbody tr:hover {
    background: #f8fafc;
}

/* ===== ACCORDION ===== */
.accordion-custom {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.accordion-item-custom {
    border-bottom: 1px solid #e2e8f0;
}
.accordion-item-custom:last-child {
    border-bottom: none;
}
.accordion-header-custom {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.accordion-header-custom:hover {
    background: #f8fafc;
}
.accordion-content-custom {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}
.accordion-content-custom.show {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ===== PAGINACIÓN ===== */
.pagination-custom {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.page-link-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 600;
}
.page-link-custom:hover, .page-link-custom.active {
    background: var(--blue-light);
    border-color: var(--blue-light);
    color: white;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.modal-container {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}
.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body {
    padding: 1.5rem;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== TOOLTIP ===== */
.tooltip-custom {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--blue-light);
}
.tooltip-custom .tooltip-text {
    visibility: hidden;
    background: var(--blue-dark);
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    z-index: 1;
}
.tooltip-custom:hover .tooltip-text {
    visibility: visible;
}

/* ===== PROGRESS BAR ===== */
.progress-custom {
    background: #e2e8f0;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}
.progress-bar-custom {
    background: var(--blue-light);
    height: 100%;
    border-radius: 10px;
    width: 0%;
}

/* ===== TABS ===== */
.tabs-custom {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}
.tab-custom {
    padding: 12px 24px;
    background: none;
    border: none;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
}
.tab-custom.active {
    color: var(--blue-light);
    border-bottom: 2px solid var(--blue-light);
    margin-bottom: -2px;
}
.tab-content-custom {
    display: none;
}
.tab-content-custom.active {
    display: block;
}

/* ===== DROPDOWN ===== */
.dropdown-custom {
    position: relative;
    display: inline-block;
}
.dropdown-menu-custom {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    z-index: 1;
    top: 100%;
    left: 0;
    margin-top: 4px;
}
.dropdown-menu-custom a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
}
.dropdown-menu-custom a:hover {
    background: #f8fafc;
}
/* Elimina esto o coméntalo si no lo usas */
/*
.dropdown-custom:hover .dropdown-menu-custom {
    display: block;
}
*/

/* ===== BREADCRUMB ===== */
.breadcrumb-custom {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}
.breadcrumb-custom li a {
    color: var(--blue-light);
    text-decoration: none;
}

/* ===== SECCIONES Y ESTRUCTURA ===== */
.section {
    padding: 60px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.hero-section {
    background-color: #262e6c;
    color: white;
    padding: 80px 0;
}
.bg-light-silver {
    background: #f0f7ff;
}
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.logo-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* ===== UTILIDADES ===== */
.text-blue-dark { color: var(--blue-dark); }
.text-blue-light { color: var(--blue-light); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.rounded-lg { border-radius: 12px; }

/* ===== NAVBAR PRINCIPAL ===== */
.navbar {
    background: var(--blue-dark) !important;
    position: relative !important;
}

/* Enlaces de navegación - blancos */
.navbar .nav-link {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 8px;
}

/* Efecto subrayado en hover para nav-link */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-light);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: transparent;
    transform: translateY(0);
    box-shadow: none;
    color: white !important;
}

/* Dropdown menu */
.navbar .dropdown-menu {
    background-color: var(--blue-dark);
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    padding: 10px 0;
    margin-top: 10px;
}

/* Dropdown items - blancos */
.navbar .dropdown-item {
    color: white !important;
    padding: 12px 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: transparent;
}

/* Hover de dropdown items - solo desplazamiento, sin fondo */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: transparent;
    color: var(--blue-light) !important;
    transform: translateX(5px);
}

/* Flecha del dropdown */
.navbar .dropdown-toggle::after {
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: white;
}

.navbar .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* Iconos dentro de dropdown */
.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Responsive: en móvil mantener legibilidad */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
    .navbar .dropdown-item {
        padding: 10px 15px;
        border-radius: 4px;
        color: rgba(255,255,255,0.85) !important;
    }
    .navbar .dropdown-item:hover {
        color: var(--blue-light) !important;
        transform: translateX(5px);
    }
    /* En móvil el subrayado se mantiene pero más sutil */
    .navbar .nav-link::after {
        bottom: -2px;
    }
}
/* ===== BOTONES ESPECIALES ===== */
.btn-unete-nav {
    background-color: #32CD32;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(240, 53, 53, 0.4);
    border: 2px solid transparent;
}
.btn-unete-nav:hover {
    background-color: #262e6c;
    color: #32CD32;
    border-color: #32CD32;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px #32CD32;
}

.btn-esp-nav {
    padding: 8px 3px;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-esp-nav:hover {
    color: white;
    transform: translateY(-3px);
}

/* ===== SUBMENÚ PLATEADO ===== */
.submenu-plateado {
    background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
    padding: 8px 0;
    border-bottom: 2px solid var(--blue-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}
.submenu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.submenu-links li a {
    color: #262e6c;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}
.submenu-links li a:hover {
    background-color: var(--blue-dark);
    color: white;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
    .card-horizontal {
        flex-direction: column;
    }
    .card-horizontal .card-img {
        border-radius: 12px 12px 0 0;
    }
    .submenu-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    .submenu-links li a {
        font-size: 0.8rem;
    }
}

@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
    .navbar .dropdown-item {
        padding: 10px 15px;
        border-radius: 4px;
    }
}