:root {
  --color-dark: #241a12;
  --color-dark-2: #17110b;
  --color-gold: #c99a4a;
  --color-gold-light: #e3c07f;
  --color-navy: #1f3a4d;
  --color-cream: #f6efe4;
  --color-cream-2: #efe3d0;
  --color-text: #2c221a;
  --color-whatsapp: #25d366;
  --font-title: 'Oswald', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(36, 26, 18, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-title);
  margin: 0 0 .5rem;
  color: var(--color-dark);
}

p { margin: 0 0 1rem; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section__title--left { text-align: left; }

.section__subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2rem;
  color: #5b4d3f;
}

.eyebrow {
  color: var(--color-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.eyebrow--center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--color-gold);
  color: var(--color-dark);
}
.btn--primary:hover { background: var(--color-gold-light); }

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn--whatsapp:hover { background: #1ebd5a; }

.btn--outline {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.btn--outline:hover { background: var(--color-dark); color: #fff; }

.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn--block { display: block; width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark-2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
}

.header__brand-text {
  display: flex;
  flex-direction: column;
  color: var(--color-cream);
  line-height: 1.2;
}
.header__brand-text strong { font-family: var(--font-title); font-size: 1.05rem; }
.header__brand-text small { color: var(--color-gold-light); font-size: 0.7rem; letter-spacing: 1px; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__nav a {
  color: var(--color-cream);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header__nav a:hover { color: var(--color-gold-light); }
.header__nav-cta { padding: 0.55rem 1.2rem; }

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.header__toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-cream);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, #33251a 0%, var(--color-dark) 45%, var(--color-dark-2) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero__content { max-width: 620px; }
.hero__content h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.15;
}
.hero__lead {
  color: #d9cbb6;
  font-size: 1.1rem;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero__photo {
  position: relative;
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius);
  z-index: 0;
}
.hero__photo img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0,0,0,0.45);
  width: 100%;
  object-fit: cover;
  max-height: 560px;
}

/* Gallery */
.gallery-notice {
  background: var(--color-cream-2);
  border: 1px dashed var(--color-gold);
  color: #5b4d3f;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: #fff;
  border: 2px solid var(--color-cream-2);
  color: var(--color-dark);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--color-gold); }
.filter-btn.is-active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-gold-light);
}

.gallery-grid {
  columns: 4 240px;
  column-gap: 18px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: var(--color-dark);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.gallery-item.is-hidden { display: none; }

.gallery-item--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  background: var(--color-cream-2);
  color: #8a7a63;
  text-align: center;
  padding: 20px;
  cursor: default;
  box-shadow: none;
  border: 2px dashed #d8c8ab;
}
.gallery-item--placeholder:hover img { transform: none; }
.gallery-item--placeholder .icon { font-size: 2rem; }

.gallery-more { text-align: center; margin-top: 1rem; }
.gallery-more.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 6, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: #f2e8d8;
}
.lightbox__caption p { margin-bottom: 0.7rem; font-weight: 600; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
  display: block;
}
.service-card:hover { transform: translateY(-6px); }
.service-card__icon { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.service-card--cta {
  background: var(--color-dark);
  color: var(--color-cream);
}
.service-card--cta h3 { color: var(--color-gold-light); }

/* Herramientas */
.herramientas { background: var(--color-cream-2); }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.tool-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 2px solid transparent;
}
.tool-card__icon { font-size: 2.2rem; margin-bottom: 6px; }
.tool-card__cta {
  margin-top: 10px;
  font-weight: 700;
  color: var(--color-gold);
}
a.tool-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
}
.tool-card--soon {
  opacity: 0.7;
  cursor: default;
}
.tool-card__soon-tag {
  margin-top: 10px;
  display: inline-block;
  background: var(--color-cream-2);
  border: 1px dashed #c9b68f;
  color: #8a7a63;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

/* Miguel */
.miguel { background: var(--color-cream-2); }
.miguel__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
  align-items: center;
}
.miguel__photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.miguel__badge {
  display: inline-block;
  background: var(--color-dark);
  color: var(--color-gold-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.miguel__text { color: #4a3d30; }
.miguel__quote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-dark);
  border-left: 4px solid var(--color-gold);
  padding-left: 16px;
  margin: 1.2rem 0 1.6rem;
}

/* Proceso */
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.proceso-step {
  text-align: center;
  padding: 20px;
}
.proceso-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Testimonios */
.testimonios { background: var(--color-dark); color: var(--color-cream); }
.testimonios .eyebrow { color: var(--color-gold-light); }
.testimonios .section__title { color: var(--color-cream); }
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.testimonio-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonio-card__text { font-style: italic; color: #ece0cd; }
.testimonio-card__author { font-weight: 700; color: var(--color-gold-light); margin: 0; }
.testimonio-card__tag { font-weight: 400; font-size: 0.75rem; color: #b8ab97; }

/* Ubicacion */
.ubicacion__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.ubicacion__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Contacto */
.contacto { background: var(--color-cream-2); }
.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contacto__list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contacto__list li { margin-bottom: 0.8rem; font-weight: 600; }
.contacto__list a:hover { color: var(--color-gold); }

.contacto__form {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contacto__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-dark);
}
.contacto__form input,
.contacto__form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #d8c8ab;
  border-radius: 6px;
  resize: vertical;
}
.contacto__form input:focus,
.contacto__form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* Footer */
.footer { background: var(--color-dark-2); color: #cbbca4; padding: 50px 0 24px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.footer__brand p { margin: 0; color: var(--color-gold-light); font-size: 0.85rem; }
.footer__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__nav a:hover { color: var(--color-gold-light); }
.footer__copy { text-align: center; font-size: 0.8rem; margin: 20px 0 0; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 500;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Responsive */
@media (max-width: 900px) {
  .miguel__inner,
  .ubicacion__inner,
  .contacto__inner {
    grid-template-columns: 1fr;
  }
  .miguel__photo { max-width: 320px; margin: 0 auto; }
  .gallery-grid { columns: 2 200px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: 100%; margin: 0 auto; }
  .hero__ctas { justify-content: center; }
  .hero__photo { max-width: 380px; margin: 0 auto; order: -1; }
}

@media (max-width: 760px) {
  .header__toggle { display: flex; }
  .header__nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--color-dark-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    transform: translateY(-150%);
    opacity: 0;
    transition: all .25s ease;
  }
  .header__nav.is-open { transform: translateY(0); opacity: 1; }
  .header__nav-cta { width: 100%; text-align: center; }

  .hero { min-height: auto; }
  .section { padding: 56px 0; }
  .gallery-grid { columns: 1 100%; }
}
