/* =========================================================
   BR REMODELING LLC — Landing Premium
   Paleta: Carbón profundo + Ámbar/Cobre + Crema
   ========================================================= */

:root {
  --navy:        #0d1b2a;
  --navy-700:    #122740;
  --navy-600:    #1b3a5c;
  /* Dorado muestreado del logotipo oficial (#efc660) */
  --amber:       #efc660;
  --amber-600:   #c69a3a;
  --copper:      #d1a03f;
  --cream:       #fbf7f0;
  --cream-200:   #f3ece0;
  --ink:         #15202b;
  --muted:       #5d6b7a;
  --line:        #e7ddcf;
  --white:       #ffffff;
  --wa:          #25d366;

  --grad-accent: linear-gradient(135deg, #f7dc9c 0%, #efc660 48%, #d1a03f 100%);
  --grad-dark:   linear-gradient(160deg, #0d1b2a 0%, #122740 60%, #1b3a5c 100%);

  --shadow-sm:   0 4px 14px rgba(13,27,42,.08);
  --shadow-md:   0 14px 40px rgba(13,27,42,.12);
  --shadow-lg:   0 30px 70px rgba(13,27,42,.22);
  --shadow-amber:0 14px 40px rgba(239,198,96,.35);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* Safari iOS ignora overflow-x en <body> si <html> no lo declara:
     sin esto la página se arrastra de lado y deja franjas sin fondo. */
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
section { position: relative; }

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

/* ---------- UTILIDADES ---------- */
.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--amber-600);
  padding: 7px 16px; border-radius: 100px;
  background: rgba(239,198,96,.12);
  border: 1px solid rgba(239,198,96,.25);
}
.eyebrow--light { color: var(--amber); background: rgba(239,198,96,.14); }
.eyebrow i { font-size: 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .85rem; font-weight: 600;
  color: var(--cream);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 9px 18px; border-radius: 100px;
  backdrop-filter: blur(6px);
}
.badge i { color: var(--amber); }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space: nowrap;
}
.btn i { font-size: 1.15em; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:hover { transform: translateY(-3px); }

.btn--accent { background: var(--grad-accent); color: #2a1500; box-shadow: var(--shadow-amber); font-weight: 700; }
.btn--accent:hover { box-shadow: 0 20px 50px rgba(239,198,96,.5); }
.btn--ghost { background: rgba(255,255,255,.08); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--dark { background: var(--navy); color: var(--white); box-shadow: var(--shadow-md); }
.btn--dark:hover { background: var(--navy-700); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); box-shadow: var(--shadow-md); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 14px 40px rgba(37,211,102,.4); }

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.82);
  font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__inner { display: flex; gap: 26px; align-items: center; justify-content: center; padding: 9px 24px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item i { color: var(--amber); }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,240,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.header.scrolled { background: rgba(251,247,240,.96); box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--grad-accent); border-radius: 13px; color: #2a1500;
  font-size: 1.5rem; box-shadow: var(--shadow-amber);
}
.brand__text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); line-height: 1; display:flex; flex-direction:column; }
.brand__text strong { font-weight: 800; }
.brand__text small { font-size: .62rem; letter-spacing: .35em; color: var(--amber-600); font-weight: 700; margin-top: 2px; }
.brand--light .brand__text { color: var(--white); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy-700);
  padding: 9px 15px; border-radius: 100px; position: relative; transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--amber-600); background: rgba(239,198,96,.1); }
.nav__cta { margin-left: 10px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 4px; transition: .3s; }
.nav__toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; color: var(--white); padding: 90px 0 70px; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1600&q=80") center/cover no-repeat;
  transform: scale(1.08); animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.18); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13,27,42,.95) 0%, rgba(13,27,42,.82) 45%, rgba(13,27,42,.55) 100%); }
.hero__grid-lines {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(circle at 70% 50%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .85fr; gap: 50px; align-items: center; }

.hero__title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; margin: 22px 0 18px; }
.hero__subtitle { font-size: clamp(1rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.85); max-width: 600px; margin-bottom: 32px; }
.hero__subtitle strong { color: var(--white); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__trust { display: flex; gap: 24px; flex-wrap: wrap; }
.trust__item { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.85); }
.trust__item i { color: var(--amber); font-size: 1.25rem; }

.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); border-radius: var(--r-md); padding: 26px 22px; text-align: center;
  transition: transform .4s var(--ease), background .3s;
}
.stat-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.stat-card--accent { background: var(--grad-accent); border-color: transparent; color: #2a1500; }
.stat-card__num { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.stat-card__plus { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--amber); }
.stat-card--accent .stat-card__plus { color: #2a1500; }
.stat-card__label { display: block; font-size: .82rem; margin-top: 8px; color: rgba(255,255,255,.78); font-weight: 500; }
.stat-card--accent .stat-card__label { color: rgba(42,21,0,.8); }


/* ---------- MARQUEE ---------- */
.marquee { background: var(--navy); padding: 18px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: scroll 32s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.55); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.marquee__track i { color: var(--amber); font-size: 1.3rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECTION BASE ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--cream-200); }
.section--dark { background: var(--grad-dark); color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--navy); font-weight: 800; }
.section--dark .section__title, .section__head--light .section__title { color: var(--white); }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.section--dark .section__lead, .section__head--light .section__lead { color: rgba(255,255,255,.75); }

/* ---------- SERVICIOS ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 26px; position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(239,198,96,.16), rgba(166,124,26,.12));
  color: var(--amber-600); font-size: 2rem; margin-bottom: 20px;
  transition: transform .45s var(--ease);
}
.service-card:hover .service-card__icon { transform: scale(1.08) rotate(-5deg); }
.service-card h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .94rem; }
.service-card__tag {
  position: absolute; top: 20px; right: 20px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #2a1500;
  background: var(--grad-accent); padding: 5px 11px; border-radius: 100px;
}
.service-card--cta { background: var(--grad-dark); color: var(--white); border-color: transparent; }
.service-card--cta h3 { color: var(--white); }
.service-card--cta p { color: rgba(255,255,255,.78); }
.service-card--cta .service-card__icon { background: rgba(239,198,96,.2); color: var(--amber); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--amber); font-family: var(--font-head); font-weight: 600; transition: gap .3s; }
.link-arrow:hover { gap: 14px; }

/* ---------- NOSOTROS ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about__media { position: relative; min-height: 480px; }
.about__img { border-radius: var(--r-lg); background-size: cover; background-position: center; box-shadow: var(--shadow-lg); }
.about__img--main { position: absolute; inset: 0 30% 18% 0; background-image: url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=900&q=80"); }
.about__img--sub { position: absolute; right: 0; bottom: 0; width: 58%; height: 56%; border: 6px solid var(--cream-200); background-image: url("https://images.unsplash.com/photo-1556909212-d5b604d0c90d?w=700&q=80"); }
.about__badge {
  position: absolute; top: 18px; right: 8px; z-index: 3;
  background: var(--grad-accent); color: #2a1500; border-radius: var(--r-md);
  padding: 16px 20px; text-align: center; box-shadow: var(--shadow-amber); max-width: 150px;
}
.about__badge-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1; display: block; }
.about__badge-label { font-size: .76rem; font-weight: 600; line-height: 1.2; }

.about__content .eyebrow { margin-bottom: 18px; }
.about__content > p { color: var(--muted); margin: 18px 0 24px; font-size: 1.05rem; }
.about__list { display: grid; gap: 14px; margin-bottom: 32px; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.about__list i { color: var(--amber-600); font-size: 1.35rem; flex-shrink: 0; margin-top: 1px; }
.about__list strong { color: var(--navy); }
.about__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- PROCESO ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px 26px 30px; position: relative; text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.step__num { position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: rgba(13,27,42,.07); }
.step__icon { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-dark); color: var(--amber); font-size: 2.1rem; box-shadow: var(--shadow-md); }
.step h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- GALERÍA ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 18px; grid-auto-flow: dense; }
.gallery__item { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-md); }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 22px 20px;
  background: linear-gradient(transparent, rgba(13,27,42,.92)); color: var(--white);
  transform: translateY(8px); opacity: .92; transition: transform .4s var(--ease), opacity .4s;
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery__cat { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #2a1500; background: var(--amber); padding: 4px 10px; border-radius: 100px; margin-bottom: 8px; }
.gallery__item figcaption h3 { font-size: 1.15rem; }
.gallery__cta { text-align: center; margin-top: 44px; }
.gallery__cta p { color: rgba(255,255,255,.8); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 9px; }
.gallery__cta p i { color: var(--amber); font-size: 1.3rem; }
.gallery__item:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.gallery__zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; color: #2a1500; background: var(--amber);
  box-shadow: var(--shadow-sm); font-size: 1.05rem;
  opacity: 0; transform: scale(.7); transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: scale(1); }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 999; display: none; }
.lightbox.open { display: block; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(6,13,21,.94); backdrop-filter: blur(6px); animation: lbFade .25s var(--ease); }
.lightbox__figure {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 72px 76px;
  animation: lbZoom .3s var(--ease);
}
.lightbox__img {
  max-width: 100%; max-height: calc(100vh - 190px);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.lightbox__caption { text-align: center; color: var(--white); max-width: 720px; }
.lightbox__caption h3 { font-size: 1.35rem; }
.lightbox__counter { display: block; margin-top: 8px; font-size: .85rem; color: rgba(255,255,255,.6); letter-spacing: .05em; }
.lightbox__btn {
  position: absolute; z-index: 2; border: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white); font-size: 1.4rem;
  backdrop-filter: blur(4px); transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox__btn:hover { background: var(--amber); color: #2a1500; transform: scale(1.08); }
.lightbox__btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.lightbox__close { top: 20px; right: 20px; width: 48px; height: 48px; }
.lightbox__nav { top: 50%; margin-top: -28px; width: 56px; height: 56px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
body.lb-open { overflow: hidden; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 640px) {
  .lightbox__figure { padding: 66px 14px 88px; }
  .lightbox__img { max-height: calc(100vh - 230px); }
  .lightbox__nav { top: auto; bottom: 18px; margin-top: 0; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: calc(50% - 62px); }
  .lightbox__nav--next { right: calc(50% - 62px); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox__backdrop, .lightbox__figure { animation: none; }
}

/* ---------- RESEÑAS ---------- */
.rating-summary { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 20px; color: var(--muted); flex-wrap: wrap; }
.rating-summary strong { color: var(--navy); }
.stars { display: inline-flex; gap: 3px; color: var(--amber); font-size: 1.15rem; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; position: relative; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.testimonial:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.testimonial .stars { margin-bottom: 16px; }
.testimonial p { color: var(--ink); font-size: 1.02rem; font-style: italic; margin-bottom: 22px; }
.testimonial footer { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-dark); color: var(--amber); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.testimonial footer strong { display: block; color: var(--navy); font-family: var(--font-head); }
.testimonial footer small { color: var(--muted); }
.testimonial__src { margin-left: auto; color: #4285F4; font-size: 1.5rem; }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--grad-accent); padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 40%); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #2a1500; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta-band p { color: rgba(42,21,0,.85); font-size: 1.1rem; margin-top: 6px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- CONTACTO ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact__info .eyebrow { margin-bottom: 18px; }
.contact__info > p { color: var(--muted); margin: 16px 0 28px; font-size: 1.05rem; }
.contact__list { display: grid; gap: 14px; margin-bottom: 28px; }
.contact__list a, .contact__static { display: flex; align-items: center; gap: 15px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .3s, box-shadow .3s; }
.contact__list a:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.contact__ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--grad-dark); color: var(--amber); font-size: 1.4rem; }
.contact__ic--wa { background: var(--wa); color: #fff; }
.contact__list small, .contact__static small { color: var(--muted); font-size: .8rem; }
.contact__list strong, .contact__static strong { display: block; color: var(--navy); font-family: var(--font-head); }
.contact__social { display: flex; align-items: center; gap: 12px; }
.contact__social span { font-weight: 600; color: var(--navy); }
.contact__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-size: 1.2rem; transition: transform .3s, background .3s; }
.contact__social a:hover { transform: translateY(-4px); background: var(--amber-600); }

/* ---------- FORM ---------- */
.contact__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 38px 34px; box-shadow: var(--shadow-lg); }
.form__title { color: var(--navy); font-size: 1.35rem; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.form__title i { color: var(--amber-600); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: var(--cream);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: #fff; box-shadow: 0 0 0 4px rgba(239,198,96,.15); }
.field textarea { resize: vertical; }
.form__note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.form__success { display: none; margin-top: 14px; text-align: center; color: #0a7d3c; background: rgba(37,211,102,.12); padding: 12px; border-radius: var(--r-sm); font-weight: 600; }
.form__success.show { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- MAPA ---------- */
.map { height: 440px; filter: grayscale(.15); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__col p { margin: 18px 0; font-size: .92rem; max-width: 320px; }
.footer__col h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.footer__col ul li { margin-bottom: 11px; }
.footer__col ul a { font-size: .92rem; transition: color .25s, padding .25s; }
.footer__col ul a:hover { color: var(--amber); padding-left: 5px; }
.footer__contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: .92rem; }
.footer__contact i { color: var(--amber); }
.footer__social { display: flex; gap: 11px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--white); font-size: 1.15rem; transition: transform .3s, background .3s; }
.footer__social a:hover { transform: translateY(-4px); background: var(--amber-600); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- BOTONES FLOTANTES ---------- */
.float-actions { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 14px; }
.float-btn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.7rem; box-shadow: var(--shadow-lg); position: relative; transition: transform .3s; }
.float-btn:hover { transform: scale(1.1); }
.float-btn--wa { background: var(--wa); }
.float-btn--call { background: var(--grad-accent); color: #2a1500; }
.float-btn__pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2s infinite; z-index: -1; }
@keyframes pulse { 0%{ transform: scale(1); opacity: .7;} 100%{ transform: scale(1.8); opacity: 0;} }

/* ---------- REVEAL ANIMATION ---------- */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__stats { max-width: 520px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 560px; }
  .testimonials { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item--lg { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 760px) {
  .topbar__hide { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80%, 320px); flex-direction: column;
    align-items: stretch; justify-content: flex-start; gap: 6px; padding: 90px 24px 30px;
    background: #0a0a0a; box-shadow: var(--shadow-lg); transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 99;
  }
  .nav.open { transform: translateX(0); }
  .nav__link { padding: 14px 18px; font-size: 1.05rem; }
  .nav__cta { margin: 10px 0 0; }
  .nav__toggle { display: flex; z-index: 100; }

  .section { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__trust { gap: 14px; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery__item--lg, .gallery__item--wide { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }
}

@media (max-width: 460px) {
  .hero__stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
}

/* ---------- LOGO IMAGEN / IDIOMA / HEADER MOBILE ---------- */
.brand__logo-img { height: 48px; width: auto; max-width: 210px; object-fit: contain; display: block; }
.brand--light .brand__logo-img { filter: brightness(0) invert(1); }

/* ===== LOGO PRINCIPAL (HEADER): más grande + efecto sorpresa ===== */
.header .brand {
  position: relative;
  overflow: visible;
  isolation: isolate;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.header .brand__logo-img {
  height: 72px;
  max-width: 300px;
  transform-origin: left center;
  will-change: transform, filter;
  transition: height .35s ease;
  /* entrada al cargar + flotación e iluminación en bucle */
  animation:
    logoIntro 1.05s cubic-bezier(.22,1.4,.36,1) both,
    logoFloat 4.2s ease-in-out 1.1s infinite,
    logoGlow  4.2s ease-in-out 1.1s infinite;
}

/* El header encoge un poco al hacer scroll -> el logo también, con suavidad */
.header.scrolled .brand__logo-img { height: 58px; }

/* Brillo/destello diagonal que cruza el logo cada cierto tiempo */
.header .brand::after {
  content: "";
  position: absolute;
  inset: -8px -14px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 35%,
    rgba(255,255,255,.0) 44%,
    rgba(255,255,255,.85) 50%,
    rgba(255,210,120,.55) 53%,
    transparent 62%);
  background-size: 280% 100%;
  background-position: 180% 0;
  mix-blend-mode: screen;
  opacity: 0;
  animation: logoShine 5.2s ease-in-out 1.6s infinite;
}

/* Hover: salta, se agranda y se ilumina en ámbar */
.header .brand:hover { transform: translateY(-2px); }
.header .brand:hover .brand__logo-img {
  animation: logoWiggle .6s cubic-bezier(.36,.07,.19,.97) both;
  filter: drop-shadow(0 6px 16px rgba(214,140,30,.45)) saturate(1.12);
}

@keyframes logoIntro {
  0%   { opacity: 0; transform: scale(.55) translateY(-16px) rotate(-7deg); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(0); }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-5px) rotate(-.6deg); }
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 2px 5px rgba(20,30,55,.10)); }
  50%      { filter: drop-shadow(0 6px 14px rgba(214,140,30,.32)); }
}
@keyframes logoShine {
  0%   { background-position: 180% 0; opacity: 0; }
  8%   { opacity: 1; }
  22%  { background-position: -120% 0; opacity: 1; }
  30%  { opacity: 0; }
  100% { background-position: -120% 0; opacity: 0; }
}
@keyframes logoWiggle {
  0%   { transform: scale(1) rotate(0); }
  25%  { transform: scale(1.08) rotate(2.5deg); }
  50%  { transform: scale(1.06) rotate(-2deg); }
  75%  { transform: scale(1.07) rotate(1.2deg); }
  100% { transform: scale(1.06) rotate(0); }
}

/* --- Mismo efecto para el logo de respaldo (ícono + texto), por si aún no
      se ha subido una imagen de logo desde el panel --- */
.header .brand__mark {
  width: 60px; height: 60px; font-size: 2rem; border-radius: 16px;
  transform-origin: center;
  will-change: transform, box-shadow;
  animation:
    logoIntro 1.05s cubic-bezier(.22,1.4,.36,1) both,
    logoFloat 4.2s ease-in-out 1.1s infinite;
  transition: width .35s ease, height .35s ease, box-shadow .3s ease;
}
.header .brand__text { font-size: 1.5rem; }
.header.scrolled .brand__mark { width: 48px; height: 48px; font-size: 1.55rem; }
.header .brand:hover .brand__mark {
  animation: logoWiggle .6s cubic-bezier(.36,.07,.19,.97) both;
  box-shadow: 0 8px 22px rgba(214,140,30,.55);
}

/* En móvil el logo crece respecto al original pero sin pasarse */
@media (max-width: 760px) {
  .header .brand__logo-img { height: 56px; max-width: 220px; }
  .header.scrolled .brand__logo-img { height: 48px; }
  .header .brand__mark { width: 50px; height: 50px; font-size: 1.7rem; }
  .header .brand__text { font-size: 1.25rem; }
}

.nav__lang {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  color: var(--navy); border: 1.5px solid var(--line); border-radius: 100px;
  padding: 8px 14px; transition: background .25s, color .25s, border-color .25s;
}
.nav__lang:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.nav__lang i { font-size: 1.1em; }

.header__mobile { display: none; align-items: center; gap: 10px; }
.nav__lang--mobile { padding: 7px 12px; font-size: .8rem; }

@media (max-width: 760px) {
  .header__mobile { display: flex; }
}

/* Accesibilidad: respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   HEADER NEGRO (barra del logo + menú) — solicitado por la clienta
   El logo dorado y los enlaces claros resaltan sobre negro.
   ========================================================= */
.header { background: #0a0a0a; border-bottom: 1px solid rgba(255,255,255,.08); }
.header.scrolled { background: #000; box-shadow: 0 6px 24px rgba(0,0,0,.55); border-color: rgba(255,255,255,.12); }
.header .nav__link { color: #f3ece0; }
.header .nav__link:hover { color: var(--amber); background: rgba(239,198,96,.16); }
.header .nav__lang { color: #f3ece0; border-color: rgba(255,255,255,.28); }
.header .nav__lang:hover { background: var(--amber); color: #2a1500; border-color: transparent; }
.header .nav__toggle span { background: #f3ece0; }

/* =========================================================
   MENÚ MÓVIL — panel lateral a pantalla completa
   El header usa backdrop-filter, lo que lo convierte en bloque
   contenedor de sus hijos position:fixed. En móvil se desactiva
   para que el panel se mida contra el viewport.
   ========================================================= */
/* Footer: la lista completa de servicios en 2 columnas para que no se alargue */
.footer__col--services { grid-column: span 1; }
.footer__services { columns: 2; column-gap: 22px; }
.footer__services li { break-inside: avoid; }
@media (max-width: 980px) { .footer__services { columns: 2; } }

.nav-overlay { display: none; }

@media (max-width: 760px) {
  .header,
  .header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0a0a0a;
    /* el header crea contexto de apilamiento: debe ir sobre el overlay
       para que el panel (su hijo) no quede oscurecido ni bloqueado */
    z-index: 120;
  }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    height: 100vh; height: 100dvh;
    width: min(82%, 330px);
    padding: 120px 22px calc(30px + env(safe-area-inset-bottom));
    background: #0a0a0a;
    box-shadow: -18px 0 50px rgba(0,0,0,.55);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    z-index: 120;
  }
  .nav.open { visibility: visible; }

  .nav__link {
    color: #f3ece0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-radius: 0;
  }
  .nav .nav__lang { justify-content: center; margin-top: 14px; }
  .nav__cta { justify-content: center; margin-top: 16px; }
  .nav__toggle { z-index: 130; }

  .nav-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0; pointer-events: none;
    transition: opacity .35s var(--ease);
    z-index: 110;
  }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }

  body.nav-open { overflow: hidden; }
}
