body {
    background: #ffffff !important;
    overflow-x: hidden;
}


.logo-img {
    max-height: 50px; /* Ajusta el tamaño máximo del logo */ 
    width: auto; /* Mantén la proporción de la imagen */
    height: auto; /* Permite que el alto se ajuste automáticamente */
  }
  
  @media (max-width: 768px) {
    /* Opcional: Cambiar tamaño del logo para pantallas pequeñas */
    .logo-img {
      max-height: 40px; /* Ajusta según el diseño */
    }
  }
.carousel {
    background:#007aeb; 
  }
  
  /*
  Forces image to be 100% width and not max width of 100%
  */
  .carousel-item .img-fluid {
    width:100%;
  }
  
  /* 
  anchors are inline so you need ot make them block to go full width
  */
  .carousel-item a {
    display: block;
    width:100%;
  }

  footer{
    background-color: #0a132d;
    color: white;
  }


  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 19, 45, 1), rgba(255, 255, 255, 0.1));
  }
  .content {
    position: relative;
    z-index: 2;
    color: white;
  }
  .map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
  }





  .floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    width: 250px;
    transition: all 0.3s ease-in-out;
  }

  .floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 10px;
  }

  .floating-buttons.hidden {
    display: none;
  }

  .toggle-button {
    cursor: pointer;
    position: absolute;
    top: -15px;
    right: -15px;
    background: #0a132d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }

    #botonera-main .btn:hover {
    color: inherit !important;
    background-color: transparent !important;
    text-decoration: none !important;
  }


  .logo-footer-white {
    filter: grayscale(1) brightness(2);
  }

  /* Preguntas Frecuentes */
  /* Cambiar el color de hover del botón */
.accordion-button:hover {
    background-color: rgba(10, 19, 45, 1) !important;
    color: white !important; /* Fuerza el texto blanco al hacer hover */
}

/* Cambiar el color de fondo y texto cuando el botón está activo (expandido) */
.accordion-button:not(.collapsed) {
    background-color: rgba(10, 19, 45, 1) !important;
    color: white !important; /* Texto blanco cuando está expandido */
    border-color: rgba(10, 19, 45, 1) !important; /* Aseguramos bordes del mismo color */
}

/* Restaurar color negro para el texto cuando el botón no está activo */
.accordion-button.collapsed {
    background-color: white !important; /* Fondo blanco por defecto */
    color: black !important; /* Texto negro por defecto */
    border-color: #dee2e6 !important; /* Bordes originales de Bootstrap */
}

.breadcrumb a:hover{
    color:#FE6565;
}

/* Sobrescribe los estilos de WordPress */
.breadcrumb {
    display: flex !important; /* Sobrescribe display:block */
    margin: 0 !important;    /* Sobrescribe margin */
    padding: 0.5rem 1rem !important; /* Ajusta padding */
} 


.custom-container {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 1.5rem;
} 


/* BOTON DE TRANSPARENCIA ACTIVA */ 
.chile-button {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.375rem 0.75rem; /* Ajustes típicos de Bootstrap */
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem; /* Bordes redondeados de Bootstrap */
    border: none; /* Sin bordes */
    color: white !important; /* Texto blanco inicial */
    background: linear-gradient(
        to right,
        #0055A4 0%, 
        #0055A4 90%, 
        #ffffff 90%, 
        #ffffff 95%, 
        #D52B1E 95%, 
        #D52B1E 100%
    ); /* Gradiente inicial */
    transition: all 1s ease; /* Transición suave para todos los cambios */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    text-decoration: none; /* Sin subrayado */
}

.chile-button:hover {
    background: linear-gradient(
        to right,
        #0055A4 0%, /* Azul inicial */
        #ffffff 50%, /* Blanco ocupa la mayor parte */
        #D52B1E 100% /* Rojo al final */
    ); /* Cambiamos gradiente al hacer hover */
    color: #0a132d !important; /* Texto cambia a oscuro */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Sombra más intensa */
}


.sidebar .btn {
    flex-grow: 1;  
}

.content { 
    color: initial; /* Permite que las clases como text-dark y text-white funcionen correctamente */
}

.bg-dark {
    background-color: #212529 !important;
}
.bg-light {
    background-color: #ffffff !important;
}


/* Contenedor de la tarjeta */
/* Contenedor principal de la tarjeta */
.flip-card {
    background-color: transparent;
    width: 250px;
    height: 250px;
    perspective: 1000px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  }
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .flip-card-front {
    background-color: #0a132d;
  }

  .flip-card-front img {
    height: 190px; /* Altura fija para todas las imágenes */
    width: 100%;   /* Asegura que ocupe todo el ancho del contenedor */
    object-fit: cover; /* Corta y ajusta la imagen para llenar el espacio */
    border-radius: 0.25rem 0.25rem 0 0; /* Mantener bordes redondeados en la parte superior */
}

  
  .flip-card-back {
    background-color: #0a132d;
    color: white;
    transform: rotateY(180deg);
  } 
  


  .organigrama-svg {
    overflow-x: auto;
    width: 100%;
    border: 1px solid #ddd;
}
svg {
    min-width: 1000px; /* Ajusta este valor según el contenido */
    border: none;
}
.organigrama-svg {
    border: none;
}

.btn-animated {
    background: linear-gradient(45deg, #1dd1a1, #54a0ff);
    color: #fff;
    border: none;
    font-weight: bold;
    transition: background 3s ease, transform 3s ease;
  }
  
  .btn-animated:hover {
    background: linear-gradient(45deg, #6cabcf, #089778);
  }

  /* Fondo semitransparente para el texto */
.bg-dark-opacity {
    background: rgba(52, 58, 64, 0.6); /* Negro con transparencia */
    padding: 15px;
    border-radius: 10px;
}




/* Botón con fondo principal y franjas visibles */
.btn-gradient {
    position: relative;
    background-color: #0A132D !important; /* Fondo principal */
    color: #fff !important; /* Texto blanco */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    overflow: hidden;
    z-index: 1;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
 
/* Franjas visibles en reposo */
.btn-gradient::before, 
.btn-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50%; /* Cada franja ocupa la mitad */
    height: 4px; /* Altura de las franjas */
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.btn-gradient::before {
    left: 0;
    background-color: #006FB3; /* Azul franja izquierda */
}

.btn-gradient::after {
    right: 0;
    background-color: #FE6565; /* Roja franja derecha */
}

/* Hover: Cambia el fondo del botón al rojo */
.btn-gradient:hover {
    background-color: #FE6565 !important; /* Fondo rojo */
    color: #fff !important; /* Texto blanco */
}

/* Hover: Cambia la franja roja a blanca */
.btn-gradient:hover::before {
    background-color: #006FB3; /* Azul permanece igual */
}

.btn-gradient:hover::after {
    background-color: #fff; /* Roja cambia a blanco */
}

/* Asegurar que el texto esté por encima */
.btn-gradient span {
    position: relative; /* Texto siempre visible */
    z-index: 2; /* Sobre las franjas */
    color: #fff; /* Texto blanco */
}


#weather-widget {
    display: flex;
    align-items: center;
    height: auto; /* No fuerza altura extra */
    padding: 0; /* Sin relleno extra */
}

#weather-icon,
#weather-temp {
    line-height: 1; /* Asegura alineación vertical del contenido */
    vertical-align: middle;
}


.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 4px !important;
  }
  
  .grecaptcha-badge:hover {
    width: 256px !important;
  }

  .card-img-secundaria {
    width: 100%; /* Ajusta el ancho completo */
    height: 100%; /* Asegura que cubra todo el alto del contenedor */
    object-fit: cover; /* Hace que la imagen cubra el área sin deformarse */
    border-top-left-radius: 8px; /* Redondea esquina superior izquierda */
    border-bottom-left-radius: 8px; /* Redondea esquina inferior izquierda */
}


.text-bg-purple {
    background-color: #6f42c1; /* Morado */
    color: #fff;
}
.text-bg-pink {
    background-color: #e83e8c; /* Rosado */
    color: #fff;
}
