/* ============ Variables ============ */
:root {
  --gold: #b8864e;
  --gold-dark: #93693a;
  --gold-light: #d9b487;
  --btn: #2f4f44;
  --btn-dark: #243d34;
  --cream: #faf6f0;
  --cream-2: #f2e9dd;
  --charcoal: #241f1a;
  --charcoal-2: #332b23;
  --surface: #ffffff;
  --heading: #241f1a;
  --text: #4a4038;
  --text-light: #7a6f63;
  --border-soft: rgba(184,134,78,0.12);
  --white: #ffffff;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Poppins', sans-serif;
  --shadow: 0 10px 30px rgba(36, 31, 26, 0.08);
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.eyebrow.center { text-align: center; }
.eyebrow.light { color: var(--gold-light); }

h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 16px; }
h2.center { text-align: center; }
h2.light { color: var(--white); }

.section-sub {
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--btn);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--btn-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(47, 79, 68, 0.35);
}
.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-block { width: 100%; border: none; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 16, 13, 0.78);
  backdrop-filter: blur(6px);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(20, 16, 13, 0.94);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img { height: 44px; width: auto; transition: height var(--transition); }
.site-header.scrolled .logo-img { height: 36px; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  transition: color var(--transition);
}
.nav-desktop a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-desktop a:not(.btn-nav):hover::after { width: 100%; }
.nav-desktop .btn-nav {
  background: var(--btn);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 999px;
}
.nav-desktop .btn-nav:hover { background: var(--btn-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 340px;
  height: 100vh;
  background: var(--cream);
  padding: 100px 30px 40px;
  transition: right var(--transition);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.nav-mobile.open { right: 0; }
.nav-mobile a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--heading);
}
.nav-mobile .btn-nav {
  background: var(--btn);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 999px;
}

/* ============ Hero (carousel) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.hero-slide--tone-peach { --tone-bg: #ecd2b4; --tone-accent: #a6754a; }
.hero-slide--tone-amber { --tone-bg: #e9c99a; --tone-accent: #8c5e28; }
.hero-slide--tone-rose   { --tone-bg: #ecd0d2; --tone-accent: #a15a63; }
.hero-slide--tone-sage   { --tone-bg: #d3ddc7; --tone-accent: #5f7a4b; }
.hero-slide--tone-lilac  { --tone-bg: #d5d9e8; --tone-accent: #5a5e82; }

.hero-slide-tonebg {
  position: absolute;
  inset: 0;
  background: var(--tone-bg);
  z-index: 0;
}
.hero-slide-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}
.hero-slide-photo {
  flex: 0 0 50%;
  align-self: stretch;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to right, black 55%, transparent 96%);
  mask-image: linear-gradient(to right, black 55%, transparent 96%);
}
.hero-slide-textcol {
  flex: 1;
  text-align: center;
  padding: 0 48px;
}
.hero-slide-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--tone-accent);
  margin-bottom: 18px;
}
.hero-slide-heading {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  color: #201c17;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero-slide-text {
  font-weight: 400;
  font-size: 1rem;
  color: #4a433c;
  max-width: 440px;
  margin: 0 auto 30px;
  line-height: 1.65;
}
.hero-slide-btn {
  display: inline-block;
  background: #211c16;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
}
.hero-slide-btn:hover { background: var(--tone-accent); transform: translateY(-2px); }

/* Carousel controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(32,28,23,0.2);
  background: rgba(255,255,255,0.55);
  color: #211c16;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.hero-arrow:hover { background: rgba(255,255,255,0.9); border-color: var(--gold-dark); }
.hero-arrow--prev { left: 20px; }
.hero-arrow--next { right: 20px; }

.hero-controls {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(32,28,23,0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.hero-dots button.is-active {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  width: 22px;
  border-radius: 5px;
}
.hero-pause {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(32,28,23,0.2);
  background: rgba(255,255,255,0.55);
  color: #211c16;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-pause:hover { border-color: var(--gold-dark); }

/* ============ Nosotros ============ */
.nosotros-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.img-frame {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.img-frame .local-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-frame::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: 1;
}
.nosotros-text p { margin-bottom: 18px; color: var(--text); font-weight: 300; }
.nosotros-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}
.nosotros-list li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
  color: var(--heading);
  font-size: 0.95rem;
}
.nosotros-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ============ Servicios ============ */
.servicios { background: var(--cream-2); }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.servicio-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  padding: 42px 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border-soft);
}
.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.servicio-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
.servicio-card h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.servicio-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 300;
}

.servicio-card--photo {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  border: none;
}
.servicio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,15,0.05) 40%, rgba(23,19,15,0.92) 100%);
}
.servicio-card-content {
  position: relative;
  z-index: 2;
  padding: 0 8px;
}
.servicio-card--photo h3 { color: var(--white); }
.servicio-card--photo p { color: rgba(255,255,255,0.8); }
.servicio-card--photo .servicio-icon {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* ============ Empleo ============ */
.empleo { background: var(--cream-2); }

/* ============ Testimonios ============ */
.testimonios {
  background: linear-gradient(160deg, var(--charcoal), var(--charcoal-2));
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.testimonio-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,134,78,0.25);
  border-radius: var(--radius);
  padding: 34px 28px;
  color: rgba(255,255,255,0.85);
}
.estrellas { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
.testimonio-texto {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 18px;
  line-height: 1.7;
}
.testimonio-autor {
  color: var(--gold-light);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ============ Contacto ============ */
.contacto-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}
.contacto-info .section-sub { margin-bottom: 36px; }
.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.info-icon { font-size: 1.3rem; }
.info-item strong { display: block; margin-bottom: 2px; color: var(--heading); }
.info-item p { color: var(--text-light); font-size: 0.92rem; font-weight: 300; }

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 30px;
}
.social-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 9px 20px;
  border-radius: 999px;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--white); }

.contacto-form {
  background: var(--surface);
  padding: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.reserva-cta-card {
  background: var(--surface);
  padding: 52px 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  text-align: center;
  align-self: center;
}
.reserva-cta-icon { font-size: 2.6rem; margin-bottom: 18px; }
.reserva-cta-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.reserva-cta-card p {
  color: var(--text-light);
  font-weight: 300;
  max-width: 380px;
  margin: 0 auto 30px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--gold-dark);
  font-weight: 500;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--charcoal);
  padding: 60px 0 30px;
  text-align: center;
}
.footer-logo { height: 42px; margin: 0 auto 16px; filter: brightness(1.1); }
.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-social { justify-content: center; }
.footer-social a { color: var(--gold-light); border-color: var(--gold-light); }
.footer-social a:hover { background: var(--gold-light); color: var(--charcoal); }
.footer-copy {
  margin-top: 34px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(217,180,135,0.35);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--gold-light); }
.newsletter-form button {
  background: var(--btn);
  color: var(--white);
  border: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--btn-dark); }
.site-footer .form-status { color: var(--gold-light); margin-bottom: 6px; }

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  background: var(--btn);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
  box-shadow: 0 6px 18px rgba(36,31,26,0.25);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--btn-dark); }

/* ============ WhatsApp floating button ============ */
.whatsapp-float {
  position: fixed;
  bottom: 96px;
  right: 26px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 6px 18px rgba(36,31,26,0.3);
  transition: transform var(--transition), background var(--transition);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { background: #1ebe5b; transform: scale(1.08); }
@media (max-width: 560px) {
  .whatsapp-float { bottom: 82px; right: 18px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nosotros-grid,
  .contacto-grid { grid-template-columns: 1fr; gap: 46px; }
  .nosotros-img { max-width: 360px; margin: 0 auto; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: 1fr; }
  .hero-slide-row { flex-direction: column; }
  .hero-slide-photo {
    flex: 0 0 40%;
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 96%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 96%);
  }
  .hero-slide-textcol { padding: 20px 28px 0; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .servicios-grid { grid-template-columns: 1fr; }
  .contacto-form { padding: 28px 22px; }
  .nosotros-list { grid-template-columns: 1fr; }
  .hero-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
  .hero-arrow--prev { left: 10px; }
  .hero-arrow--next { right: 10px; }
  .hero-controls { bottom: 18px; }
}
