/*
  LA CALMA - FUNERARIA Y SERVICIOS DE PREVISIÓN (SUCURSAL ZAPOPAN)
  Estilo Sobrio Elegante: Mármol Pizarra Oscuro (#181513) y Oro Champaña Metallic (#d4af37)
  Estilos Completos para Panel Maestro de Control (Memoriam Admin)
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark-marble: #181513;
  --bg-card-dark: #231f1c;
  --bg-card-hover: #2d2824;
  --text-gold-light: #fefcf6;
  --text-muted: #a39e93;
  --gold-metallic: #d4af37;
  --gold-champagne: #e0bb53;
  --gold-hover: #f3ce63;
  --gold-border: rgba(212, 175, 55, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);
  --silver-accent: #cbd5e1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark-marble);
  color: var(--text-gold-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 1px;
}

/* NAVBAR RESPONSIVE */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(24, 21, 19, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-gold-light);
}

.brand-logo svg {
  width: 36px;
  height: 36px;
  color: var(--gold-metallic);
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-champagne);
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--silver-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold-champagne);
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--silver-accent);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-champagne);
  border-bottom: 2px solid var(--gold-metallic);
}

@media (max-width: 850px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #181513;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gold-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  }

  .nav-links.show {
    display: flex;
  }
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #e0bb53);
  color: #181513 !important;
  font-weight: 700 !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.875rem;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e0bb53, #f3ce63);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--gold-metallic);
  color: var(--gold-champagne) !important;
  background: transparent;
  padding: 0.6rem 1.3rem !important;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #ffffff !important;
}

/* CIRCULAR FLOATING WHATSAPP BUTTON WITH LOGO ONLY */
.whatsapp-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.whatsapp-float-btn svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

.whatsapp-float-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.7);
  background-color: #20ba5a;
}

/* HERO SECTION CON VIDEO DE FONDO DINÁMICO */
.hero {
  position: relative;
  color: #ffffff;
  padding: 6rem 1.5rem;
  text-align: center;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--gold-border);
  width: 100%;
  overflow: hidden;
  background-color: #100e0d;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.45);
  transition: opacity 0.8s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(24, 21, 19, 0.65) 0%, rgba(24, 21, 19, 0.88) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0 auto;
}

.hero-tag {
  color: var(--gold-champagne);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  color: #d4d4d8;
  margin: 0 auto 2.5rem auto;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* SECCIÓN ESPECIAL INAUGURACIÓN CON VIDEO Y AUDIO COMPLETO */
.inauguracion-video-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-card-dark);
  border: 2px solid var(--gold-metallic);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  position: relative;
}

.inauguracion-video {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  background: #000000;
}

.inauguracion-caption {
  padding: 1.75rem 2rem;
  background: #181513;
  border-top: 1px solid var(--gold-border);
  text-align: center;
}

.inauguracion-caption h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-champagne);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.inauguracion-caption p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* CARDS & GRID */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--gold-champagne);
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.card {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
  border-color: var(--gold-metallic);
  background-color: var(--bg-card-hover);
}

.card-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: brightness(0.9);
  cursor: pointer;
  transition: filter 0.3s ease;
}

.card-img:hover {
  filter: brightness(1.05);
}

.card-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  color: var(--gold-champagne);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.card-desc {
  color: #a3a3a3;
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list li {
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: "✦";
  color: var(--gold-metallic);
  font-size: 0.75rem;
}

/* CATEGORÍAS DE GALERÍA */
.category-chips {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.category-chip {
  padding: 0.7rem 1.6rem;
  border-radius: 25px;
  background: var(--bg-card-dark);
  border: 1.5px solid var(--gold-border);
  color: #d4d4d8;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0.9rem;
}

.category-chip.active, .category-chip:hover {
  background: var(--gold-metallic);
  color: #181513;
  border-color: var(--gold-champagne);
}

/* GALERÍA DE SUCURSAL */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.gallery-item {
  position: relative;
  height: 230px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(15, 12, 10, 0.92));
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-caption::after {
  content: "🔍 Clic para ampliar";
  font-size: 0.75rem;
  color: var(--gold-champagne);
  font-weight: 400;
}

/* CARRUSEL SLIDER AJUSTADO */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 1.5rem auto 0 auto;
  height: 480px;
  max-height: 60vh;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--gold-border);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.slider-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.95);
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(15, 12, 10, 0.92));
  color: #ffffff;
}

.slider-caption h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-champagne);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.slider-caption p {
  color: #d4d4d8;
  font-size: 0.95rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(24, 21, 19, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--gold-border);
  color: var(--gold-champagne);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.25s;
}

.slider-btn:hover {
  background: var(--gold-metallic);
  color: #181513;
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  right: 25px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--gold-border);
  cursor: pointer;
  transition: all 0.25s;
}

.slider-dot.active {
  background: var(--gold-metallic);
  transform: scale(1.2);
}

/* VISOR LIGHTBOX MODAL HD */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 12, 10, 0.95);
  backdrop-filter: blur(12px);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-box {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card-dark);
  border: 2px solid var(--gold-metallic);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #0d0b0a;
}

.lightbox-caption-bar {
  width: 100%;
  padding: 1.25rem 2rem;
  background: #181513;
  border-top: 1px solid var(--gold-border);
  text-align: center;
}

.lightbox-caption-bar h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold-champagne);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption-bar p {
  color: #d4d4d8;
  font-size: 0.875rem;
}

.lightbox-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(24, 21, 19, 0.85);
  border: 1px solid var(--gold-border);
  color: #ffffff;
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s;
}

.lightbox-close-btn:hover {
  background: var(--gold-metallic);
  color: #181513;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(24, 21, 19, 0.85);
  border: 1px solid var(--gold-border);
  color: var(--gold-champagne);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.25s;
}

.lightbox-nav-btn:hover {
  background: var(--gold-metallic);
  color: #181513;
}

.lightbox-nav-btn.prev {
  left: -25px;
}

.lightbox-nav-btn.next {
  right: -25px;
}

@media (max-width: 600px) {
  .lightbox-nav-btn.prev { left: 5px; }
  .lightbox-nav-btn.next { right: 5px; }
}

/* MEMORIAM DASHBOARD STYLES (ADMIN PANEL) */
.memoriam-layout {
  display: flex;
  min-height: 100vh;
  background-color: #0f172a; /* Slate 900 */
  color: #f8fafc;
  width: 100%;
}

.memoriam-sidebar {
  width: 280px;
  background: #1e293b; /* Slate 800 */
  border-right: 1px solid #334155;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.memoriam-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f59e0b;
  padding: 0.5rem 0.75rem 1.25rem;
  border-bottom: 1px solid #334155;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.memoriam-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.memoriam-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.memoriam-menu li a:hover, .memoriam-menu li a.active {
  background: #334155;
  color: #fefcf6;
  font-weight: 600;
}

.memoriam-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  min-width: 0;
}

.memoriam-topbar {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.memoriam-topbar-title {
  font-size: 0.95rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.memoriam-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.memoriam-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.memoriam-badge-master {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.memoriam-badge-approved {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.memoriam-main-panel {
  padding: 2rem;
  flex-grow: 1;
}

.memoriam-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  color: #f8fafc;
  margin-bottom: 1.5rem;
}

.memoriam-card h3, .memoriam-card h4 {
  color: #fbbf24 !important;
}

.memoriam-card p {
  color: #94a3b8 !important;
}

.memoriam-card label {
  color: #cbd5e1 !important;
}

.memoriam-card input, .memoriam-card select {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
}

.memoriam-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.memoriam-table th {
  background: #0f172a;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.memoriam-table td {
  padding: 1rem;
  border-bottom: 1px solid #334155;
  color: #f8fafc;
  font-size: 0.9rem;
}

.memoriam-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.btn-action {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary {
  background: #334155;
  color: #f8fafc;
}

.btn-secondary:hover {
  background: #475569;
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
}

.btn-success:hover {
  background: #15803d;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* FORMULARIOS */
.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.925rem;
  transition: all 0.2s;
  background-color: #231f1c;
  color: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-metallic);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* FOOTER SOBRIO */
footer {
  background-color: #100e0d;
  color: var(--text-muted);
  padding: 4rem 1.5rem 2rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--gold-border);
  width: 100%;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--gold-champagne);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #a3a3a3;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold-champagne);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: #737373;
}
