/* ==========================================================================
   EPIFANÍA BELLEZA - ESTUDIO DE UÑAS & ESTÉTICA (PUERTO MADRYN)
   Diseñado por ag-web-builder-04 & ag-responsive-ui-13
   Estilo: High-End Beauty Salon / Rose Gold & Nude Glassmorphism
   Mobile-First Architecture (360px - 430px base)
   ========================================================================== */

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

:root {
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Paleta Cromática de Alta Gama */
  --color-primary: #C97A6B;        /* Rose gold profundo */
  --color-primary-light: #E8A598;  /* Blush suave */
  --color-primary-dark: #A3574A;   /* Terracota refinado */
  --color-gold: #C5A059;          /* Dorado acento */
  --color-gold-light: #E8D39E;

  --color-bg: #FAF7F5;            /* Blanco seda / marfil */
  --color-surface: #FFFFFF;       /* Superficie limpia */
  --color-surface-trans: rgba(255, 255, 255, 0.85);
  --color-surface-alt: #F3ECE8;    /* Nude muy suave */

  --color-text-main: #2C2422;     /* Antracita cálido */
  --color-text-muted: #746864;    /* Gris cálido */
  --color-text-light: #A39691;

  --color-border: #EFE4DF;
  --color-border-focus: #C97A6B;

  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE5D;
  --color-instagram: #E1306C;

  /* Sombras Glass & Elevación */
  --shadow-sm: 0 2px 8px rgba(44, 36, 34, 0.04);
  --shadow-md: 0 6px 20px rgba(201, 122, 107, 0.08);
  --shadow-lg: 0 12px 36px rgba(44, 36, 34, 0.12);
  --shadow-glow: 0 0 25px rgba(201, 122, 107, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Global & Mobile Protection */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Touch target mínimo 48x48px */
.btn-touch {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   HEADER & NAVBAR GLASSMORPHISM
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 247, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  padding-top: env(safe-area-inset-top, 0px);
  transition: all var(--transition-fast);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  padding: 2px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 2px 10px rgba(220, 39, 67, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 2px solid #FFFFFF;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-tagline .city-badge {
  color: var(--color-text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.action-btn-icon:hover {
  transform: translateY(-1px);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.btn-admin-pill {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-admin-pill:hover {
  background: var(--color-primary-light);
  color: #FFFFFF;
}

/* ==========================================================================
   STORIES BAR (INSTAGRAM REEL FEEL)
   ========================================================================== */
.stories-section {
  padding: 0.85rem 1rem 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stories-wrapper {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.75rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.stories-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
  width: 76px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.story-item:active {
  transform: scale(0.94);
}

.story-ring {
  width: 66px;
  height: 66px;
  border-radius: var(--radius-full);
  padding: 2.5px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-ring 3s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(220, 39, 67, 0.3)); }
  50% { filter: drop-shadow(0 0 7px rgba(220, 39, 67, 0.6)); }
}

.story-ring.seen {
  background: #D9D2CD;
  animation: none;
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 2.5px solid #FFFFFF;
  object-fit: cover;
}

.story-title {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ==========================================================================
   HERO BANNER ELEGANTE
   ========================================================================== */
.hero-section {
  max-width: 1200px;
  margin: 0.5rem auto 1.5rem;
  padding: 0 1rem;
}

.hero-card {
  background: linear-gradient(135deg, #FFF9F7 0%, #F5ECE8 100%);
  border: 1px solid #EFE4DF;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(201, 122, 107, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 122, 107, 0.25);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.hero-title span {
  color: var(--color-primary);
  font-style: italic;
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  max-width: 580px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed rgba(201, 122, 107, 0.25);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary-wa {
  background: var(--color-whatsapp);
  color: #FFFFFF;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-fast);
}

.btn-primary-wa:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary-ig {
  background: #FFFFFF;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-secondary-ig:hover {
  border-color: var(--color-instagram);
  color: var(--color-instagram);
}

/* ==========================================================================
   BARRA DE FILTROS & BÚSQUEDA
   ========================================================================== */
.catalog-header-section {
  max-width: 1200px;
  margin: 1.5rem auto 1rem;
  padding: 0 1rem;
}

.catalog-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.catalog-section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.catalog-section-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.filter-chips-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.filter-chips-container::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-chip:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.filter-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(201, 122, 107, 0.3);
}

/* ==========================================================================
   GRILLA DE TRABAJOS (19 FOTOS CON LEYENDA Y PRECIO)
   ========================================================================== */
.catalog-grid-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 480px) and (max-width: 767px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

.work-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.work-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9/12; /* Proporción estética vertical */
  overflow: hidden;
  background-color: var(--color-surface-alt);
  cursor: pointer;
  perspective: 900px;
}

/* Destello sutil de luz sobre las uñas al mover las manos */
.work-image-wrapper::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(232, 165, 152, 0.35) 54%,
    transparent 66%
  );
  transform: translateX(-160%) rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.work-card:hover .work-image-wrapper::after,
.work-card:active .work-image-wrapper::after,
.work-card.hand-moving .work-image-wrapper::after {
  opacity: 1;
  animation: nailShimmer 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center bottom; /* El pivote en la base simula la muñeca sosteniendo la mano */
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}

/* Movimiento de manos grácil y natural al pasar por la foto */
.work-card:hover .work-image,
.work-card:active .work-image,
.work-card.hand-moving .work-image {
  animation: handShowcaseWave 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Efecto suave de balanceo de muñeca y muestra de uñas */
@keyframes handShowcaseWave {
  0% {
    transform: scale(1.05) rotate(0deg) translate3d(0, 0, 0);
  }
  20% {
    transform: scale(1.07) rotate(-2.8deg) translate3d(-4px, -3px, 12px);
  }
  48% {
    transform: scale(1.07) rotate(2.4deg) translate3d(5px, -2px, 16px);
  }
  72% {
    transform: scale(1.06) rotate(-1.5deg) translate3d(-3px, 1px, 8px);
  }
  88% {
    transform: scale(1.055) rotate(1.2deg) translate3d(2px, 0, 4px);
  }
  100% {
    transform: scale(1.05) rotate(0deg) translate3d(0, 0, 0);
  }
}

/* Reflejo de brillo que barre la uña con el movimiento */
@keyframes nailShimmer {
  0% {
    transform: translateX(-160%) rotate(25deg);
    opacity: 0;
  }
  25% {
    opacity: 0.65;
  }
  70% {
    opacity: 0.65;
  }
  100% {
    transform: translateX(160%) rotate(25deg);
    opacity: 0;
  }
}

.work-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-zoom-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: all var(--transition-fast);
}

.work-zoom-btn:hover {
  background: var(--color-primary);
  opacity: 1;
}

/* Espacio inferior dedicado para Leyenda y Precio */
.work-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #FFFFFF;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.work-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.65rem;
  margin-bottom: 0.85rem;
  border-top: 1px solid var(--color-surface-alt);
}

.price-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-amount {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.btn-book-card {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #FFF5F2;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-book-card:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* ==========================================================================
   SECCIÓN DE INFORMACIÓN DEL NEGOCIO & HORARIOS
   ========================================================================== */
.business-info-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-box-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #FFF2EE;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.info-box-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.info-box-content {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--color-surface-alt);
}

.schedule-day {
  font-weight: 600;
  color: var(--color-text-main);
}

.schedule-time {
  color: var(--color-primary-dark);
  font-weight: 500;
}

/* ==========================================================================
   MODAL DE HISTORIAS INTERACTIVAS (INSTAGRAM STORIES VIEWER)
   ========================================================================== */
.stories-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.stories-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.story-player-container {
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 820px;
  background: #000000;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
}

@media (min-width: 600px) {
  .story-player-container {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }
}

/* Barras de progreso de historias */
.story-progress-bars {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 20;
}

.progress-bar-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #FFFFFF;
}

.progress-bar-fill.completed {
  width: 100%;
}

.progress-bar-fill.active {
  animation: story-fill 5s linear forwards;
}

@keyframes story-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.story-top-header {
  position: absolute;
  top: 24px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  color: #FFFFFF;
}

.story-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1.5px solid #FFFFFF;
}

.story-username {
  font-weight: 600;
  font-size: 0.85rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.story-timestamp {
  font-size: 0.72rem;
  opacity: 0.8;
}

.story-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.story-media-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Áreas táctiles de navegación izquierda y derecha */
.story-tap-left, .story-tap-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  z-index: 10;
}
.story-tap-left { left: 0; }
.story-tap-right { right: 0; }

.story-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  z-index: 20;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-caption-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.story-caption-text {
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0.95;
}

.story-action-wa-btn {
  background: var(--color-whatsapp);
  color: #FFFFFF;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   MODAL DE ZOOM / DETALLE DE FOTO
   ========================================================================== */
.photo-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(20, 16, 15, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.photo-detail-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.modal-img-container {
  width: 100%;
  aspect-ratio: 9/12;
  background: #000000;
}

.modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP (MÓVIL ERGONÓMICO)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

.floating-whatsapp .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: #FF3B30;
  border: 2px solid #FFFFFF;
}

/* ==========================================================================
   FOOTER DEL SITIO
   ========================================================================== */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1rem 4rem;
  text-align: center;
}

.footer-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   ANIMACIONES & MICRO-INTERACCIONES
   ========================================================================== */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
