/*
 * mdb-compat.css — Mapeo de clases MDB4 a Bootstrap 5
 * Permite que el HTML existente con clases MDB siga funcionando sobre BS5
 * 2026-04-06
 */

/* === Body padding para navbar fija === */
body { padding-top: 0; }
#top-section { padding-top: 0; margin-top: 56px; }

/* === Navbar hover (esquema buscatucaravana) === */
.navbar { background-color: #058656 !important; min-height: 56px; }
.navbar-nav { gap: 0.1rem !important; }
.navbar-nav .nav-link { color: rgba(255,255,255,.85) !important; padding: .5rem .75rem !important; transition: all .3s ease; }
.navbar-nav .nav-link:hover { background-color: #026647 !important; color: #fff !important; border-radius: 4px; }
.navbar-nav .nav-item.active .nav-link { background-color: #026647 !important; color: white !important; border-radius: 4px !important; }
@media (min-width: 768px) {
  .navbar-brand { width: 8.3333%; margin-right: 0; }
  .navbar-collapse { width: 91.6667%; padding-left: 0; }
}

/* === Sombras z-depth === */
.z-depth-0 { box-shadow: none !important; }
.z-depth-1 { box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12) !important; }
.z-depth-2 { box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15) !important; }
.z-depth-3 { box-shadow: 0 8px 17px 0 rgba(0,0,0,.2), 0 6px 20px 0 rgba(0,0,0,.19) !important; }
.z-depth-4 { box-shadow: 0 12px 15px 0 rgba(0,0,0,.24), 0 17px 50px 0 rgba(0,0,0,.19) !important; }
.z-depth-5 { box-shadow: 0 16px 28px 0 rgba(0,0,0,.22), 0 25px 55px 0 rgba(0,0,0,.21) !important; }

/* === Efecto waves (simplificado) === */
.waves-effect { cursor: pointer; position: relative; overflow: hidden; transition: background-color .3s; }

/* === Colores MDB → BS5 backgrounds === */
.primary-color       { background-color: #4285f4 !important; color: #fff !important; }
.primary-color-dark  { background-color: #0d47a1 !important; color: #fff !important; }
.default-color       { background-color: #2bbbad !important; color: #fff !important; }
.default-color-dark  { background-color: #00695c !important; color: #fff !important; }
.info-color          { background-color: #33b5e5 !important; color: #fff !important; }
.info-color-dark     { background-color: #09c !important; color: #fff !important; }
.warning-color       { background-color: #fb3 !important; color: #212529 !important; }
.warning-color-dark  { background-color: #f80 !important; color: #fff !important; }
.danger-color        { background-color: #ff3547 !important; color: #fff !important; }
.danger-color-dark   { background-color: #cc0000 !important; color: #fff !important; }
.success-color       { background-color: #00c851 !important; color: #fff !important; }
.success-color-dark  { background-color: #007e33 !important; color: #fff !important; }

/* === Colores con intensidad (darken/lighten) === */
.blue { background-color: #2196f3 !important; }
.blue.darken-1 { background-color: #1e88e5 !important; }
.blue.darken-2 { background-color: #1565c0 !important; }
.blue.darken-3 { background-color: #0d47a1 !important; }
.blue.lighten-1 { background-color: #42a5f5 !important; }
.blue.lighten-2 { background-color: #64b5f6 !important; }
.blue.lighten-3 { background-color: #90caf9 !important; }
.blue.lighten-4 { background-color: #bbdefb !important; }
.blue.lighten-5 { background-color: #e3f2fd !important; }

.red { background-color: #f44336 !important; }
.red.darken-1 { background-color: #e53935 !important; }
.red.darken-2 { background-color: #c62828 !important; }
.red.lighten-1 { background-color: #ef5350 !important; }

.green { background-color: #4caf50 !important; }
.green.darken-1 { background-color: #43a047 !important; }
.green.darken-2 { background-color: #2e7d32 !important; }
.green.lighten-1 { background-color: #66bb6a !important; }
.green.lighten-4 { background-color: #c8e6c9 !important; }
.green.lighten-5 { background-color: #e8f5e9 !important; }

.amber { background-color: #ffc107 !important; }
.amber.lighten-3 { background-color: #ffe082 !important; }
.amber.darken-1 { background-color: #ffb300 !important; }

.light-blue { background-color: #03a9f4 !important; }
.light-blue.lighten-4 { background-color: #b3e5fc !important; }

.grey { background-color: #9e9e9e !important; }
.grey.lighten-3 { background-color: #eee !important; }
.grey.lighten-4 { background-color: #f5f5f5 !important; }
.grey.darken-1 { background-color: #757575 !important; }
.grey.darken-3 { background-color: #424242 !important; }

.white { background-color: #fff !important; }

/* === Textos coloreados MDB === */
.white-text  { color: #fff !important; }
.red-text    { color: #f44336 !important; }
.green-text  { color: #4caf50 !important; }
.blue-text   { color: #2196f3 !important; }

/* === Botones MDB → BS5 === */
.btn-rounded { border-radius: 10em; }
.btn-flat { box-shadow: none; }
.btn-block { display: block; width: 100%; }

/* === Spacing legacy (ml-/mr-/pl-/pr-) === */
.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }
.ml-auto { margin-left: auto !important; }
.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }
.mr-auto { margin-right: auto !important; }
.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: .25rem !important; }
.pl-2 { padding-left: .5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }
.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: .25rem !important; }
.pr-2 { padding-right: .5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

/* === float-left/right legacy === */
.float-left { float: left !important; }
.float-right { float: right !important; }

/* === MDB card/panel === */
.hoverable { transition: box-shadow .25s; }
.hoverable:hover { box-shadow: 0 8px 17px 0 rgba(0,0,0,.2), 0 6px 20px 0 rgba(0,0,0,.19); }

/* === btn-floating (boton flotante volver arriba) === */
.btn-floating { display: inline-flex; align-items: center; justify-content: center; width: 47px; height: 47px; padding: 0; border-radius: 50%; text-align: center; cursor: pointer; color: #fff; text-decoration: none; }
.btn-floating.btn-large { width: 56px; height: 56px; }
.btn-floating i { font-size: 1.25rem; }
.fixed-action-btn { position: fixed !important; right: 25px !important; bottom: 25px !important; left: auto !important; z-index: 998; }

/* === mdb-lightbox (galeria fotos) === */
.mdb-lightbox a { display: inline-block; margin: 4px; }
.mdb-lightbox img { max-width: 100%; height: auto; }

/* === Alertas MDB (close button) === */
.close { border: none; background: transparent; font-size: 1.5rem; font-weight: 700; line-height: 1; opacity: .5; cursor: pointer; }
.close:hover { opacity: .75; }

/* === font-weight legacy === */
.font-weight-bold { font-weight: 700 !important; }
.font-weight-bolder { font-weight: 900 !important; }
.font-weight-normal { font-weight: 400 !important; }

/* === text-justify (eliminado en BS5) === */
.text-justify { text-align: justify !important; }

/* === badge legacy === */
.badge-primary { background-color: #0d6efd; color: #fff; }
.badge-success { background-color: #198754; color: #fff; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-danger { background-color: #dc3545; color: #fff; }
.badge-info { background-color: #0dcaf0; color: #212529; }

/* === form-group (eliminado en BS5) === */
.form-group { margin-bottom: 1rem; }

/* === Tablas MDB === */
.table-hover tbody tr:hover { background-color: rgba(0,0,0,.075); }
.table-bordered { border: 1px solid #dee2e6; }
.table-bordered th, .table-bordered td { border: 1px solid #dee2e6; }
.table thead th { vertical-align: bottom; border-bottom: 2px solid #dee2e6; }

/* === Paneles (panel-info etc.) === */
.panel { border: 1px solid #dee2e6; border-radius: .25rem; margin-bottom: 1rem; }
.panel-info { border-color: #bee5eb; }
.panel-body { padding: 1rem; }

/* === Alertas y bloques de contenido === */
.alert-dark { border-radius: .25rem; }
.alert-info { padding: 1.25rem 1.5rem; }
.card-body { padding: 1.25rem; }

/* === Contenido full-width en movil === */
@media (max-width: 767.98px) {
  .alert.alert-info { background-color: transparent; border: none; padding: 0; margin: 0; }
  .wrapper, .wrapper > .container-fluid, .wrapper .container-fluid { padding-left: 0 !important; padding-right: 0 !important; }
  .wrapper .row { margin-left: 0 !important; margin-right: 0 !important; }
  .wrapper .row > [class*="col"] { padding-left: 4px !important; padding-right: 4px !important; }
}

/* === Logo/header spacing === */
#myAlert { margin-bottom: 0.5rem; margin-top: 0; }
#header, #header2 { margin-top: 0; }

/* === Cards y bordes === */
.card.border-primary { border-color: #4285f4 !important; }
.card.border-primary > .col-12,
.card.border-primary > div > .col-12 { padding-left: 1rem !important; padding-right: 1rem !important; }
.card.border-primary .container-fluid { padding-left: 1rem; padding-right: 1rem; }
.card.border-info { border-color: #33b5e5 !important; }

/* === Footer framework === */
.page-footer { background-color: #C8E6C9; min-height: 151px; margin-top: auto; }
.footer-brand-area { background-color: #4578AD; min-height: 30px; display: flex; justify-content: flex-end; align-items: center; padding-right: 1rem; }
.footer-copy { font-family: 'Kaushan Script', 'Merienda One', cursive; font-size: 12px; color: white; }
.text-link-stable { color: #2c3e50 !important; }
.text-link-stable:hover { color: #1a252f !important; text-decoration: underline !important; }

/* === destacado link color === */
a.destacado { color: #0d47a1; text-decoration: none; }
a.destacado:hover { text-decoration: underline; }

/* === cover class para imagenes === */
.cover { object-fit: cover; }

/* === d-table-cell (BS4 compat) === */
.d-sm-table-cell { display: table-cell !important; }
