/**
 * Estilos personalizados para Viajes Mendoza
 */

:root {
    --color-primario: #FF950E;
    --color-secundario: #FF950E;
    --color-texto: #2c3e50;
}

/* ============================================
   ESTILOS GLOBALES
   ============================================ */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--color-texto);
}

main {
    background-color: #fff;
}

/* Textos */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-texto);
    font-weight: 600;
}

p, span, li, small, label, .text-muted, .card-text {
    color: inherit;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Botones */
.btn-primary {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-secundario);
    border-color: var(--color-secundario);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-outline-primary:hover {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

.bg-primary {
    background-color: var(--color-primario) !important;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */

.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.admin-panel .navbar .nav-link.admin-nav-active {
    background-color: rgba(255, 149, 14, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
}

.admin-panel .navbar .nav-link.admin-nav-active:hover,
.admin-panel .navbar .nav-link.admin-nav-active:focus {
    background-color: rgba(255, 149, 14, 0.3);
    color: #ffffff;
}

/* ============================================
   BANNER HERO
   ============================================ */

.hero-banner {
    position: relative;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 149, 14, 0.8), rgba(230, 120, 0, 0.8));
    z-index: -1;
}

/* ============================================
   TARJETAS DE PUBLICACIONES
   ============================================ */

.tarjeta-publicacion {
    border: none;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.tarjeta-publicacion:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.tarjeta-publicacion .card-img-top {
    transition: transform 0.3s ease;
}

.tarjeta-publicacion:hover .card-img-top {
    transform: scale(1.05);
}

.tarjeta-publicacion .card-body {
    padding: 1.25rem;
}

.tarjeta-publicacion .card-footer {
    padding: 0.75rem 1.25rem;
}

.pub-image-3x2 {
    aspect-ratio: 3 / 2;
    width: 100%;
    min-height: 180px;
}

.pub-image-3x4 {
    aspect-ratio: 3 / 4;
    width: 100%;
    min-height: 320px;
}

.medio-volante-2x3 {
    aspect-ratio: 2 / 3;
    width: 100%;
    min-height: 180px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

/* ============================================
   MEDIOS DE PAGO
   ============================================ */

.medios-hero {
    background: var(--color-secundario) !important;
}

.ofertas-hero {
    background: var(--color-secundario) !important;
}

.medios-hero .container {
    position: static;
}

.medios-hero-badge {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.medio-card {
    border: 1px solid #bfd0e6;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 10px 22px rgba(19, 44, 84, 0.14);
}

.medio-card-col {
    position: relative;
}

.medio-card-col + .medio-card-col .medio-card {
    box-shadow: 0 12px 24px rgba(19, 44, 84, 0.16);
}

.medio-card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.85rem;
}

.medio-card-logo {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.medio-card-tipo {
    display: inline-block;
    margin-top: 0.15rem;
    border: 1px solid rgba(13, 110, 253, 0.22);
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    font-weight: 600;
}

.medio-card-description {
    color: #334155;
}

.medio-contact-actions .btn {
    min-width: 110px;
    justify-content: center;
    font-weight: 600;
}

.medio-promo-card {
    background-color: #ffffff;
    border-color: #c5d7ec !important;
}

.medio-promo-layout {
    display: flex;
    gap: 0.9rem;
    align-items: stretch;
}

.medio-promo-info {
    flex: 1 1 auto;
    min-width: 0;
}

.medio-promo-thumb-wrap {
    flex: 0 0 132px;
    max-width: 132px;
}

.medio-promo-thumb-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid #bfd0e6;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.medio-promo-thumb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(18, 39, 74, 0.16);
}

.medio-promo-thumb-img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #f8f9fa;
}

.medio-promo-thumb-empty {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    border: 1px dashed #c5d7ec;
    background: #f7f9fc;
    color: #64748b;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.medio-promo-thumb-empty i {
    font-size: 1.1rem;
}

.medio-promo-thumb-hint {
    margin-top: 0.45rem;
    text-align: center;
    color: #5f6f84;
    font-size: 0.75rem;
    font-weight: 600;
}

.medios-alert-temporal {
    background-color: #fff1c9;
    border-color: #d8a100;
    color: #5f4300;
}

.medios-alert-temporal h4,
.medios-alert-temporal p {
    color: #5f4300;
}

.coeficiente-control-wrap {
    display: flex;
    flex-direction: column;
}

.coeficiente-input-sm {
    max-width: 220px;
}

.coeficiente-inline-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.coeficiente-help {
    color: #5f6f84;
    font-weight: 500;
}

.coeficiente-updated {
    color: #475569;
    font-weight: 600;
}

.medios-hero-updated {
    color: #f8fafc;
    font-weight: 600;
}

/* Administracion: contraste global */
.admin-panel .container,
.admin-panel .container-fluid,
.admin-panel .card,
.admin-panel .card-body,
.admin-panel .table,
.admin-panel .table td,
.admin-panel .table th,
.admin-panel h1,
.admin-panel h2,
.admin-panel h3,
.admin-panel h4,
.admin-panel h5,
.admin-panel h6,
.admin-panel label,
.admin-panel .form-label,
.admin-panel .dropdown-item,
.admin-panel p,
.admin-panel li,
.admin-panel strong {
    color: #1f2f46;
}

.admin-panel .text-muted,
.admin-panel small.text-muted,
.admin-panel .small.text-muted,
.admin-panel .dropdown-header {
    color: #5f6f84 !important;
}

.admin-panel .table thead.table-light th {
    color: #2b405d;
}

.admin-panel .card-header:not(.bg-primary):not(.text-white),
.admin-panel .card-header:not(.bg-dark):not(.text-white) {
    color: #1f2f46;
}

.admin-panel .badge.bg-info,
.admin-panel .badge.bg-warning,
.admin-panel .badge.bg-light {
    color: #1f2f46 !important;
    font-weight: 700;
}

.admin-panel .btn-warning {
    color: #2f1a00;
}

/* Administracion: publicaciones */
.admin-publicaciones-page,
.admin-publicaciones-page .card,
.admin-publicaciones-page .card-body,
.admin-publicaciones-page .table,
.admin-publicaciones-page .table td,
.admin-publicaciones-page .table th,
.admin-publicaciones-page h1,
.admin-publicaciones-page h2,
.admin-publicaciones-page h3,
.admin-publicaciones-page h4,
.admin-publicaciones-page h5,
.admin-publicaciones-page h6,
.admin-publicaciones-page label,
.admin-publicaciones-page .form-label,
.admin-publicaciones-page strong,
.admin-publicaciones-page .dropdown-item {
    color: #1f2f46;
}

.admin-publicaciones-page .text-muted,
.admin-publicaciones-page small.text-muted,
.admin-publicaciones-page .small.text-muted,
.admin-publicaciones-page .dropdown-header {
    color: #5f6f84 !important;
}

.admin-publicaciones-page .badge.bg-info,
.admin-publicaciones-page .badge.bg-warning,
.admin-publicaciones-page .badge.bg-light {
    color: #1f2f46 !important;
    font-weight: 700;
}

.admin-publicaciones-page .table thead.table-light th {
    color: #2b405d;
}

.admin-publicaciones-page .card-header:not(.bg-primary):not(.text-white) {
    color: #1f2f46;
}

.admin-publicacion-card-view {
    border: 1px solid #bfd0e6;
    box-shadow: 0 8px 18px rgba(18, 39, 74, 0.12);
    overflow: hidden;
}

.admin-publicacion-card-view .btn-group {
    gap: 0.35rem;
}

.admin-publicacion-card-view .btn-group form {
    display: inline-block;
}

.admin-vista-toggle {
    gap: 0.35rem;
}

.admin-vista-toggle .btn {
    border-width: 2px;
    border-radius: 8px !important;
    min-width: 110px;
    font-weight: 600;
}

.admin-vista-toggle .btn + .btn {
    margin-left: 0 !important;
}

.admin-publicacion-card-thumb-wrap {
    aspect-ratio: 3 / 4;
    width: 100%;
    max-height: 260px;
    background: #eef3f9;
    border-bottom: 1px solid #c6d7ec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-publicacion-card-thumb-btn {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    display: block;
    background: transparent;
}

.admin-publicacion-card-thumb-btn:hover {
    filter: brightness(0.98);
}

.admin-publicacion-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #eef3f9;
}

.admin-publicacion-card-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #5f6f84;
    font-weight: 600;
}

.admin-publicacion-card-thumb-empty i {
    font-size: 1.35rem;
}

@media (max-width: 767.98px) {
    .admin-publicacion-card-thumb-wrap {
        max-height: 220px;
    }
}

.admin-publicaciones-form-mode {
    background-color: #eef2f7;
}

.admin-publicaciones-form-mode .card {
    background-color: #e8edf4;
}

.admin-publicaciones-form-mode .card-body {
    background-color: #e8edf4;
}

.admin-publicaciones-form-mode .form-control,
.admin-publicaciones-form-mode .form-select,
.admin-publicaciones-form-mode .form-check-input {
    background-color: #ffffff;
}

/* Panel admin: indicadores */
.admin-stat-card {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    color: #ffffff;
    height: 100%;
}

.admin-stat-card h1,
.admin-stat-card h2,
.admin-stat-card h3,
.admin-stat-card h4,
.admin-stat-card h5,
.admin-stat-card h6,
.admin-stat-card p,
.admin-stat-card small,
.admin-stat-card .card-title,
.admin-stat-card .admin-stat-value {
    color: #ffffff !important;
}

.admin-stat-body {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-stat-value {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
}

.admin-stat-total {
    background: #1557a6;
}

.admin-stat-publicadas {
    background: #1f8f5f;
}

.admin-stat-borradores {
    background: #8f5a12;
}

.admin-stat-tipos {
    background: #5a35a1;
}

.admin-stat-suscripciones {
    background: #1f2b37;
}

.admin-stat-vencen {
    background: #b7322a;
}

.admin-stat-coeficiente {
    background: #4f5d75;
}

.admin-stat-medios {
    background: #0d7f87;
}

.admin-stat-promos {
    background: #a85a12;
}

.admin-stat-oferta {
    background: #1f8f5f;
}

.admin-stat-promocion {
    background: #c77900;
}

.admin-stat-destino {
    background: #0d7f87;
}

.admin-stat-paquete {
    background: #1557a6;
}

/* Administración: medios de pago */
.admin-medios-page .admin-medio-card {
    border: 1px solid #9bb5d3;
    box-shadow: 0 10px 20px rgba(13, 34, 66, 0.12);
}

.admin-medios-page,
.admin-medios-page .card,
.admin-medios-page .card-header,
.admin-medios-page .card-body,
.admin-medios-page h1,
.admin-medios-page h2,
.admin-medios-page h3,
.admin-medios-page h4,
.admin-medios-page h5,
.admin-medios-page h6,
.admin-medios-page .form-label,
.admin-medios-page label,
.admin-medios-page strong {
    color: #1f2f46;
}

.admin-medios-page .text-muted,
.admin-medios-page small.text-muted,
.admin-medios-page .small.text-muted {
    color: #5f6f84 !important;
}

.admin-medios-page .card-header h5,
.admin-medios-page .card-header .mb-0,
.admin-medios-page .card-header .h5 {
    color: #1f2f46 !important;
}

.admin-medios-page .admin-medio-card-header {
    background: linear-gradient(180deg, #f4f8ff 0%, #e9f1fc 100%);
    border-bottom: 1px solid #c1d3ea;
}

.admin-medios-page .admin-promo-card {
    border: 1px solid #bfd0e6 !important;
    border-left: 4px solid #3d79c5 !important;
    background: #fbfdff;
    box-shadow: 0 6px 14px rgba(21, 52, 93, 0.1);
}

.admin-medios-page .admin-promo-card-header {
    background-color: #eef4fc;
    border-bottom: 1px solid #c7d8ee;
}

.admin-medios-page .admin-promo-new-card {
    border: 1px dashed #8fb0d8;
    background: #f7fbff;
}

.admin-medios-page .admin-btn-open-add-promo,
.admin-medios-page .admin-btn-save-new-promo {
    background-color: #198754;
    border-color: #198754;
    color: #ffffff;
}

.admin-medios-page .admin-btn-open-add-promo:hover,
.admin-medios-page .admin-btn-save-new-promo:hover {
    background-color: #157347;
    border-color: #157347;
    color: #ffffff;
}

.admin-medios-page .admin-btn-update-promo {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.admin-medios-page .admin-btn-update-volante {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #ffffff;
}

.admin-medios-page .admin-btn-add-volante {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #102a43;
}

.admin-medios-page .admin-btn-delete-promo,
.admin-medios-page .admin-btn-delete-volante {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.admin-medios-page .admin-btn-toggle-promo.btn-warning {
    color: #2f1a00;
    font-weight: 600;
}

.admin-medios-page .admin-btn-toggle-promo.btn-success {
    font-weight: 600;
}

.admin-medios-page .badge.bg-info,
.admin-medios-page .badge.bg-warning {
    color: #1f2f46 !important;
    font-weight: 700;
}

.admin-medios-page .btn-warning {
    color: #2f1a00;
}

.admin-medios-page .admin-btn-collapse {
    border-color: #8ca6c4;
    color: #2c4b70;
    font-weight: 600;
    background-color: #f4f8fd;
}

.admin-medios-page .admin-btn-collapse:hover {
    border-color: #6c8fb5;
    background-color: #e8f0fa;
    color: #1f3e61;
}

/* Administración: configuración */
.admin-ajustes-page {
    background: linear-gradient(180deg, #f1f5fb 0%, #e8edf5 100%);
    border-radius: 14px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.admin-ajustes-page .card {
    border: 1px solid #bccde3;
    box-shadow: 0 10px 22px rgba(18, 39, 74, 0.12);
    background-color: #f7faff;
}

.admin-ajustes-page .card-header {
    background: linear-gradient(180deg, #eef4fc 0%, #e2ecf9 100%);
    border-bottom: 1px solid #c2d4eb;
}

.admin-ajustes-page .card-body {
    background-color: #f7faff;
}

.admin-ajustes-page .form-control,
.admin-ajustes-page .form-select,
.admin-ajustes-page .form-control-color {
    background-color: #ffffff;
}

.admin-ajustes-page .admin-ajustes-reset-card {
    border-width: 2px;
    box-shadow: 0 10px 24px rgba(143, 32, 32, 0.18);
}

.medio-badge-vencimiento {
    font-weight: 600;
}

.medio-volante-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.medio-volante-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(18, 39, 74, 0.16);
}

@media (max-width: 991.98px) {
    .medio-contact-actions {
        width: 100%;
    }

    .medio-contact-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .medio-promo-thumb-wrap {
        flex-basis: 116px;
        max-width: 116px;
    }
}

@media (max-width: 575.98px) {
    .medios-hero {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    .medios-hero h1 {
        font-size: 1.55rem;
    }

    .medios-hero .lead {
        font-size: 1rem;
    }

    .medios-hero-pills .badge {
        font-size: 0.75rem;
    }

    .medio-card .card-body {
        padding: 1rem;
    }

    .medio-promo-layout {
        flex-direction: column;
    }

    .medio-promo-thumb-wrap {
        flex-basis: auto;
        max-width: 140px;
        margin-left: auto;
    }
}

/* Contenedor de imagen en vista detalle de publicación */
.pub-image-detail-wrapper {
    width: 100%;
    max-width: 72%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.pub-image-detail-wrapper .pub-image-3x4 {
    width: 100%;
}

.pub-image-fit-contain {
    object-fit: contain;
    background: #f8f9fa;
}

.pub-placeholder-image {
    --placeholder-c1: #0a4fa1;
    --placeholder-c2: #2f7dd6;
    --placeholder-c3: #ff934f;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.55) 0%, transparent 40%),
        linear-gradient(145deg, var(--placeholder-c1) 0%, var(--placeholder-c2) 52%, var(--placeholder-c3) 100%);
    color: #ffffff;
}

.pub-placeholder-oferta {
    --placeholder-c1: #0a4fa1;
    --placeholder-c2: #2f7dd6;
    --placeholder-c3: #ff934f;
}

.pub-placeholder-promocion {
    --placeholder-c1: #6a1b9a;
    --placeholder-c2: #ab47bc;
    --placeholder-c3: #ff7043;
}

.pub-placeholder-destino {
    --placeholder-c1: #00695c;
    --placeholder-c2: #26a69a;
    --placeholder-c3: #ffd54f;
}

.pub-placeholder-paquete {
    --placeholder-c1: #37474f;
    --placeholder-c2: #546e7a;
    --placeholder-c3: #29b6f6;
}

.pub-placeholder-general {
    --placeholder-c1: #455a64;
    --placeholder-c2: #607d8b;
    --placeholder-c3: #ff8a65;
}

.pub-placeholder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.pub-placeholder-content {
    z-index: 1;
}

.pub-placeholder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    backdrop-filter: blur(1px);
}

.pub-placeholder-tipo {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.pub-placeholder-titulo {
    font-size: 1.55rem;
    line-height: 1.18;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.pub-placeholder-descripcion {
    font-size: 1.05rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
}

.pub-placeholder-meta {
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    padding-top: 0.6rem;
}

.pub-placeholder-precio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 1.42rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    white-space: normal;
    overflow-wrap: anywhere;
}

.pub-placeholder-fecha {
    color: rgba(255, 255, 255, 0.92);
}

.fecha-publicacion {
    font-size: 0.85rem !important;
    line-height: 1.3;
    font-weight: 400;
}

/* Vista detalle publicación */
.publicacion-detalle-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: start;
}

.publicacion-detalle-main {
    min-width: 0;
    flex: 0 1 66.6667%;
}

.publicacion-detalle-main h1,
.publicacion-detalle-main .card-body,
.publicacion-detalle-sidebar .card-body {
    overflow-wrap: anywhere;
}

.publicacion-detalle-sidebar {
    min-width: 0;
    flex: 0 0 33.3333%;
}

.publicacion-detalle-precio {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.publicacion-detalle-sidebar .card-header h5,
.publicacion-detalle-sidebar .card-header h6 {
    color: #1f2f46;
    font-weight: 700;
}

.publicacion-detalle-sidebar .contacto-label {
    color: #6c757d;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .publicacion-detalle-layout {
        flex-wrap: wrap;
    }

    .publicacion-detalle-main,
    .publicacion-detalle-sidebar {
        flex: 1 1 100%;
    }

    .admin-stat-body {
        min-height: 112px;
    }

    .admin-stat-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .medio-card-logo {
        width: 72px;
        height: 72px;
    }

    .pub-placeholder-titulo {
        font-size: 1.25rem;
    }

    .pub-placeholder-descripcion {
        font-size: 0.95rem;
    }

    .pub-placeholder-precio {
        font-size: 1.2rem;
    }

    .pub-placeholder-badge {
        font-size: 0.86rem;
    }
}

/* ============================================
   BADGES Y ETIQUETAS
   ============================================ */

.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============================================
   FORMULARIOS
   ============================================ */

.form-control,
.form-select {
    border-color: #dee2e6;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Checkbox: mejorar contraste entre estados */
.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #5f6f84;
    background-color: #ffffff;
    box-shadow: none;
}

.form-check-input:hover {
    border-color: #3f526a;
}

.form-check-input:checked {
    background-color: #ff950e;
    border-color: #c87200;
}

.form-check-input:focus {
    border-color: #ff950e;
    box-shadow: 0 0 0 0.2rem rgba(255, 149, 14, 0.35);
}

.form-check-input:disabled {
    background-color: #dfe5ec;
    border-color: #a7b4c4;
    opacity: 1;
}

.form-check-input:disabled:checked {
    background-color: #b8c3d1;
    border-color: #8ea1b7;
}

.form-check-input[type="radio"] {
    border-width: 2px;
    border-color: #5f6f84;
    background-color: #ffffff;
}

.form-check-input[type="radio"]:checked {
    background-color: #ff950e;
    border-color: #c87200;
}

.form-check-input[type="radio"]:focus {
    border-color: #ff950e;
    box-shadow: 0 0 0 0.2rem rgba(255, 149, 14, 0.35);
}

.form-check-input[type="radio"]:disabled {
    background-color: #dfe5ec;
    border-color: #a7b4c4;
}

/* ============================================
   MODALES
   ============================================ */

.modal-header {
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    color: white;
    border: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ============================================
   ALERTAS Y TOASTS
   ============================================ */

.alert {
    border: none;
    border-radius: 8px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.toast {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    margin-top: auto;
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
}

footer a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-primario);
}

footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

footer .social-icon:hover {
    background-color: var(--color-primario);
    transform: scale(1.1);
}

/* ============================================
   BOTÓN VOLVER ARRIBA
   ============================================ */

#btnVolverArriba {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.3s ease;
}

#btnVolverArriba:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination .page-link {
    color: var(--color-primario);
    border-color: #dee2e6;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--color-primario);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ============================================
   TABLAS
   ============================================ */

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table-light {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #f8f9fa;
    border: none;
    border-bottom: 2px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

/* ============================================
   INPUTS DE COLOR
   ============================================ */

.form-control-color {
    cursor: pointer;
    border-radius: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-banner {
        min-height: 300px !important;
    }

    .display-3 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .pub-image-3x4 {
        min-height: 260px;
    }

    .pub-image-detail-wrapper {
        max-width: 100%;
    }

    #btnVolverArriba {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        min-height: 250px !important;
    }

    .display-3 {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   ANIMACIONES SMOOTH
   ============================================ */

* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

a, button {
    transition: all 0.3s ease;
}

/* ============================================
   UTILIDADES
   ============================================ */

.min-vh-100 {
    min-height: 100vh;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.rounded-3 {
    border-radius: 12px;
}

.opacity-75 {
    opacity: 0.75;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================
   SPINNER LOADING
   ============================================ */

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner-container .spinner-border {
    color: var(--color-primario);
}

/* ============================================
   LINKS
   ============================================ */

a {
    text-decoration: none;
    color: var(--color-primario);
}

a:hover {
    color: var(--color-secundario);
}

code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #d63384;
}
