:root {
  --black: #050505;
  --white: #f5f5f5;
  --red: #e11c25;
}

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

html {
  scroll-behavior: smooth;
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* GRAIN OVERLAY */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
}

/* NAV FIJA */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 1.2rem 6vw;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  z-index: 50;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.logo {
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  color: var(--white);
  flex: 1;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  flex: 2;
}

.nav a {
  color: rgba(245, 245, 245, 0.75);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.35s ease;
}

.nav a:hover {
  color: var(--white);
}

.nav a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 8rem 6vw 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.5s ease, transform 8s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.55)),
    radial-gradient(ellipse at 70% 20%, rgba(225, 28, 37, 0.3), transparent 55%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 15% 85%, rgba(225, 28, 37, 0.15), transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
  animation: heroContentFadeIn 1.2s ease 0.3s both;
}

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

.logo-mark {
  width: 240px;
  height: 240px;
  border: 1px solid rgba(245, 245, 245, 0.2);
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  animation: logoFadeIn 1s ease 0.5s both;
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.68rem;
  color: rgba(245, 245, 245, 0.6);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 600px;
}

.hero h1 span {
  display: block;
}

.lead {
  font-size: 1.05rem;
  max-width: 520px;
  color: rgba(245, 245, 245, 0.85);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: buttonsFadeIn 1s ease 0.8s both;
}

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

.btn {
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(225, 28, 37, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(225, 28, 37, 0.5);
}

.btn-ghost {
  border-color: rgba(245, 245, 245, 0.4);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(245, 245, 245, 0.08);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 6vw;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.65rem;
  color: rgba(245, 245, 245, 0.5);
  animation: fadeInUp 1s ease 0.8s both;
}

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

.scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* SECTIONS */
.section {
  padding: 7rem 6vw;
  position: relative;
}

.section.alt {
  background: rgba(245, 245, 245, 0.03);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header .num {
  font-size: 0.85rem;
  color: var(--red);
  letter-spacing: 0.25em;
}

.section-header h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

/* SPLIT LAYOUT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.copy p {
  margin-bottom: 1rem;
  color: rgba(245, 245, 245, 0.8);
}

.copy .big {
  font-size: 1.3rem;
  font-family: "Cinzel", serif;
}

.copy .small {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.6);
}

/* METRICS */
.metrics {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.metric h3 {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.metric p {
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.6);
}

/* MEDIA */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 245, 0.1);
  aspect-ratio: 4/3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(85%) contrast(110%);
  transform: scale(1.05);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              filter 0.9s ease;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 5, 0.6));
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.media:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.media:hover img {
  transform: scale(1.15);
  filter: grayscale(25%) contrast(115%);
}

.media:hover::after {
  opacity: 0.7;
}

/* MENU */
.intro {
  max-width: 540px;
  margin-bottom: 2rem;
  color: rgba(245, 245, 245, 0.7);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.menu-item {
  padding: 1.4rem;
  border: 1px solid rgba(245, 245, 245, 0.12);
  background: rgba(0, 0, 0, 0.35);
  transition: transform 0.4s, border-color 0.4s;
}

.menu-item h3 {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.menu-item p {
  font-size: 0.88rem;
  color: rgba(245, 245, 245, 0.7);
}

.menu-item:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 28, 37, 0.5);
}

.note {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(245, 245, 245, 0.1);
  background: rgba(225, 28, 37, 0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.note span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: var(--red);
}

.note p {
  color: rgba(245, 245, 245, 0.8);
  margin: 0;
}

/* REVIEWS SECTION */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 1100px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 245, 245, 0.1);
  padding: 1.8rem;
  position: relative;
  transition: all 0.4s ease;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.review-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(225, 28, 37, 0.3);
  transform: translateY(-5px);
}

.review-card:hover::before {
  transform: scaleX(1);
}

.review-stars {
  color: var(--red);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.85);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 245, 245, 0.1);
}

.author-name {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  color: var(--white);
}

.review-date {
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Animation for reviews */
.animate-section.in-view .review-card:nth-child(1) { animation: slideUp 0.6s ease 0.1s both; }
.animate-section.in-view .review-card:nth-child(2) { animation: slideUp 0.6s ease 0.2s both; }
.animate-section.in-view .review-card:nth-child(3) { animation: slideUp 0.6s ease 0.3s both; }
.animate-section.in-view .review-card:nth-child(4) { animation: slideUp 0.6s ease 0.4s both; }

@keyframes slideUp {
  from { 
    opacity: 0.5;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* GALLERY MOSAIC */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 245, 0.08);
}

.mosaic-item.tall {
  grid-row: span 2;
}

.mosaic-item.wide {
  grid-column: span 2;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(110%);
  transform: scale(1.03);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.mosaic-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 5, 0.5));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mosaic-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%) contrast(115%);
}

.mosaic-item:hover::after {
  opacity: 1;
}

/* FORM */
.form {
  display: grid;
  gap: 1rem;
}

.form input {
  background: transparent;
  border: 1px solid rgba(245, 245, 245, 0.25);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  transition: border-color 0.3s;
}

.form input::placeholder {
  color: rgba(245, 245, 245, 0.4);
}

.form input:focus {
  outline: none;
  border-color: var(--red);
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(245, 245, 245, 0.08);
}

.footer-map {
  width: 100%;
  transition: opacity 0.5s ease;
}

.footer-map:hover {
  opacity: 0.9;
}

.footer-map iframe {
  display: block;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 6vw;
  text-align: center;
}

.footer-info h3 {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.footer-info p {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.6);
  line-height: 1.6;
}

.footer-copy {
  padding: 1.5rem 6vw;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245, 245, 245, 0.4);
  border-top: 1px solid rgba(245, 245, 245, 0.06);
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
  justify-content: center;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 245, 245, 0.2);
  border-radius: 50%;
  color: rgba(245, 245, 245, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.4s ease;
  z-index: -1;
}

.social-links a:hover {
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-3px);
}

.social-links a:hover::before {
  transform: scale(1);
}

.social-links svg {
  position: relative;
  z-index: 1;
}

/* ========================================
   SCROLL ANIMATIONS - Clean & Simple
   ======================================== */

/* Secciones con línea decorativa */
.animate-section .section-header {
  position: relative;
  padding-bottom: 1rem;
}

.animate-section .section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transition: width 1s ease;
}

.animate-section.in-view .section-header::after {
  width: 120px;
}

/* Números con glow al entrar */
.animate-section .num {
  transition: all 0.5s ease;
}

.animate-section.in-view .num {
  text-shadow: 0 0 15px var(--red);
}

/* Métricas con efecto pop */
.metric {
  transition: transform 0.4s ease;
}

.animate-section.in-view .metric:nth-child(1) { animation: popIn 0.6s ease 0.1s both; }
.animate-section.in-view .metric:nth-child(2) { animation: popIn 0.6s ease 0.2s both; }
.animate-section.in-view .metric:nth-child(3) { animation: popIn 0.6s ease 0.3s both; }

@keyframes popIn {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Menu items con border animation */
.menu-item {
  position: relative;
  overflow: hidden;
}

.menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.6s ease;
}

.animate-section.in-view .menu-item::after {
  width: 100%;
}

.animate-section.in-view .menu-item:nth-child(1)::after { transition-delay: 0.1s; }
.animate-section.in-view .menu-item:nth-child(2)::after { transition-delay: 0.2s; }
.animate-section.in-view .menu-item:nth-child(3)::after { transition-delay: 0.3s; }
.animate-section.in-view .menu-item:nth-child(4)::after { transition-delay: 0.4s; }

/* Gallery items hover con efecto reveal */
.mosaic-item {
  position: relative;
  overflow: hidden;
}

.mosaic-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(225, 28, 37, 0.2), transparent);
  transition: left 0s;
  z-index: 2;
}

.animate-section.in-view .mosaic-item::before {
  animation: shimmer 1.5s ease;
}

.animate-section.in-view .mosaic-item:nth-child(1)::before { animation-delay: 0.1s; }
.animate-section.in-view .mosaic-item:nth-child(2)::before { animation-delay: 0.2s; }
.animate-section.in-view .mosaic-item:nth-child(3)::before { animation-delay: 0.3s; }
.animate-section.in-view .mosaic-item:nth-child(4)::before { animation-delay: 0.4s; }
.animate-section.in-view .mosaic-item:nth-child(5)::before { animation-delay: 0.5s; }

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Media images hover efecto */
.media {
  overflow: hidden;
}

.media img {
  transition: transform 0.8s ease, filter 0.5s ease;
}

.media:hover img {
  transform: scale(1.08);
}

/* Note con borde animado */
.note {
  position: relative;
  overflow: hidden;
}

.note::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.8s ease;
}

.animate-section.in-view .note::before {
  height: 100%;
}

/* Navigation scroll effects */
.nav {
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  padding: 0.8rem 6vw;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split.reverse {
    direction: ltr;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 4vw;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .section {
    padding: 5rem 5vw;
  }

  .hero {
    padding: 7rem 5vw 3rem;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }
}
