/* 
ERP Pasión360 · Feria · Patios y Cruces — Estilos principales
Paleta clara y cálida alineada con la app pasion360patiosycruces:
fondo cream, acento ambar cálido, índigo profundo para texto, rosas florales.
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --gold:           #FFBA57;
  --gold-dark:      #E8A030;
  --gold-light:     #FFDEAE;
  --burgundy:       #F71042;
  --burgundy-light: #FF809F;
  --hot-pink:       #FF2151;
  --indigo:         #24007D;
  --indigo-soft:    #6B5090;
  --indigo-faint:   #B0A0C8;
  --cream:          #FFFAF5;
  --bg:             #FFFAF5;
  --card:           #FFFFFF;
  --surface:        #FFF5EC;
  --border:         #FFE8DD;
  --text-primary:   #24007D;
  --text-secondary: #6B5090;
  --text-disabled:  #B0A0C8;
  --alert-red:      #F71042;
  --success-green:  #4CAF78;
  --info-blue:      #6B50D0;
  --font-heading:   'Cinzel', serif;
  --font-body:      'Outfit', sans-serif;
  --radius-sm:      10px;
  --radius-md:      14px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --shadow-soft:    0 2px 12px rgba(36, 0, 125, .06);
  --shadow-mid:     0 6px 24px rgba(36, 0, 125, .10);
  --shadow-warm:    0 8px 28px rgba(255, 186, 87, .18);
}

/* Reset & Base */

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 186, 87, .08), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(247, 16, 66, .06), transparent 45%),
    var(--bg);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--burgundy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--hot-pink); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--indigo); margin: 0; }

/* Sidebar */

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 270px;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 20px 0 90px;
  overflow-y: auto;
  z-index: 100;
  transition: transform .3s;
  box-shadow: var(--shadow-soft);
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.sidebar .brand img {
  width: 46px; height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-warm);
}
.sidebar .brand h5 {
  font-size: .92rem;
  color: var(--indigo);
  letter-spacing: 2.5px;
  margin: 0;
  font-weight: 700;
}
.sidebar .brand small {
  color: var(--burgundy);
  font-size: .68rem;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.sidebar .nav-link:hover {
  color: var(--indigo);
  background: var(--surface);
}
.sidebar .nav-link.active {
  color: var(--indigo);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(255, 186, 87, .14), transparent 80%);
  font-weight: 600;
}
.sidebar .nav-link i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  color: var(--gold-dark);
}
.sidebar .nav-link.active i {
  color: var(--burgundy);
}

.sidebar .nav-section {
  font-family: var(--font-heading);
  font-size: .65rem;
  color: var(--burgundy);
  letter-spacing: 2.8px;
  padding: 20px 22px 6px;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar .user-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.sidebar .user-info .name { color: var(--indigo); font-weight: 600; font-size: .85rem; }
.sidebar .user-info .role {
  color: var(--burgundy);
  font-size: .7rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Main Content */

.main-content {
  margin-left: 270px;
  padding: 30px 36px 60px;
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 14px;
}

.page-header h2 {
  font-size: 1.45rem;
  color: var(--indigo);
  letter-spacing: 2px;
  margin: 0;
}
.page-header h2 i { color: var(--gold-dark); margin-right: 6px; }

.page-header .breadcrumb {
  font-size: .8rem;
  color: var(--text-secondary);
  margin: 4px 0 0;
}
.page-header .breadcrumb a { color: var(--burgundy); font-weight: 500; }

/* Cards */

.erp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 18px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  box-shadow: var(--shadow-soft);
}
.erp-card:hover {
  border-color: rgba(255, 186, 87, .55);
  box-shadow: var(--shadow-mid);
}
.erp-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--indigo);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.erp-card h5 {
  font-family: var(--font-heading);
  font-size: .98rem;
  color: var(--indigo);
  margin-bottom: 6px;
}
.erp-card .meta { color: var(--text-secondary); font-size: .82rem; }
.erp-card .meta i { color: var(--gold-dark); margin-right: 4px; }
.erp-card p {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.erp-card.pinned { border-left: 3px solid var(--gold); }

.section-title {
  font-family: var(--font-heading);
  font-size: .72rem;
  letter-spacing: 3px;
  color: var(--burgundy);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--gold-dark); font-size: 1rem; }

/* Stat cards */

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 186, 87, .55);
  box-shadow: var(--shadow-mid);
}
.stat-card .stat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface);
}
.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--indigo);
  font-weight: 700;
}
.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: .78rem;
  margin-top: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Hero card de la caseta */

.caseta-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mid);
}

.caseta-hero .hero-image {
  height: 220px;
  background-position: center;
  background-size: cover;
  background-color: var(--surface);
  position: relative;
}
.caseta-hero .hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 0, 125, .25) 0%, rgba(36, 0, 125, .55) 100%);
}

.caseta-hero .hero-body {
  position: relative;
  margin-top: -64px;
  padding: 0 26px 22px;
  z-index: 2;
  color: var(--cream);
}

.caseta-hero .hero-body h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  letter-spacing: 1.5px;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(36, 0, 125, .6);
  margin-bottom: 4px;
}
.caseta-hero .hero-body .hero-subtitle {
  font-size: .9rem;
  color: rgba(255, 250, 245, .9);
  text-shadow: 0 1px 6px rgba(36, 0, 125, .5);
}

.caseta-hero .hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--card);
  margin: 14px 26px 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.caseta-hero .hero-meta .meta-item {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: 0 8px;
}
.caseta-hero .hero-meta .meta-item .label {
  font-size: .68rem;
  color: var(--burgundy);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.caseta-hero .hero-meta .meta-item .value {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--indigo);
  font-weight: 700;
  margin-top: 2px;
}

/* Tablas */

.table-warm {
  background: transparent;
  color: var(--text-primary);
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-warm thead th {
  font-family: var(--font-heading);
  font-size: .72rem;
  color: var(--burgundy);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  font-weight: 700;
  text-align: left;
  background: var(--surface);
}
.table-warm tbody td {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  font-size: .88rem;
  color: var(--indigo);
  vertical-align: middle;
}
.table-warm tbody tr:hover td { background: rgba(255, 186, 87, .07); }
.table-warm tbody tr:last-child td { border-bottom: none; }

/* Badges */

.badge-gold     { background: rgba(255, 186, 87, .18); color: var(--gold-dark); font-weight: 600; border: 1px solid rgba(255, 186, 87, .45); padding: 5px 10px; border-radius: 999px; font-size: .72rem; }
.badge-green    { background: rgba(76, 175, 120, .14); color: var(--success-green); border: 1px solid rgba(76, 175, 120, .35); padding: 5px 10px; border-radius: 999px; font-size: .72rem; }
.badge-red      { background: rgba(247, 16, 66, .12); color: var(--burgundy); border: 1px solid rgba(247, 16, 66, .35); padding: 5px 10px; border-radius: 999px; font-size: .72rem; }
.badge-pink     { background: rgba(255, 33, 81, .12); color: var(--hot-pink); border: 1px solid rgba(255, 33, 81, .35); padding: 5px 10px; border-radius: 999px; font-size: .72rem; }
.badge-blue     { background: rgba(107, 80, 208, .12); color: var(--info-blue); border: 1px solid rgba(107, 80, 208, .35); padding: 5px 10px; border-radius: 999px; font-size: .72rem; }
.badge-muted    { background: rgba(107, 80, 144, .1); color: var(--text-secondary); border: 1px solid rgba(107, 80, 144, .25); padding: 5px 10px; border-radius: 999px; font-size: .72rem; }

/* Botones */

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--indigo);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .8px;
  font-size: .85rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: filter .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-warm);
}
.btn-gold:hover {
  filter: brightness(1.05);
  color: var(--indigo);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.btn-outline-gold:hover {
  background: rgba(255, 186, 87, .12);
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-pink {
  background: linear-gradient(135deg, var(--hot-pink), var(--burgundy));
  color: var(--cream);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .8px;
  font-size: .85rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: filter .2s, transform .15s;
  box-shadow: 0 8px 20px rgba(247, 16, 66, .25);
}
.btn-pink:hover { filter: brightness(1.05); color: var(--cream); transform: translateY(-1px); }

.btn-outline-danger-soft {
  background: transparent;
  color: var(--burgundy);
  border: 1px solid rgba(247, 16, 66, .45);
  font-weight: 600;
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.btn-outline-danger-soft:hover {
  background: rgba(247, 16, 66, .08);
  color: var(--burgundy);
  border-color: var(--burgundy);
}

/* Formularios */

.form-control, .form-select {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--indigo) !important;
  font-family: var(--font-body);
  border-radius: var(--radius-sm) !important;
  padding: 10px 14px !important;
  font-size: .92rem !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(255, 186, 87, .18) !important;
}
.form-control::placeholder { color: var(--text-disabled) !important; }
.form-label {
  color: var(--burgundy);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-text { color: var(--text-secondary); font-size: .78rem; }

textarea.form-control { min-height: 120px; }

/* Tabs */

.warm-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.warm-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .85rem;
  background: transparent;
  border: 1px solid transparent;
  transition: all .2s;
}
.warm-tabs a:hover {
  color: var(--indigo);
  background: var(--surface);
}
.warm-tabs a.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--indigo);
  box-shadow: var(--shadow-warm);
}
.warm-tabs a i { font-size: 1rem; }

/* Color toldo swatches */

.color-toldo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.color-toldo-swatch {
  position: relative;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  padding: 18px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
  background: var(--card);
}
.color-toldo-swatch:hover { transform: translateY(-2px); }
.color-toldo-swatch.selected { border-color: var(--gold); box-shadow: var(--shadow-warm); }
.color-toldo-swatch .dot {
  display: block;
  width: 38px; height: 38px;
  border-radius: 50%;
  margin: 0 auto 8px;
  border: 1px solid rgba(36, 0, 125, .1);
}
.color-toldo-swatch span {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--indigo);
  text-transform: capitalize;
}
.color-toldo-swatch input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Gallery grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-mid); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item .gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-disabled);
  font-size: 2rem;
}
.gallery-item .gallery-controls {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(36, 0, 125, .85), transparent);
  padding: 22px 10px 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}
.gallery-item .gallery-controls .title {
  color: var(--cream);
  font-size: .78rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-item .gallery-controls button {
  background: rgba(255, 250, 245, .92);
  color: var(--burgundy);
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: .8rem;
  cursor: pointer;
}
.gallery-item .gallery-controls button:hover { background: var(--cream); color: var(--hot-pink); }

/* Alertas */

.alert-soft {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: .9rem;
  border: 1px solid transparent;
  margin-bottom: 20px;
}
.alert-soft.success { background: rgba(76, 175, 120, .12); color: var(--success-green); border-color: rgba(76, 175, 120, .35); }
.alert-soft.danger  { background: rgba(247, 16, 66, .1); color: var(--burgundy); border-color: rgba(247, 16, 66, .35); }
.alert-soft.info    { background: rgba(107, 80, 208, .1); color: var(--info-blue); border-color: rgba(107, 80, 208, .35); }
.alert-soft i { margin-right: 6px; }

/* Empty state */

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-secondary);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}
.empty-state i {
  font-size: 2.6rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: block;
}

/* Quick chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--indigo);
  font-size: .8rem;
  font-weight: 600;
}
.chip i { color: var(--gold-dark); }

/* Divider */

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 26px 0;
  border: 0;
}

/* Mapa Leaflet (caseta_ubicacion) */

#leafletMap {
  height: 420px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* Responsive */

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 24px 18px 60px; }
  .caseta-hero .hero-body h2 { font-size: 1.3rem; }
}

/* Scrollbar */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Mapa Leaflet  */
#map { 
  height: 450px; 
  width: 100%;
  border-radius: 8px; /* Opcional: bordes redondeados estilo Bootstrap */
}

