/* ============================================================
   RP Asesores — Custom Theme: Navy + Gold
   Overrides sobre StartBootstrap Creative / Bootstrap 5
   ============================================================ */

/* ── Variables de marca ─────────────────────────────────── */
:root {
  --rp-navy:       #1a2a4a;
  --rp-navy-light: #243558;
  --rp-navy-dark:  #0f1c30;
  --rp-gold:       #c9a84c;
  --rp-gold-light: #dfc078;
  --rp-gold-pale:  #f5edda;
  --rp-light:      #f7f8fa;

  /* Override Bootstrap primary */
  --bs-primary:     #1a2a4a;
  --bs-primary-rgb: 26, 42, 74;
  --bs-link-color:  #c9a84c;
  --bs-link-hover-color: #a88a3d;
}

/* ── Botón XL (si no está en styles.css) ───────────────── */
.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── NAVBAR ──────────────────────────────────────────────── */
#mainNav {
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#mainNav.navbar-shrink {
  background-color: var(--rp-navy) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.35);
}

#mainNav .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.4px;
  transition: color 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--rp-gold) !important;
}

#mainNav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── MASTHEAD / HERO ─────────────────────────────────────── */
.masthead {
  background: linear-gradient(135deg, var(--rp-navy-dark) 0%, var(--rp-navy) 55%, #243a6a 100%) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
}

.masthead h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.masthead h1 .gold-text {
  color: var(--rp-gold);
}

.masthead .lead {
  font-size: 1.1rem;
  opacity: 0.82;
  max-width: 600px;
  margin: 0 auto;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  border-color: var(--rp-gold) !important;
  border-top-width: 3px !important;
  max-width: 80px;
  opacity: 1 !important;
  margin: 1.5rem auto;
}

.divider-left {
  margin-left: 0;
}

.divider-light {
  border-color: rgba(201, 168, 76, 0.55) !important;
}

/* ── BOTONES ─────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--rp-gold) !important;
  border-color: var(--rp-gold) !important;
  color: var(--rp-navy) !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--rp-gold-light) !important;
  border-color: var(--rp-gold-light) !important;
  color: var(--rp-navy) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.btn-light {
  background-color: #fff !important;
  border-color: #fff !important;
  color: var(--rp-navy) !important;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.btn-light:hover {
  background-color: var(--rp-gold-pale) !important;
  transform: translateY(-2px);
}

/* Botón outline dorado (para hero) */
.btn-outline-gold {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--rp-gold);
  color: var(--rp-gold);
  font-weight: 700;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline-gold:hover {
  background: var(--rp-gold);
  color: var(--rp-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

/* ── TICKER STRIP ────────────────────────────────────────── */
.ticker-strip {
  background-color: var(--rp-navy-dark);
  color: var(--rp-gold);
  padding: 0.6rem 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker-scroll 35s linear infinite;
}

.ticker-item {
  padding: 0 1.5rem;
  white-space: nowrap;
}

.ticker-dot {
  color: rgba(201, 168, 76, 0.4);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECCIÓN "BG-PRIMARY" (Podemos ayudarte) ────────────── */
.bg-primary {
  background-color: var(--rp-navy) !important;
}

/* ── CARDS DE SERVICIOS ─────────────────────────────────── */
.service-card {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 25px rgba(26, 42, 74, 0.08);
  border-top: 4px solid var(--rp-gold);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 40px rgba(26, 42, 74, 0.14);
}

.service-icon {
  width: 72px;
  height: 72px;
  background: var(--rp-gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  color: var(--rp-navy);
  font-size: 2rem;
}

.service-card h3 {
  color: var(--rp-navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

.service-check {
  color: var(--rp-gold);
  margin-right: 0.4rem;
}

/* ── SECCIÓN NOSOTROS ───────────────────────────────────── */
.nosotros-section {
  background-color: var(--rp-light);
}

.nosotros-img-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(26, 42, 74, 0.18);
  background: var(--rp-navy);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nosotros-img-placeholder {
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 3rem 2rem;
}

.nosotros-img-placeholder i {
  font-size: 5rem;
  margin-bottom: 1rem;
  display: block;
}

.section-label {
  color: var(--rp-gold);
  font-size: 0.78rem;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  color: var(--rp-navy);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--rp-navy-dark) 0%, var(--rp-navy) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(201, 168, 76, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

/* ── FORMULARIO DE CONTACTO ─────────────────────────────── */
#contact .form-control,
#contact .form-select {
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#contact .form-control:focus {
  border-color: var(--rp-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

#contact .contact-item {
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--rp-light);
  transition: box-shadow 0.25s;
}

#contact .contact-item:hover {
  box-shadow: 0 6px 20px rgba(26, 42, 74, 0.1);
}

/* ── SECCIÓN INSTAGRAM ──────────────────────────────────── */
#instagram {
  background-color: var(--rp-light);
}

.instagram-handle a {
  color: var(--rp-gold);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.instagram-handle a:hover {
  color: var(--rp-gold-light);
}

.instagram-placeholder-box {
  background: #fff;
  border-radius: 18px;
  border: 2px dashed rgba(201, 168, 76, 0.5);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.instagram-placeholder-box i.bi-instagram {
  font-size: 4rem;
  color: var(--rp-gold);
  margin-bottom: 1rem;
  display: block;
}

.instagram-placeholder-box h5 {
  color: var(--rp-navy);
  font-weight: 700;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer.site-footer {
  background-color: var(--rp-navy-dark) !important;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--rp-gold);
  text-decoration: none;
  transition: color 0.2s;
}

footer.site-footer a:hover {
  color: var(--rp-gold-light);
}

footer.site-footer .footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.25rem;
}

footer.site-footer .social-icon {
  font-size: 1.4rem;
  margin-left: 1rem;
  display: inline-block;
  transition: transform 0.2s, color 0.2s;
}

footer.site-footer .social-icon:hover {
  transform: translateY(-3px);
  color: var(--rp-gold-light) !important;
}

/* ── WHATSAPP FAB ────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 9999;
}

.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
  color: #fff;
}

/* ── SPACING ─────────────────────────────────────────────── */
.page-section {
  padding: 5rem 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .masthead {
    text-align: center;
    padding-top: 7rem;
  }

  .masthead .btn-outline-gold {
    display: block;
    width: 100%;
    text-align: center;
  }

  .nosotros-img-wrapper {
    min-height: 260px;
    margin-bottom: 2rem;
  }

  .ticker-inner {
    animation-duration: 22s;
  }

  footer.site-footer .text-lg-end {
    text-align: center !important;
    margin-top: 1rem;
  }
}

/* ── PÁGINAS INTERNAS (compartido por legales, contable, consultoria) ── */

/* Hero de página interna */
.page-hero {
  background: linear-gradient(135deg, #0f1c30 0%, #1a2a4a 55%, #243a6a 100%);
  padding: 10rem 0 5rem;
  text-align: center;
}
.page-hero .hero-icon {
  width: 90px;
  height: 90px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(201, 168, 76, 0.4);
}
.page-hero .hero-icon i {
  font-size: 2.8rem;
  color: var(--rp-gold);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* Barra de breadcrumb */
.breadcrumb-bar {
  background: var(--rp-navy-dark, #0f1c30);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.breadcrumb-bar .breadcrumb {
  margin: 0;
  font-size: 0.82rem;
}
.breadcrumb-bar .breadcrumb-item a {
  color: var(--rp-gold, #c9a84c);
  text-decoration: none;
}
.breadcrumb-bar .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

/* Placeholder de contenido en preparación */
.content-placeholder {
  background: #fff;
  border-radius: 18px;
  border: 2px dashed rgba(201, 168, 76, 0.35);
  padding: 4rem 2rem;
  text-align: center;
  color: #999;
}
.content-placeholder i {
  font-size: 3rem;
  color: var(--rp-gold, #c9a84c);
  margin-bottom: 1rem;
  display: block;
  opacity: 0.6;
}

/* Skip-to-content (accesibilidad) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--rp-gold, #c9a84c);
  color: var(--rp-navy, #1a2a4a);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
}
