:root {
  --bg: #161616;
  --bg-elevated: #1b1b1b;
  --header-bg: #ffffff;
  --header-text: #2a2a2a;
  --header-muted: #6b6b6b;
  --text: #f6f6f6;
  --muted: #a9a9a9;
  --primary: #fcc20d;
  --primary-dark: #8c6c07;
  --accent: #24a9ca;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fjalla One", "Open Sans", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin: 0 0 0.5em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #ffd94a; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid #ececec;
}

.topbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { width: 110px; height: auto; }

.contact-line {
  margin: 0;
  color: var(--header-text);
  font-size: 15px;
}

.contact-line a {
  color: var(--header-text);
  font-weight: 700;
  margin-left: 6px;
}
.contact-line a:hover { color: var(--primary-dark); }

/* ---------- Nav ---------- */
.main-nav {
  background: #fafafa;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.nav-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max-width);
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  padding: 20px 26px;
  color: var(--header-muted);
  text-transform: uppercase;
  font-family: "Fjalla One", sans-serif;
  letter-spacing: 1.5px;
  font-size: 14px;
  transition: color .15s ease;
}

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

.nav-list a.is-active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 16px 24px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--header-text);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("hero-bg.jpg") center/cover no-repeat;
  padding: 100px 24px;
}

.hero-inner {
  background: var(--primary);
  color: #1a1a1a;
  padding: 44px 56px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.hero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  color: #1a1a1a;
  margin: 0 0 18px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: clamp(15px, 1.4vw, 18px);
  color: #1a1a1a;
  letter-spacing: .5px;
  margin: 0;
  font-weight: 400;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.6)),
              url("servicios/hero-bg.jpg") center/cover no-repeat;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(24px, 3.2vw, 38px);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  max-width: 900px;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}

.page-hero--nosotros {
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.6)),
              url("nosotros/hero-bg.jpg") center/cover no-repeat;
}

.page-hero--galeria {
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.6)),
              url("galeria/hero-bg.jpg") center/cover no-repeat;
}

.page-hero--contacto {
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.6)),
              url("contacto/hero-bg.jpg") center/cover no-repeat;
}

.page-hero--legal {
  background: #1b1b1b;
  border-bottom: 1px solid #262626;
}

/* ---------- Legal / privacy ---------- */
.legal { padding: 80px 0 96px; }

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  color: var(--primary);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #262626;
}

.legal-content h3 {
  color: var(--text);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 28px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content p { margin: 0 0 18px; }

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content li { margin-bottom: 8px; }

.legal-content strong { color: var(--text); }
.legal-content a { color: var(--primary); }

.site-footer p + p { margin-top: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }

/* ---------- Contact ---------- */
.contact { padding: 96px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form-wrap h2 {
  color: var(--primary);
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.contact-lead {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.contact-form label em {
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid #2a2a2a;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  border-radius: 2px;
  transition: border-color .15s ease, background .15s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #1f1f1f;
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form .btn { align-self: flex-start; }

.contact-form .form-status {
  font-size: 14px;
  min-height: 20px;
  margin: 0;
}

.contact-form .form-status.is-ok {
  color: #6be08a;
}

.contact-form .form-status.is-error {
  color: #ff6b6b;
}

/* Honeypot — off-screen, not display:none so bots still see it */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg-elevated);
  border: 1px solid #262626;
  padding: 36px 32px;
}

.info-block h3 {
  color: var(--primary);
  margin: 0 0 10px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-block p,
.info-block ul {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.info-block ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-block a { color: var(--primary); font-weight: 700; }

@media (max-width: 900px) {
  .contact { padding: 64px 0; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Gallery carousel ---------- */
.gallery {
  padding: 80px 0;
}

.carousel {
  max-width: 860px;
  margin: 0 auto;
}

.carousel-stage {
  position: relative;
  background: #0f0f0f;
  border: 1px solid #262626;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.carousel-track img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  color: #161616;
}

.carousel-btn--prev { left: 14px; }
.carousel-btn--next { right: 14px; }

.carousel-thumbs {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.carousel-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: #0f0f0f;
  cursor: pointer;
  width: 82px;
  height: 62px;
  overflow: hidden;
  display: block;
  transition: border-color .2s ease, opacity .2s ease;
  opacity: .6;
}

.carousel-thumbs button:hover { opacity: 1; }

.carousel-thumbs button.is-active {
  border-color: var(--primary);
  opacity: 1;
}

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

@media (max-width: 600px) {
  .gallery { padding: 56px 0; }
  .carousel-btn { width: 38px; height: 38px; font-size: 16px; }
  .carousel-thumbs button { width: 60px; height: 46px; }
}

/* ---------- About (Nosotros) ---------- */
.about {
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  color: var(--primary);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

.about-text h2:not(:first-child) {
  margin-top: 40px;
}

.about-text p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.values-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  color: var(--text);
  border-bottom: 1px solid #262626;
}

.values-list li:last-child { border-bottom: 0; }

.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  transform: rotate(45deg);
}

.about-media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
  border: 1px solid #262626;
}

@media (max-width: 900px) {
  .about { padding: 64px 0; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-media { order: -1; }
  .about-media img { max-height: 360px; }
}

/* ---------- Services grid ---------- */
.services {
  padding: 80px 0;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid #262626;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.service-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0f0f;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.04);
}

.service-card h2 {
  font-size: 20px;
  color: var(--primary);
  margin: 0;
  padding: 22px 24px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
}

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

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; gap: 20px; }
  .services { padding: 56px 0; }
  .page-hero { height: 180px; padding: 20px; }
}

/* ---------- Welcome ---------- */
.welcome {
  padding: 96px 0;
  text-align: center;
}

.welcome h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--primary);
  margin-bottom: 24px;
}

.welcome p {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 17px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: "Fjalla One", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #161616;
}

.btn-primary:hover {
  background: #ffd94a;
  color: #000;
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f0f0f;
  color: var(--muted);
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #262626;
}

.site-footer p { margin: 0; }

/* ---------- Tablet / Mobile ---------- */
@media (max-width: 900px) {
  .topbar {
    padding: 20px;
    gap: 16px;
    text-align: right;
  }

  .brand img { width: 90px; }

  .contact-line { font-size: 14px; line-height: 1.4; }

  .contact-line a {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }

  .main-nav { position: relative; }

  .nav-toggle {
    display: block;
    margin: 0 auto;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fafafa;
    border-top: 1px solid #ececec;
  }

  .nav-list.is-open { display: flex; }

  .nav-list li { width: 100%; }

  .nav-list a {
    padding: 18px 24px;
    border-bottom: 1px solid #ececec;
    text-align: center;
  }

  .hero { min-height: 60vh; padding: 80px 20px; }
  .welcome { padding: 64px 0; }
}
