/* ============================================================
   INMORTAL TATUAJE — styles.css
   Estilo gótico, mobile-first
   ============================================================ */

/* === RESET & VARIABLES === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary:      #0a0a0a;
  --bg-secondary:    #0f0f0f;
  --bg-alt:          #111111;
  --bg-card:         #141414;
  --bg-elevated:     #1c1c1c;

  --text-primary:    #f0f0f0;
  --text-secondary:  #959595;
  --text-muted:      #555555;

  --accent-red:      #8b0000;
  --accent-red-h:    #a80000;
  --accent-gold:     #c9a96e;
  --accent-gold-h:   #e2c58a;

  --border-faint:    rgba(201, 169, 110, 0.10);
  --border-subtle:   rgba(201, 169, 110, 0.20);
  --border-card:     rgba(201, 169, 110, 0.28);
  --border-strong:   rgba(201, 169, 110, 0.55);

  --shadow-deep:     0 6px 32px rgba(0, 0, 0, 0.70);
  --shadow-glow-red: 0 0 24px rgba(139, 0, 0, 0.35);

  --nav-h:           66px;
  --font-head:       'Cinzel', Georgia, serif;
  --font-body:       'Raleway', system-ui, sans-serif;
  --radius:          3px;
  --ease:            0.28s ease;
}

/* === BASE === */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 3px; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow { max-width: 660px; }

.section { padding: 5rem 0; }
.section-alt { background-color: var(--bg-alt); }

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.ornament-divider {
  margin-top: 1.1rem;
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  color: var(--accent-gold);
  opacity: 0.65;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--ease);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-red);
  color: var(--text-primary);
  border-color: var(--accent-red);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-red-h);
  border-color: var(--accent-red-h);
  box-shadow: var(--shadow-glow-red);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-gold);
  border-color: var(--border-strong);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background-color: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-faint);
  transition: background-color var(--ease), border-color var(--ease);
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.97);
  border-color: var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: color var(--ease);
}
.nav-logo:hover { color: var(--accent-gold); }

.logo-ornament {
  color: var(--accent-gold);
  font-size: 0.6rem;
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--ease);
}
.nav-toggle:hover { border-color: var(--accent-gold); }

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile dropdown menu */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background-color: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0 1rem;
}
.nav-links.open { display: flex; }

.nav-link {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.85rem 1.5rem;
  transition: color var(--ease), padding-left var(--ease);
  border-left: 2px solid transparent;
}
.nav-link:hover {
  color: var(--accent-gold);
  border-left-color: var(--accent-gold);
  padding-left: 1.9rem;
}
.nav-cta { color: var(--accent-red) !important; }
.nav-cta:hover { color: var(--accent-gold) !important; }

/* Desktop navigation */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.1rem;
  }
  .nav-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    border-left: none;
    border-bottom: 1px solid transparent;
  }
  .nav-link:hover {
    padding-left: 0.7rem;
    border-left: none;
    border-bottom-color: var(--accent-gold);
  }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* Radial glow effects */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 85%, rgba(139, 0, 0, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(201, 169, 110, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

/* Subtle noise/dot texture */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.025'%3E%3Cpath d='M40 36v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V2h-2v4h-4v2h4v4h2V8h4V6h-4zM8 36v-4H6v4H2v2h4v4h2v-4h4v-2H8zM8 6V2H6v4H2v2h4v4h2V8h4V6H8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 2.5rem) 1.25rem 5rem;
  max-width: 720px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 14vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}

.hero-title-accent {
  display: block;
  color: var(--accent-red);
  margin-top: 0.1em;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
  margin: 1.75rem auto;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2.75rem;
  line-height: 1.85;
  letter-spacing: 0.025em;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-gold);
  opacity: 0.55;
  animation: scroll-bounce 2.8s ease-in-out infinite;
  z-index: 2;
  transition: opacity var(--ease);
}
.hero-scroll:hover { opacity: 1; }

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 540px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-deep);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(45%) contrast(1.1) brightness(0.85);
  transition: transform 0.45s ease, filter 0.45s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
  filter: grayscale(0%) contrast(1.15) brightness(0.95);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.gallery-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* === SCHEDULE === */
.schedule {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.schedule-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border-faint);
  transition: background-color var(--ease);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover { background-color: var(--bg-elevated); }

/* Today highlight — applied by JS */
.schedule-row.today {
  border-left: 3px solid var(--accent-gold);
  padding-left: calc(1.4rem - 3px);
  background-color: rgba(201, 169, 110, 0.06);
}
.schedule-row.today .schedule-day { color: var(--accent-gold); }

.schedule-day {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 120px;
  letter-spacing: 0.04em;
}

.schedule-sep {
  color: var(--accent-gold);
  opacity: 0.4;
  margin: 0 1rem;
  font-size: 0.85rem;
}

.schedule-time {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.schedule-time.closed {
  color: var(--accent-red);
  font-weight: 600;
}

.schedule-closed .schedule-day { color: var(--text-muted); }

.schedule-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* === LOCATION === */
.location-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .location-wrapper { flex-direction: row; align-items: stretch; }
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .location-info { width: 270px; }
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.location-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.location-detail strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}
.location-detail p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.map-container {
  flex: 1;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-card);
}
@media (min-width: 768px) {
  .map-container { min-height: 360px; }
}

/* === CONTACT === */
.contact-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.75;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 480px) {
  .contact-buttons { flex-direction: row; justify-content: center; }
}

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 2.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
}
.contact-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.btn-profile {
  background-color: transparent;
  color: var(--accent-gold);
  border-color: var(--border-strong);
}
.btn-profile:hover,
.btn-profile:focus-visible {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-instagram {
  background: linear-gradient(135deg, #405de6, #833ab4, #c13584, #fd1d1d);
  color: #ffffff;
  border-color: transparent;
}
.btn-instagram:hover,
.btn-instagram:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(193, 53, 132, 0.45);
  filter: brightness(1.1);
}

/* === FOOTER === */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-faint);
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}

.footer-address {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.footer-social a {
  color: var(--text-muted);
  transition: color var(--ease), transform var(--ease);
  display: flex;
}
.footer-social a:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

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

/* === FADE-IN ANIMATION (via JS IntersectionObserver) === */
.fade-in-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.35s ease;
  cursor: zoom-out;
}
.lightbox.open {
  background-color: rgba(0, 0, 0, 0.92);
}

.lightbox-img-wrap {
  position: relative;
  max-width: min(90vw, 860px);
  max-height: 90svh;
  transform: scale(0.82);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34, 1.20, 0.64, 1), opacity 0.3s ease;
  cursor: default;
}
.lightbox.open .lightbox-img-wrap {
  transform: scale(1);
  opacity: 1;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 90svh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 169, 110, 0.18);
  filter: none !important;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--ease), border-color var(--ease), transform var(--ease);
  flex-shrink: 0;
}
.lightbox-close:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  transform: scale(1.1) rotate(90deg);
}
.lightbox-close svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* Cursor hint on gallery items */
.gallery-item {
  cursor: zoom-in;
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in-ready { opacity: 1; transform: none; }
}
