﻿/* ==========================================================================
   LOS DEL LOCAL - Core Stylesheet (Fase 2)
   EstÃ©tica: Rock Alternativo 90s, Minimalista, Oscuro, Contundente
   ========================================================================== */

:root {
  /* Paleta cromÃ¡tica */
  --bg-primary: #111216;
  --bg-surface: #181a20;
  --bg-surface-elevated: #202229;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: #30333b;

  --text-primary: #f2f2f0;
  --text-secondary: #a6a8b1;
  --text-muted: #737680;

  --accent-red: #d73232;
  --accent-red-hover: #e34242;
  --accent-red-faint: rgba(215, 50, 50, 0.08);

  --warning: #d6a84b;
  --success: #55a879;

  /* TipografÃ­as */
  --font-display: 'Anton', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brush: 'Anton', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Rock Salt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* TransiciÃ³n estÃ¡ndar */
  --transition-fast: 0.18s ease-in-out;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  /* Sutil gradiente radial atmosfÃ©rico y textura analÃ³gica */
  background-image:
    radial-gradient(circle at 50% 30%, rgba(32, 32, 40, 0.6) 0%, rgba(13, 13, 16, 0.98) 70%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
}

/* Accesibilidad: Skip Link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background-color: var(--accent-red);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #ffffff;
}

/* Enfoque accesible universal */
:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Header & Barra Superior
   -------------------------------------------------------------------------- */
.site-header {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  width: 100%;
  padding: 1.5rem 2rem;
}

.header-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.brand-link:hover .brand-tag {
  color: var(--accent-red);
}

/* BotÃ³n MÃºsicos (Visible pero discreto en la esquina superior) */
.nav-musicians-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background-color: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-musicians-btn:hover {
  color: #ffffff;
  border-color: var(--accent-red);
  background-color: var(--accent-red-faint);
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-back-btn:hover {
  color: var(--accent-red);
}

/* --------------------------------------------------------------------------
   Estructura Principal
   -------------------------------------------------------------------------- */
.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}

/* --------------------------------------------------------------------------
   Landing Page (Ruta /)
   -------------------------------------------------------------------------- */
.landing-stage {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.landing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.brand-showcase {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.main-band-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.75));
}

/* Bloque de Textos */
.statement-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  max-width: 620px;
}

.statement-lead {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--text-primary);
  text-transform: uppercase;
}

.statement-body {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.statement-highlight {
  font-size: clamp(1.1875rem, 2.7vw, 1.45rem);
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Login Provisional (/login)
   -------------------------------------------------------------------------- */
.auth-stage {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: var(--accent-red);
  margin-bottom: 0.35rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1.1;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Banner Informativo Temporal de Desarrollo */
.dev-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background-color: var(--accent-red-faint);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 3px;
  margin-bottom: 1.75rem;
}

.dev-icon {
  font-size: 1.1rem;
  color: var(--accent-red);
  flex-shrink: 0;
}

.dev-message {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Formulario */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1rem;
  background-color: #0c0c0e;
  border: 1px solid var(--border-medium);
  border-radius: 2px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
    font-size: 16px;`n}

.form-actions {
  margin-top: 0.5rem;
}

.btn-submit {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  background-color: #24242c;
  color: #727280;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-footer-nav {
  margin-top: 1.75rem;
  text-align: center;
}

.auth-back-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-back-link:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Vistas de Error (404 / 500)
   -------------------------------------------------------------------------- */
.error-stage {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 1rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--accent-red);
  text-shadow: 0 4px 30px rgba(229, 9, 20, 0.3);
}

.error-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  text-transform: uppercase;
  max-width: 580px;
}

.error-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.5;
}

.error-actions {
  margin-top: 1rem;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 2rem;
  background-color: var(--accent-red);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary-action:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Ajustes de Accesibilidad (Prefers Reduced Motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .site-header {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    padding: 1.25rem 1rem;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   FASE 3: RediseÃ±o Moderno (SaaS Style)
   -------------------------------------------------------------------------- */

/* Navigation additions */
.nav-authenticated {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-item {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.75rem;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}
.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}
.nav-item.active {
  color: var(--accent-red);
  background: var(--accent-red-faint);
}
.nav-item-logout {
  color: var(--text-muted);
}
.nav-item-logout:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Page Layout */
.app-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Week Navigation */
.week-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.week-nav-btn {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.week-nav-btn:hover {
  background: var(--border-medium);
  color: var(--text-primary);
}

/* Panels (Cards) */
.panel {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition-fast);
}
.panel:hover {
  border-color: var(--border-medium);
}
.panel-header {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.badge-pending {
  background: rgba(214, 168, 75, 0.1);
  color: var(--warning);
  border-color: rgba(214, 168, 75, 0.2);
}
.badge-complete, .badge-confirmed {
  background: rgba(85, 168, 121, 0.1);
  color: var(--success);
  border-color: rgba(85, 168, 121, 0.2);
}
.badge-draft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-color: var(--border-medium);
}
.badge-cancelled {
  background: var(--accent-red-faint);
  color: var(--accent-red);
  border-color: rgba(215, 50, 50, 0.2);
}

/* Grid for Availability */
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.day-card {
  display: flex;
  flex-direction: column;
}
.day-card .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.day-date {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

/* Franjas */
.slot-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  background: rgba(0,0,0,0.2);
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
.slot-row span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Buttons */
.btn {`n    min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn-primary {
  background-color: var(--accent-red);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--accent-red-hover);
  box-shadow: 0 2px 6px rgba(215, 50, 50, 0.15);
}
.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn-secondary:hover {
  background-color: var(--border-subtle);
  border-color: var(--text-primary);
}
.btn-danger {
  background-color: var(--accent-red-faint);
  color: var(--accent-red);
  border-color: rgba(215, 50, 50, 0.2);
}
.btn-danger:hover {
  background-color: var(--accent-red);
  color: #fff;
}
.btn-warning {
  background-color: rgba(214, 168, 75, 0.1);
  color: var(--warning);
  border-color: rgba(214, 168, 75, 0.2);
}
.btn-warning:hover {
  background-color: var(--warning);
  color: #111216;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}
.btn-icon-danger {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.btn-icon-danger:hover {
  background: var(--accent-red-faint);
  color: var(--accent-red-hover);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
    font-size: 16px;`n    min-height: 46px;`n}
.form-control:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 1px var(--accent-red);
}
.form-control::placeholder {
  color: var(--text-muted);
}
.form-control[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
}
.form-control[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
}

/* Empty States */
.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(0,0,0,0.2);
  border: 1px dashed var(--border-medium);
  border-radius: 6px;
  color: var(--text-muted);
}
.empty-state h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Progress summary */
.progress-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent-red);
  transition: width 0.3s ease;
}
.progress-fill.complete {
  background: var(--success);
}

/* Members List */
.members-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}
.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.member-item:last-child {
  border-bottom: none;
}
.member-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}
.member-role {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.status-icon {
  font-size: 1.2rem;
}
.status-icon.success {
  color: var(--success);
}
.status-icon.pending {
  color: var(--text-muted);
}

/* Overlaps */
.overlap-card {
  border-left: 3px solid var(--success);
}
.overlap-time {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  margin: 0.5rem 0;
}
.overlap-duration {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Confirmation Zone */
.confirmation-zone {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(229, 9, 20, 0.03);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 8px;
  text-align: center;
}
.confirmation-zone h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Advanced Options */
details.advanced-options {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1rem;
}
details.advanced-options summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  outline: none;
}
details.advanced-options summary:hover {
  color: var(--text-primary);
}
details.advanced-options[open] summary {
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header-top {
    flex-direction: column;
    gap: 1rem;
  }
  .week-nav {
    width: 100%;
    justify-content: space-between;
  }
  .days-grid {
    grid-template-columns: 1fr;
  }
  .slot-row {
    flex-wrap: wrap;
  }
  .slot-row .form-control {
    flex: 1;
    min-width: 100px;
      font-size: 16px;`n    min-height: 46px;`n}
}
/* ==========================================================================
   NUEVA IDENTIDAD VISUAL - HOME (REFERENCIA APROBADA)
   ========================================================================== */

:root {
    --font-handwritten: 'Rock Salt', cursive, sans-serif;
    --font-display: 'Anton', sans-serif;
}

.handwritten-logo {
    font-family: var(--font-brush);
    font-size: 2.2rem;
    color: white;
    transform: rotate(-3deg);
    display: inline-block;
    border-bottom: 4px solid var(--accent-red);
}

.handwritten-title {
    font-family: var(--font-brush);
    text-transform: uppercase;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1;
    transform: rotate(-3deg);
    color: #fff;
    margin-bottom: 0;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.handwritten-note {
    font-family: var(--font-hand);
    font-size: 2rem;
    transform: rotate(-1deg);
    color: #f1f1f1;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.is-public .site-main {
    display: block;
    padding: 0;
}

.is-public .site-header {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.is-public .header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-public {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.nav-public a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-public a:hover {
    color: var(--accent-red);
}

.outline-btn {
    border: 1px solid var(--accent-red);
    color: var(--accent-red) !important;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.outline-btn:hover {
    background: rgba(229, 9, 20, 0.1);
}

.public-home-hero {
    position: relative;
    min-height: 85vh;
    min-height: 85dvh; height: auto; padding: 150px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.public-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.public-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.7);
    transform: scale(1.1); /* Prevent blur edges */
}

.public-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17,18,22,0.85) 0%, rgba(17,18,22,0.8) 50%, rgba(17,18,22,1) 100%);
}

.public-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 6rem 2rem 0;
    width: 100%;
}

.public-hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    cursor: pointer;
}

.torn-edge {
    width: 100%;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 20" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0 L0,20 L10,12 L20,18 L30,5 L40,15 L50,8 L60,19 L70,10 L80,16 L90,4 L100,17 L110,9 L120,14 L130,6 L140,19 L150,11 L160,18 L170,5 L180,15 L190,8 L200,19 L210,10 L220,16 L230,4 L240,17 L250,9 L260,14 L270,6 L280,19 L290,11 L300,18 L310,5 L320,15 L330,8 L340,19 L350,10 L360,16 L370,4 L380,17 L390,9 L400,14 L410,6 L420,19 L430,11 L440,18 L450,5 L460,15 L470,8 L480,19 L490,10 L500,16 L510,4 L520,17 L530,9 L540,14 L550,6 L560,19 L570,11 L580,18 L590,5 L600,15 L610,8 L620,19 L630,10 L640,16 L650,4 L660,17 L670,9 L680,14 L690,6 L700,19 L710,11 L720,18 L730,5 L740,15 L750,8 L760,19 L770,10 L780,16 L790,4 L800,17 L810,9 L820,14 L830,6 L840,19 L850,11 L860,18 L870,5 L880,15 L890,8 L900,19 L910,10 L920,16 L930,4 L940,17 L950,9 L960,14 L970,6 L980,19 L990,11 L1000,18 L1000,0 Z" fill="%23111216"/></svg>');
    background-size: 100% 100%;
    z-index: 10;
    position: relative;
    margin-top: -15px;
}

.torn-edge-divider {
    transform: rotate(180deg);
}

.public-home-section {
    background: var(--bg-base);
    padding: 4rem 2rem;
}

.section-darker {
    background: #0a0a0c;
}

.public-home-row {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 4rem;
    width: 100%;
}

.public-home-row--secondary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.public-home-col {
    min-width: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.text-red {
    color: var(--accent-red);
}

.see-all {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-sans);
}

.conciertos-list {
    display: flex;
    flex-direction: column;
}

.concierto-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.concierto-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    width: 60px;
    height: 70px;
    margin-right: 1.5rem;
}

.concierto-date .day {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.concierto-date .month {
    font-size: 0.8rem;
    font-weight: 700;
}

.concierto-info {
    flex: 1;
}

.concierto-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
}

.concierto-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.noticias-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.noticia-main {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.noticia-main img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.noticia-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.noticia-main-content h3 {
    margin: 0.5rem 0;
    font-size: 1.8rem;
}

.noticia-main-content p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0;
    max-width: 80%;
}

.date {
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: bold;
    letter-spacing: 0.05em;
}

.noticias-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.noticia-small {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.noticia-small img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.noticia-small-content h4 {
    margin: 0.25rem 0;
    font-size: 1.1rem;
}

.read-more {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: bold;
}

.musica-player-card {
    display: flex;
    gap: 2rem;
    background: #1a1a1f;
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.album-art {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.track-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
}

.track-info p {
    margin: 0;
    color: var(--text-muted);
}

.player-ui {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.progress-bar-container {
    flex: 1;
}

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: white;
    border-radius: 2px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.player-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platforms {
    display: flex;
    gap: 0.5rem;
    font-family: var(--font-display);
    color: white;
}

.banda-content {
    position: relative;
}

.banda-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.banda-photo-wrapper {
    position: relative;
    margin-top: 3rem;
}

.banda-photo {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    border: 8px solid white;
    transform: rotate(2deg);
}

.tape {
    position: absolute;
    width: 80px;
    height: 25px;
    background: rgba(244, 241, 234, 0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2;
}

.tape-1 {
    top: -10px;
    left: 10%;
    transform: rotate(-5deg);
}

.tape-2 {
    bottom: -10px;
    right: 15%;
    transform: rotate(3deg);
}

.banda-humor-note {
    position: absolute;
    top: -20px;
    right: 0;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.is-public .footer-torn-edge {
    width: 100%;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 20" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0 L0,20 L10,12 L20,18 L30,5 L40,15 L50,8 L60,19 L70,10 L80,16 L90,4 L100,17 L110,9 L120,14 L130,6 L140,19 L150,11 L160,18 L170,5 L180,15 L190,8 L200,19 L210,10 L220,16 L230,4 L240,17 L250,9 L260,14 L270,6 L280,19 L290,11 L300,18 L310,5 L320,15 L330,8 L340,19 L350,10 L360,16 L370,4 L380,17 L390,9 L400,14 L410,6 L420,19 L430,11 L440,18 L450,5 L460,15 L470,8 L480,19 L490,10 L500,16 L510,4 L520,17 L530,9 L540,14 L550,6 L560,19 L570,11 L580,18 L590,5 L600,15 L610,8 L620,19 L630,10 L640,16 L650,4 L660,17 L670,9 L680,14 L690,6 L700,19 L710,11 L720,18 L730,5 L740,15 L750,8 L760,19 L770,10 L780,16 L790,4 L800,17 L810,9 L820,14 L830,6 L840,19 L850,11 L860,18 L870,5 L880,15 L890,8 L900,19 L910,10 L920,16 L930,4 L940,17 L950,9 L960,14 L970,6 L980,19 L990,11 L1000,18 L1000,0 Z" fill="%230a0a0c"/></svg>');
    background-size: 100% 100%;
}

.is-public .site-footer {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    background: #0a0a0c;
    border-top: none;
    padding-bottom: 2rem;
    margin-top: 0;
}

.is-public .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-center {
    display: flex;
    gap: 1.25rem;
}

.footer-center a {
    color: white;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.rock-hand-icon {
    font-size: 2rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .public-home-row,
    .public-home-row--secondary {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .is-public .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {`n    .nav-public {
        flex-direction: column;
    }

    .public-hero-title {
        font-size: 3rem;
    }

    .public-hero-actions {
        flex-direction: column;
    }

    .musica-player-card {
        flex-direction: column;
    }

    .album-art {
        width: 100%;
        height: 250px;
    }

    .noticia-small {
        flex-direction: column;
        align-items: flex-start;
    }

    .noticia-small img {
        width: 100%;
        height: 150px;
    }
}




/* Internal Pages Layout */
.public-page-header {
    padding-top: 150px;
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.public-page-content {
    padding: 0 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}


/* Logo Hero */
.hero-main-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 4px 10px rgba(0,0,0,0.5));
}

/* Section Title Decorations (Star & Skull) */
.section-title span {
    position: relative;
    display: inline-block;
}

/* Star decoration for Conciertos and Noticias */
.conciertos-col .section-title span::before, .noticias-col .section-title span::before {
    content: '';
    position: absolute;
    left: -40px;
    top: -10px;
    width: 35px;
    height: 35px;
    background-image: url('/images/brand/star.png');
    background-size: contain;
    background-position: center;
    opacity: 0.8;
    transform: rotate(-15deg);
}

/* Skull decoration for La Banda */
.public-page-header .section-title span::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -10px;
    width: 50px;
    height: 50px;
    background-image: url('/images/brand/punk-skull.png');
    background-size: contain;
    background-position: center;
    opacity: 0.9;
    transform: rotate(10deg);
}






/* Active nav and area privada */
.nav-public a.active {
    position: relative;
    color: #ffffff;
}
.nav-public a.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url('/images/brand/star.png');
    background-size: contain;
    background-position: center;
}

.outline-btn {
    border: 1px solid var(--accent-red);
    color: var(--accent-red) !important;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    border-radius: 0;
}






.public-hero-claim { font-size: clamp(2rem, 4vw, 3rem); max-width: 900px; margin: 0 auto 3rem auto; text-shadow: 0 4px 15px rgba(0,0,0,0.8); line-height: 1.2; color: #ffffff; transform: rotate(-1deg); }

.mobile-menu-toggle { display: none; background: none; border: none; color: #ffffff; cursor: pointer; padding: 0.5rem; }
@media (max-width: 990px) { .mobile-menu-toggle { display: block; } .nav-actions { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background-color: var(--bg-primary); padding: 1.5rem; z-index: 50; border-bottom: 2px solid var(--accent-red); } .nav-actions.is-open { display: flex; } .nav-public, .nav-authenticated { flex-direction: column; gap: 1rem; align-items: center; } .header-nav { flex-wrap: wrap; position: relative; } }

.header-logo { max-height: 90px; width: auto; display: block; object-fit: contain; }
@media (max-width: 990px) { .header-logo { max-height: 60px; } }



.public-hero-actions .btn {`n    min-height: 44px; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.85rem 2rem; border-radius: 2px; transition: all 0.2s ease-in-out; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.public-hero-actions .btn-primary { background-color: var(--accent-red); color: #ffffff; border: 2px solid var(--accent-red); box-shadow: 0 4px 15px rgba(215, 50, 50, 0.3); }
.public-hero-actions .btn-primary:hover, .public-hero-actions .btn-primary:focus { background-color: var(--accent-red-hover); border-color: var(--accent-red-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(215, 50, 50, 0.4); outline: none; }
.public-hero-actions .btn-outline { background-color: transparent; border: 2px solid #ffffff; color: #ffffff; }
.public-hero-actions .btn-outline:hover, .public-hero-actions .btn-outline:focus { background-color: rgba(255,255,255,0.1); transform: translateY(-2px); outline: none; }



/* Mobile Tables */
@media (max-width: 768px) { table.admin-table, table.admin-table thead, table.admin-table tbody, table.admin-table th, table.admin-table td, table.admin-table tr { display: block; width: 100%; } table.admin-table thead tr { display: none; } table.admin-table tr { border: 1px solid var(--border-medium); margin-bottom: 1rem; padding: 1rem; border-radius: 4px; background: rgba(255,255,255,0.02); } table.admin-table td { padding: 0.5rem 0 !important; border: none !important; border-bottom: 1px solid rgba(255,255,255,0.05) !important; text-align: left !important; word-wrap: break-word; } table.admin-table td:last-child { border-bottom: none !important; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 1rem !important; } table.admin-table img { max-width: 100%; height: auto; } }


@media (max-width: 990px) { .nav-item { padding: 1rem !important; min-height: 44px; width: 100%; text-align: center; display: flex; justify-content: center; align-items: center; } }



@media (max-width: 768px) { .public-hero-content { padding: 4rem 1rem 0; } .site-header { padding: 1rem; } }


