/* ============================================================
   MOISÉS REYES FOTOGRAFÍA — style.css
   ============================================================ */

/* ---- Variables & Reset ---- */
:root {
  --cream:      #faf9f7;
  --cream-dark: #f0ece4;
  --gold:       #b8965a;
  --gold-light: #d4b07a;
  --dark:       #2c2c2c;
  --text:       #4a4a4a;
  --text-light: #8a8a8a;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Montserrat', sans-serif;
  --ease:       0.4s ease;
  --header-h:   80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

em { font-style: italic; }

p { line-height: 1.8; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* ---- Layout ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section        { padding: 7rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-top: 0.3rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
  border: none;
}

.btn--light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.75);
}
.btn--light:hover { background: #fff; color: var(--dark); }

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

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

.btn--sm {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: all var(--ease);
  margin-top: 1.25rem;
  cursor: pointer;
}
.btn--sm:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background var(--ease), box-shadow var(--ease);
}

#header.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 24px rgba(0,0,0,0.07);
}

/* Logo */
.logo-link { display: flex; align-items: center; }
.logo-img  { width: 232px; height: auto; }

/* Over dark hero: invert logo to white */
.logo-img                   { filter: brightness(0) invert(1); transition: filter var(--ease); }
#header.scrolled .logo-img  { filter: none; }

/* Desktop nav */
.main-nav { display: flex; gap: 2.5rem; }
.main-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--ease);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover         { color: #fff; }

#header.scrolled .main-nav a       { color: var(--text); }
#header.scrolled .main-nav a:hover { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: background var(--ease);
}
#header.scrolled .nav-toggle span { background: var(--dark); }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: #fff;
  font-weight: 300;
  transition: color var(--ease);
}
.mobile-nav a:hover { color: var(--gold-light); }

.nav-close {
  position: absolute;
  top: 1.75rem; right: 2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--ease);
}
.nav-close:hover { color: #fff; }

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.3s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: kenBurns 8s ease-in-out forwards;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  color: #fff;
  font-weight: 300;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
  margin-bottom: 2.25rem;
}
.hero-content h1 em { display: block; }

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  padding: 0;
}
.hero-dot.active { background: #fff; transform: scale(1.4); }

.hero-scroll {
  position: absolute;
  bottom: 2rem; right: 2rem;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease);
}
.hero-scroll:hover { background: rgba(255,255,255,0.15); }

/* ============================================================
   ABOUT
   ============================================================ */
.section--about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
  aspect-ratio: 4/5;
}

.about-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 85%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
}

.about-portrait {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 62%;
  height: 78%;
  object-fit: cover;
  object-position: center top;
  border: 6px solid var(--cream);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.about-firma {
  display: block;
  width: 110px;
  height: auto;
  margin-top: 1.75rem;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.about-text h2      { margin-bottom: 1.25rem; }
.about-text .lead   { margin-bottom: 1rem; }
.about-text p       { color: var(--text-light); }
.about-text .btn    { margin-top: 1.5rem; }

/* ============================================================
   PILLARS
   ============================================================ */
.section--pillars {
  background: var(--dark);
  padding: 6rem 0 5rem;
}

.pillars-header {
  text-align: center;
  margin-bottom: 4rem;
}

.eyebrow--light {
  color: var(--gold-light);
  opacity: 0.8;
}

.pillars-title {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-top: 0.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.pillar {
  padding: 3rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.pillar:last-child { border-right: none; }

.pillar-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1.25rem;
  transition: opacity 0.4s ease;
}

.pillar:hover .pillar-num {
  opacity: 0.55;
}

.pillar h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.pillar p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin: 0;
}

.pillar::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 1.5rem auto 0;
}

/* ============================================================
   CAROUSEL
   ============================================================ */
/* ===== PORTFOLIO STRIP (AlbaRose style) ===== */
.section--portfolio-strip {
  background: var(--cream);
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.strip-outer {
  position: relative;
  margin-top: 3rem;
  width: 100%;
  padding: 0 77px;
  box-sizing: border-box;
}

.strip-wrap {
  width: 100%;
  overflow: hidden;
}

@media (max-width: 899px) {
  .strip-outer { padding: 0 32px; }
}
@media (max-width: 599px) {
  .strip-outer { padding: 0 16px; }
}

.strip-track {
  display: flex;
  gap: 12px;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.strip-slide {
  flex: 0 0 calc((100vw - 154px - 24px) / 3);
  aspect-ratio: 2/3;
  overflow: hidden;
}

@media (max-width: 899px) {
  .strip-slide {
    flex: 0 0 calc((100vw - 64px - 12px) / 2);
  }
}
@media (max-width: 599px) {
  .strip-slide {
    flex: 0 0 calc(100vw - 32px);
  }
}

.strip-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.strip-slide:hover img {
  transform: scale(1.03);
}

.strip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: background var(--ease), transform var(--ease);
  z-index: 1000;
}
.strip-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.strip-btn--prev { left: 1.5rem; }
.strip-btn--next { right: 1.5rem; }

.strip-cta {
  text-align: center;
  margin-top: 3rem;
}

.section--carousel,
.section--portfolio-carousel {
  background: var(--cream-dark);
  overflow: hidden;
  padding: 6rem 0 5rem;
}

.carousel-outer {
  position: relative;
  margin-top: 2rem;
}

/* The clipping container — MUST be overflow:hidden */
.carousel-wrap {
  overflow: hidden;
  width: 100%;
}

/* The sliding rail */
.carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Individual slide */
.carousel-slide {
  flex-shrink: 0;
  flex-grow: 0;
  /* width is set in pixels by JS — avoids percentage-of-parent ambiguity */
  height: 72vh;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}

.carousel-slide--tall {
  height: 82vh;
  min-height: 480px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Caption overlay on home carousel slides */
.carousel-slide__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 4rem 2.5rem 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.68));
  color: #fff;
}
.carousel-slide__caption h3 {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 300;
  margin-bottom: 0.3rem;
}
.carousel-slide__caption span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* Prev / Next arrows */
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--dark);
  transition: background var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn--prev { left: 1.5rem; }
.carousel-btn--next { right: 1.5rem; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 1.5rem 0 0;
}
.c-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all var(--ease);
  padding: 0;
}
.c-dot.active { background: var(--gold); transform: scale(1.3); }

/* ============================================================
   SERVICES
   ============================================================ */
.section--services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 2.5rem 1.75rem;
  border: 1px solid var(--cream-dark);
  background: #fff;
  text-align: center;
  transition: border-color var(--ease), transform var(--ease);
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.service-card--featured {
  background: var(--dark);
  border-color: var(--dark);
  color: rgba(255,255,255,0.75);
}
.service-card--featured h3 { color: var(--gold-light); }
.service-card--featured .service-price span { color: var(--gold-light); }
.service-card--featured ul li { color: rgba(255,255,255,0.65); border-bottom-color: rgba(255,255,255,0.06); }
.service-card--featured li::before { color: var(--gold-light) !important; }
.service-card--featured .btn--sm { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.3); }
.service-card--featured .btn--sm:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.service-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
}

.service-card h3 { margin-bottom: 1.25rem; font-size: 1.5rem; }

.service-price { margin: 0 0 1.5rem; }
.service-price span {
  font-size: 2rem;
  font-family: var(--serif);
  color: var(--gold);
}
.service-price small {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-left: 0.25rem;
}

.service-card ul {
  list-style: none;
  text-align: left;
}
.service-card ul li {
  padding: 0.45rem 0;
  font-size: 0.83rem;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.service-card ul li::before { content: '— '; color: var(--gold); }

/* ============================================================
   CTA
   ============================================================ */
.section--cta {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  padding: 7rem 2rem;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.cta-content h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
}
.cta-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}

/* ============================================================
   GALLERY GRID (portfolio page)
   ============================================================ */
.section--gallery {
  background: var(--cream);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.75rem;
}

.gallery-card {
  display: block;
  cursor: pointer;
}

.gallery-card__img {
  aspect-ratio: 2/3;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.gallery-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s ease;
}
.gallery-card:hover .gallery-card__img img { transform: scale(1.05); }

.gallery-card__info { padding: 0 0.2rem; }
.gallery-card__info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--dark);
  transition: color var(--ease);
}
.gallery-card:hover .gallery-card__info h3 { color: var(--gold); }

.gallery-card__info p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0.4rem 0 0;
}

@media (max-width: 899px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
}
@media (max-width: 599px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HERO (portfolio page)
   ============================================================ */
.page-hero {
  position: relative;
  height: calc(50vh + var(--header-h));
  min-height: calc(340px + var(--header-h));
  margin-top: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.page-hero-content .eyebrow { color: rgba(255,255,255,0.65); }
.page-hero-content h1 { color: #fff; font-weight: 300; margin-top: 0.25rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1e1e1e;
  color: rgba(255,255,255,0.6);
  padding: 5.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-gold-bar {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.footer-logo {
  width: 232px;
  height: auto;
  margin-bottom: 1rem;
  /* Logo negro transparente → invertido a blanco para el footer oscuro */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65) !important;
  margin-bottom: 0.6rem !important;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(255,255,255,0.35);
}

.footer h4 {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-links a,
.footer-contact a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.65rem;
  transition: color var(--ease);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gold);
  transition: border-color var(--ease), background var(--ease);
}
.footer-social a:hover {
  border-color: var(--gold);
  background: rgba(184,150,90,0.12);
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  margin: 0;
  letter-spacing: 0.06em;
}
.footer-privacy {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-privacy:hover { color: var(--gold-light); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: #fff;
  border: none;
  outline: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}

/* --- Widget JoinChat style --- */
.wa-widget-wrap {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

/* QR panel (encima del chat, desktop) */
.wa-qr-panel {
  background: var(--cream);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  text-align: center;
  width: 200px;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.wa-qr-panel.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-qr-panel p {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.wa-qr-code-wrap {
  background: #fff;
  border-radius: 6px;
  padding: 0.5rem;
  display: inline-block;
}

/* Chat widget */
.wa-chat {
  width: 290px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.wa-chat.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-chat-header {
  background: #1f2e1f;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.wa-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.wa-chat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wa-chat-name {
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-chat-sub {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.1rem;
}
.wa-chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1.05rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.wa-chat-close:hover { color: #fff; }
.wa-chat-body {
  padding: 1rem 1rem 1.2rem;
  background: #ece5dd;
}
.wa-chat-msg {
  background: #fff;
  border-radius: 0 8px 8px 8px;
  padding: 0.65rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: #2c2c2c;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.wa-chat-msg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -7px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 7px 7px 0;
  border-color: transparent #fff transparent transparent;
}
.wa-chat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wa-chat-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s ease;
  padding: 0;
}
.wa-chat-btn:hover { background: #1ebe5d; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid   { grid-template-columns: repeat(2, 1fr); }
  .pillar         { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .pillar:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 65px; }

  .strip-btn { display: none; }

  #hero {
    height: 65vh;
    min-height: 400px;
  }
  .hero-slide {
    background-position: center 25%;
  }

  .main-nav   { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 5rem 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image { aspect-ratio: 4/5; }

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

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .carousel-btn { width: 40px; height: 40px; font-size: 0.95rem; }
  .carousel-btn--prev { left: 0.75rem; }
  .carousel-btn--next { right: 0.75rem; }

  .section--cta { background-attachment: scroll; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .container    { padding: 0 1.25rem; }

  .carousel-btn--prev { left: 0.5rem; }
  .carousel-btn--next { right: 0.5rem; }

  .carousel-slide         { height: 60vw; min-height: 280px; }
  .carousel-slide--tall   { height: 70vw; min-height: 320px; }
}
