/* ============================================================
   BANDCAMP BAJA — DEMO APPLICATION STYLESHEET
   Design: Modern Serious Premium Dashboard
   Palette: Sky Blue, Lime Green, White & Dark Slate
   Optimized for: Mobile App-like Experience (Bottom Nav on Mobile)
   ============================================================ */

/* ---- DESIGN SYSTEM TOKENS ---- */
:root {
  /* Backgrounds */
  --bg-app:          #ffffff; /* White workspace background */
  --panel-bg:        #ffffff;
  --sidebar-bg:      #edf4fa; /* Rich sand tone for sidebar and header */
  --border-light:    #e2e8f0; /* Slate 200 */
  --border-focus:    #38bdf8; /* Sky Blue */

  /* Brand Accents */
  --accent-sky:      #0284c7; /* Professional Sky Blue */
  --accent-sky-lt:   #38bdf8;
  --accent-lime:     #65a30d; /* Sophisticated Organic Lime/Lemon Green */
  --accent-lime-lt:  #84cc16;
  --accent-clay:     #c2410c; /* Cafecito barro / Terracotta Clay (Reddish) */
  --accent-clay-lt:  #ea580c; /* Lighter barro */
  
  /* Text */
  --text-primary:    #0f172a; /* Slate 900 */
  --text-muted:      #475569; /* Slate 600 */
  --text-light:      #f8fafc;

  /* Shadows & Radius */
  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       20px;
  
  --shadow-sm:       0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md:       0 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-lg:       0 10px 30px rgba(15, 23, 42, 0.08);

  --font-main:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET & GENERAL APP SETUP ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.demo-body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Override headings to modern Helvetica Neue */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main) !important;
}

/* Header */
.app-header {
  height: 75px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  height: 48px;
  width: auto;
}

.header-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sidebar-bg);
  letter-spacing: -0.01em;
}

.header-title em {
  font-style: normal;
  color: var(--accent-sky);
  font-weight: 800;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  background: #fff;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-back:hover {
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  transform: translateY(-1px);
}

/* ---- WORKSPACE ---- */
.app-workspace {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 75px);
  position: relative;
}

/* Sidebar for Desktop */
.app-sidebar {
  width: 280px;
  background: var(--sidebar-bg); /* Sand color sidebar */
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0.85rem 1.25rem 1.15rem;
  border-right: 1px solid var(--border-light);
  flex-shrink: 0;
  position: sticky;
  top: 75px;
  height: calc(100vh - 75px);
  overflow: hidden;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c2410c rgba(15, 23, 42, 0.08);
}

/* Custom clearly visible scrollbar for menu */
.sidebar-menu::-webkit-scrollbar {
  width: 7px;
  display: block;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: #c2410c; /* BajaCamp terracotta accent */
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: #9a3412;
}

.sidebar-category {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8; /* Muted gray category titles */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1rem 0.35rem 0.5rem;
  user-select: none;
}

.sidebar-header-mobile {
  display: none; /* Desktop hidden */
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: transparent;
  border: none;
  border-left: 4px solid transparent;
  color: var(--text-muted); /* Dark gray text like Centinela */
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border-radius: 0 6px 6px 0;
}

.sidebar-btn:hover {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-primary);
  border-left-color: rgba(15, 23, 42, 0.15);
}

.sidebar-btn.active {
  background: rgba(194, 65, 12, 0.06); /* Light clay/terracotta background */
  color: var(--accent-clay); /* Terracotta active text */
  border-left-color: var(--accent-clay); /* Terracotta left border */
  font-weight: 700;
}

/* User profile card & logout style */
.sidebar-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  margin-top: auto;
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: var(--bg-app);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-clay);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.user-role {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-clay);
  background: rgba(194, 65, 12, 0.08);
  border: 1px solid rgba(194, 65, 12, 0.25);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  padding: 0.6rem 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.5rem;
}

.sidebar-logout:hover {
  background: var(--accent-clay);
  color: #fff;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  background: transparent;
  border: none;
}

.sidebar-menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar-icon {
  font-size: 1.2rem;
}

.sidebar-footer {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
}

/* App Main Content Area */
.app-content {
  flex: 1;
  padding: 2.5rem 2rem;
  overflow-y: auto;
  width: 100%;
  background: #ffffff; /* Pure white center workspace */
}

.view-section {
  display: none;
  animation: fadeIn 0.4s var(--ease) both;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-header {
  margin-bottom: 2.5rem;
}

.view-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.view-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Common cards */
.card-premium {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-premium:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.2);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-sky);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Standard Buttons inside dashboard */
.btn-app-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, var(--accent-sky) 0%, #0369a1 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.btn-app-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
  opacity: 0.95;
}

.btn-app-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  background: #fff;
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-app-outline:hover {
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  background: rgba(2, 132, 199, 0.02);
}

/* ---- MODULE 1: WEATHER (CLIMA) ---- */
.weather-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.weather-card-main {
  background: linear-gradient(rgba(27, 54, 93, 0.55), rgba(27, 54, 93, 0.8)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  transition: background 0.6s ease-in-out;
}

.weather-bg-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.wc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1;
}

.wc-location h3 {
  font-size: 1.5rem;
  color: #fff;
}

.wc-location p {
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.wc-status {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wc-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  z-index: 1;
}

.wc-temp {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
}

.wc-icon {
  font-size: 4rem;
}

.wc-info-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  z-index: 1;
}

.wc-info-item {
  text-align: center;
}

.wc-info-val {
  font-size: 1.2rem;
  font-weight: 700;
}

.wc-info-label {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.5);
  margin-top: 0.2rem;
}

.weather-control-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.weather-control-card h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.weather-sim-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.weather-sim-btn:hover {
  border-color: var(--accent-sky);
  background: rgba(2, 132, 199, 0.02);
}

.weather-sim-btn.active {
  border-color: var(--accent-sky);
  background: rgba(2, 132, 199, 0.06);
  color: var(--accent-sky);
}

.weather-tips-box {
  background: rgba(101, 163, 13, 0.06);
  border: 1px solid rgba(101, 163, 13, 0.15);
  border-radius: 10px;
  padding: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
  line-height: 1.5;
}

.weather-tips-box span {
  font-size: 1.2rem;
}

/* ---- MODULE 2: CENTINELA CHAT ---- */
.chat-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  height: 580px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.chat-sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.5rem;
}

.chat-sidebar h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.chat-topic-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.chat-topic-btn:hover {
  border-color: var(--accent-sky);
  color: var(--accent-sky);
}

.chat-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fcfdfe;
}

.chat-messages {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.chat-bubble {
  max-width: 72%;
  padding: 1rem 1.3rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
  animation: bubbleAppear 0.25s var(--ease) both;
}

@keyframes bubbleAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.bot {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.chat-bubble.user {
  background: var(--accent-sky);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 2px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

.chat-bubble-meta {
  font-size: 0.7rem;
  margin-top: 0.5rem;
  opacity: 0.5;
}

.chat-bubble.bot .chat-bubble-meta {
  color: var(--text-muted);
}

.chat-bubble.user .chat-bubble-meta {
  color: rgba(255, 255, 255, 0.8);
}

.chat-input-bar {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  background: var(--panel-bg);
  border-top: 1px solid var(--border-light);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.8rem 1.25rem;
  outline: none;
  font-size: 0.92rem;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.chat-input:focus {
  border-color: var(--accent-sky);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.08);
}

.chat-send-btn {
  background: var(--accent-sky);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.3);
}

/* ---- MODULE 3: SOCIAL FEED ---- */
.feed-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.feed-creator-card {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.feed-creator-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feed-avatar-mock {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent-sky);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.feed-creator-input {
  flex: 1;
  border: 1px solid var(--border-light);
  background: #ffffff;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  outline: none;
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 95px;
  max-height: 480px;
  color: var(--text-primary);
  font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feed-creator-input:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.feed-creator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feed-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-sky);
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background: rgba(2, 132, 199, 0.05);
  transition: all 0.2s ease;
  border: 1px dashed rgba(2, 132, 199, 0.25);
}

.feed-file-label:hover {
  background: rgba(2, 132, 199, 0.12);
  border-color: var(--accent-sky);
}

.feed-category-select {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

/* Multi-image preview container in creator */
.feed-multi-img-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.feed-preview-item {
  position: relative;
  width: 85px;
  height: 85px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

.feed-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-preview-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feed-preview-remove:hover {
  background: #ef4444;
  transform: scale(1.12);
}

/* Post gallery grid in feed posts */
.post-gallery-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.post-gallery-grid.grid-1 {
  grid-template-columns: 1fr;
}

.post-gallery-grid.grid-1 img {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.post-gallery-grid.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.post-gallery-grid.grid-2 img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.post-gallery-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.post-gallery-grid.grid-3 img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.post-gallery-grid.grid-4, .post-gallery-grid.grid-more {
  grid-template-columns: repeat(2, 1fr);
}

.post-gallery-grid.grid-4 img, .post-gallery-grid.grid-more img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.post-gallery-grid img:hover {
  filter: brightness(0.95);
}

/* Feed Filters panel */
.feed-filter-panel {
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feed-filter-panel h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feed-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s ease;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.feed-filter-btn:hover {
  border-color: var(--accent-sky);
  color: var(--text-primary);
}

.feed-filter-btn.active {
  border-color: var(--accent-sky);
  background: rgba(2, 132, 199, 0.06);
  color: var(--accent-sky);
}

.feed-filter-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-app);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  color: var(--text-muted);
}

.feed-filter-btn.active .feed-filter-badge {
  background: var(--accent-sky);
  color: #fff;
}

/* Feed items */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feed-card {
  padding: 1.75rem;
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.fc-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.fc-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
  display: inline-block;
}

.fc-tag.avalado { background: rgba(2, 132, 199, 0.1); color: var(--accent-sky); }
.fc-tag.activo { background: rgba(101, 163, 13, 0.1); color: var(--accent-lime); }
.fc-tag.aspirante { background: rgba(71, 85, 105, 0.1); color: var(--text-muted); }

.fc-time {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.feed-card-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.feed-card-image {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  max-height: 380px;
  border: 1px solid var(--border-light);
}

.feed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card-actions {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border-light);
  margin-top: 1.25rem;
  padding-top: 0.9rem;
}

.feed-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.feed-action-btn:hover {
  color: var(--accent-sky);
}

.feed-action-btn.active {
  color: var(--accent-lime);
}

/* ---- MODULE 4: AUDITIONS PORTAL ---- */
.audition-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}

.audition-form-panel {
  padding: 2rem;
}

.audition-recorder-container {
  display: flex;
  flex-direction: column;
}

.audition-recorder-panel {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.camera-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror effect */
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  gap: 1rem;
  z-index: 1;
  padding: 2rem;
}

.camera-placeholder span:first-child {
  font-size: 3.5rem;
}

.rec-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  backdrop-filter: blur(5px);
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

.recorder-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  padding: 2rem 1.5rem 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  z-index: 2;
  align-items: center;
}

.rec-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.rec-btn.start { background: #ef4444; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }
.rec-btn.start:hover { transform: scale(1.05); }

.rec-btn.stop { background: #FFFFFF; color: #000; box-shadow: 0 4px 12px rgba(255,255,255,0.25); }
.rec-btn.stop:hover { transform: scale(1.05); }

.rec-btn.preview { background: var(--accent-sky); color: #fff; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3); }

/* ---- MODULE 5: ENRIQUE PANEL ---- */
.editor-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.editor-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.editor-panel .btn-primary {
  background: var(--accent-clay) !important;
  border-color: var(--accent-clay) !important;
  color: #fff !important;
}

.editor-panel .btn-primary:hover {
  background: var(--accent-clay-lt) !important;
  border-color: var(--accent-clay-lt) !important;
}

.editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.ai-assistant-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-assistant-card h4 {
  font-size: 1rem;
  color: var(--accent-clay);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-prompt-pill {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: rgba(180, 83, 9, 0.05);
  border: 1px solid rgba(180, 83, 9, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-clay);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.ai-prompt-pill:hover {
  background: var(--accent-clay);
  color: #fff;
}

.ai-output-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.2rem;
  font-size: 0.88rem;
  min-height: 120px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Canvas Banner Builder */
.canvas-preview-wrapper {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  justify-content: center;
}

.canvas-preview-wrapper canvas {
  width: 100% !important;
  max-width: 500px;
  height: auto !important;
  display: block;
}

.banner-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---- MOBILE NATIVE-LIKE BOTTOM NAVIGATION BAR ---- */
.mobile-bottom-nav {
  display: none;
}

/* Default hidden hamburger for desktop */
.hamburger-app {
  display: none;
}

/* ---- RESPONSIVE MEDIA QUERIES ---- */
@media (max-width: 992px) {
  .app-workspace {
    flex-direction: column;
    min-height: auto;
  }
  
  /* Mobile hamburger app button */
  .hamburger-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: background 0.2s;
  }
  .hamburger-app:hover {
    background: rgba(15, 23, 42, 0.05);
  }
  .hamburger-app svg {
    pointer-events: none;
  }

  /* Make sidebar behave as a sliding drawer on tablet/mobile */
  .app-sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 290px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--sidebar-bg); /* Sand color mobile drawer */
    border-right: 1px solid var(--border-light);
    box-shadow: 6px 0 25px rgba(0,0,0,0.18);
    display: flex !important; /* Override display: none */
    flex-direction: column;
    padding: 1.25rem 0.65rem 1rem 0.95rem;
    overflow: hidden;
  }
  
  .app-sidebar.active {
    transform: translateX(290px);
  }

  .sidebar-header-mobile {
    display: block;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
    flex-shrink: 0;
  }
  
  /* Backdrop overlay styles */
  .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .drawer-overlay.active {
    display: block;
    opacity: 1;
  }
  
  /* Header adjustment */
  .app-header {
    padding: 0 1.25rem;
    height: 65px;
  }
  .header-logo {
    height: 38px;
  }
  .header-title {
    font-size: 1.15rem;
  }
  .header-right {
    display: none !important;
  }
  
  /* Show bottom navigation like a mobile application */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.05);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(10px);
    padding: 0 0.5rem;
  }
  
  .mb-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    flex: 1;
    height: 100%;
    cursor: pointer;
    background: none;
    border: none;
  }
  
  .mb-nav-btn:active, .mb-nav-btn:hover {
    color: var(--text-primary);
  }
  
  .mb-nav-btn.active {
    color: var(--accent-sky);
  }
  
  .mb-nav-icon {
    font-size: 1.25rem;
    line-height: 1;
  }
  
  /* Content margin for bottom nav */
  body.demo-body {
    padding-bottom: 65px;
  }
  
  .app-content {
    padding: 1.5rem 1.25rem;
  }
  
  /* Grid conversions */
  .weather-container, .chat-container, .feed-layout, .audition-layout, .editor-layout {
    grid-template-columns: 1fr;
  }
  
  /* Chat layout adjustment */
  .chat-container {
    grid-template-columns: 1fr;
    height: 520px;
  }
  .chat-sidebar {
    display: none; /* Hide topic suggestions inside layout to conserve space */
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .view-title {
    font-size: 1.5rem;
  }
  
  .btn-app-primary, .btn-app-outline {
    width: 100%;
  }
  
  /* Touch target sizes */
  input, select, textarea {
    font-size: 16px !important; /* Prevents auto zoom in iOS Safari */
    min-height: 44px;
  }
}

/* ============================================================
   CMS PANEL & MODAL STYLING (SPONSORS & ALLIANCES)
   ============================================================ */

.cms-panel-container {
  margin-top: 2rem;
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.cms-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.cms-table th, .cms-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.cms-table th {
  background: var(--bg-app);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.cms-table tbody tr:hover {
  background-color: #fafbfd;
}

.cms-thumb {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background-color: #eee;
}

.cms-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.cms-btn-edit {
  color: var(--accent-sky);
  border: 1px solid rgba(2, 132, 199, 0.2);
}
.cms-btn-edit:hover {
  background: rgba(2, 132, 199, 0.05);
  border-color: var(--accent-sky);
}

.cms-btn-delete {
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  margin-left: 0.5rem;
}
.cms-btn-delete:hover {
  background: rgba(220, 38, 38, 0.05);
  border-color: #dc2626;
}

.cms-tabs-nav {
  display: flex;
  gap: 1.5rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.cms-tab-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

.cms-tab-btn.active {
  color: var(--accent-clay);
  font-weight: 700;
}

.cms-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-clay);
  border-radius: 10px;
}

/* Modales CMS */
.cms-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cms-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.cms-modal-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 550px;
  padding: 2rem;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.cms-modal-overlay.active .cms-modal-card {
  transform: translateY(0);
}

.cms-modal-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.cms-modal-header h3 {
  font-size: 1.25rem;
  color: var(--accent-clay);
  font-weight: 700;
  margin: 0;
}

.cms-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.cms-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* Firebase Log Panel */
.firebase-log-panel {
  background: #0f172a;
  color: #38bdf8;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.firebase-log-entry {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.firebase-log-entry.success {
  color: #4ade80;
}

.firebase-log-entry.info {
  color: #94a3b8;
}

/* Dashboard Layout Rules (Centinela-style) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
  align-items: start;
}

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-feed-item {
  transition: background-color 0.2s;
}

.dashboard-feed-item:hover {
  background-color: rgba(15, 23, 42, 0.01);
}

.blinking-dot {
  animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
  50% { opacity: 0.25; }
}

/* Responsive Dashboard Banner Rules */
@media (max-width: 768px) {
  .dashboard-banner {
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
  }
  .dashboard-banner h2 {
    font-size: 1.45rem !important;
  }
  .banner-quote-text {
    display: none !important;
  }
}


/* ============================================================
   STUDIO 1: AUDIO CLOUD DAW & MULTI-TRACK OVERDUBBING
   ============================================================ */
.studio-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.studio-speed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.speed-metric-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.speed-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.transport-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-transport {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-transport:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-transport.record-btn {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.btn-transport.record-btn.recording {
  background: #ef4444;
  color: #fff;
  animation: pulse-rec 1s infinite;
}

@keyframes pulse-rec {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.timecode-display {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
}

.btn-done-upload {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  transition: all 0.2s;
}

.btn-done-upload:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.daw-tracks-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.daw-track-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .daw-track-row {
    grid-template-columns: 1fr;
  }
}

.daw-track-header {
  padding: 1rem;
  background: #f1f5f9;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.track-title-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.track-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.08);
}

.track-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-track-tool {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
}

.btn-track-tool.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.daw-waveform-lane {
  position: relative;
  background: #0f172a;
  min-height: 80px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  overflow: hidden;
}

.waveform-canvas {
  width: 100%;
  height: 60px;
}

.playhead-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30%;
  width: 2px;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  z-index: 10;
  transition: left 0.1s linear;
}

/* ============================================================
   STUDIO 2: DIGITAL ART & COLLABORATIVE CANVAS
   ============================================================ */
.canvas-studio-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .canvas-studio-layout {
    grid-template-columns: 1fr;
  }
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tool-btn {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.tool-btn.active {
  background: var(--accent-clay);
  color: #fff;
  border-color: var(--accent-clay);
}

.color-swatch-picker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.color-dot.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--accent-clay);
}

.canvas-board-wrapper {
  background: #fff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
  touch-action: none;
}

#collaborative-paint-canvas {
  display: block;
  width: 100%;
  height: 480px;
  cursor: crosshair;
  background: #fff;
}

.reference-overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.2s;
}


/* ============================================================
   CONVERTIBLE THEME SYSTEM: SKY BLUE, NATURE BOKEH & CAROUSELS
   ============================================================ */

/* 1. HERO NATURE BOKEH BANNER */
.convertible-hero-banner {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  background: 
    radial-gradient(circle at 20% 30%, rgba(134, 239, 172, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 75% 40%, rgba(56, 189, 248, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #15803d 0%, #047857 50%, #0f766e 100%);
  box-shadow: 0 10px 25px rgba(4, 120, 87, 0.15);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.2rem;
}

.banner-bokeh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

.banner-indicators {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.banner-indicators .indicator {
  width: 18px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-indicators .indicator.active {
  background: #ffffff;
  width: 28px;
}

/* 2. WELCOME / SISTEMA INTERNACIONAL HIBRIDO */
.convertible-welcome-section {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1rem;
}

.ecosystem-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.convertible-main-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.convertible-main-title .highlight-blue {
  color: #0284c7;
  font-weight: 900;
}

.convertible-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 auto;
}

/* 3. LOS 3 BOTONES REDONDOS (ACCESO A ESTUDIOS) */
.studio-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .studio-pills-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.studio-pill-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.studio-pill-item:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

.round-icon-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: transform 0.2s;
}

.studio-pill-item:hover .round-icon-btn {
  transform: scale(1.08);
}

.pill-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.pill-text p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* 4. SECTIONS & CAROUSEL HEADER */
.convertible-section-wrapper {
  margin-bottom: 3.5rem;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
}

.convertible-section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}

.carousel-nav-arrows {
  display: flex;
  gap: 0.4rem;
}

.carousel-arrow-btn {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-arrow-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* 5. MIEMBROS SOBRESALIENTES CAROUSEL */
.members-carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.members-carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.member-card-item {
  flex: 0 0 calc(25% - 0.95rem);
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
}

@media (max-width: 992px) {
  .member-card-item {
    flex: 0 0 calc(50% - 0.65rem);
  }
}

@media (max-width: 600px) {
  .member-card-item {
    flex: 0 0 85%;
  }
}

.member-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.member-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.member-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}

.member-card-item:hover .member-img-wrap img {
  transform: scale(1.05);
}

.member-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.member-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-country {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.25rem;
}

.member-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.member-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* 6. PARTNERS BAR */
.convertible-partners-bar {
  background: linear-gradient(135deg, #0b1e36 0%, #061224 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 3.5rem;
  box-shadow: 0 8px 25px rgba(6, 18, 36, 0.2);
}

.partners-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.65rem;
}

.partners-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.partners-nav-arrows {
  display: flex;
  gap: 0.35rem;
}

.partner-arrow-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.partner-arrow-btn:hover {
  background: #38bdf8;
  color: #0b1e36;
}

.partners-scroll-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.partners-scroll-container::-webkit-scrollbar {
  display: none;
}

.partner-logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
}

.partner-logo-item strong {
  font-size: 0.85rem;
  color: #f8fafc;
}

.partner-logo-item small {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* 7. LATEST POSTS SCROLLER */
.latest-posts-scroller {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.latest-posts-scroller::-webkit-scrollbar {
  display: none;
}

.post-card-item {
  flex: 0 0 calc(25% - 0.95rem);
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
}

@media (max-width: 992px) {
  .post-card-item {
    flex: 0 0 calc(50% - 0.65rem);
  }
}

@media (max-width: 600px) {
  .post-card-item {
    flex: 0 0 85%;
  }
}

.post-card-item:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
}

.post-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.post-card-item:hover .post-img-wrap img {
  transform: scale(1.05);
}

.post-category-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.post-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-date {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.post-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.post-excerpt {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0284c7;
  text-decoration: none;
  border: 1.5px solid #0284c7;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  width: fit-content;
  transition: all 0.2s;
}

.post-read-more:hover {
  background: #0284c7;
  color: #ffffff;
}


/* ============================================================
   MODERNIZED WEATHER WIDGET: VIBRANT COASTAL SKY & CLIMATE
   ============================================================ */
.weather-glass-bar {
  position: relative;
  background-image: 
    linear-gradient(135deg, rgba(14, 165, 233, 0.88) 0%, rgba(16, 185, 129, 0.80) 32%, rgba(132, 204, 22, 0.86) 68%, rgba(250, 204, 21, 0.84) 100%),
    url('../assets/hero_slides/cielo.jpeg');
  background-size: cover;
  background-position: center 40%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.22), 0 4px 18px rgba(132, 204, 22, 0.24);
  flex-wrap: wrap;
  gap: 1rem;
  overflow: hidden;
  color: #ffffff;
}

.weather-left-info {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  z-index: 2;
}

.weather-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.75), 0 4px 12px rgba(0,0,0,0.25);
  border: 2px solid #ffffff;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(251, 191, 36, 0.6); }
  100% { transform: scale(1.05); box-shadow: 0 0 30px rgba(251, 191, 36, 0.95); }
}

.weather-temp-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.weather-location-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.weather-condition-label {
  font-size: 0.88rem;
  color: #f8fafc;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.weather-stats-pills {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  z-index: 2;
}

.weather-stat-pill {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #f8fafc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.weather-stat-pill strong {
  color: #38bdf8;
  font-weight: 800;
}

.weather-stat-pill:nth-child(2) strong {
  color: #6ee7b7;
}

.weather-stat-pill:nth-child(3) strong {
  color: #fde047;
}

.weather-tip-strip {
  width: 100%;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid #a3e635;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #f8fafc;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  z-index: 2;
}

.weather-tip-strip strong {
  color: #86efac;
}

/* ============================================================
   COMPACT MIEMBROS SOBRESALIENTES (ROTATING 1 BY 1)
   ============================================================ */
.members-carousel-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1.25rem 0;
  scrollbar-width: none;
}

.members-carousel-track::-webkit-scrollbar {
  display: none;
}

/* COMPACT CARDS - NOT OVERWHELMING */
.member-card-item {
  flex: 0 0 215px !important;
  width: 215px !important;
  max-width: 215px !important;
  min-width: 215px !important;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
}

.member-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
  border-color: #38bdf8;
}

.member-img-wrap {
  width: 100%;
  height: 135px !important;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.member-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s;
}

.member-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
}

.member-content {
  padding: 0.85rem !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-country {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.15rem;
}

.member-name {
  font-size: 0.92rem !important;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.member-desc {
  font-size: 0.74rem !important;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   INFINITE CONTINUOUS MARQUEE FOR PARTNERS BAR (UNDER CARDS)
   ============================================================ */
.convertible-partners-bar {
  background: linear-gradient(135deg, #0b1e36 0%, #061224 100%);
  color: #ffffff;
  padding: 1rem 1.25rem !important;
  border-radius: 10px !important;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 25px rgba(6, 18, 36, 0.2);
  overflow: hidden;
}

.partners-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0.25rem 0;
}

.partners-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScrollLeft 32s linear infinite;
}

.partners-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.95rem !important;
  border-radius: 6px;
  white-space: nowrap;
}


/* ============================================================
   NATURE HERO SLIDESHOW: TIERRAS, MAR, PASTO, CIELO
   ============================================================ */
.convertible-hero-container {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
}


/* Organic cinematic overlay - Lightened by 30%+ for maximum photo vibrancy */
.hero-nature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.48) 0%,
    rgba(15, 23, 42, 0.26) 50%,
    rgba(15, 23, 42, 0.04) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Content mounted directly OVER the hero slides */
.hero-nature-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem 3rem;
  max-width: 780px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .convertible-hero-container {
    min-height: 250px;
  }
  .hero-nature-content {
    padding: 1.5rem;
  }
}

.hero-nature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(4px);
}

.hero-nature-title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-nature-title .highlight-blue {
  color: #38bdf8;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.hero-nature-subtitle {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Elegant Nature Element Pills / Slide Selectors at bottom */
.hero-nature-indicators {
  position: absolute;
  bottom: 15px;
  right: 25px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
  .hero-nature-indicators {
    bottom: 10px;
    right: 10px;
    scale: 0.85;
  }
}

.nature-indicator-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nature-indicator-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nature-indicator-btn.active {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* ============================================================
   DYNAMIC SLIDING TRANSITION FOR NATURE HERO (NON-STATIC)
   ============================================================ */
.hero-nature-slides-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-nature-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
  z-index: 1;
}

.hero-nature-slide.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 3;
}

.hero-nature-slide.prev {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 2;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
}

/* Studio Hero Slides (UsarEstudio 001, 002, 003) */
.hero-studio-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
  z-index: 1;
}

.hero-studio-slide.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 3;
}

.hero-studio-slide.prev {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 2;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
}


/* ============================================================
   CONVOCATORIAS & BLOCKCHAIN (MUSIC VERSE) VIEW STYLES
   ============================================================ */
.convocatorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.convocatoria-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease);
}

.convocatoria-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
  border-color: #38bdf8;
}

.convocatoria-header-img {
  width: 100%;
  height: 160px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.convocatoria-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.badge-open {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.badge-closing {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

.convocatoria-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.convocatoria-discipline {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.convocatoria-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.convocatoria-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.convocatoria-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  font-size: 0.78rem;
  color: #64748b;
}

/* BLOCKCHAIN & MUSIC VERSE STYLES */
.blockchain-hero-card {
  background: linear-gradient(135deg, #0b1528 0%, #060b14 100%);
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  color: #ffffff;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.blockchain-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 860px) {
  .blockchain-grid-2col {
    grid-template-columns: 1fr;
  }
}

.nft-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
  transition: all 0.25s var(--ease);
}

.nft-item-card:hover {
  transform: translateY(-4px);
  border-color: #a855f7;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.15);
}

.nft-hash-box {
  background: #0f172a;
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.74rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

/* ============================================================
   MODERN ROUND ICON BADGES FOR MUSIC VERSE PILLARS (RUEDITAS)
   ============================================================ */
.pilar-round-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 0.85rem;
  transition: transform 0.25s var(--ease);
}

.pilar-card:hover .pilar-round-icon {
  transform: scale(1.08) rotate(4deg);
}

.pilar-icon-red {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

.pilar-icon-purple {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.pilar-icon-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.pilar-icon-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* ============================================================
   ENHANCED CENTINELA LEGAL CHAT & SCROLL FIX
   ============================================================ */
#centinela-view {
  padding-bottom: 5rem; /* Ensure clearance above mobile bottom nav */
}

.legal-hero-banner {
  transition: all 0.3s var(--ease);
}

.chat-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  height: clamp(540px, 72vh, 720px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.chat-sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  gap: 0.45rem;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: thin;
}

.chat-sidebar::-webkit-scrollbar {
  width: 5px;
}
.chat-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.chat-topic-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.chat-topic-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
  transform: translateX(2px);
}

.chat-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fcfdfe;
  overflow: hidden;
  position: relative;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem 1.75rem 2.5rem 1.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 82%;
  padding: 1rem 1.35rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  position: relative;
  word-wrap: break-word;
}

.chat-bubble.bot {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  align-self: flex-start;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.chat-bubble.user {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  align-self: flex-end;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.chat-input-bar {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 5;
}

/* Mobile & Tablet responsiveness for Legal Chat */
@media (max-width: 991px) {
  .legal-hero-banner {
    padding: 1.25rem 1.15rem !important;
    margin-bottom: 1.25rem !important;
  }
  .legal-hero-banner h2 {
    font-size: 1.45rem !important;
  }
  .legal-hero-banner p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }

  .chat-container {
    grid-template-columns: 1fr !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 12px;
  }
  
  .chat-sidebar {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 0.75rem 0.85rem !important;
    gap: 0.5rem !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .chat-sidebar > div:first-child {
    display: none !important;
  }
  
  .chat-topic-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.78rem !important;
    border-radius: 100px !important;
    transform: none !important;
  }
  
  .chat-area {
    height: 520px !important;
  }
  
  .chat-messages {
    padding: 1rem 1rem 2rem 1rem !important;
  }
  
  .chat-bubble {
    max-width: 92% !important;
    font-size: 0.88rem !important;
  }
  
  .chat-input-bar {
    padding: 0.75rem 1rem !important;
  }
}

/* ============================================================
   CANVAS STUDIO: TRANSPARENT PNG EXPORT & LAYER INTEGRATION
   ============================================================ */
.canvas-board-wrapper {
  background-color: #ffffff;
  background-image: 
    linear-gradient(45deg, #f8fafc 25%, transparent 25%), 
    linear-gradient(-45deg, #f8fafc 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #f8fafc 75%), 
    linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(15, 23, 42, 0.04);
  touch-action: none;
}

#collaborative-paint-canvas {
  display: block;
  width: 100%;
  height: 480px;
  cursor: crosshair;
  background: transparent !important;
  position: relative;
  z-index: 2;
}

.reference-overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  transition: opacity 0.2s ease;
}

/* ============================================================
   POSTER & BANNER DESIGNER V2: CLEAN SUITE STYLES
   ============================================================ */
.director-tabs-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.director-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.director-tab-btn:hover {
  border-color: var(--accent-clay);
  color: var(--accent-clay);
}

.director-tab-btn.active {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border-color: #c2410c;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}

.poster-studio-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 2rem;
  align-items: start;
}

.poster-stage-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 580px;
  box-shadow: inset 0 2px 10px rgba(15, 23, 42, 0.03);
  position: relative;
}

.poster-frame-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(15, 23, 42, 0.05);
  border: 1px solid #cbd5e1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s var(--ease);
  max-width: 100%;
}

#poster-render-canvas {
  display: block;
  max-height: 520px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.poster-controls-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.poster-control-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.poster-control-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.format-choice-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: all 0.2s ease;
}

.format-choice-btn span.dims {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.format-choice-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.format-choice-btn.active {
  border-color: #ea580c;
  background: #fff7ed;
  color: #c2410c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15);
}

.theme-chip-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.theme-chip-btn {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.theme-chip-btn.theme-tierra {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.theme-chip-btn.theme-concierto {
  background: #0f172a;
  color: #f8fafc;
  border-color: #334155;
}
.theme-chip-btn.theme-pacifico {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}
.theme-chip-btn.theme-web3 {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

.theme-chip-btn.active {
  outline: 2px solid #ea580c;
  outline-offset: 1px;
}

@media (max-width: 991px) {
  .poster-studio-layout {
    grid-template-columns: 1fr;
  }
  .poster-stage-container {
    min-height: auto;
    padding: 1.5rem 1rem;
  }
}


.alliance-op-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(2, 132, 199, 0.12) !important;
  border-color: #38bdf8 !important;
}

/* ============================================================
   APARATO AUDIO HARDWARE: ESTILOS DE RACK Y BOTÓN METÁLICO
   ============================================================ */
.audition-form-panel {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-top: 3px solid #94a3b8;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.audition-form-btn {
  width: 100%;
  padding: 0.95rem 1.5rem !important;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 14%, #cbd5e1 38%, #94a3b8 52%, #cbd5e1 68%, #f8fafc 88%, #64748b 100%) !important;
  color: #0f172a !important;
  border: 1.5px solid #64748b !important;
  border-top: 2px solid #ffffff !important;
  border-bottom: 3.5px solid #1e293b !important;
  border-radius: 8px !important;
  font-size: 0.96rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  box-shadow: 
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35),
    0 6px 16px rgba(15, 23, 42, 0.22) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.audition-form-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.audition-form-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 20%, #e2e8f0 42%, #cbd5e1 58%, #f8fafc 85%, #94a3b8 100%) !important;
  box-shadow: 
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 3px rgba(0, 0, 0, 0.25),
    0 8px 22px rgba(15, 23, 42, 0.3) !important;
  transform: translateY(-1px);
}

.audition-form-btn:hover::after {
  left: 140%;
}

.audition-form-btn:active {
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 30%, #e2e8f0 70%, #f1f5f9 100%) !important;
  border-top: 2px solid #334155 !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(1px);
}
