body {
    background-color: white;
    color: #5a6268;
    font-family: 'Urbanist', sans-serif;
}

/* Evita el “salto” visual en la pantalla inicial mientras llega el HTML del último informe */
body.inform-google-page.inform-google-boot .start_screen {
    opacity: 0;
    visibility: hidden;
}

body.inform-google-page.inform-google-ready .start_screen {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease;
}

/*@media (max-width: 768px) {
    body {
        padding: 25px;
    }
}*/


.fa-ad,
.fa-dollar-sign,
.fa-user-friends,
.fa-chart-line,
.fa-clock,
.fa-th {
  color: #9f7ef8;
  font-size: 20px;
  margin-bottom: 5px;
}

.filter-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f7f4fb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    transition: height 0.3s ease;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1e2530;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #e5ddf4;
}

/* Estilos de btn_more_details_card movidos a general.css para uso común */
  

.filter-header span {
    /*font-size: 18px;
    font-weight: bold;*/
}

.toggle-button {
    background: none;
    border: none;
    color: #1e2530;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transform: rotate(0);
    transition: transform 0.3s ease;
    outline: none !important;
}

.filter-body {
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    display: none;
}

.form-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

select,
input[type="date"],
.generate-button {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.generate-button {
    background-color: #1e2530;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    /*margin: auto;*/
}

.generate-button:hover {
    background-color: #563496;
}


.media-content img {
    width: 100%;
    object-fit: contain;
}





h1 {
    text-align: center;
    margin-bottom: 20px;
}

.best-ads {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.best-ad {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.best-ad h3 {
    margin-top: 0;
    color: #1e2530;
}

.best-ad p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.best-ad .data {
    color: #333;
}

table {
    font-size: 13px;
    width: 100% !important;
    margin: auto;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px !important;
}

thead {
    background-color: #1e2530;
    color: #fff;
}

th,
td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.link {
    color: #1e2530;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.dates-summary {
    width: calc(100% + 40px) !important;
    background-color: #1e25300f;
    padding: 10px 20px;
    margin-left: -20px;
    margin-right: -20px;
    color: #1e2530;
    margin-top: -20px;
}

.text-brown {
    color: #CD7F32;
}



/* Estilos de .card y .card-body movidos a general.css para uso común */




/* Modal de Pantalla Completa */
.full-screen-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* Fondo oscuro translúcido */
    z-index: 1000;
    color: #5a6268  ;
    overflow-y: auto; /* Habilita desplazamiento para el contenido largo */
}

/* Encabezado Fijo */
.modal-header {
    position: sticky; /* Se mantiene visible al hacer scroll */
    top: 0; /* Pegado al borde superior */
    padding: 15px;
    z-index: 1001; /* Asegura que esté encima del contenido */
    display: flex;
    background-color: white;
    justify-content: space-between;
    align-items: center;
    color: #5a6268 ;
    box-shadow: 6px 0 15px rgba(0, 0, 0, 0.05) !important;
}

/* Botón de cierre */
.close-modal {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* Cuerpo del modal */
.modal-body {
    padding: 50px;
}

.img_filters_modal {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: auto;
    margin-bottom: 25px;
}


.reach-group {
    margin-top: 15px;
}

.bar {
    margin: 5px 0;
    color: white;
    line-height: 20px;
    border-radius: 5px;
    padding: 5px 10px;
}

/* Referencia de colores */
.color-reference {
    margin-top: 20px;
}

.color-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 4px;
}

.bar.male {
    background-color: #1e2530;
}

.bar.female {
    background-color: #9c27b0;
}

.bar.unknown {
    background-color: #607d8b;
}

/* Aplica las mismas clases de color */
.color-box.male {
    background-color: #1e2530;
}

.color-box.female {
    background-color: #9c27b0;
}

.color-box.unknown {
    background-color: #607d8b;
}

.ad-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .section-title {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
  }
  








  /*MAPA MODAL*/
  .modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    position: relative;
    border-radius: 8px;
  }
  
  .close-modal-location {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
  }
  
  #map {
    height: 400px;
    width: 100%;
  }

/* Estilos de tarjeta de filtros y barra sticky movidos a general.css (rw-*) */
  








  .ad-general-info .section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.ad-general-info .section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.ad-general-info .item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.ad-general-info .item span {
    display: inline-block;
    margin-right: 5px;
    font-weight: 600;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #0056b3;
    color: white;
}

/* Estilo para el enlace sin cambio de color en hover */
a.btn.btn-add-custom-color {
    color: inherit !important; /* Mantiene el color actual */
    text-decoration: none !important; /* Opcional: elimina el subrayado */
}

a.btn.btn-add-custom-color:hover {
    color: inherit !important; /* Mantiene el color original al hacer hover */
    text-decoration: none !important; /* Evita el subrayado en hover */
}

#id_rival, #id_sector, #dat_start, #dat_end {
    height: 50px !important;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 5px;
    border-radius: 8px;
}

.loading {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 999999999;
    align-content: center;
}

/* Fondo negro translúcido */
.overlay_inform {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 37%);
    backdrop-filter: blur(4px);
    z-index: 999; /* Asegura que esté detrás del contenido */
}




/* Contenedor del video (placeholder) */
.video-placeholder {
    position: relative;
    text-align: center;
    /* Puedes ajustar márgenes o padding si es necesario */
  }
  
  /* Estilo del enlace/play button */
  .play-btn {
    display: inline-block;
    text-decoration: none;
    position: relative;
  }
  
  /* Círculo con degradado y efecto metálico */
  .circle {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #c07bed 0%, #1e2530 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(192,123,237,0.6);
    transition: transform 1s ease, box-shadow 0.3s ease;
  }
  
  /* Efecto al pasar el mouse: la burbuja se agranda y el brillo "late" */
  .play-btn:hover .circle {
    /*transform: scale(1.1);*/
    box-shadow: 0 0 25px rgba(192,123,237,1);
    animation: pulse 1.5s infinite ease-in-out;
  }
  
  /* Keyframes para el efecto de pulso (latido) */
  @keyframes pulse {
    0%, 100% {
      transform: scale(1.1);
      box-shadow: 0 0 25px rgba(192,123,237,1);
    }
    50% {
      transform: scale(1.15);
      box-shadow: 0 0 35px rgba(192,123,237,1);
    }
  }
  
  /* Triángulo que representa el icono de Play */
  .triangle {
    width: 0;
    height: 0;
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }
  
  /* Texto debajo del botón */
  .play-text {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    color: #1e2530;
    text-decoration: none !important;
  }

  a > span {
    text-decoration: none !important;
  }


  #filter-form {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    column-gap: 25px;
    justify-content: center;

}

/* Estilo para cada campo del formulario */
#filter-form .form-group {
    flex: 1;
    min-width: 200px; /* Ajusta el ancho mínimo para que no se deformen los campos */
}

/* Estilo responsive para móviles */
@media (max-width: 768px) {
    #filter-form {
        flex-direction: column;
    }

    #filter-form .form-group {
        width: 100%; /* Cada campo ocupa todo el ancho */
    }

    #filter-body {
        height: calc(100vh - 50px);
    }

    #filter-form .form-group {
        min-width: auto;
    }

    .generate-button {
        width: 100%;
    }
}



.start_screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 1;
    overflow: hidden;
  }
  
  .swal-zindex-top {
    z-index: 99999;
  }
  
  
  .filter-placeholder {
    min-height: 50px; /* o lo que necesites para mantener el equilibrio visual */
    opacity: 0;
    animation: aparecerSuave 0.3s ease forwards;
    animation-delay: 0.3s;
    transition: opacity 1s ease;
    text-align: center;
  }
  
  @keyframes aparecerSuave {
    to {
      opacity: 1;
    }
  }
  
  
  
  .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(106, 27, 154, 0.7);
    border-radius: 50%;
    pointer-events: none;
    animation: fly 1s forwards;
    z-index: 10;
  }
  
  @keyframes fly {
    0% {
      transform: translate(0, 0) scale(1);
      opacity: 1;
    }
    100% {
      transform: translate(var(--x), var(--y)) scale(0.2);
      opacity: 0;
    }
  }
  
  .section_new_inform_one,
  .section_new_inform_two {
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background-color: #f4f6fa ;
  }
  
  .section_new_inform_one:hover,
  .section_new_inform_one.active {
    background-color: #cab6ff; /* color del hover y del clic */
  }
  
  .section_new_inform_two:hover {
    background-color: #eaeaeb;
  }
  
  .section_new_inform_one img,
  .section_new_inform_two img {
    transition: transform 0.5s ease;
    margin-bottom: 15px;
  }
  
  .section_new_inform_one:hover img,
  .section_new_inform_two:hover img {
    transform: scale(1.05);
    /*filter: brightness(1.1);*/
  }
  
  .section_new_inform_one h3,
  .section_new_inform_two h3 {
    transition: all 0.4s ease;
  }
  
  .section_new_inform_one:hover h3,
  .section_new_inform_two:hover h3 {
    color: #6a1b9a;
  }
  
  .fade-out {
    animation: fadeOutRight 0.4s forwards;
  }
  @keyframes fadeOutRight {
    to {
      opacity: 0;
      transform: translateX(100px);
    }
  }
  
  .fade-in {
    animation: fadeInLeft 0.4s forwards;
  }
  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .date-range-inputs {
    margin-left: -5px !important;
    margin-right: -5px !important;
  }
  
  #filter-form .form-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100%;
  }
  
  #filter-form #generate_inform {
    width: 100% !important;
    max-width: 100% !important;
  } 
  
  #filter-form-new #chr_country {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  #filter-form #chr_ad_type {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  #filter-form #date_range {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .date-range-inputs .form-group {
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .date-range-inputs input {
    width: 100%;
  }
  
  .logo-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: white;
    padding: 10px 10px 7px 10px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    opacity: 0;
    animation: aparecerSuave 0.3s ease 0.8s forwards;
  }
  
  .logo-central:hover {
    /* transform: translate(-50%, -50%) scale(1.1);*/
  }

  .section_new_inform_one {
    border-right: 1px solid #e5e5e5;
  }
  
  @media (max-width: 767.98px) {
    .ocultar-mobile {
      display: none !important;
    }
  
    .mostrar-mobile {
      display: flex !important;
    }
  
  }

  
.gpt-resume h3 {
  margin-top: 15px;
  font-size: 1rem;
  color: #583499;
}

.gpt-resume h2 {
  font-size: 1.5rem;
  margin-top: 15px;
}





/* Estilo general del acordeón */
.accordion {
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

/* Cada ítem del acordeón */
.accordion-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
}

.accordion-item:last-child {
  border-bottom: none;
}

/* Encabezado del acordeón */
.accordion-header {
  background-color: #fff;
}

/* Botón del acordeón */
.accordion-button {
  text-align: left;
  width: 100%;
  color: #1e2530;
  background-color: #fff;
  color: #343a40;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: 0.5s all;
}

.accordion-button:hover {
  color: #1e2530;
}

.accordion-button:focus {
  outline: none;
  box-shadow: none;
}

/* Botón expandido */
.accordion-button:not(.collapsed) {
  width: 100%;
  color: #1e2530;
  background-color: #fff;
}

/* Icono de flecha (Bootstrap lo maneja, aquí se personaliza) */
.accordion-button::after {
  font-size: 1.25rem;
  color: #6c757d;
}

/* Contenido del acordeón */
.accordion-collapse {
  border-top: 1px solid #e9ecef;
}

.accordion-body {
  background-color: #fff;
  padding: 1rem;
  color: #495057;
  line-height: 1.5;
}

/* Estilos para los encabezados internos y párrafos */
.gpt-resume h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.gpt-resume p {
  margin-bottom: 0.75rem;
}

.gpt-resume strong {
  color: #495057;
}

.analysis-gpt p {
  font-size: 15px;
}

/* ============================================
   ESTILOS BATTLE ARENA PARA INFORM GOOGLE
   ============================================ */



/* Responsive para móviles */
@media (max-width: 768px) {


    .ba-card-separator {
        border-right: none !important;
    }

    .ba-card-plain > .card-body {
        padding: 15px !important;
    }
}

/* Skeleton del último informe */
.last-inform-skeleton {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 8px 0;
}

.skeleton-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  flex-shrink: 0;
}

.skeleton-line {
  height: 14px;
  width: 160px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}