/* ═══════════════════════════════════════════
   ACECAS CONSTRUCCIONES — Estilos principales
   Versión: 1.0 · Envigado, Antioquia
   ═══════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --dark: #0D0D0D;
  --dark-2: #141414;
  --dark-3: #1C1C1C;
  --dark-4: #252525;
  --stone: #2E2A25;
  --cream: #F5F0E8;
  --cream-2: #EDE8DC;
  --text-muted: #9A9490;
  --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.15; }

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── NOISE TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-logo span { color: var(--cream); }

.nav-cta {
  display: flex;
  gap: 0.75rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold);
  color: var(--dark);
  padding: 0.75rem 1.6rem;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 0.75rem 1.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.btn-wa {
  background: #25D366;
  color: white;
  padding: 1rem 2rem;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s;
  border-radius: 2px;
}

.btn-wa:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.25); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 5% 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(201,168,76,0.07) 0%, transparent 70%),
    linear-gradient(160deg, #0D0D0D 50%, #1a1510 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  max-width: 720px;
  animation: fadeUp 0.9s ease both;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

#hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

#hero h1 em {
  font-style: italic;
  color: var(--gold);
}

#hero p.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  position: absolute;
  right: 5%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeUp 1.1s 0.3s ease both;
}

.hero-stat {
  text-align: right;
  border-right: 2px solid var(--gold);
  padding-right: 1rem;
}

.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat .desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* ─── SECTIONS ─── */
section { padding: 6rem 5%; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-top: 0.75rem;
}

/* ─── DIVIDER ─── */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* ─── PROBLEMA ─── */
#problema {
  background: var(--dark-2);
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: rgba(201,168,76,0.08);
  margin-top: 3rem;
}

.pain-card {
  background: var(--dark-2);
  padding: 2rem 1.8rem;
  border-left: 3px solid transparent;
  transition: border-color 0.3s;
}

.pain-card:hover { border-left-color: var(--gold); }

.pain-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pain-card h3 {
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

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

/* ─── SOLUCIÓN ─── */
#solucion {
  background: var(--dark);
}

.sol-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 2rem;
}

.sol-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--dark-3);
  overflow: hidden;
}

.sol-visual-inner {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(201,168,76,0.15) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(201,168,76,0.03) 20px,
      rgba(201,168,76,0.03) 21px
    );
}

.sol-visual-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(13,13,13,0.92);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(10px);
}

.sol-visual-badge p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sol-visual-badge strong {
  color: var(--gold);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Playfair Display', serif;
}

.sol-text ul {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sol-text ul li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sol-text ul li .check {
  width: 22px;
  height: 22px;
  background: rgba(201,168,76,0.12);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--gold);
}

.sol-text ul li p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sol-text ul li strong {
  color: var(--cream);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

/* ─── PROCESO ─── */
#proceso {
  background: var(--dark-2);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  opacity: 0.3;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.07);
  position: relative;
  transition: background 0.2s;
}

.step:last-child { border-bottom: none; }

.step-num {
  width: 64px;
  height: 64px;
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  z-index: 1;
  transition: background 0.2s, border-color 0.2s;
}

.step:hover .step-num {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
}

.step-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ─── OPCIONES ─── */
#opciones {
  background: var(--dark);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: rgba(201,168,76,0.08);
  margin-top: 3rem;
}

.option-card {
  background: var(--dark-3);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.option-card:hover { background: var(--dark-4); }
.option-card:hover::before { transform: scaleX(1); }

.option-icon {
  font-size: 2rem;
}

.option-card h3 {
  font-size: 1.4rem;
  color: var(--cream);
}

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

/* ─── CASO EXITO ─── */
#caso {
  background: var(--stone);
  position: relative;
  overflow: hidden;
}

#caso::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
}

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

.caso-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.caso-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.caso-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: rgba(201,168,76,0.1);
}

.metric {
  background: var(--dark-3);
  padding: 1.5rem;
  text-align: center;
}

.metric .val {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}

.metric .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ─── CONFIANZA ─── */
#confianza {
  background: var(--dark-2);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: rgba(201,168,76,0.08);
  margin-top: 3rem;
}

.trust-item {
  background: var(--dark-2);
  padding: 2rem 1.5rem;
  text-align: center;
}

.trust-item .icon { font-size: 2rem; margin-bottom: 1rem; }

.trust-item h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── CTA BAND ─── */
.cta-band {
  background: linear-gradient(135deg, #1a1408 0%, #0D0D0D 60%);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 5rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
}

.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
  position: relative;
}

.cta-band p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ─── CONTACTO ─── */
#contacto {
  background: var(--dark);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-detail span:first-child { color: var(--gold); font-size: 1.1rem; }

/* ─── FORM ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--cream);
  padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

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

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

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit { margin-top: 0.5rem; }

/* ─── LEGAL ─── */
.legal-note {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-note strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 2.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
}

/* ─── WA FLOAT ─── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
}

.wa-float a {
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  font-size: 1.5rem;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .sol-layout,
  .caso-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { display: none; }
  .nav-cta .btn-ghost { display: none; }
  footer { flex-direction: column; text-align: center; }
  .steps::before { display: none; }
  .step { grid-template-columns: 48px 1fr; gap: 1rem; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   FIRMA PROFESIONAL — Sección contacto
   ═══════════════════════════════════════════ */
.firma-profesional {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--gold);
}

.firma-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.firma-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.firma-nombre {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.firma-cargo {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
}

.firma-cargo em {
  font-style: normal;
  color: var(--gold);
  margin: 0 0.3rem;
}

.firma-empresa {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.firma-email {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.firma-email:hover { color: var(--gold); }

/* ═══════════════════════════════════════════
   FOOTER REDISEÑADO
   ═══════════════════════════════════════════ */
footer {
  background: #080808;
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 0;
}

.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 5% 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: #555;
}

/* Firma en footer */
.footer-firma {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  border-left: 3px solid var(--gold);
}

.footer-firma-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
}

.footer-firma-texto {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-firma-texto strong {
  font-size: 0.95rem;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
}

.footer-firma-texto span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-firma-texto span em {
  font-style: normal;
  color: var(--gold);
  margin: 0 0.25rem;
}

.footer-firma-texto a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-firma-texto a:hover { color: var(--gold); }

/* Nav links en footer */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

.footer-links a:hover { color: var(--gold); }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: #444;
}

/* ── Responsive footer ── */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 5% 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .firma-profesional {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════
   SVG ICON STYLES
   ═══════════════════════════════════════════ */

.pain-icon svg {
  stroke: var(--gold);
  opacity: 0.9;
}

.check svg {
  stroke: var(--gold);
  width: 12px;
  height: 12px;
}

.trust-item .icon svg {
  stroke: var(--gold);
  display: block;
  margin: 0 auto 1rem;
}

.contact-detail span svg {
  stroke: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.option-icon svg {
  stroke: var(--gold);
  opacity: 0.85;
}

.footer-firma-texto span svg {
  stroke: var(--gold);
  display: inline;
  vertical-align: middle;
  margin-right: 4px;
}

/* ═══════════════════════════════════════════
   CASO DE ÉXITO — FOTOS Y TESTIMONIOS
   ═══════════════════════════════════════════ */

/* Fotos del proyecto */
.caso-fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: rgba(201,168,76,0.08);
  margin: 2.5rem 0;
}

.caso-foto-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.caso-foto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.caso-foto-card:hover img {
  transform: scale(1.03);
}

.caso-foto-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13,13,13,0.85);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(201,168,76,0.15);
}

/* Métricas en fila completa */
.caso-metrics-full {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5px;
  background: rgba(201,168,76,0.08);
  margin-bottom: 1rem;
}

/* Testimonios */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: rgba(201,168,76,0.08);
}

.testimonio-card {
  background: var(--dark-3);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-top: 3px solid transparent;
  transition: border-color 0.3s;
}

.testimonio-card:hover {
  border-top-color: var(--gold);
}

.testimonio-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.testimonio-texto {
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.1);
}

.testimonio-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.testimonio-autor strong {
  display: block;
  font-size: 0.9rem;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
}

.testimonio-autor span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .caso-fotos {
    grid-template-columns: 1fr;
  }
  .caso-metrics-full {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   CALCULADORA DE RENTABILIDAD
   ═══════════════════════════════════════════ */

.calc-wrapper {
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 3rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.calc-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.calc-header {
  margin-bottom: 2.5rem;
}

.calc-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--cream);
  margin-top: 0.75rem;
}

.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Inputs */
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark-4);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}

.calc-input-wrap:focus-within {
  border-color: var(--gold);
}

.calc-prefix, .calc-suffix {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.calc-input-wrap input[type="number"] {
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  width: 100%;
  outline: none;
  -moz-appearance: textfield;
}

.calc-input-wrap input[type="number"]::-webkit-outer-spin-button,
.calc-input-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* Slider */
.calc-slider {
  width: 100%;
  margin-top: 1rem;
  -webkit-appearance: none;
  height: 2px;
  background: rgba(201,168,76,0.2);
  outline: none;
  border-radius: 0;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gold);
  cursor: pointer;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Tabs */
.calc-tabs {
  display: flex;
  gap: 2px;
  background: rgba(201,168,76,0.06);
  padding: 2px;
}

.calc-tab, .calc-scenario {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.calc-tab.active, .calc-scenario.active {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
}

.calc-tab:hover:not(.active), .calc-scenario:hover:not(.active) {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* Resultados */
.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: rgba(201,168,76,0.08);
  align-content: start;
}

.calc-result-card {
  background: var(--dark-4);
  padding: 1.2rem 1.5rem;
  transition: background 0.2s;
}

.calc-result-card.highlight {
  background: rgba(201,168,76,0.08);
  grid-column: 1 / -1;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.calc-result-card.highlight .calc-result-val {
  font-size: 2rem;
  color: var(--gold);
}

.calc-result-card.highlight .calc-result-label {
  font-size: 0.8rem;
}

.calc-result-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.calc-result-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  font-weight: 700;
  transition: all 0.3s ease;
}

.calc-result-cta {
  grid-column: 1 / -1;
  padding: 1.2rem 1.5rem;
  background: var(--dark-3);
}

/* Disclaimer */
.calc-disclaimer {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(201,168,76,0.1);
  background: rgba(201,168,76,0.02);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .calc-wrapper { padding: 2rem 1.5rem; }
  .calc-body { grid-template-columns: 1fr; gap: 2rem; }
  .calc-results { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */

.faq-cat-titulo {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.faq-lista {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(201,168,76,0.06);
  margin-bottom: 0.5rem;
}

.faq-item {
  background: var(--dark-3);
  overflow: hidden;
  transition: background 0.2s;
}

.faq-item:hover { background: var(--dark-4); }

.faq-pregunta {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.4rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  text-align: left;
  transition: color 0.2s;
}

.faq-pregunta:hover { color: var(--gold); }

.faq-icono {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-icono {
  transform: rotate(45deg);
}

.faq-item.open .faq-pregunta {
  color: var(--gold);
}

.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.8rem;
}

.faq-item.open .faq-respuesta {
  max-height: 400px;
  padding: 0 1.8rem 1.4rem;
}

.faq-respuesta p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid rgba(201,168,76,0.08);
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .faq-pregunta { font-size: 0.88rem; padding: 1.2rem 1.2rem; }
  .faq-respuesta { padding: 0 1.2rem; }
  .faq-item.open .faq-respuesta { padding: 0 1.2rem 1.2rem; }
}

/* ═══════════════════════════════════════════
   VIDEO PRESENTACIÓN
   ═══════════════════════════════════════════ */
.video-presentacion-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.video-shorts-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
}

.video-shorts-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .video-presentacion-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .video-shorts-wrapper {
    max-width: 280px;
  }
}

/* Grid para dos videos Shorts */
.videos-shorts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.videos-shorts-grid .video-shorts-wrapper {
  max-width: 100%;
}

@media (max-width: 480px) {
  .videos-shorts-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

/* ═══════════════════════════════════════════
   MAPA INTERACTIVO — Sección contacto
   ═══════════════════════════════════════════ */
.mapa-contacto {
  margin-top: 1.5rem;
  border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
  position: relative;
}

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

.mapa-contacto iframe {
  filter: grayscale(30%) contrast(1.05);
  transition: filter 0.3s;
  display: block;
}

.mapa-contacto:hover iframe {
  filter: grayscale(0%) contrast(1);
}

/* Grid para 3 videos Shorts */
.videos-shorts-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
}

@media (max-width: 768px) {
  .videos-shorts-3 {
    grid-template-columns: 1fr 1fr;
    max-width: 380px;
  }
  .videos-shorts-3 .video-shorts-wrapper:last-child {
    grid-column: span 2;
    max-width: 180px;
    margin: 0 auto;
  }
}

/* ═══════════════════════════════════════════
   HERO — VIDEO DE FONDO
   ═══════════════════════════════════════════ */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.55;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(13,13,13,0.65) 30%, rgba(26,20,8,0.45) 100%);
  z-index: 1;
}

/* Asegurar que el contenido quede encima del video */
#hero .hero-grid-lines,
#hero .hero-content,
#hero .hero-stats {
  position: relative;
  z-index: 2;
}

/* En móvil pausar el video para ahorrar datos */
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
}

/* ═══════════════════════════════════════════
   QUIÉN ES — Stats mini
   ═══════════════════════════════════════════ */
.quien-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(201,168,76,0.1);
  margin-top: 2rem;
}

.quien-stat {
  background: var(--dark-3);
  padding: 1.2rem 1rem;
  text-align: center;
}

.quien-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}

.quien-key {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════
   MAPA INTERACTIVO — 3 PROYECTOS
   ═══════════════════════════════════════════ */
.mapa-proyectos-wrap {
  margin-top: 1.5rem;
  border: 1px solid rgba(201,168,76,0.15);
  background: var(--dark-3);
  overflow: hidden;
}

.mapa-proyectos-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.1);
}

.mapa-tab {
  background: var(--dark-3);
  border: none;
  padding: 0.85rem 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.mapa-tab:hover { color: var(--gold); background: var(--dark-4); }
.mapa-tab.active { background: rgba(201,168,76,0.1); color: var(--gold); font-weight: 700; border-bottom: 2px solid var(--gold); }

.mapa-proyecto { display: none; }
.mapa-proyecto.active { display: block; }

.mapa-proyecto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.mapa-proyecto-fotos {
  background: var(--dark-4);
  overflow: hidden;
}

.mapa-foto-principal {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.mapa-foto-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mapa-foto-principal img:hover { transform: scale(1.03); }

.mapa-fotos-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.08);
}

.mapa-fotos-mini img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.mapa-fotos-mini img:hover { opacity: 1; }

.mapa-proyecto-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-left: 1px solid rgba(201,168,76,0.1);
}

.mapa-estado {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mapa-estado.entregado { color: #4ade80; }

.mapa-proyecto-info h3 {
  font-size: 1.1rem;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.mapa-dir {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.mapa-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.08);
  margin: 0.5rem 0;
}

.mapa-spec {
  background: var(--dark-4);
  padding: 0.6rem 0.4rem;
  text-align: center;
}

.mapa-spec-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
}

.mapa-spec-key {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mapa-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.mapa-iframe-wrap {
  border-top: 1px solid rgba(201,168,76,0.1);
}

.mapa-iframe-wrap iframe {
  display: block;
  filter: grayscale(20%);
}

@media (max-width: 768px) {
  .mapa-proyecto-layout { grid-template-columns: 1fr; }
  .mapa-proyecto-info { border-left: none; border-top: 1px solid rgba(201,168,76,0.1); }
}

/* ═══════════════════════════════════════════
   FRASE INSTITUCIONAL
   ═══════════════════════════════════════════ */
.frase-institucional {
  background: var(--dark-2);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  position: relative;
  border: 1px solid rgba(201,168,76,0.08);
}

.frase-linea {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.frase-texto {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
  max-width: 640px;
  letter-spacing: 0.01em;
  margin: 0;
  border: none;
  padding: 0;
}

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

.frase-nombre {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.frase-cargo {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .frase-institucional { padding: 3rem 1.5rem; }
  .frase-texto { font-size: 1.1rem; }
}
