/* ============================================================
   HeraldWeid — Soldadura Estética de Alta Precisión
   Hoja de estilos principal
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Paleta cromática */
  --black:          #080503;
  --dark:           #0e0805;
  --brown-deep:     #1c0f08;
  --brown-dark:     #3a1e0f;
  --brown:          #6b3d28;
  --bronze:         #c4956a;
  --bronze-light:   #d4a87e;
  --beige-dark:     #b89470;
  --beige:          #e8d5b7;
  --sand:           #f5eddb;
  --cream:          #faf7f0;
  --off-white:      #fefcf8;

  /* Semánticos */
  --bg-hero:        var(--dark);
  --bg-dark:        var(--brown-deep);
  --bg-light:       var(--cream);
  --bg-sand:        var(--sand);
  --text-primary:   var(--brown-deep);
  --text-secondary: #6b5447;
  --text-muted:     #a89080;
  --text-light:     var(--off-white);
  --accent:         var(--bronze);
  --accent-hover:   var(--bronze-light);

  /* Tipografía */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espaciado */
  --section-py:    6rem;
  --container-max: 1200px;
  --gap:           1.5rem;

  /* Bordes */
  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 14px;

  /* Transiciones */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   0.2s ease;
  --t-mid:    0.4s ease;
  --t-slow:   0.7s var(--ease);

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow:     0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 16px 56px rgba(0,0,0,0.20);
  --shadow-xl:  0 28px 80px rgba(0,0,0,0.28);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ── Tipografía ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

em {
  font-style: italic;
  color: var(--accent);
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background: var(--bg-dark);
}

.section--sand {
  background: var(--bg-sand);
}

/* ── Etiquetas de sección ─────────────────────────────────────── */
.section__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section__label--light {
  color: var(--bronze-light);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown-deep);
  margin-bottom: 1rem;
}

.section__title--light {
  color: var(--off-white);
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section__subtitle--light {
  color: var(--beige);
}

/* ── Botones ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-mid);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: var(--bronze);
  color: var(--dark);
  border-color: var(--bronze);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--bronze-light);
  border-color: var(--bronze-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,149,106,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(255,255,255,0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--bronze);
  color: var(--bronze);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--brown-deep);
  border-color: var(--brown);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--brown-deep);
  color: var(--off-white);
  border-color: var(--brown-deep);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 0.95rem;
}

.btn--xl {
  padding: 1.1rem 2.8rem;
  font-size: 1rem;
}

.btn__icon {
  flex-shrink: 0;
}

.btn:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 3px;
}

/* ── Navegación ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: background var(--t-mid), box-shadow var(--t-mid), padding var(--t-mid);
}

.nav.scrolled {
  background: rgba(14,8,5,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9rem 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--off-white);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-hex {
  width: 36px;
  height: 42px;
  color: var(--bronze);
  transition: transform var(--t-mid);
}

.nav__logo:hover .nav__logo-hex {
  transform: rotate(30deg);
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--off-white);
}

.nav__logo-text em {
  font-style: italic;
  color: var(--bronze);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(254,252,248,0.8);
  transition: color var(--t-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transition: transform var(--t-mid);
}

.nav__link:hover {
  color: var(--off-white);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: var(--bronze);
  color: var(--dark) !important;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--t-mid);
  flex-shrink: 0;
}

.nav__cta:hover {
  background: var(--bronze-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,149,106,0.4);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background var(--t-fast);
}

.nav__toggle:hover {
  background: rgba(255,255,255,0.1);
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: all var(--t-mid);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  overflow: hidden;
  background: var(--bg-hero);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,149,106,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,149,106,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__bg-lines {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(58,30,15,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(196,149,106,0.08) 0%, transparent 60%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,5,3,0.30) 0%,
    rgba(8,5,3,0.10) 50%,
    rgba(28,15,8,0.50) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  background: rgba(196,149,106,0.1);
  border: 1px solid rgba(196,149,106,0.25);
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 700;
  color: var(--off-white);
  line-height: 1.1;
  margin-bottom: 1.6rem;
  letter-spacing: -0.02em;
}

.hero__title em {
  color: var(--bronze);
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(254,252,248,0.72);
  line-height: 1.8;
  margin-bottom: 2.8rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(196,149,106,0.2);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bronze);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(254,252,248,0.55);
  letter-spacing: 0.04em;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(196,149,106,0.25);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  cursor: pointer;
}

.hero__scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(254,252,248,0.45);
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(196,149,106,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* ── Sobre Nosotros ──────────────────────────────────────────── */
.about {
  background: var(--bg-light);
}

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

.about__text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.about__text strong {
  color: var(--brown-deep);
  font-weight: 600;
}

.about__text em {
  font-style: italic;
}

.about__features {
  margin: 2rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about__feature-icon {
  font-size: 1.1rem;
  color: var(--bronze);
  flex-shrink: 0;
  margin-top: 0.1rem;
  line-height: 1.6;
}

.about__feature strong {
  display: block;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 0.15rem;
}

.about__feature p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}

.about__image-grid {
  position: relative;
}

.about__image-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.about__image-main:hover img {
  transform: scale(1.03);
}

/* Fallback cuando no hay imagen */
.about__image-main img[src$=".jpg"],
.about__image-secondary img[src$=".jpg"] {
  background: linear-gradient(135deg, var(--brown-deep), var(--brown-dark));
  min-height: 200px;
}

.about__badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14,8,5,0.85);
  backdrop-filter: blur(8px);
  color: var(--bronze);
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(196,149,106,0.3);
}

.about__image-secondary {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--off-white);
}

.about__image-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.about__image-secondary:hover img {
  transform: scale(1.05);
}

/* Placeholders para imágenes faltantes */
.about__image-main img[src],
.about__image-secondary img[src] {
  color: transparent;
}

/* ── Servicios ───────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,149,106,0.15);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: all var(--t-mid);
  cursor: default;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,149,106,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-mid);
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(196,149,106,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  outline: none;
}

.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 1;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--bronze);
  margin-bottom: 1.5rem;
  transition: transform var(--t-mid);
}

.service-card:hover .service-card__icon {
  transform: scale(1.1);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--off-white);
  margin-bottom: 0.8rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: rgba(254,252,248,0.6);
  line-height: 1.75;
  flex: 1;
}

.service-card__footer {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(196,149,106,0.12);
}

.service-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bronze);
  transition: color var(--t-fast), gap var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.service-card__link:hover {
  color: var(--bronze-light);
  gap: 0.6rem;
}

/* ── Galería ─────────────────────────────────────────────────── */
.gallery {
  background: var(--cream);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 300px;
  grid-template-areas:
    "i1 i1 i2"
    "i3 i4 i5";
  gap: 10px;
  margin-bottom: 3rem;
}

.g-item-1 { grid-area: i1; }
.g-item-2 { grid-area: i2; }
.g-item-3 { grid-area: i3; }
.g-item-4 { grid-area: i4; }
.g-item-5 { grid-area: i5; }

.g-item-6 {
  grid-column: 1 / -1;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brown-deep), var(--brown-dark));
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,5,3,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t-mid);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.3rem;
}

.gallery__overlay-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--off-white);
  font-weight: 600;
}

.gallery__extra {
  margin-top: 10px;
  overflow: hidden;
  animation: fadeIn 0.5s ease forwards;
}

.gallery__extra[hidden] {
  display: none;
}

.gallery__grid--extra {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.gallery__grid--extra .gallery__item {
  height: 240px;
  grid-area: unset;
}

.gallery__cta {
  text-align: center;
  margin-top: 2rem;
}

.gallery__cta p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.gallery__cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 480px) {
  .gallery__grid--extra {
    grid-template-columns: 1fr;
  }
  .gallery__cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .gallery__cta-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Fallback visual cuando no hay imagen */
.gallery__item img[src$=".jpg"] {
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-dark) 100%);
}

/* ── ¿Por qué elegirnos? ──────────────────────────────────────── */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.why__item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 2rem;
  background: var(--bg-sand);
  transition: background var(--t-mid);
}

.why__item:hover {
  background: rgba(196,149,106,0.06);
}

.why__check {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--brown-deep);
  color: var(--bronze);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.why__content h3 {
  font-size: 1.05rem;
  color: var(--brown-deep);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.why__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Cita / Filosofía ────────────────────────────────────────── */
.quote-section {
  padding: 5rem 0;
}

.quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote__mark {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--bronze);
  opacity: 0.2;
  line-height: 0.6;
  margin-bottom: 1rem;
  display: block;
}

.quote__text {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--beige);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.quote__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--bronze);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.quote__author-line {
  width: 40px;
  height: 1px;
  background: var(--bronze);
  opacity: 0.5;
}

/* ── Llamado a la Acción ─────────────────────────────────────── */
.cta {
  position: relative;
  background: var(--bg-hero);
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,149,106,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,149,106,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(58,30,15,0.4) 0%, transparent 70%);
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--off-white);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.cta__title em {
  color: var(--bronze);
}

.cta__text {
  color: rgba(254,252,248,0.65);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.cta__phone-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(254,252,248,0.55);
  font-size: 0.9rem;
}

.cta__phone {
  color: var(--bronze);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--t-fast);
}

.cta__phone:hover {
  color: var(--bronze-light);
}

.cta__assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 0.8rem;
  color: rgba(196,149,106,0.7);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(196,149,106,0.12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--off-white);
}

.footer__logo-hex {
  width: 34px;
  height: 40px;
  color: var(--bronze);
}

.footer__logo em {
  color: var(--bronze);
}

.footer__tagline {
  font-size: 0.88rem;
  color: rgba(254,252,248,0.45);
  line-height: 1.75;
}

.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.2rem;
  background: rgba(196,149,106,0.1);
  border: 1px solid rgba(196,149,106,0.25);
  border-radius: var(--radius);
  color: var(--bronze);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--t-mid);
  width: fit-content;
}

.footer__whatsapp:hover {
  background: rgba(196,149,106,0.2);
  border-color: var(--bronze);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer__nav ul,
.footer__services ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__nav a {
  font-size: 0.88rem;
  color: rgba(254,252,248,0.5);
  transition: color var(--t-fast);
}

.footer__nav a:hover {
  color: var(--bronze);
}

.footer__services li {
  font-size: 0.88rem;
  color: rgba(254,252,248,0.45);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(254,252,248,0.5);
  font-size: 0.88rem;
}

.footer__contact-item svg {
  color: var(--bronze);
  flex-shrink: 0;
}

.footer__contact-item a {
  color: rgba(254,252,248,0.5);
  transition: color var(--t-fast);
}

.footer__contact-item a:hover {
  color: var(--bronze);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(254,252,248,0.3);
}

.footer__copy strong {
  color: rgba(254,252,248,0.55);
}

.footer__credit {
  font-size: 0.78rem;
  color: rgba(254,252,248,0.2);
  letter-spacing: 0.05em;
}

/* ── Botón flotante WhatsApp ──────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  color: white;
  transition: all var(--t-mid);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.35);
  animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}

.wa-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--off-white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}

.wa-float__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--dark);
}

.wa-float:hover .wa-float__tooltip {
  opacity: 1;
}

/* ── Animaciones Hero ─────────────────────────────────────────── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease) forwards;
}

.animate-fade-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.25s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.4s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.55s; }
.animate-fade-up:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Animaciones de scroll (Reveal) ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal--right {
  transform: translateX(32px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Delays escalonados para grids */
.services__grid .reveal:nth-child(2),
.why__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services__grid .reveal:nth-child(3),
.why__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services__grid .reveal:nth-child(4),
.why__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services__grid .reveal:nth-child(5),
.why__grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.services__grid .reveal:nth-child(6),
.why__grid .reveal:nth-child(6) { transition-delay: 0.40s; }
.why__grid .reveal:nth-child(7) { transition-delay: 0.48s; }
.why__grid .reveal:nth-child(8) { transition-delay: 0.56s; }

.gallery__grid .g-item-2 { transition-delay: 0.06s; }
.gallery__grid .g-item-3 { transition-delay: 0.12s; }
.gallery__grid .g-item-4 { transition-delay: 0.18s; }
.gallery__grid .g-item-5 { transition-delay: 0.24s; }
.gallery__grid .g-item-6 { transition-delay: 0.30s; }

/* ── Accesibilidad ───────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 3px;
}

.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;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--bronze);
  color: var(--dark);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0s;
}

.skip-link:focus {
  top: 0;
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive — Tablet ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 5rem; }

  .about__grid { gap: 3rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__visual {
    order: -1;
  }

  .about__image-secondary {
    right: -1rem;
    bottom: -1.5rem;
    width: 150px;
    height: 150px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 220px 220px 180px;
    grid-template-areas:
      "i1 i1"
      "i2 i3"
      "i4 i5";
  }

  .g-item-6 { grid-column: 1 / -1; height: 180px; }
}

/* ── Responsive — Móvil ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-py: 4rem; }

  /* Nav mobile */
  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 10;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8,5,3,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-mid);
    backdrop-filter: blur(16px);
  }

  .nav__menu.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.3rem;
    color: var(--off-white);
  }

  .nav__cta {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }

  /* Hero */
  .hero__stats {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__stat-divider { display: none; }

  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero__stat:last-child {
    grid-column: 1 / -1;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .g-item-1, .g-item-2, .g-item-3,
  .g-item-4, .g-item-5, .g-item-6 {
    grid-area: unset;
    height: 240px;
  }

  .g-item-5 { height: 240px; }

  /* Why */
  .why__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Float button */
  .wa-float {
    bottom: 1.2rem;
    right: 1.2rem;
  }

  .hero__scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn--lg, .btn--xl {
    width: 100%;
    justify-content: center;
  }

  .cta__assurance {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero__stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero__stat-divider { display: none; }
}
