/* ============================================================
   FIRELAB — style.css
   Paleta: Negro profundo, Azul Real, Oro/Dorado
   Mobile-First • Dark Theme • Animaciones avanzadas
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Colour Palette */
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #111111;
  --bg-card:       #161616;
  --bg-card-hover: #1c1c1c;
  --bg-navbar:     rgba(10,10,10,.85);
  --surface:       #1e1e1e;
  --surface-light: #252525;

  --royal-blue:    #2962ff;
  --royal-blue-dark: #1b47cc;
  --royal-light:   #538bff;
  --gold:          #ee3017;
  --gold-light:    #ec6f66;
  --gold-dark:     #c23d38dc;

  --text-primary:  #f2f2f2;
  --text-secondary:#a8a8a8;
  --text-muted:    #666666;
  --border-color:  #2a2a2a;

  --danger:        #e53935;
  --success:       #43a047;
  --warning:       #f9a825;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-py: 5rem;

  /* Transitions */
  --ease: cubic-bezier(.25,.8,.25,1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select {
  font-family: inherit; font-size: inherit; color: inherit;
  background: transparent; border: none; outline: none;
}

/* ---------- Utility ---------- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: var(--section-py) 0; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase; 
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: .5rem;
}
*/* ============================================================
   MOVIMIENTO SUAVE DEL BLOQUE DE TEXTO
   ============================================================ */
.about-text {
  transition:
    transform .4s ease,
    box-shadow .4s ease;
}

.about-text:hover {
  transform: translateY(-8px);
}
*/* ============================================================
   MOVIMIENTO SUAVE DE CADA PARRAFO
   ============================================================ */

.about-text p {
    transition:
        transform .3s ease,
        color .3s ease;
}

.about-text p:hover {
    transform: translateX(8px);
    color: #ffffff;
}
*/* ============================================================
   MOVIMIENTO PARA TITULO PRINCIPAL
   ============================================================ */

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  transition:
        letter-spacing .4s ease,
        transform .4s ease;
}

.section-title:hover {
    letter-spacing: 2px;
    transform: translateY(-3px);
}
.section-title span { color: var(--gold); }
.section-subtitle {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
}
.text-center { text-align: center; }
.gold { color: var(--gold); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: var(--bg-navbar);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled {
  background: rgba(10,10,10,.96);
  box-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar-logo img { height: 64px; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .875rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-secondary);
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a.admin-link {
  background: var(--royal-blue);
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  transition: background .3s, transform .2s;
}
.nav-links a.admin-link::after { display: none; }
.nav-links a.admin-link:hover {
  background: var(--royal-blue-dark);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 28px;
}
.hamburger span {
  display: block; height: 2px; background: var(--text-primary);
  border-radius: 4px; transition: .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('assets/img/hero-bg.png') center/cover no-repeat;
  filter: brightness(0.8) contrast(0.7) saturate(1.2); /* Deeper charcoal-fire contrast */
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,.5) 0%,
    rgba(10,10,10,.3) 40%,
    rgba(10,10,10,.85) 100%
  );
  z-index: 1;
}

/* Sparks / particles canvas */
#sparks-canvas {
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
}

.hero-content {
  position: relative; z-index: 3;
  padding: 0 1rem;
  animation: fadeUp .8s ease-out .3s both;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
  transition:
    transform .4s ease,
    text-shadow .4s ease,
    color .4s ease;
}

.hero-content h1:hover {
  transform: translateY(-8px) scale(1.02);
  text-shadow: 0 10px 50px rgba(212,168,71,.4);
}

.hero-content h1 .highlight { color: var(--gold); }
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.4rem;
  
}


.hero-cta {
  display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: .3s var(--ease);
  text-transform: uppercase; letter-spacing: .5px;
}
.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,168,71,.3);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.2);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  font-size: .7rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-muted);
}
.scroll-indicator .mouse {
  width: 22px; height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 12px; position: relative;
}
.scroll-indicator .mouse::after {
  content: ''; position: absolute; top: 6px; left: 50%;
  width: 3px; height: 8px; background: var(--gold);
  border-radius: 3px; transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}
@keyframes bounce {
  0%,20%,50%,80%,100%{ transform: translateX(-50%) translateY(0); }
  40%{ transform: translateX(-50%) translateY(-8px); }
  60%{ transform: translateX(-50%) translateY(-4px); }
}

/* ============================================================
   ABOUT / QUIÉNES SOMOS
   ============================================================ */
.about { background: var(--bg-secondary); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.about-image:hover img { transform: translateY(-8px) scale(1.02); }
.about-image::after {
  content: '';
  position: absolute; inset: 0;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: .3;
  pointer-events: none;
}
.about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}
.about-stats {
  display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
/* ============================================================
   ESTADISTICAS CON MOVIMIENTO
   ============================================================ */

.stat-item { text-align: center; }
.stat-number {
  font-size: 2.2rem; font-weight: 800; color: var(--gold);
  line-height: 1;
  transition:
        transform .3s ease,
        box-shadow .3s ease;
}
.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
}
.stat-label {
  font-size: .8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: .3rem;
}

/* ============================================================
   SERVICES / SERVICIOS
   ============================================================ */
.services { background: var(--bg-primary); }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  transition:
    transform .4s ease,
    border-color .4s ease,
    box-shadow .4s ease;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow:
    0 15px 50px rgba(0,0,0,.35),
    0 0 25px rgba(238,48,23,.15);
  transform: translateY(-30px) !important;
}
.service-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem;
}
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--royal-blue), var(--gold));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.service-header h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
}
.service-card > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Image gallery grid — Instagram style */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s var(--ease), z-index 0s;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease), filter .45s;
}
.gallery-item:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .35s;
  display: flex; align-items: flex-end; padding: .8rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: .75rem; color: #fff; font-weight: 500;
}

/* ============================================================
   REVIEWS / RESEÑAS
   ============================================================ */
.reviews { background: var(--bg-secondary); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform .3s, border-color .3s;
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.review-header {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: .8rem;
}
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff;
  flex-shrink: 0;
}
.review-meta strong { font-size: .95rem; }
.review-stars { color: var(--gold); font-size: .85rem; margin-top: .15rem; }
.review-card p {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.6;
}

/* Review form */
.review-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;

 transition:
    transform .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;
}

.review-form-wrapper:hover {
  background: rgb(32, 32, 32) !important;
  transform: translateY(-30px) !important;
}
.review-form-wrapper h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* ============================================================
   FORMS — shared styles
   ============================================================ */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color .3s, box-shadow .3s;
}
.form-control:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(41,98,255,.2);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .85rem 2rem;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-light));
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: .3s var(--ease);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(41,98,255,.3);
}

/* ============================================================
   CONTACT / CONTACTO
   ============================================================ */
.contact { background: var(--bg-primary); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.contact-detail {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1rem;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-detail-text span { display: block; font-size: .8rem; color: var(--text-muted); }
.contact-detail-text strong { font-size: .95rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;

  transition:
    transform .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;
}

.contact-form:hover {
  transform: translateY(-6px);

  border-color: var(--gold);

  box-shadow:
    0 15px 50px rgba(0,0,0,.35),
    0 0 25px rgba(238,48,23,.12);
}
.contact-form:hover {
  transform: translateY(-20px) !important;
  background: rgb(24, 23, 23) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: .3rem;
}
.footer-social {
  display: flex; gap: 1rem;
}
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: .3s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(212,168,71,.2);
}
.footer-bottom {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.footer-bottom p {
  font-size: .8rem; color: var(--text-muted);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed; bottom: 1.8rem; right: 1.8rem;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  animation: whatsappPulse 2s infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}
.whatsapp-btn svg { width: 30px; height: 30px; fill: #fff; }
@keyframes whatsappPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.4); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: none; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .35s;
}
.lightbox.visible { display: flex; opacity: 1; }
.lightbox img {
  max-width: 90%; max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  cursor: pointer;
  transition: background .3s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-image { max-height: 350px; }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right .4s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,.5);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }

  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.3rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .about-stats { justify-content: center; }
}

/* ============================================================
   ADMIN PANEL — admin.html
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .logo {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-sidebar .logo img { height: 36px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .9rem; font-weight: 500;
  transition: .25s;
  margin-bottom: .25rem;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--surface);
  color: var(--text-primary);
}
.sidebar-nav a.active {
  border-left: 3px solid var(--royal-blue);
  background: rgba(41,98,255,.08);
  color: var(--royal-light);
}
.sidebar-nav a svg,
.sidebar-nav a .nav-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  opacity: .7;
}

/* Main content */
.admin-main {
  padding: 2rem 2.5rem;
  overflow-y: auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.admin-header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
}
.admin-header .date {
  color: var(--text-muted);
  font-size: .85rem;
}

/* Dashboard cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color .3s;
}
.stat-card:hover { border-color: var(--royal-blue); }
.stat-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .8rem;
}
.stat-card-header span {
  font-size: .85rem; color: var(--text-muted); font-weight: 500;
}
.stat-card-header .icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.icon-blue { background: rgba(41,98,255,.12); color: var(--royal-light); }
.icon-gold { background: rgba(212,168,71,.12); color: var(--gold); }
.icon-green { background: rgba(67,160,71,.12); color: var(--success); }
.icon-red { background: rgba(229,57,53,.12); color: var(--danger); }
.stat-card .value {
  font-size: 2rem; font-weight: 800; line-height: 1;
}
.stat-card .change {
  font-size: .8rem; margin-top: .4rem;
}
.stat-card .change.up { color: var(--success); }
.stat-card .change.down { color: var(--danger); }

/* Admin chart area */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.chart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.2rem;
}
.chart-header h3 { font-size: 1.1rem; }
.chart-filters {
  display: flex; gap: .5rem;
}
.chart-filter-btn {
  padding: .35rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 500;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: .25s;
  border: 1px solid transparent;
}
.chart-filter-btn.active,
.chart-filter-btn:hover {
  background: rgba(41,98,255,.1);
  color: var(--royal-light);
  border-color: var(--royal-blue);
}

/* Chart canvas wrapper */
.chart-canvas-wrapper {
  position: relative;
  height: 260px;
}
.chart-canvas-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Admin Tables */
.admin-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}
.admin-table-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-table-header h3 { font-size: 1.05rem; }
.btn-add {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  background: var(--royal-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600;
  cursor: pointer;
  transition: .3s;
}
.btn-add:hover {
  background: var(--royal-blue-dark);
  transform: translateY(-1px);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: .9rem 1.5rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
}
.admin-table td {
  padding: .85rem 1.5rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td {
  background: rgba(255,255,255,.02);
}
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-blue   { background: rgba(41,98,255,.12); color: var(--royal-light); }
.badge-gold   { background: rgba(212,168,71,.12); color: var(--gold); }
.badge-green  { background: rgba(67,160,71,.12); color: var(--success); }
.badge-red    { background: rgba(229,57,53,.12); color: var(--danger); }

.table-actions {
  display: flex; gap: .5rem;
}
.table-actions button {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: .25s;
  font-size: .85rem;
}
.btn-edit {
  background: rgba(41,98,255,.1);
  color: var(--royal-light);
}
.btn-edit:hover { background: rgba(41,98,255,.2); }
.btn-delete {
  background: rgba(229,57,53,.1);
  color: var(--danger);
}
.btn-delete:hover { background: rgba(229,57,53,.2); }

/* Admin section panels (tabs) */
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* CMS Section */
.cms-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.cms-card h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 3000;
  display: none;
  align-items: center; justify-content: center;
}
.modal-overlay.visible { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeUp .3s ease-out;
}
.modal h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.modal .btn-submit { margin-top: .5rem; }

/* Toast notification */
.toast {
  position: fixed; top: 1.5rem; right: 1.5rem;
  z-index: 4000;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: .8rem;
  min-width: 280px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  transform: translateX(120%);
  transition: transform .4s var(--ease);
}
.toast.visible { transform: translateX(0); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast .toast-icon { font-size: 1.2rem; }
.toast .toast-text { font-size: .9rem; }

/* Admin Responsive */
@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed; left: -280px;
    width: 250px;
    z-index: 1001;
    transition: left .3s var(--ease);
  }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: 1.5rem 1rem; }
  .admin-mobile-toggle {
    display: flex !important;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-table { font-size: .8rem; }
  .admin-table th, .admin-table td { padding: .6rem .8rem; }
}

.admin-mobile-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ============================================================
   AUTH / LOGIN STYLES
   ============================================================ */
.auth-overlay {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: fadeUp 0.5s var(--ease);
}
.auth-card .logo { text-align: center; margin-bottom: 2rem; }
.auth-card .logo img { height: 45px; }

.password-wrapper { position: relative; }
.password-toggle {
  position: absolute; right: 1rem; top: 38px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 5;
}
.password-toggle:hover { color: var(--gold); }

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
}
.auth-footer a {
  font-size: 0.85rem;
  color: var(--gold);
  transition: color 0.3s;
}
.auth-footer a:hover { color: var(--gold-light); text-decoration: underline; }

/* Setup Profile Step */
.setup-step { display: none; }
.setup-step.active { display: block; }

/* ============================================================
   ORDER & EXPENSE BADGES
   ============================================================ */
.badge-pending   { background: rgba(249,168,37,0.15); color: var(--warning); }
.badge-delivered { background: rgba(67,160,71,0.15); color: var(--success); }
.badge-ordered   { background: rgba(41,98,255,0.15); color: var(--royal-light); }

.expense-tag {
  font-family: monospace;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212,168,71,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   PROVIDER ORDERS UI
   ============================================================ */
.provider-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Tooltip/Full message expansion */
.msg-full {
  max-width: 300px;
  white-space: normal;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary) !important;
}

/* Notifications Bell/Badge */
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px;
  background: var(--danger);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border: 2px solid var(--bg-secondary);
}

.cms-service-selector {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}


/* ============================================================
   BOTON ELIMINAR CLIENTES
   ============================================================ */
.actions-cell {
  text-align: center;
  width: 100px;
}

.actions-cell .btn-delete {
  margin: 0 auto;
}

/* ============================================================
   GALERIA
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-item {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-full{
  display:grid;
  grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}

.gallery-card{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  cursor:pointer;
}

.gallery-card img,
.gallery-card video{
  width:100%;
  height:250px;
  object-fit:cover;
  display:block;
}

.video-icon{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-size:3rem;
  color:white;
}

.gallery-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  display:none;
  z-index:9999;
}

.gallery-modal.visible{
  display:flex;
  align-items:center;
  justify-content:center;
}

.gallery-preview{
  max-width:90vw;
  max-height:90vh;
}

#galleryClose{
  position:absolute;
  top:20px;
  right:30px;
  color:white;
  font-size:2rem;
  cursor:pointer;
}

/*estilos del titulo de galeria*/

#gallery-section {
  padding: 6rem 2rem;
}

#gallery-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

#gallery-section .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#gallery-section .section-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}
.gallery-full {
  max-width: 1400px;
  margin: 0 auto;
}

/*zoom al pasar el mouse en galeria*/
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 280px;
  object-fit: cover;

  transition: transform .4s ease;
}

.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.08);
}


/*sombra elegante*/


.gallery-card {
  box-shadow:
    0 10px 30px rgba(0,0,0,.15);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 20px 40px rgba(0,0,0,.25);
}

/*icono play*/

.video-icon {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 70px;
  height: 70px;

  border-radius: 50%;

  background: rgba(0,0,0,.65);

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 2rem;

  pointer-events: none;
}

/*oscure al pasar el mouse */

.gallery-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0);

  transition: .3s;
}

.gallery-card:hover::after {
  background: rgba(0,0,0,.15);
}
.gallery-modal {
  position: fixed;

  inset: 0;

  background: rgba(0,0,0,.95);

  display: none;

  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.gallery-modal.visible {
  display: flex;
}

.gallery-preview {
  max-width: 90vw;
  max-height: 90vh;

  border-radius: 12px;
}
#galleryClose {
  position: absolute;

  top: 25px;
  right: 35px;

  color: white;

  font-size: 2.5rem;

  cursor: pointer;

  z-index: 10000;
}

.gallery-full {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(300px, 1fr));

  gap: 1.5rem;

  max-width: 1400px;

  margin: 0 auto;
}

.gallery-card {
  opacity: 0;
  transform: translateY(30px);

  animation: galleryFade .7s ease forwards;
}

@keyframes galleryFade {

  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}