/* ==================================================================== */
/* Variables de marca Bravío                                            */
/* ==================================================================== */
:root {
  --brand-gold: #c29e63;
  --brand-gold-hover: #b08b52;
  --brand-dark: #0f0f0f;
  --brand-gray: #d9d9d9;
  --brand-surface: #FAFAF8;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--brand-surface);
  color: var(--brand-dark);
  -webkit-font-smoothing: antialiased;
}

.fs-7 { font-size: .75rem; }
.text-brand { color: var(--brand-gold) !important; }
.fw-black { font-weight: 800; }
.hero-heading { letter-spacing: -0.035em; line-height: 1.05; }
.object-fit-cover { object-fit: cover; }

/* ==================================================================== */
/* Botones y navbar                                                      */
/* ==================================================================== */
.btn-brand {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-dark);
}
.btn-brand:hover,
.btn-brand:focus,
.btn-brand:active {
  background-color: var(--brand-gold-hover) !important;
  border-color: var(--brand-gold-hover) !important;
  color: var(--brand-dark) !important;
}

.navbar-surface {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
}
.navbar-nav .nav-link { color: #525252; font-weight: 500; }
.navbar-nav .nav-link:hover { color: var(--brand-dark); }

.brand-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--brand-dark);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-logo-icon--accent { background: var(--brand-gold); color: var(--brand-dark); }
.brand-tagline { letter-spacing: .1em; font-size: .625rem; }

/* ==================================================================== */
/* Badges / pills                                                        */
/* ==================================================================== */
.badge-pill-muted {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .95rem;
  border-radius: 9999px;
  font-size: .8125rem;
  font-weight: 600;
  background: rgba(217, 217, 217, .5);
  color: var(--brand-dark);
  border: 1px solid var(--brand-gray);
}
.badge-pill-muted .dot,
.badge-pill-footer .dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--brand-gold); display: inline-block;
}

.badge-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .95rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(15, 15, 15, .8);
  backdrop-filter: blur(6px);
  color: var(--brand-gold);
  border: 1px solid rgba(255, 255, 255, .15);
}

.badge-pill-glass {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: .25rem .85rem;
  border-radius: 9999px;
  border: 1px solid rgba(217, 217, 217, .3);
}

.badge-pill-accent {
  display: inline-flex;
  padding: .35rem .95rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 800;
  background: var(--brand-gold);
  color: var(--brand-dark);
}

.badge-pill-dark-outline {
  display: inline-flex;
  align-items: center;
  padding: .35rem .95rem;
  border-radius: 9999px;
  font-size: .8125rem;
  font-weight: 700;
  background: #171717;
  color: var(--brand-gold);
  border: 1px solid rgba(194, 158, 99, .3);
}

.badge-pill-footer {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .35rem .95rem;
  border-radius: 9999px;
  background: #262626;
  color: #d4d4d4;
  border: 1px solid #404040;
}

.pulse-dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--brand-gold); display: inline-block;
  animation: intro-pulse 1.4s ease-in-out infinite;
}

/* ==================================================================== */
/* Hero: video + tarjetas de estadísticas + formulario                   */
/* ==================================================================== */
.hero-video-card { position: relative; background: var(--brand-dark); }
.hero-video-card img { transition: transform .7s ease; }
.hero-video-card:hover img { transform: scale(1.05); }

.hero-video-overlay-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,.9), rgba(15,15,15,.4) 55%, rgba(15,15,15,.15));
}

.hero-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5rem;
  height: 5rem;
  border: none;
  border-radius: 50%;
  background: var(--brand-gold);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .35);
  transition: transform .3s ease, background .3s ease;
}
.hero-video-card:hover .hero-play-btn { transform: scale(1.1); }
.hero-play-btn:hover { background: #fff; }

.stat-card {
  background: #fff;
  border: 1px solid var(--brand-gray);
  border-radius: 1rem;
  padding: 1.1rem .75rem;
  height: 100%;
}
.stat-value { font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: .7rem; color: #737373; }

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 .2rem rgba(194, 158, 99, .25);
}
.submit-arrow {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--brand-dark); color: var(--brand-gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem;
}

/* ==================================================================== */
/* Diferenciadores                                                       */
/* ==================================================================== */
.differentiator-img-wrap { height: 16rem; overflow: hidden; }
.differentiator-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.differentiator-card:hover .differentiator-img-wrap img { transform: scale(1.05); }
.differentiator-card--featured { border: 2px solid rgba(15, 15, 15, .15); }
.differentiator-arrow {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(217, 217, 217, .6);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
  color: var(--brand-dark);
}
.differentiator-card:hover .differentiator-arrow { background: var(--brand-gold); }

/* ==================================================================== */
/* Calculadora de inversión                                               */
/* ==================================================================== */
.calculator-panel { background: var(--brand-dark); color: #fff; }
.calculator-glow {
  position: absolute; right: -8rem; bottom: -8rem;
  width: 24rem; height: 24rem;
  background: rgba(194, 158, 99, .15);
  border-radius: 50%; filter: blur(70px);
  pointer-events: none;
}
.calculator-controls { background: rgba(23, 23, 23, .9); border: 1px solid #262626; }
.calculator-range { accent-color: var(--brand-gold); }

.m2-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #262626; border: 1px solid rgba(194, 158, 99, .4);
  padding: .3rem 1rem; border-radius: 9999px;
  font-weight: 800; color: var(--brand-gold); font-size: 1.05rem;
}

.finish-option {
  display: block; padding: 1rem; border-radius: 1rem;
  border: 1px solid #404040; background: rgba(38, 38, 38, .4);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
  height: 100%;
}
.finish-option--active { border: 2px solid var(--brand-gold); background: rgba(38, 38, 38, .8); }
.finish-option:hover { border-color: #737373; }
.finish-price-badge {
  font-size: .6875rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: .4rem;
  background: #404040; color: #e5e5e5; white-space: nowrap;
}
.finish-price-badge--active { background: var(--brand-gold); color: var(--brand-dark); }
.text-muted-light { color: #a3a3a3 !important; }

.calculator-result {
  background: linear-gradient(to bottom right, var(--brand-dark), #171717);
  border: 1px solid #262626;
}
.result-figure { font-size: 2.5rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.time-panel { background: rgba(38, 38, 38, .6); border: 1px solid rgba(64, 64, 64, .6); border-radius: 1rem; }
.time-icon {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  background: rgba(194, 158, 99, .2); color: var(--brand-gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==================================================================== */
/* Footer                                                                 */
/* ==================================================================== */
.footer-dark { background: var(--brand-dark); }
.footer-border { border-color: #262626 !important; }
.footer-contact-icon {
  width: 2rem; height: 2rem; border-radius: .5rem;
  background: #262626; color: var(--brand-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-social-btn {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: #262626; color: #d4d4d4;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.footer-social-btn:hover { background: var(--brand-gold); color: var(--brand-dark); }
.footer-link:hover { color: var(--brand-gold) !important; }
.footer-link-muted { color: #737373; text-decoration: none; font-size: .8rem; }
.footer-link-muted:hover { color: #fff; }

/* ==================================================================== */
/* Testimonios en video                                                  */
/* ==================================================================== */
.testimonial-card { border-color: var(--brand-gray) !important; transition: box-shadow .2s ease; }
.testimonial-card:hover { box-shadow: 0 1rem 2rem rgba(15, 15, 15, .08); }

.testimonial-media { position: relative; background: var(--brand-dark); }
.testimonial-placeholder {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  color: rgba(194, 158, 99, .5);
  font-size: 3rem;
}
/* overlay semitransparente encima de la imagen para que el ícono sea legible */
.testimonial-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, .4);
  pointer-events: none;
  z-index: 1;
}
.testimonial-placeholder i {
  position: relative;
  z-index: 2;
}

.testimonial-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.5rem;
  height: 4.5rem;
  border: none;
  border-radius: 50%;
  background: var(--brand-gold);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  transition: transform .3s ease, background .3s ease;
}
.testimonial-play-btn:hover { background: #fff; transform: scale(1.08); }

.testimonial-quote {
  font-style: italic;
  color: #404040;
  line-height: 1.65;
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

/* ==================================================================== */
/* Bloqueo de scroll mientras el video de intro está activo             */
/* ==================================================================== */
html.intro-lock,
body.intro-lock {
  overflow: hidden !important;
  height: 100%;
  width: 100%;
  position: fixed;
  inset: 0;
  touch-action: none;
  overscroll-behavior: none;
}

/* ==================================================================== */
/* Overlay de video de intro a pantalla completa                         */
/* ==================================================================== */
.intro-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.7s ease;
}
.intro-video-overlay--hidden { opacity: 0; pointer-events: none; }

.intro-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0f0f0f;
}

.intro-video-wrapper iframe,
.intro-video-wrapper #intro-yt-player {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100vw, 177.78vh) !important;
  height: min(56.25vw, 100vh) !important;
  max-width: none !important;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border: 0;
}

.intro-video-brand {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(217, 217, 217, 0.25);
}

@keyframes intro-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.intro-mute-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(217, 217, 217, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.intro-mute-toggle:hover { background: var(--brand-gold); color: var(--brand-dark); }
