/* ───────────────────────────────────────────
   SAJEK & CONSTRUCCION — styles.css (LIGHT)
─────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #B8860B;
  --gold-light: #D4A830;
  --gold-soft: #F5E6B8;
  --white: #FFFFFF;
  --bg: #FAFAF8;
  --bg2: #F2EDE0;
  --bg3: #EDE5CE;
  --text: #1A1200;
  --text-muted: #6B5A3A;
  --green: #25D366;
  --radius: 12px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAVEGACIÓN ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; transition: all 0.3s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 2px;
  color: var(--gold); text-decoration: none;
}
.logo span { color: var(--text); }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold); color: #fff;
  padding: 0.5rem 1.25rem; border-radius: 6px;
  font-weight: 600; font-size: 0.875rem;
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 5% 60px; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(250, 245, 230, 0.55), rgba(245, 235, 210, 0.65)),
    url('https://images.unsplash.com/photo-1541123437800-1bb1317badc2?w=1600&q=80') center/cover no-repeat;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,134,11,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,134,11,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,11,0.12) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }

.hero-tag {
  display: inline-block;
  background: rgba(184,134,11,0.12);
  border: 1px solid rgba(184,134,11,0.35);
  color: var(--gold);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95; letter-spacing: 3px;
  color: var(--text);
  animation: fadeUp 0.8s 0.1s ease both;
  max-width: 900px; margin: 0 auto;
  text-shadow: 0 2px 12px rgba(255,255,255,0.8);
}
.hero h1 span {
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(184,134,11,0.3);
}

.hero p {
  font-size: 1.250rem; color: #1A1200;
  max-width: 520px; line-height: 1.7;
  margin: 1.5rem auto 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 4rem;
  flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.8s 0.4s ease both;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem; color: var(--gold);
  letter-spacing: 2px; line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 0.25rem;
}

/* ── BOTONES GLOBALES ── */
.btn-primary {
  background: var(--gold); color: #fff;
  padding: 0.875rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem;
  transition: all 0.25s; border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-light); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,134,11,0.3);
}

.btn-outline {
  background: var(--gold); color: var(--text);
  padding: 0.875rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem;
  border: 1.5px solid rgba(26,18,0,0.25);
  transition: all 0.25s; cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold); transform: translateY(-2px);
}

/* ── SECCIONES ── */
section { padding: 60px 5%; position: relative; }

.section-tag {
  display: inline-block;
  background: rgba(184,134,11,0.1);
  border: 1px solid rgba(184,134,11,0.3);
  color: var(--gold);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px; line-height: 1; margin-bottom: 1rem;
  color: var(--text);
}
.section-title span { color: var(--gold); }

.section-sub {
  color: var(--text-muted); font-size: 1rem;
  line-height: 1.7; max-width: 480px;
}

.gold-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px; margin: 1.25rem 0 1.5rem;
}

/* ── SERVICIOS ── */
#servicios { background:  var(--bg2); }

.servicios-header { margin-bottom: 3.5rem; }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg);
  border: 1.5px solid rgba(184,134,11,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all 0.3s; cursor: default;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform 0.4s;
}
.service-card:hover {
  border-color: var(--gold);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184,134,11,0.12);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

.service-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; letter-spacing: 1.5px;
  color: var(--text); margin-bottom: 0.5rem;
}
.service-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.card-ver-mas {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  background: var(--gold);
  color: #fff;

  padding: 0.5rem 1rem;
  border-radius: 6px;

  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;

  transition: all 0.25s;
  cursor: pointer;
}

.card-ver-mas:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184,134,11,0.25);
}

/* ── GALERÍA MEJORADA ── */
#trabajos {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* TODAS LAS TARJETAS IGUALES */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* IMÁGENES Y VIDEOS IGUALES */
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* HOVER */
.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

/* OVERLAY */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img,
  .gallery-item video {
    height: 220px;
  }
}
/* ── NOSOTROS ── */
#nosotros { background: var(--white); }

.nosotros-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.nosotros-img-wrap { position: relative; }
.nosotros-img {
  width: 100%; border-radius: var(--radius);
  object-fit: cover; height: 480px; display: block;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.nosotros-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--gold); color: #fff;
  padding: 1.5rem; border-radius: var(--radius);
  text-align: center; min-width: 140px;
  box-shadow: 0 8px 24px rgba(184,134,11,0.35);
}
.badge-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem; line-height: 1; display: block;
}
.badge-text { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.nosotros-text { color: var(--text-muted); line-height: 1.8; font-size: 0.9375rem; }

.nosotros-features {
  margin-top: 2rem; display: flex;
  flex-direction: column; gap: 1rem; margin-bottom: 2rem;
}
.feature-row { display: flex; align-items: flex-start; gap: 1rem; }
.feature-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-top: 0.45rem; flex-shrink: 0;
}
.feature-text { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* ── CONTACTO ── */
#contacto { background: var(--bg2); text-align: center; }

.contacto-inner { max-width: 640px; margin: 0 auto; }
.contacto-divider { margin: 1.25rem auto 1.5rem; }
.contacto-sub { color: var(--text-muted); line-height: 1.7; }

.contact-cards {
  display: flex; gap: 1.25rem;
  margin: 2.5rem 0 3rem; flex-wrap: wrap; justify-content: center;
}
.contact-card {
  flex: 1; min-width: 180px;
  background: var(--white);
  border: 1.5px solid rgba(184,134,11,0.15);
  border-radius: var(--radius); padding: 1.5rem 1.25rem; text-align: center;
  transition: all 0.2s;
}
.contact-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(184,134,11,0.1);
}
.contact-card-icon { font-size: 1.25rem; margin-bottom: 0.75rem; display: block; }
.contact-card-label {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 600; margin-bottom: 0.35rem;
}
.contact-card-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);

  /* 🔥 MEJOR CONTROL DEL TEXTO */
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;

  /* 👌 MEJOR PRESENTACIÓN */
  text-align: center;
  line-height: 1.4;
  padding: 0 5px;
}

.wa-btn {
  background: var(--green); color: white;
  padding: 1rem 2.5rem; border-radius: 8px;
  font-weight: 700; font-size: 1.0625rem;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.6rem;
  transition: all 0.25s; border: none; cursor: pointer; letter-spacing: 0.5px;
}
.wa-btn:hover {
  background: #1fba57; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ── BOTÓN FLOTANTE ── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; z-index: 999;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1.5rem; animation: pulse 2.5s ease infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,0.5); }

/* ── FOOTER ── */
footer {
  background: var(--text);
  padding: 2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  border-top: 3px solid var(--gold);
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem; letter-spacing: 2px; color: var(--gold);
}
footer p { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.6); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nosotros-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-badge { right: 1rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .gallery-item img, .gallery-item:first-child img { height: 220px; }
  .hero-stats { gap: 1.5rem; }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--white);
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: fadeUp 0.3s ease;
}

/* BOTÓN CERRAR */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* HEADER */
.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-icon {
  font-size: 2rem;
}

.modal-title {
  font-weight: 700;
  font-size: 1.2rem;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* GALERÍA */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 15px;
}

/* IMÁGENES GRID */
.modal-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.modal-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
 
/* ── TEXTO DEBAJO DE VIDEO ── */
.ad-text {
  text-align: center;
  font-size: 1.50rem;
  font-weight: 700;
  color: black;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ── VISOR DE IMAGEN (ZOOM) ── */
.img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.img-viewer.active {
  display: flex;
}

/* 🔥 CLAVE: que no se corte */
.img-viewer img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain; /* evita recorte */
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* BOTÓN CERRAR IMAGEN */
.img-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
/* ── RESEÑAS ── */
#resenas {
  background: var(--white);
  text-align: center;
}

.review-box {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-box textarea {
  padding: 0.9rem;
  border-radius: 8px;
  border: 1.5px solid rgba(184,134,11,0.2);
  font-family: inherit;
  font-size: 0.9rem;
  min-height: 120px;
  resize: none;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 2rem;
  cursor: pointer;
}

.stars span {
  color: #ccc;
}

.stars span.active {
  color: var(--gold);
}

/* TARJETAS DE RESEÑAS */
.reviews-list {
  margin-top: 3rem;
  display: grid;
  gap: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.review-card {
  background: var(--bg);
  border: 1px solid rgba(184,134,11,0.15);
  padding: 1.2rem;
  border-radius: var(--radius);
  text-align: left;
}

.review-stars {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  font-size: 24px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
}

.wa-float:hover {
  transform: scale(1.1);
}

.nosotros-imgs {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 50px;
  width: 100%;
  max-width: 650px;
  position: relative;
}

.nosotros-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* badge encima */
.nosotros-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
}

@media (max-width: 600px) {
  .nosotros-imgs {
    width: 100%;
    grid-template-columns: 1fr;
  }
}