:root {
  --principal: #1A5DBA;
  --principal2: #ffecdd;
  --secundario: #FF6600;
  --secundario-claro: #F29F05;
  --principal-oscuro: #0F3E7A;
  --font1: #fff;
  --font2: #4FA3FF;
}

.sofia-sans-semi-condensed> {
  font-family: "Sofia Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

body {
  font-family: "Sofia Sans", sans-serif;
  color: var(--oscuro)
}

section {
  height: 100%;
}

/* Titulos */

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secundario);
  text-align: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 3rem;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 950px) {
  h2 {
  font-size: 2.5rem;
}
}

@media (max-width: 567px) {
  h2 {
  font-size: 1.8rem;
}
}

/* ANIMACIONES Y EFECTOS */

/* Animacion cuando entra en viewport */
h2.in-view {
  opacity: 1;
  transform: scale(1);
}

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

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

.bg-principal{
  background-color: var(--principal);
}

.bg-principal2{
  background-color: var(--principal2);
}

.bg-secundario{
  background-color: var(--secundario);
}

.btn-custom{
  background-color: var(--secundario);
  font-weight: 400;
  color: var(--font1)
}

.btn-custom2{
  background-color: var(--principal);
  font-weight: 400;
  color: var(--font1)
}

.btn-custom:hover {
  background: var(--secundario-claro);
  color: #fff;
}


/* NAVBAR */
.navbar {
  background-color: var(--secundario)
}

.navbar .nav-link {
  font-weight: 500;
  color: #ffffff;
}

.navbar .nav-link:hover {
  color: var(--principal-oscuro);
}

.navbar .btn {
  border-radius: 0.75rem;
}

.navbar .navbar-toggler {
  filter: invert(1);
  padding: 0.3rem;

}



/* ================= FOOTER LEGAL ================= */

.footer-legal {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.footer-legal a {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--principal);
  text-decoration: underline;
}

.footer-links {
  flex-wrap: wrap;
}


/* /////////////// HOME ////////// */

/* Hero */

.hero-container{
    padding-top: 3rem;
}

.subtitle-hero {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 1rem;
}

@media (max-width: 950px) {
  .hero-container{
    padding-top: 5rem;
  }
}

@media (max-width: 567px) {
  .hero-container{
    padding-top: 3rem;
  }

  .subtitle-hero {
  font-size: 0.9rem;
}
}


/* MOBILE: scroll horizontal */
@media (max-width: 950px) {
  .hero-slideshow-mobile {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .hero-slideshow-mobile::-webkit-scrollbar {
    display: none; /* limpio */
  }

  .slide-item {
    flex: 0 0 70%;
    max-width: 70%;
    scroll-snap-align: center;
    text-align: center;
  }

  .slide-item img {
    width: 100%;
    height: 130px;                /* 🔑 tamaño fijo */
    object-fit: cover;            /* 🔑 recorte elegante */
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  .slide-item p {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
  }
}

/* DESKTOP: se oculta este efecto */
@media (min-width: 950px) {
  .hero-slideshow-mobile {
    display: none;
  }
}

/* Tipos DEMO */

/* Contenedor scroll horizontal en mobile */
.rubros-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

/* Ocultar scrollbar (opcional, moderno) */
.rubros-scroll::-webkit-scrollbar {
  display: none;
}

/* Card de rubro */
.rubro-card {
  min-width: 120px;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rubro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Ícono */
.rubro-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Desktop: sin scroll */
@media (min-width: 992px) {
  .rubros-scroll {
    overflow-x: visible;
    flex-wrap: wrap;
  }
}


/* Tipos de negocios */

/* Imagen uniforme en cards */
.card-img-top-wrapper {
  height: 140px;              /* todas iguales */
  overflow: hidden;
}

.card-img-top-wrapper img.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* recorte elegante */
}

/* Ultimos negocios */
#ultimos .card-img-top {
  max-height: 150px;
}

/* Hover elegante */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}


/* /////////////// LANDING-NEGOCIOS ////////// */

/* Generales */
.btn {
  border-radius: 2rem;
}

.section-title-landing {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.subtitle-landing {
  font-size: 1.25rem;
  font-weight: 100;
  margin-top: 1rem;
}

/* Generales responsive */
@media (max-width: 567px) {
    
    #landing-negocios p {
      font-size: 0.9rem;
    }
    .section-title-landing {
      font-size: 2rem;
    }
}


/* ######### Hero landing */
.hero-img{
  height: 50px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--principal-oscuro)
}

/* HERO SLIDESHOW */
.hero-slideshow {
  position: relative;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 2rem;
}

.hero-slideshow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  animation: heroSlide 25s infinite;
  z-index: 1;
}

/* OSCURECER LAS IMÁGENES */
.hero-slideshow .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}


@media (max-width: 567px) {
    .hero-slideshow {
      height: 50vh;
    }
    .hero-title {
      font-size: 2.5rem;
      font-weight: 700;
    }

    .hero-img {
      height: 100px;
    }
}


/* ANIMACIÓN DEL SLIDESHOW */
@keyframes heroSlide {
  0% {
    background-image: url("/static/img/home/portadas/peluqueria.b9b6766c74b8.webp");
    opacity: 1;
  }

  20% {
    background-image: url("/static/img/home/portadas/estetica.3a066a35ddb9.webp");
    opacity: 1;
  }

  40% {
    background-image: url("/static/img/home/portadas/canchas-futbol.085e35b70bd9.webp");
    opacity: 1;
  }

  60% {
    background-image: url("/static/img/home/portadas/canchas-padel.e1789b0e2ab0.webp");
    opacity: 1;
  }

  80% {
    background-image: url("/static/img/home/portadas/peluqueria.b9b6766c74b8.webp");
    opacity: 1;
  }

  100% {
    background-image: url("/static/img/home/portadas/profesionales.72fd9e8a970d.webp");
    opacity: 1;
  }
}


/* COMO FUNCIONA # negocios */

.diapositivas-container {
  position: relative;
  height: 300px;
}

.diapositiva {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  
}

.diapositiva.active {
  opacity: 1;
}

.diapositivas {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  
}

.diapositivas.active {
  opacity: 1;
}



/* ICON BOXES */
.icon-box {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.8rem;
  transition: 0.3s ease;
  height: 100%;
  text-align: center;
}

.icon-box:hover {
  transform: translateY(-5px);
  border-color: var(--principal);
}

.icon-box h5 {
  font-weight: 700;
  margin-top: 1rem;
}

/* HIGHLIGHT */
.highlight {
  background: var(--principal);
  color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 1.15rem;
}

/* CTA */
.cta-btn {
  background: var(--principal);
  color: #fff;
  padding: 0.9rem 2.5rem;
  font-size: 1.2rem;
  border-radius: 10px;
  margin-top: 1.5rem;
}

.cta-btn:hover {
  background: var(--emerald-dark);
  color: #fff;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  margin-top: 4rem;
}


/* ######### ELEGIR DASHBOARD ########## */

#elegir-dashboard .hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#elegir-dashboard .hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#elegir-dashboard .card-body i {
  transition: transform 0.4s ease;
}

#elegir-dashboard .hover-card:hover i {
  transform: scale(1.1);
}

/* ######### MAPA ########## */

#accordion-mapa .accordion-button:not(.collapsed) {
  background-color: white;
  color: var(--secundario);
  font-weight: 600;
  font-size: 1.3rem;
  box-shadow: none;
}

#accordion-mapa .accordion-button {
  background-color: white;
  color: var(--secundario);
  font-weight: 600;
  font-size: 1.3rem;
  box-shadow: none;
}

.card-compact .xsmall {
  font-size: .75rem;
}

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .col-md-7[style] {
    height: 70vh !important;
  }

  .col-md-5[style] {
    max-height: 70vh !important;
  }
}

.map-search-here {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  /* más alto que las capas de Google */
  pointer-events: auto;
  /* por si acaso */
}

@media (max-width: 567px) {
  #accordion-mapa .accordion-button:not(.collapsed) {
    font-size: 1rem;
  }

  #accordion-mapa .accordion-button {
    font-size: 1rem;
  }
}

/* ######### CENTRO DE AYUDA ########## */

 .help-header {
   background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
     url("/static/img/home/portadas/portada2.133337f7ce2e.jpg") center/cover no-repeat;
   color: #fff;
   padding: 10rem 0rem;
 }

 .section-title-ayuda {
   color: var(--secundario);
   font-weight: 700;
   text-align: center;
   margin: 3rem 0 2rem;
   font-size: 2.5rem;
 }

 .lead-ayuda{
  font-size: 1.3rem;
 }

 .accordion-button:not(.collapsed) {
   background-color: white;
   color: var(--secundario);
   box-shadow: none;
 }

 .accordion-button::after {
   filter: invert(1);
 }

 .accordion-item {
   border-radius: 10px;
   overflow: hidden;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
   margin-bottom: 1rem;
 }

 .bi {
   color: var(--emerald);
   margin-right: 0.5rem;
 }

 @media (max-width: 567px) {
    .help-header {
      padding: 4rem 0rem;
    }
    .section-title-ayuda {
      font-size: 1.5rem;
    }
    .lead-ayuda{
      font-size: 1rem;
    }
}

/* /////////////// REGISTRO ////////// */

#alert-registro .prueba {
  font-size: 0.8rem;
}

/* ================= COOKIES BANNER ================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  z-index: 1050;
  padding: 1rem 0;
}

.cookie-text {
  max-width: 720px;
}

.cookie-actions {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cookie-banner {
    padding: 1rem;
  }
}

