body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-image: url(../img/patronseguros.png);
  background-size: initial;
  background-repeat: no-repeat;
  background-position: center;
}

.header {
  position: relative;
  height: 500px;
  overflow: hidden;
  width: 100%;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
     background-color: rgb(0 31 88 / 90%);
  z-index: 3;
}

.header-side {
  position: absolute;
  top: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 2;
}

.header-side.left {
  left: -11rem;
  height: 30rem;
  background-image: url(../img/left15.png);
  width: 50rem;
}

.header-side.right {
  right: -6rem;
  background-image: url(../img/left12.png);
  height: 25rem;
  width: 38rem;
}

.header-content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: white;
  padding-top: 100px;
}

.header-ellipse {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 13rem;
  background-color: white;
  border-top-left-radius: 60rem 12rem;
  border-top-right-radius: 60rem 12rem;
  z-index: 3;
}

.top-logo {
  position: absolute;
  top: 20px;
  left: 30px;
  z-index: 5;
  height: 4rem;
}

/* Galería */
.logo-container {
  background-color: rgb(253, 248, 248);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 7em;
  height: 7em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto;
  transition: transform 0.3s ease;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
 /* border-radius: 50%;*/
 border-radius: 2rem;
  padding: 4px; /* Borde más delgado visualmente */
  background-color: white;
}

/* Curva en la primera fila */

    @media (min-width: 768px) {
   .logo-curvo:nth-child(1) { transform: translateY(-1rem); }
.logo-curvo:nth-child(2) { transform: translateY(-3.5rem); }
.logo-curvo:nth-child(3) { transform: translateY(-4.5rem); }
.logo-curvo:nth-child(4) { transform: translateY(-4.5rem); }.logo-curvo:nth-child(5) { transform: translateY(-3.5rem); }
.logo-curvo:nth-child(6) { transform: translateY(-1rem); }

    }




    
.footer-section {
  position: relative;
  background-color: #193568; 
  color: white;
  overflow: hidden;
  padding-top: 2rem; 
}

.footer-top-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  background-color: #7b3; 
  border-bottom-left-radius: 100% 30px;
  border-bottom-right-radius: 100% 30px;
  z-index: 1;
}

.footer-section .container {
  position: relative;
  z-index: 2;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section a:hover {
  color: #7b3;
}








.custom-loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}

.custom-loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-icon {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.loader-ring {
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top: 4px solid #7b3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

@keyframes spin {
  0%   { transform: rotate(0deg);   }
  100% { transform: rotate(360deg); }
}

