:root {
  --color-primary: #000000;
  --color-secondary: #d4af37;
  --color-background: #ffffff;
  --color-accent: #c1272d;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-highlight: 'Playfair Display', serif;

  --header-height: 84px;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-primary);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.container {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-title {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
}

/* =========================
   HEADER
========================= */

#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: 0.25s;
}

#main-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 0;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

/* NAVIGATION */

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.3rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 600;
  position: relative;
}

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

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--color-secondary);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.nav-list a:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.lang-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lang-switch-ui {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  user-select: none;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.lang-switch-input:focus-visible + .lang-switch-ui {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 3px;
}

.lang-opt {
  position: relative;
  z-index: 1;
  width: 24px;
  text-align: center;
}

.lang-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--color-secondary);
  border-radius: 999px;
  transition: transform 0.25s;
}

.lang-switch-ui[data-lang="en"] .lang-knob {
  transform: translateX(100%);
}

/* =========================
   HERO
========================= */

.hero-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
}

.hero-content h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.08;
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.cta-button {
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-button:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.cta-button:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 4px;
}

.cta-button:active {
  transform: translateY(1px);
}

/* =========================
   ABOUT
========================= */

.about-section {
  background: #faf7f0;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-family: var(--font-highlight);
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* =========================
   SERVICES
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  background: #111111;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12)),
    linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(0, 0, 0, 0));
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.service-card:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 3px;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.service-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  padding: 1rem;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}

.service-overlay h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
}

.service-overlay p {
  margin: 0;
  font-size: 0.95rem;
}

/* =========================
   CTA
========================= */

.cta-section {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.12),
    rgba(193, 39, 45, 0.12)
  );
  text-align: center;
}

.cta-section [data-cta-title] {
  font-family: var(--font-heading);
}

.cta-section [data-cta-subtitle] {
  max-width: 780px;
  margin: 0.75rem auto 0;
}

/* =========================
   SOCIAL
========================= */

.social-section {
  background: #fafafa;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons a {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.7rem;
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.social-icons a:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 4px;
}

.social-icons a:active {
  transform: scale(0.98);
}

/* =========================
   CONTACT
========================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fafafa;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cccccc;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.contact-feedback {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  color: #6a5200;
}

/* =========================
   MODAL
========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}

.modal {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 980px;
  width: min(100%, 980px);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.15;
  padding-right: 3rem;
}

.modal > p {
  margin-top: 0;
  color: rgba(0, 0, 0, 0.78);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

.modal-close:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 3px;
}

/* VIDEO DEL MODAL */

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 1.2rem 0 1.4rem;
  overflow: hidden;
  border-radius: 16px;
  background: #000000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* GALERÍA */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0 1.5rem;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  background: #f4f4f4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.18);
  filter: saturate(1.05) contrast(1.02);
}

/* PAQUETES */

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.package {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.035));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.package h4 {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.package .price {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

/* =========================
   FOOTER
========================= */

footer {
  background: #111111;
  color: #ffffff;
  text-align: center;
  padding: 2rem 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav {
    width: 100%;
    order: 3;
  }

  .lang-switch {
    order: 2;
  }

  .nav-list {
    justify-content: center;
  }

  .about-container {
    flex-direction: column;
  }

  .modal {
    padding: 1.4rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .gallery img {
    height: 150px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero-content h1 {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .social-icons {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .social-icons a {
    width: 52px;
    height: 52px;
    font-size: 1.45rem;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  .modal {
    padding: 1rem;
    max-height: 88vh;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .gallery img {
    height: 130px;
    border-radius: 12px;
  }

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

  .modal-close {
    right: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
  }
}