/* =========================================
   UTOPIA BEAUTY & NAILS — styles.css
   ========================================= */

/* ---------- Variables ---------- */
:root {
  --color-cream: #F5EFE6;
  --color-cream-dark: #EDE4D8;
  --color-dark: #1A1A1A;
  --color-gold: #C9A96E;
  --color-gold-dark: #a8824a;
  --color-pink-soft: #F2D7D9;
  --color-white: #FFFFFF;
  --color-text-muted: #6B6B6B;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background: var(--color-white);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}
.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---------- Layout ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section { padding: 5rem 0; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(245,239,230,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,169,110,0.2);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--color-gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--color-cream);
  border-top: 1px solid var(--color-cream-dark);
  padding: 1rem 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-cream-dark);
  transition: background var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--color-cream-dark); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/portfolio/imagen-06.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 700px;
  padding-top: 70px;
}

.hero-tag {
  display: inline-block;
  background: rgba(201,169,110,0.9);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title { color: var(--color-white); margin-bottom: 1.25rem; }
.hero-title span { color: var(--color-gold); }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}
.hero-badge .rating { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--color-gold); }
.hero-badge .rating-label { font-size: 0.75rem; opacity: 0.8; margin-top: 0.25rem; }

/* ---------- SERVICIOS ---------- */
.servicios { background: var(--color-white); }

.servicios-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 2px solid var(--color-cream-dark);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-text-muted);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-card[data-category]:not(.visible) { display: none; }
.service-card.visible { display: flex; }

.service-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--color-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 24px; height: 24px; color: var(--color-white); fill: none; stroke: currentColor; stroke-width: 1.8; }

.service-info { flex: 1; }
.service-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.service-duration {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.service-footer { display: flex; align-items: center; justify-content: space-between; }
.service-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold-dark);
}
.service-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--color-gold);
  border-radius: 50px;
  transition: var(--transition);
}
.service-cta:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

@media (min-width: 600px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- PORTFOLIO ---------- */
.portfolio { background: var(--color-cream); }

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 2px solid var(--color-cream-dark);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-text-muted);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.portfolio-grid {
  columns: 2;
  column-gap: 1rem;
}

@media (min-width: 768px) { .portfolio-grid { columns: 3; } }
@media (min-width: 1100px) { .portfolio-grid { columns: 4; } }

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
  border-radius: var(--radius);
}

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay svg {
  width: 36px; height: 36px;
  color: var(--color-white);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.portfolio-item[data-filter]:not(.pf-visible) { display: none; }
.portfolio-item.pf-visible { display: block; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem; right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--color-gold); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--color-white);
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(201,169,110,0.7); }
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }
.lightbox-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ---------- RESEÑAS ---------- */
.resenas { background: var(--color-cream); }

.resenas-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.badge-stars { color: var(--color-gold); font-size: 1.4rem; letter-spacing: 0.05em; }
.badge-text { font-family: var(--font-serif); font-size: 1.1rem; }
.badge-text span { font-weight: 700; color: var(--color-gold-dark); }

.resenas-track-wrapper {
  overflow: hidden;
  position: relative;
}

.resenas-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.resena-card {
  flex: 0 0 calc(100% - 0px);
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-gold);
}

@media (min-width: 640px) { .resena-card { flex: 0 0 calc(50% - 0.75rem); } }
@media (min-width: 1024px) { .resena-card { flex: 0 0 calc(33.333% - 1rem); } }

.resena-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.resena-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.resena-info { flex: 1; }
.resena-name { font-weight: 700; font-size: 0.95rem; }
.resena-stars { color: var(--color-gold); font-size: 0.9rem; }

.resena-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
}
.resena-text::before { content: '"'; }
.resena-text::after { content: '"'; }

.resenas-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.dot.active { background: var(--color-gold); transform: scale(1.3); }

/* ---------- SOBRE NOSOTRAS ---------- */
.sobre { background: var(--color-white); }

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .sobre-inner { grid-template-columns: 1fr 1fr; }
}

.sobre-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.sobre-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.sobre-img-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--color-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sobre-img-badge .num { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--color-gold-dark); }
.sobre-img-badge .label { font-size: 0.75rem; color: var(--color-text-muted); }

.sobre-content .section-subtitle { max-width: 100%; }

.sobre-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.value-icon {
  width: 36px; height: 36px;
  background: var(--color-pink-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-icon svg { width: 18px; height: 18px; stroke: var(--color-gold-dark); fill: none; stroke-width: 2; }

/* ---------- CTA RESERVAS ---------- */
.cta-reservas {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}
.cta-reservas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,169,110,0.15) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  text-align: center;
  color: var(--color-white);
}
.cta-inner h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta-inner h2 span { color: var(--color-gold); }
.cta-inner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
}
.cta-tel:hover { color: var(--color-white); border-color: rgba(255,255,255,0.5); }
.cta-tel svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand img { height: 50px; width: auto; margin-bottom: 1rem; opacity: 0.9; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--color-gold); }

.footer-address { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.88rem; }
.footer-address p { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-address svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--color-gold); fill: none; stroke-width: 2; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-icon:hover { background: var(--color-gold); border-color: var(--color-gold); }
.social-icon svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.7); }
.social-icon:hover svg { fill: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-seo { color: rgba(255,255,255,0.4); }

/* ---------- Horarios ---------- */
.horarios {
  background: var(--color-cream-dark);
  padding: 5rem 0;
  text-align: center;
}

.horarios-inner {
  max-width: 700px;
  margin: 0 auto;
}

.horarios .section-title {
  margin-bottom: 0.75rem;
}

.horarios .section-subtitle {
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.horarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.horario-card {
  background: var(--color-white);
  border: 1.5px solid rgba(201,169,110,0.25);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.horario-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.horario-open {
  border-color: rgba(201,169,110,0.5);
}

.horario-closed {
  opacity: 0.6;
}

.horario-day {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
}

.horario-time {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  letter-spacing: -0.01em;
}

.horario-closed .horario-time {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.horario-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

.horario-open .status-dot {
  background: #6abf8a;
}

@media (max-width: 600px) {
  .horarios-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
