html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  /* Fuente Serif como en Us.css */
  font-family: Georgia, 'Times New Roman', Times, serif; 
  margin: 0;
  background-color: #f2f2f2; /* Gris claro */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =======================================================
   ESTILOS DE ENCABEZADO Y NAVEGACIÓN (DESKTOP)
========================================================== */

/* ENCABEZADO */
.barra-superior {
  background-color: #113b64; 
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  position: relative; /* Para el botón de hamburguesa */
  border-bottom: 4px solid #f5b301;
}

.logo-mini {
  display: block;
}

.logo-mini img {
  width: 50px; 
  height: 50px;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.barra-superior h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 28px;
  margin: 0;
  line-height: 1.1;
  text-align: left;
  font-weight: 900;
}

.barra-superior h1 span {
  display: block;
  font-size: 0.85em;
  color: #f5b301;
  font-weight: 700;
  text-align: center; /* Centrado */
}
/* -------------------------------------------------------- */


/* MENÚ (DESKTOP) */
.menu {
  display: block; 
  position: static;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  background-color: #e8e8e8;
  padding: 20px 0;
  margin: 0;
  flex-direction: row; /* Horizontalidad en desktop */
  gap: 20px; 
}

.menu li {
  margin: 0;
  font-weight: 700;
  border: none;
}

/* Estado normal de los botones */
.menu a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  border-radius: 5px;
  background-color: #2a5a8a; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.15); 
  display: inline-block;  
  width: 180px;           
  text-align: center;     
  padding: 8px 0;         
  box-sizing: border-box; 
}

/* Botón al pasar el cursor (Hover) */
.menu a:hover {
  color: #113b64;
  background-color: #f5b301;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

/* Botón "activo" (en qué página estás) para Desktop */
.menu a.active {
  background-color: #c3c1bb; 
  color: #113b64;
  box-shadow: none; 
}


/* --- Botón Hamburguesa (Oculto en Desktop) --- */
.hamburger-toggle { display: none; }
.hamburger-button { display: none; }


/* BARRA DE TÍTULO "¿YA NOS CONOCES?" */
.frase-conocenos {
  text-align: left;
  background-color: #3D5F85;
}

.frase-conocenos h2 {
  color: white;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  box-sizing: border-box;
  
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 800;
  font-size: 26px;
  
}

/* =======================================================
   CONTENIDO PRINCIPAL "HOME" (DESKTOP)
========================================================== */

main {
  flex-grow: 1;
  display: block;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: white; 
  padding: 20px 0;
  border-radius: 10px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

/* --- SECCIÓN INFO Y BENEFICIOS (DESKTOP) --- */
section.info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-top: 20px;
  padding: 0 20px;
  box-sizing: border-box;
}

.lista-beneficios {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-basis: 70%; 
}

.lista-beneficios li {
  position: relative; 
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #113b64;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.3;
  padding-left: 30px; 
}
.lista-beneficios li::before {
  content: "\2713"; /* Checkmark */
  color: #f5b301; /* Color amarillo */
  font-size: 20px;
  position: absolute;
  left: 0;
  top: 0;
  background: none;
  border: none;
  width: auto;
  height: auto;
  border-radius: 0;
  margin-right: 0;
  font-weight: 900;
}

.logo-grande {
  flex-basis: 45%; 
  text-align: right;
}
.logo-grande img {
  width: 100%;
  max-width: 220px; 
  height: auto;
  border-radius: 50%;
  border: 3px solid #f5b301;
}

.prestamos {
  display: block;
  background-color: #fdd348; /* Amarillo muy claro */
  border: 2px solid #a38020; /* Borde amarillo */
  border-radius: 12px;
  padding: 20px 20px;
  margin: 30px auto;
  width: 70%;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra exterior sutil */
}
.prestamos h2 {
  text-align: center;
  color: #113b64;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 24px;
  border-bottom: 2px dashed #a38020; /* Línea separadora */
  padding-bottom: 10px;
}

.lista-prestamos ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0 10px; 
  margin: 0 auto; 
  max-width: 90%;
  font-weight: 600;
  font-size: 16px;
  color: #113b64;
}
.lista-prestamos li {
  position: relative;
  padding-left: 20px; /* Espacio para la viñeta */
  margin-bottom: 5px;
  text-align: left; /* Alineado a la izquierda */
}
.lista-prestamos li::before {
  content: "\2022"; /* Bullet point */
  color: #113b64; /* Color azul (como en móvil) */
  font-size: 16px;
  position: absolute;
  left: 0;
  top: 0;
}
.aparatos {
  text-align: center;
  color: #113b64;
  font-weight: 900;
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 16px;
}
/* -------------------------------------------------------- */


/* =======================================================
   FOOTER Y MENSAJE FINAL (DESKTOP)
========================================================== */

.mensaje-final {
  text-align: center;
  color: #113b64;
  font-weight: 700;
  margin: 40px auto; /* Valor original de separación */
  padding: 0 10%; 
  font-size: 18px; /* Restaurando tamaño original */
  background: none; 
}

.frase-final {
  text-align: center;
  background-color: #113b64; 
  color: white;
  font-weight: 800;
  padding: 15px 0; /* Altura reducida (antes 25px) */
  font-size: 22px;
}
div1{
  background-color: #f5b301;
  color: #113b64;
  padding: 8px 40px; 
  border-radius: 8px;
  display: inline-block;
  font-size: 20px;
  margin-top: 0px;
  font-weight: 900;
  transition: background-color 0.2s;
}
div1:hover {
  background-color: #e8a800;
}


/*---------------------CELULAR (DISEÑO REESTRUCTURADO)------------------------------*/
@media (max-width: 768px) {


  /* --- ENCABEZADO Y MENÚ --- */
  
  .barra-superior { padding: 20px; justify-content: space-between; }
  
  /* Botón Hamburguesa */
  .hamburger-button { 
    display: block; 
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: none; 
    border: none; 
    color: #f5b301; 
    font-size: 32px; 
    cursor: pointer; 
    text-shadow: 0 0 5px rgba(245, 179, 1, 0.5); 
  }
  
  .menu {
    display: block; 
    position: absolute;
    top: 100px; 
    left: auto;
    right: 0; 
    width: 60%; 
    
    height: auto; /* 1. Altura automática */
    max-height: none; /* 2. Sin altura máxima */
    
    background-color: #113b64; 
    z-index: 1000; 
    border-radius:12px; 
    border-left: 2px solid #f5b301; 
    box-shadow: -8px 8px 25px rgba(0, 0, 0, 0.8); 
    
    transform: translateX(100%); 
    visibility: hidden; 
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out; 
    
    overflow-y: auto; 
    overflow-x: hidden;
  }
  
  .hamburger-toggle:checked ~ .menu {
    display: block !important; 
    transform: translateX(0); 
    visibility: visible;
  }

  .menu ul {
    flex-direction: column;
    padding: 0;
    gap: 0;
    background-color: transparent;
  }

  .menu li {
    width: 100%;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(245, 179, 1, 0.3); 
  }

  .menu li:last-child {
      border-bottom: none;
  }

  .menu a {
    background-color: transparent; 
    color: white; 
    text-align: left; 
    display: block;
    width: 100%;
    padding: 25px 15px; 
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box; 
    transition: background-color 0.15s ease, color 0.15s ease; 
  }

  .menu a:hover {
    background-color: #f5b301; 
    color: #113b64;
    box-shadow: none;
  }

  .menu a.active {
    background-color: #f5b301; 
    color: #113b64;
    font-weight: 900;
  }
  
  .frase-conocenos h2 {
    font-size: 18px; 
    padding: 10px 20px; 
    width: auto; 
    max-width: none;
    margin: 0;
  }

  /* --- CONTENIDO PRINCIPAL (MAIN) --- */

  main {
    width: 100%;
    margin: 0;
    background-color: white;
    padding: 20px 15px 20px 15px; 
    box-sizing: border-box;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 25px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    border-radius: 0; 
  }
  
  section.info { 
    display: flex; 
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 25px; 
  }

  .logo-grande { 
    display: none; 
    order: 0; 
  }

  /* --- Recuadro de PRÉSTAMOS (Móvil) --- */
  .prestamos { 
    width: 100%; 
    max-width: 350px; 
    border-radius: 10px;
    padding: 15px 12px; 
    margin: 0; 
    align-self: center;
    order: 1; 
    background-color: #fdd348; 
    border: 2px solid #a38020; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  }

  .prestamos h2 { 
    font-size: 18px; 
    margin-bottom: 10px;
    border-bottom: 1px dashed #a38020; 
    padding-bottom: 8px;
  } 
  
  .lista-prestamos ul { 
    font-size: 12px; 
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
    padding: 0 5px; 
    justify-content: center;
    margin: 0 auto;
    max-width: none;
  }
  
  /* --- Viñetas (bullets) --- */
  .lista-prestamos li { 
    list-style: none; 
    position: relative;
    padding-left: 15px; 
    font-size: 12px; 
    text-align: left; 
    font-weight: 700;
  }

  .lista-prestamos li::before {
    content: "\2022"; 
    color: #113b64; 
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 0;
    display: block; 
    margin-right: 5px;
  }

  .aparatos { font-size: 14px; margin-top: 10px; } 
  
  .lista-beneficios { 
    flex-basis: auto; 
    align-self: center;
    padding-bottom: 0; 
    padding-top: 5px; 
    margin: 0; 
    width: 100%; 
    max-width: 350px; 
    order: 2; 
  }
  .lista-beneficios li {
    margin-bottom: 15px; 
    color: #113b64; font-weight: 900; font-size: 14px; 
    line-height: 1.3; padding-left: 0; 
  }
  
  .lista-beneficios li::before {
    content: "\2713"; 
    display: inline-block; 
    width: 30px; 
    height: 30px; 
    min-width: 30px; 
    min-height: 30px; 
    background-color: #113b64; 
    border: 2px solid #f5b301; 
    border-radius: 50%; 
    margin-right: 12px; 
    position: static;
    color: #f5b301; 
    font-size: 18px; 
    line-height: 26px; 
    text-align: center;
    vertical-align: middle; 
  }
  
  /* --- FOOTER --- */
  
  .mensaje-final {
     text-align: center;
     color: #113b64;
     font-weight: 700;
     margin: 10px auto; 
     padding: 0 15px; 
     font-size: 8px; 
     background: none;
  }
  
  .frase-final {
    text-align: center; 
    background-color: #113b64; 
    color: white; 
    font-weight: 800; 
    padding: 15px; 
    font-size: 18px; 
    line-height: 1.4; 
  }
  div1{ 
    padding: 6px 25px; 
    font-size: 18px;
    margin-top: 0px;
    font-weight: 900;
  }

}