/* =========================================
   GESDA CONSTRUCTORA — PREMIUM WEB
   ========================================= */

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --dark: #080810;
  --dark-2: #0f0f1c;
  --dark-3: #161625;
  --dark-card: #12121f;
  --border: rgba(201, 168, 76, 0.2);
  --text: #e8e8f0;
  --text-muted: #8888a8;
  --white: #ffffff;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ─── UTILITIES ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 56px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-large { padding: 18px 44px; font-size: 1rem; }
.btn-full { width: 100%; text-align: center; }

/* ─── NAV ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(8, 8, 16, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 10px 24px;
  border-radius: 100px;
  transition: var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
  transform: translateY(-1px);
}

.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: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(100, 80, 200, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #080810 0%, #0a0a18 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(201, 168, 76, 0.06);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* ─── STATS ─── */
.stats-section {
  padding: 100px 0;
  background: var(--dark-2);
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.stat-card:hover::before { opacity: 1; }

.stat-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  display: inline;
}
.stat-plus {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: inline;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.stat-label-big {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 4px;
}
.stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-note {
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ─── SERVICES ─── */
.services-section {
  padding: 100px 0;
  background: var(--dark);
}

.services-section .container {
  text-align: center;
  margin-bottom: 80px;
}

.service-block {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service-block--left { direction: ltr; }

.service-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.service-media:hover img { transform: scale(1.04); }

.service-media-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(8, 8, 16, 0.85);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.fachada-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fachada-main {
  flex: 1;
  border-radius: 12px 12px 0 0;
  min-height: 0;
}

.fachada-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 120px;
}

.fachada-thumbs img {
  border-radius: 0 0 12px 12px;
  object-fit: cover;
}

.service-text { padding: 24px 0; }

.service-num {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}

.service-text h3 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.service-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
  margin-bottom: 32px;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── VIDEO SCROLL (APPLE EFFECT) ─── */
.video-scroll-section {
  position: relative;
}

.video-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-scroll-sticky video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 16, 0.85) 0%,
    rgba(8, 8, 16, 0.55) 50%,
    rgba(8, 8, 16, 0.75) 100%
  );
}

.video-scroll-spacer {
  height: 400vh;
}

.video-scroll-text {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 48px;
  pointer-events: none;
}

.video-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.video-step.active {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  pointer-events: auto;
}

.video-step h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.video-step p {
  font-size: 1.05rem;
  color: rgba(232, 232, 240, 0.85);
  line-height: 1.8;
  margin-bottom: 32px;
}

.video-step .btn-primary { pointer-events: auto; }

/* ─── WHY ─── */
.why-section {
  padding: 100px 0;
  background: var(--dark-2);
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.why-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.why-card h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── GALLERY ─── */
.gallery-section {
  padding: 100px 0;
  background: var(--dark);
}

.gallery-section .container {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item.large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  transition: transform 0.6s;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 16px;
  background: linear-gradient(transparent, rgba(8,8,16,0.9));
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.4s;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ─── CTA BANNER ─── */
.cta-banner {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201, 168, 76, 0.1) 0%, transparent 70%),
    var(--dark-3);
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── CONTACT ─── */
.contact-section {
  padding: 100px 0;
  background: var(--dark-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}

.contact-icon { font-size: 1.5rem; }

.contact-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

/* ─── FORM ─── */
.contact-form-wrap {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group select option { background: var(--dark-2); }

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  text-align: center;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  filter: brightness(0.9);
}

.footer-tagline {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px;
  color: rgba(136, 136, 168, 0.5);
  margin-top: 8px;
}

/* ─── FOOTER MÍNIMO (todas las páginas) ─── */
.footer-min {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  position: relative;
  z-index: 10;
}

.footer-min-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo-sm {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  mix-blend-mode: multiply;
}

.footer-min-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-min-links a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-min-links a:hover { color: var(--gold); }

.footer-min p {
  font-size: 12px;
  color: rgba(136,136,168,0.4);
}

/* ─── PARTICLES ─── */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: float linear infinite;
}

@keyframes float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.4; }
  90% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; gap: 40px; }
  .service-block--left .service-media { order: -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8,8,16,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    font-size: 1.2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; z-index: 1000; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; aspect-ratio: 4/3; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .contact-form-wrap { padding: 28px 20px; }
  .video-step { padding: 24px; }
  .video-step h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .service-block { padding: 0 16px; }
}
