/* =========================================================
   ROSITA NAIL SALON v4 — FONDO BLANCO PURO + UNA COLUMNA
   ========================================================= */

@font-face {
  font-family: 'Matcha World';
  src: url('../assets/MatchaWorld.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg-base: #ffffff;
  --bg-blush: #fce6ec;
  --pink-main: #d8587e;
  --pink-dark: #b53b60;
  --cream-pill: #f7e6d2;
  --ink: #191315;
  --muted: #66585d;
  --border-ink: 1.5px solid #191315;
  --shadow-ink: 3px 3px 0px #191315;
  --font-matcha: 'Matcha World', 'Bagel Fat One', 'DynaPuff', cursive, sans-serif;
  --font-body: 'M PLUS Rounded 1c', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  /* Fondo blanco idéntico al fondo de VINICIO y VFINAL */
  background-color: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.4;
  position: relative;
}

/* Capa sutil de grano de papel táctil */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.16;
  background-image: 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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.45'/%3E%3C/svg%3E");
}

/* Canvas de partículas flotantes */
.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 35;
}

/* Contenedor alineado en una sola columna */
.container {
  width: min(410px, 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* =========================================================
   1. PANTALLA DE CARGA (LOGO SIEMPRE VISIBLE + VUELO AL HEADER)
   ========================================================= */
.splash-screen {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.splash-logo {
  width: min(215px, 56vw);
  height: auto;
  display: block;
  opacity: 1;
  filter:
    drop-shadow(10px 10px 0px rgba(216, 88, 126, 0.25))
    drop-shadow(4px 4px 0px rgba(25, 19, 21, 0.18));
  animation: splashPulse 1.6s ease-in-out infinite alternate;
}

@keyframes splashPulse {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.03); }
}

/* =========================================================
   2. APP PRINCIPAL + HEADER CON TIPOGRAFÍA MATCHA WORLD
   ========================================================= */
.main-app {
  opacity: 0;
  transition: opacity 0.7s ease;
  width: 100%;
  background-color: #ffffff;
  overflow-x: hidden;
}

.main-app.revealed {
  opacity: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(252, 230, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-ink);
}

.header-inner {
  width: min(520px, 94%);
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.header-logo.visible {
  opacity: 1;
  transform: scale(1);
}

.brand-title {
  font-family: var(--font-matcha);
  font-size: clamp(1.18rem, 4.6vw, 1.55rem);
  letter-spacing: 0.03em;
  color: var(--ink);
  font-weight: 400;
  text-shadow: 1.5px 1.5px 0px rgba(216, 88, 126, 0.35);
}

.admin-dot {
  position: absolute;
  right: 2px;
  color: rgba(25, 19, 21, 0.22);
  text-decoration: none;
  font-size: 1.35rem;
  padding: 0.25rem 0.45rem;
}

/* =========================================================
   3. VIDEOS INTEGRADOS SOBRE BLANCO + DESVANECIDO REFORZADO
   ========================================================= */
.video-hero-section,
.video-footer-section {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

/* VINICIO alineado al mismo ancho de columna que las tarjetas */
.video-stage-vinicio {
  position: relative;
  width: min(410px, 90vw);
  aspect-ratio: 1 / 1;
  margin: 0.2rem auto 0;
  background-color: #ffffff;
  overflow: hidden;
}

.video-stage-vinicio video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 177.78%;
  max-width: none;
  object-fit: cover;
}

/* Desvanecido inferior un poco más fuerte y alto hacia el blanco */
.fade-bottom {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -2px;
  height: 118px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.48) 38%,
    rgba(255, 255, 255, 0.92) 72%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* VFINAL alineado al mismo ancho de columna */
.video-stage-vfinal {
  position: relative;
  width: min(410px, 90vw);
  margin: 0.25rem auto 0;
  background-color: #ffffff;
  overflow: hidden;
}

.video-stage-vfinal video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  clip-path: inset(2px);
}

/* Desvanecido superior un poco más fuerte y alto desde el blanco */
.fade-top {
  position: absolute;
  left: -2px;
  right: -2px;
  top: -2px;
  height: 118px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.48) 38%,
    rgba(255, 255, 255, 0.92) 72%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* =========================================================
   4. BOTÓN DE WHATSAPP COMPACTO Y ESTILIZADO
   ========================================================= */
.cta-section {
  padding: 0.15rem 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 15;
}

.btn-whatsapp-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.56rem 1.2rem;
  background: var(--pink-main);
  color: #ffffff;
  font-family: var(--font-matcha);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: var(--border-ink);
  border-radius: 999px;
  box-shadow: 2.5px 2.5px 0px var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-whatsapp-compact:hover {
  background: var(--pink-dark);
  transform: translate(-1px, -1px);
  box-shadow: 3.5px 3.5px 0px var(--ink);
}

.btn-whatsapp-compact:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--ink);
}

.wa-dot {
  width: 7px;
  height: 7px;
  background: #67f58c;
  border: 1.2px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}

.extra-buttons-wrap {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.btn-extra-link {
  display: inline-block;
  padding: 0.36rem 0.85rem;
  background: var(--cream-pill);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.74rem;
  text-decoration: none;
  border: var(--border-ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}

/* =========================================================
   5. BLOQUES DE FOTOS EN UNA SOLA COLUMNA (1 A 100+ ITEMS)
   ========================================================= */
.gallery-section {
  padding: 0.2rem 0 1.8rem;
  position: relative;
  z-index: 15;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.photo-card {
  width: 100%;
  background: #ffffff;
  border: var(--border-ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}

.photo-card:hover {
  transform: translateY(-2px);
}

.photo-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  border-bottom: var(--border-ink);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-info {
  padding: 0.82rem 0.95rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.photo-title {
  font-family: var(--font-matcha);
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.photo-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.38;
}

.photo-price {
  margin-top: 0.4rem;
  align-self: flex-start;
  background: var(--cream-pill);
  border: 1.4px solid var(--ink);
  border-radius: 999px;
  padding: 0.14rem 0.7rem;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--pink-dark);
}

/* =========================================================
   6. FOOTER & MODAL PRIVACIDAD
   ========================================================= */
.site-footer {
  width: 100%;
  background: var(--bg-blush);
  border-top: var(--border-ink);
  padding: 1rem 0 1.4rem;
  text-align: center;
  position: relative;
  z-index: 15;
}

.privacy-trigger {
  background: none;
  border: none;
  font-family: var(--font-matcha);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.copyright {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 19, 21, 0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.hidden,
.hidden {
  display: none !important;
}

.modal-card {
  background: #ffffff;
  border: var(--border-ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  max-width: 420px;
  width: 100%;
  padding: 1.2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.modal-header h2 {
  font-family: var(--font-matcha);
  font-size: 1rem;
}

.modal-close {
  background: var(--cream-pill);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-weight: 800;
  cursor: pointer;
}

.modal-body p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

/* =========================================================
   7. ESTILOS PANEL ADMIN (admin.html)
   ========================================================= */
.admin-body { background: #ffffff; }
.admin-main { padding: 1.5rem 0 3rem; position: relative; z-index: 15; }
.login-card { max-width: 400px; margin: 1.5rem auto; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.admin-card { background: #ffffff; border: var(--border-ink); border-radius: 16px; padding: 1.2rem; box-shadow: var(--shadow-ink); }
.admin-card h1, .admin-card h2, .admin-card h3 { font-family: var(--font-matcha); font-weight: 400; margin-bottom: 0.45rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-form .field { margin-top: 0.75rem; }
.admin-form label { display: block; font-weight: 700; font-size: 0.78rem; margin-bottom: 0.25rem; }
.admin-form input, .admin-form textarea { width: 100%; padding: 0.52rem 0.75rem; border: var(--border-ink); border-radius: 10px; font-family: inherit; font-size: 0.84rem; }
.btn-admin-primary { margin-top: 1rem; width: 100%; padding: 0.65rem 1rem; background: var(--pink-main); color: #fff; font-family: var(--font-matcha); border: var(--border-ink); border-radius: 999px; box-shadow: 2.5px 2.5px 0 var(--ink); cursor: pointer; }
.btn-admin-outline, .btn-back-site { padding: 0.38rem 0.8rem; background: var(--cream-pill); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.76rem; border: var(--border-ink); border-radius: 999px; cursor: pointer; }
.btn-back-site { position: absolute; right: 0; }
.divider { margin: 1rem 0; border: none; border-top: 1.5px dashed rgba(25, 19, 21, 0.2); }
.mt-2 { margin-top: 1.2rem; }
.status-msg { margin-top: 0.5rem; font-size: 0.78rem; font-weight: 700; }
.status-msg.error { color: #c92a2a; }
.status-msg.ok { color: #2b8a3e; }
.admin-items-list { display: grid; gap: 0.65rem; margin-top: 0.8rem; }
.admin-item-row { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.55rem; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff8f9; }
.admin-item-row img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--ink); }
.admin-item-meta { flex: 1; font-size: 0.82rem; }
.btn-delete-item { background: #ffe3e3; color: #c92a2a; border: 1.5px solid var(--ink); border-radius: 8px; padding: 0.32rem 0.6rem; font-weight: 700; font-size: 0.72rem; cursor: pointer; }
