html {
  --blue: #0d91d6;
  --light-blue: #01b3f7;
  --text-color-white: #fff;
  --black: #212529;
  background: #fff;
  accent-color: var(--blue);

  --bs-border-width: 0 !important;
}

::-moz-selection {
  background: var(--blue);
  color: #fff;
}

::selection {
  background: var(--blue);
  color: #fff;
}

input:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

input {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

th {
  font-weight: normal;
}

.input-group .input-group-append {
  z-index: 10;
}

.bi {
  vertical-align: -0.125em;
}

.btn-vivapublicidad {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--red);
}

.text-red {
  color: var(--red);
}

.text-blue {
  color: var(--blue);
}

body {
  font-family: Montserrat;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

b,
strong {
  font-weight: bold;
}

#hero-banner {
  background: url(/wp-content/themes/vivapublicidad/assets/img/home-hero.avif)
    no-repeat;
  background-size: cover;
  background-position: center;
}

#hero-video {
  background: rgb(66, 2, 79);
  background: linear-gradient(
    316.5deg,
    rgba(66, 2, 79, 1) 0%,
    rgba(110, 0, 89, 1) 51%,
    rgba(154, 1, 116, 1) 51%,
    rgba(75, 17, 114, 1) 100%
  );
}

.loop-video::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
  pointer-events: auto;
}

#who_and_why {
  background: url(/wp-content/themes/vivapublicidad/assets/img/fondo-iconos.avif)
    no-repeat;
  background-size: cover;
  background-position: center;
}

#links {
  background: rgb(255, 43, 194);
  background: linear-gradient(0deg, #ff2bc2 0%, #f69965 100%);
}

.squared-pattern {
  background: url(/wp-content/themes/vivapublicidad/assets/img/pattern.avif)
    no-repeat;
}

.customize-support #main-nav {
  margin-top: 32px;
}

#wrapper-navbar {
  background-color: var(--light-grey);
}
.glass {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
}

.drop-shadow {
  filter: drop-shadow(1rem 1rem 0.75rem rgba(0, 0, 0, 0.5));
}

#offcanvasMenu {
  height: fit-content;
  right: 13%;
}

.offcanvas.offcanvas-end {
  transform: translatex(120%) translateY(10px);
}

.offcanvas.show:not(.hiding),
.offcanvas.showing {
  transform: none;
  transform: translateY(10px);
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  overflow: hidden;
}


.fw-800 {
  font-weight: 800;
}

.fs-3_5rem {
  font-size: 3.5rem;
}

.text-balanced {
  text-wrap: balance;
}

.bg-img-as-before::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
}

#main-menu {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-family: rubik;
}

#placements {
  min-height: 85lvh;
  --bs-danger-rgb: 190, 0, 0;
}

#placementTabContainer .active {
  --bs-nav-pills-link-active-bg: var(--bs-danger-bg-subtle);
  --bs-text-opacity: 1;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.navbar-nav li i {
  font-size: 18px;
}

#wrapper-footer-full {
  background: linear-gradient(to right, var(--blue), var(--light-blue));
  color: var(--text-color-white);
}

.footer-copy {
  color: var(--text-color-white);
  margin-bottom: 0px !important;
  font-size: 12px;
}
.fsln-logo {
  width: 30px;
  height: 20px;
  margin: 0 auto;
}

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

.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px;

  min-height: 100px;
  max-height: 150px;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

@media (max-width: 768px) {
  .waves {
    height: 80px;
    min-height: 80px;
  }

  .content {
    height: 30vh;
  }

  h1 {
    font-size: 24px;
  }
}

#page .contenido a {
  color: var(--blacky);
}

.parallax-content {
  z-index: 1;
}

.table-icon {
  align-content: center;
}

.page-link {
  margin-right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--light-green);
}

.page-link,
.page-item:first-child .page-link,
.page-item:last-child .page-link {
  border-radius: 50%;
}

.active > .page-link {
  background-color: var(--dark-green);
}

#page .page-item:not(.active) .page-link:hover {
  background-color: var(--green);
  color: #fff;
}

.bg {
  background-color: rgb(var(--dark-color));
  background-image: radial-gradient(
      circle,
      rgba(var(--ligth-color), 0.5) 25%,
      rgba(var(--dark-color), 0.9) 100%
    ),
    url("data:image/svg+xml,<svg width='50' height='70.262' viewBox='0 0 13.229 18.59' xmlns='http://www.w3.org/2000/svg'><path style='fill:white;fill-opacity:0.15' d='M56.62 127.53c-.234.918-.535 1.78-.923 2.555-1.89 3.778-5.55 6.086-5.69 11.47 1.884 0 1.978 2.2 1.36 3.545-.397.867 1.203 1.636 2.275.29 1.373-1.725 2.002-3.859 2.235-6.134.015-1.101.057-2.161.103-3.144 0-.173-.01-.345-.014-.518-.027-.717.318-1.007.654-.95.337-.057.681.233.656.95q-.013.26-.017.518c.046.983.09 2.043.104 3.144.234 2.275.864 4.41 2.237 6.133 1.072 1.347 2.67.578 2.272-.289-.616-1.346-.521-3.546 1.363-3.546-.141-5.383-3.8-7.69-5.69-11.47a13 13 0 0 1-.925-2.555z' transform='translate(-50.006 -127.53)'/></svg>");
}

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

.table {
  --bs-table-bg: #f5f5f5;
  border-bottom: 4px solid #d4d4d4;
}

.table > thead {
  border-bottom: 2px solid #d4d4d4;
}

.bg-blue {
  background-color: var(--blue);
  --bs-table-bg: var(--blue);
  --bs-table-color: #fff;
  --bs-table-hover-color: #fff;
}

.bg-brown {
  --bs-table-bg: var(--light-brown);
  --bs-table-color: #fff;
}

.bg-white {
  --ligth-color: 225, 225, 225;
  --dark-color: 180, 180, 180;
}

.text-dark-blue {
  --dark-color: 26, 18, 98;
  color: rgb(var(--dark-color));
}

.bs-border-box {
  box-sizing: border-box;
}

.text-emp {
  --dark-color: 26, 18, 98;
  background-color: rgb(var(--dark-color));
}

#contacto {
  background: rgb(150, 1, 200);
  background: linear-gradient(
    0deg,
    rgba(150, 1, 200, 1) 0%,
    rgba(227, 26, 178, 1) 40%,
    rgba(255, 125, 128, 1) 100%
  );
}
/* HERO */

.carousel-caption-title {
  font-size: 1rem;
  font-weight: 800;
  font-family: Montserrat;
}
.carousel-caption-subtitle {
  font-size: 0.8rem;
  font-weight: 300;
  font-family: Montserrat;
}
.carousel-item img {
  height: 360px; /* Puedes ajustar esta altura según lo que necesites */
  object-fit: cover;
  object-position: center;
}
.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  bottom: -0.65rem;
  position: absolute;
  left: 0;
  right: 8%;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  padding-left: 0.5rem;
  color: #fff;
  text-align: left;
  /* border-radius: 0rem 9.5rem 1rem 0rem */
}
.carousel-item img {
}

@media screen and (min-width: 1200px) {
  .carousel-caption {
    position: absolute;
    bottom: -0.65rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    color: #fff;
    text-align: left;
  }

  .carousel-item img {
    height: 378px; /* Puedes ajustar esta altura según lo que necesites */
    object-fit: cover;
    object-position: center;
  }
}
/* Card */

.card-img-fixed {
  height: 200px;
  object-fit: cover;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
}
.card-text {
  font-size: 0.7rem;
}
.headerline {
  border-bottom: 2px solid var(--dark-red);
  text-transform: uppercase;
}
.headerline-title {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: Montserrat, sans-serif;
}
/* Archive */
@media screen and (min-width: 1200px) {
  .card-archive {
    max-width: 540px;
  }
  .entry-title {
    font-size: 3rem;
  }
}

/* paginacion */
.active > .page-link,
.page-link.active {
  color: var(--red);
}

.page-link {
  color: var(--text-color-white);
}
.page-link {
  background-color: var(--dark-red);
}
#page .page-item:not(.active) .page-link:hover {
  background-color: var(--blacky);
}

.related-posts-card .card-title {
  font-size: 0.8rem;
}
.related-posts-card .card-img-top {
  aspect-ratio: 3 / 2; /* Maintain aspect ratio for related images */
  object-fit: cover; /* Cover the area */
}
.entry-title {
  font-size: 1.4rem;
  font-family: Montserrat, sans-serif;
  text-align: center;
}
.entry-content {
  text-align: justify;
}
@media screen and (min-width: 1200px) {
  .entry-title {
    font-size: 2.5rem;
  }
}

/* Search trigger button */
.search-trigger {
  --bs-btn-bg: var(--blue);
  --bs-btn-hover-bg: #0b7db4;
  --bs-btn-color: var(--text-color-white);
  --bs-btn-hover-color: var(--text-color-white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search form in modal */
#searchModal .search-form .form-control {
  border: 1px solid #ced4da !important;
  border-right: 0 !important;
}

#searchModal .search-form .form-control:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 145, 214, 0.25) !important;
}

#searchModal .search-form .btn {
  background-color: var(--blue);
  color: var(--text-color-white);
  border: 1px solid var(--blue) !important;
}

/* Main Menu Animation */
#main-menu .nav-link {
  position: relative;
  transition: all 0.3s ease-in-out;
}

#main-menu .nav-link:hover {
  color: var(--blue);
}

#main-menu .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--blue);
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

#main-menu .nav-link:hover::after {
  width: 100%;
}

#main-menu .current-menu-item > .nav-link,
#main-menu .current-menu-ancestor > .nav-link {
  color: var(--blue);
  font-weight: bold;
}

#main-menu .current-menu-item > .nav-link::after,
#main-menu .current-menu-ancestor > .nav-link::after {
  width: 100%;
}

/* Mobile search trigger style */
.mobile-search-trigger {
  color: var(--bs-navbar-color);
  padding-left: var(--bs-nav-link-padding-x);
  padding-right: var(--bs-nav-link-padding-x);
  display: inline-flex;
  align-items: center;
}

.mobile-search-trigger:hover {
  color: var(--bs-navbar-hover-color);
}

/* Hero News */
.hero-news-container {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-news-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-news-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 500px;
}

.hero-news-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-news-item .hero-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  width: 100%;
  color: white;
}

.hero-news-item .hero-news-content .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 0.125rem;
}

.hero-news-item .hero-news-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.hero-news-item .hero-news-content p {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.hero-news-side-grid {
  display: grid;
  gap: 1rem;
}

.hero-news-side-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 242px;
}

.hero-news-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-news-side-item .hero-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  width: 100%;
  color: white;
}

.hero-news-side-item .hero-news-content .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 0.125rem;
}

.hero-news-side-item .hero-news-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.hero-news-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-news-bottom-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 242px;
}

.hero-news-bottom-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-news-bottom-item .hero-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  width: 100%;
  color: white;
}

.hero-news-bottom-item .hero-news-content .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 0.125rem;
}

.hero-news-bottom-item .hero-news-content h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.5rem;
}
/* Mobile-specific styles for hero cards */
@media (max-width: 767.98px) {
  /* Bootstrap's md breakpoint for mobile */
  .hero-card-wrapper {
    position: relative;
    border-radius: 0.5rem; /* rounded-lg */
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  }
  .hero-news-item .hero-news-content h2 {
    font-size: 1.3rem;
  }
  .hero-news-bottom-item .hero-news-content h3 {
  font-size: 0.7rem;
}
  .hero-card-wrapper img {
    width: 100%;
    height: 12rem; /* h-48 */
    object-fit: cover;
  }

  .hero-news-item {
    height: 350px;
  }
  .hero-card-wrapper .content-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* bg-black bg-opacity-50 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem; /* p-4 */
  }

  .hero-card-wrapper .category-badge {
    background-color: #4f46e5; /* bg-indigo-600 */
    color: #fff; /* text-white */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* font-semibold */
    padding: 0.25rem 0.5rem; /* py-1 px-2 */
    border-radius: 0.375rem; /* rounded-md */
    margin-bottom: 0.5rem; /* mb-2 */
    display: inline-block;
    align-self: flex-start; /* self-start */
  }

  .hero-card-wrapper h2 {
    color: #fff; /* text-white */
    font-size: 1rem; /* text-lg */
    font-weight: 700; /* font-bold */
    margin-bottom: 0; /* Remove default h2 margin */
  }
}

/* Estilos personalizados para archive.php */
.archive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem !important;
}

.archive-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.archive-card .card-img-top {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.archive-card .card-body {
    padding: 1.5rem;
}

.archive-card .card-title {
    font-weight: 700;
    color: #1a202c;
}

.archive-card .card-text {
    color: #718096;
    line-height: 1.6;
}

/* Reproductor de radio flotante */
.radio-player {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 200px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--blue) 100%);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.radio-player .player-controls {
    display: flex;
    align-items: center;
}

.radio-player .play-pause-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.radio-player .play-pause-button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.radio-player .volume-and-title {
    flex-grow: 1;
}

.radio-player .currently-playing {
    display: flex;
    flex-direction: column;
}

.radio-player .currently-playing-label {
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1px;
}

.radio-player .currently-playing-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .radio-player {
        width: calc(100% - 30px);
        bottom: 10px;
        right: 10px;
        padding: 8px;
    }
    
    .radio-player .play-pause-button {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 8px;
    }
    
    .radio-player .currently-playing-label {
        font-size: 0.75rem;
    }
    
    .radio-player .currently-playing-title {
        font-size: 0.65rem;
    }
}
