/* ==========================================================================
   BOGGY MEDIA — Dark Cinematic Theme 2026
   ========================================================================== */

/* ---------- Global ---------- */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #111;
  color: #ccc;
  line-height: 1.7;
}

::selection {
  background: #f6ee54;
  color: #111;
}

/* ---------- Navbar — transparent over hero, dark solid on scroll ---------- */
.navbar.fixed-top {
  background: transparent !important;
  transition: all 0.4s ease;
  padding: 1.2rem 0;
  box-shadow: none;
}

.navbar.fixed-top.scrolled {
  background: rgba(17, 17, 17, 0.95) !important;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Navbar logo */
.toplogo {
  margin-top: 0;
}

.toplogo img {
  height: 50px !important;
  width: auto !important;
  filter: invert(1);
  transition: filter 0.4s ease;
}

/* Nav links — always white */
.navbar .nav-item a {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff !important;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
}

.scrolled .navbar .nav-item a {
  color: rgba(255, 255, 255, 0.8) !important;
}

.scrolled .navbar .nav-item a:hover {
  color: #f6ee54 !important;
}

.navbar .nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #f6ee54;
  transition: width 0.3s ease, left 0.3s ease;
}

/* Kill ALL navbar link backgrounds — nuclear override */
nav a,
nav a:hover,
nav a:focus,
nav a:active,
.navbar a,
.navbar a:hover,
.navbar a:focus,
.navbar a:active,
.navbar .nav-item a,
.navbar .nav-item a:hover,
.navbar .nav-item a:focus,
.navbar .nav-item a:active,
.navbar-nav a.nav-link,
.navbar-nav a.nav-link:hover,
.navbar-nav a.nav-link:focus,
.navbar-nav a.nav-link.active,
.navbar-nav a.nav-link.active:hover,
.navbar-nav a.nav-link.active:focus,
.navbar-nav a.nav-link.active:active,
#mainNav .navbar-nav li.nav-item a.nav-link,
#mainNav .navbar-nav li.nav-item a.nav-link:hover,
#mainNav .navbar-nav > li.nav-item > a.nav-link.active,
#mainNav .navbar-nav > li.nav-item > a.nav-link.active:hover,
#mainNav .navbar-nav > li.nav-item > a.nav-link.active:focus,
#mainNav .navbar-nav > li.nav-item > a.nav-link.active:active {
  background: transparent !important;
  background-color: transparent !important;
}

.navbar .nav-item a:hover::after {
  width: 70%;
  left: 15%;
}

/* Mobile toggler */
.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  padding: 0.35rem 0.6rem;
  background: transparent !important;
}

.scrolled .navbar-toggler {
  border-color: #f6ee54 !important;
}

/* ---------- Hero Carousel — fullscreen ---------- */
.hero-carousel {
  margin: 0 !important;
  border-radius: 0;
}

.hero-carousel .carousel-item {
  height: 100vh;
  min-height: 600px;
}

.hero-carousel .carousel-item > img,
.hero-carousel .carousel-item > picture > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  object-fit: cover;
  filter: brightness(0.35);
}

.hero-carousel .carousel-item > picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-caption {
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 4rem;
}

.hero-carousel .carousel-caption h1,
.hero-carousel .carousel-caption h2 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: none;
  color: #fff;
}

.hero-carousel .carousel-caption p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
  text-shadow: none;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.hero-carousel .carousel-caption .btn-primary {
  margin-top: 1rem;
  padding: 0.85rem 2.8rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0;
  background: #f6ee54;
  color: #111;
  border: none;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-caption .btn-primary:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  opacity: 0.5;
  border: 2px solid #fff;
  background: transparent;
  transition: all 0.3s;
}

.hero-carousel .carousel-indicators li.active {
  background: #f6ee54;
  border-color: #f6ee54;
  opacity: 1;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 6%;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: 1;
}

/* Scroll down hint */
.hero-carousel::after {
  content: '';
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: translateX(-50%) rotate(45deg);
  animation: scrollHint 2s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) rotate(45deg) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) rotate(45deg) translateY(8px); }
}

/* ---------- Section styling — dark theme ---------- */
.page-section,
section {
  padding: 6rem 0;
  background: #111;
}

.page-section h1,
section h1,
section h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-size: 2.5rem;
}

/* Yellow accent underline on section headings */
.page-section .display-4 h1::after,
.page-section .display-4 h2::after,
#what-we-do h2::after,
section .display-4 h1::after,
section .display-4 h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #f6ee54;
  margin: 1rem auto 0;
}

/* Alternating section backgrounds */
#SOMOS {
  background: #111;
}

#SERVICIOS {
  background: #0a0a0a;
}

#PORTAFOLIO {
  background: #111;
}

/* ---------- Quienes Somos ---------- */
.div-somos {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #aaa;
  max-width: 800px;
  margin: 0 auto;
  columns: 1 !important;
  text-align: left;
}

.div-somos p {
  margin-bottom: 1.2rem;
}

/* ---------- Services tabs (index.html) ---------- */
#SERVICIOS .list-group-item {
  border: none;
  border-left: 3px solid transparent;
  font-weight: 500;
  padding: 0.9rem 1.25rem;
  transition: all 0.25s ease;
  color: #888;
  background: transparent;
  font-size: 0.95rem;
}

#SERVICIOS .list-group-item:hover {
  background-color: rgba(246, 238, 84, 0.05);
  border-left-color: #f6ee54;
  color: #fff;
}

#SERVICIOS .list-group-item.active {
  background-color: #f6ee54;
  border-color: #f6ee54;
  border-left-width: 3px;
  color: #111;
  font-weight: 700;
}

#SERVICIOS .tab-content {
  padding: 2rem;
  background: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  min-height: 180px;
  display: flex;
  align-items: center;
}

#SERVICIOS .tab-content .tab-pane {
  width: 100%;
}

#SERVICIOS .tab-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #aaa;
}

/* ---------- Portfolio ---------- */
#PORTAFOLIO .d-md-flex > div {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#PORTAFOLIO .d-md-flex > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

#PORTAFOLIO .display-5 {
  font-weight: 700;
  font-size: 1.5rem;
}

#PORTAFOLIO .minilead {
  font-size: 0.9rem;
  opacity: 0.7;
}

#PORTAFOLIO video {
  border-radius: 16px 16px 0 0;
}

/* Override portfolio card backgrounds for dark theme */
#PORTAFOLIO .bg-dark {
  background-color: #1a1a1a !important;
}

#PORTAFOLIO .bg-light {
  background-color: #1a1a1a !important;
  color: #fff;
}

#PORTAFOLIO .bg-light .minilead {
  color: #aaa;
}

/* Video containers inside portfolio cards */
#PORTAFOLIO .bg-dark.shadow-sm,
#PORTAFOLIO .bg-light.shadow-sm {
  background-color: #111 !important;
}

#PORTAFOLIO .bg-primary {
  background-color: #1a1a1a !important;
}

#PORTAFOLIO .bg-primary .minilead {
  color: #aaa;
}

/* ---------- Catálogo CTA ---------- */
#TARIFAS {
  background: #f6ee54;
  color: #111;
  text-align: center;
  padding: 5rem 0;
}

#TARIFAS h1,
#TARIFAS h2 {
  color: #111;
  font-size: 2.5rem;
}

#TARIFAS h1::after,
#TARIFAS h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #111;
  margin: 1rem auto 0;
}

#TARIFAS p {
  font-size: 1.1rem;
  color: rgba(17, 17, 17, 0.7);
  margin-bottom: 2rem;
}

#TARIFAS .btn-primary {
  padding: 1rem 3.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0;
  background: #111;
  color: #f6ee54;
  transition: all 0.3s ease;
}

#TARIFAS .btn-primary:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ---------- Contact form ---------- */
#CONTACTO {
  background: #0a0a0a;
}

#CONTACTO form {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

#CONTACTO label h4,
#CONTACTO h4,
#CONTACTO label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.5rem;
  display: block;
}

#CONTACTO .form-control {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: #111;
  color: #eee;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#CONTACTO .form-control:focus {
  border-color: #f6ee54;
  box-shadow: 0 0 0 3px rgba(246, 238, 84, 0.15);
  background: #111;
  color: #fff;
}

#CONTACTO .form-control::placeholder {
  color: #555;
}

#CONTACTO select,
#CONTACTO select.form-control {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: 0.95rem;
  background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  background-size: auto;
  color: #eee;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
}

#CONTACTO select:focus,
#CONTACTO select.form-control:focus {
  border-color: #f6ee54;
  outline: none;
  box-shadow: 0 0 0 3px rgba(246, 238, 84, 0.15);
  background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
}

#CONTACTO .btn-primary {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f6ee54;
  color: #111;
  transition: all 0.3s ease;
}

#CONTACTO .btn-primary:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 238, 84, 0.3);
}

/* ---------- Footer ---------- */
footer.page-footer,
footer.page-footer.badge-dark,
footer.page-footer.font-small {
  background: #0a0a0a !important;
  padding: 3rem 0 0 !important;
  border-top: 1px solid #222 !important;
  margin-top: 0 !important;
  color: #fff !important;
}

footer .text-center {
  padding: 2rem 0 !important;
}

/* Social icons in footer — Font Awesome */
footer a.socialicon,
footer a.fa.socialicon {
  font-size: 1.2rem !important;
  width: 50px !important;
  height: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  margin: 0 0.6rem !important;
  background: transparent !important;
}

footer a.socialicon:hover,
footer a.fa.socialicon:hover {
  border-color: #f6ee54 !important;
  color: #f6ee54 !important;
  background: rgba(246, 238, 84, 0.1) !important;
  transform: translateY(-3px);
  text-decoration: none !important;
}

/* Footer copyright */
footer .footer-copyright,
footer .footer-copyright.bg-dark {
  margin-top: 2rem !important;
  padding: 1.5rem 0 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45) !important;
  background: #050505 !important;
}

footer .footer-copyright a,
footer .footer-copyright a.socialicon {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  display: inline !important;
  font-size: inherit !important;
}

footer .footer-copyright a:hover {
  color: #f6ee54 !important;
}

/* ---------- Buttons global ---------- */
.btn-primary {
  font-weight: 600;
  border: none;
  background: #f6ee54;
  color: #111;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #fff;
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(246, 238, 84, 0.3);
}

/* ---------- Services page (servicios.html) — dark theme ---------- */
#what-we-do {
  background: #111;
}

#what-we-do .card {
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid #222;
  color: #ccc;
}

#what-we-do .card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-6px);
  transition: all 0.4s ease;
  border-color: #333;
}

#what-we-do .card .card-title {
  color: #fff;
}

#what-we-do .card .card-text {
  color: #aaa;
}

#what-we-do .card .card-body,
#what-we-do .card .card.card-body {
  background: #222;
  color: #aaa;
  border-radius: 8px;
}

#what-we-do .card .btn-primary {
  border-radius: 0;
  padding: 0.4rem 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#what-we-do h2 {
  color: #fff;
}

#what-we-do p.text-muted {
  color: #888 !important;
}

.page-section.text-center {
  background: #111;
}

.page-section.text-center h2.h1 {
  font-weight: 800;
  color: #fff;
}

.page-section.text-center p.text-muted {
  color: #888 !important;
}

.page-section.text-center .btn-primary {
  border-radius: 0;
  padding: 1rem 3rem;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Subpage content spacing ---------- */
.masthead {
  padding: 1rem 0 0;
}

.masthead-avatar {
  max-width: 120px;
}

/* ---------- INTECFA page ---------- */
.page-section h2,
.page-section h3 {
  color: #fff;
}

.page-section .display-4 {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .hero-carousel .carousel-item,
  .hero-carousel .carousel-item > img,
  .hero-carousel .carousel-item > picture > img {
    height: 100vh;
    min-height: 500px;
  }

  .hero-carousel .carousel-caption h1,
  .hero-carousel .carousel-caption h2 {
    font-size: 2.2rem;
  }

  .hero-carousel .carousel-caption p {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Stack service tabs on mobile */
  #SERVICIOS .row {
    flex-direction: column;
  }

  #SERVICIOS .row > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #SERVICIOS .list-group {
    margin-bottom: 1.5rem;
  }

  .page-section,
  section {
    padding: 4rem 0;
  }

  .page-section h1,
  section h1,
  section h2 {
    font-size: 2rem;
  }

  #CONTACTO form {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  #PORTAFOLIO .d-md-flex > div {
    margin-bottom: 1.5rem;
  }

  /* Mobile nav dropdown dark */
  .navbar-collapse {
    background: rgba(17, 17, 17, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
  }
}

/* ---------- Cotizar nav button ---------- */
/* High-specificity selectors to beat the "kill-all" navbar block (0,2,1) */
.navbar .nav-item a.nav-btn-cotizar,
.navbar-nav .nav-item a.nav-btn-cotizar,
nav .nav-item a.nav-btn-cotizar {
  background: #f6ee54 !important;
  background-color: #f6ee54 !important;
  color: #111 !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 0.4rem 1.1rem !important;
  border-radius: 4px !important;
  margin-left: 0.5rem;
  transition: background 0.3s ease, color 0.3s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.navbar .nav-item a.nav-btn-cotizar:hover,
.navbar-nav .nav-item a.nav-btn-cotizar:hover,
nav .nav-item a.nav-btn-cotizar:hover {
  background: #fff !important;
  background-color: #fff !important;
  color: #111 !important;
  transform: none;
  text-decoration: none;
}

.navbar .nav-item a.nav-btn-cotizar::after,
.navbar-nav .nav-item a.nav-btn-cotizar::after,
nav .nav-item a.nav-btn-cotizar::after {
  display: none !important;
}

/* ---------- Hero secondary CTA button ---------- */
.hero-carousel .carousel-caption .btn-outline-light {
  margin-top: 1rem;
  margin-left: 0.75rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-caption .btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ---------- Quienes Somos — social proof stats ---------- */
.somos-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f6ee54;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ---------- Form inline notifications ---------- */
.form-notification {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-notification.success {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.form-notification.error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #e86b78;
}

/* ---------- reCAPTCHA badge hidden (attribution in footer) ---------- */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 2rem;
  right: 2rem;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  background: #20b857;
  text-decoration: none;
}

.whatsapp-float .fa {
  font-size: 2rem;
  color: #fff !important;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-float .fa {
    font-size: 1.7rem;
  }

  .hero-carousel .carousel-caption .btn-outline-light {
    margin-left: 0;
    margin-top: 0.75rem;
    display: block;
  }

  .somos-stats {
    gap: 2rem;
  }
}
