/* =============================================
   RESPONSIVE STYLES - INDEX PAGE
   Breakpoints:
   - 1200px (Computadoras / Desktops)
   - 768px  (Tablets)
   - 480px  (Smartphones)
   ============================================= */

/* =============================================
   MAX-WIDTH: 1200px — Desktops
   ============================================= */
@media (max-width: 1200px) {

  /* --- Header (logo + botón arriba, nav abajo) --- */
  .brand-header {
    height: auto;
    padding: 10px 4%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo-container {
    width: 200px;
    order: 1;
  }

  .aside-btn {
    order: 2;
  }

  .nav-header {
    order: 3;
    width: 100%;
  }

  .brand-header ul {
    gap: 10px;
    justify-content: center;
  }

  .brand-header ul li a {
    font-size: 1rem;
    padding: 8px 8px;
  }

.card-list li p {
    font-size: 1rem;
  }

  /* --- Login Section --- */
  .login-section {
    padding: 40px 60px;
  }

  .login-container {
    padding: 5px 60px;
  }

  .login-section .brand-container h1 {
    font-size: 3rem;
  }

  .brand-container h2 {
    font-size: 1.6rem;
  }

  .form-container {
    padding: 10px 35px;
  }

  .form-container img {
    width: 250px;
  }

  /* --- Nosotros --- */
  .card-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .card-list li {
    padding: 20px 30px;
  }

  /* --- Beneficios --- */
  .services {
    height: auto;
    min-height: auto;
    padding: 0;
  }

  .services-content {
    padding: 70px 0 40px 0;
  }

  .services-content h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 30px;
  }

  .services-content p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .services-group {
    grid-template-columns: repeat(3, 1fr);
    width: 95%;
    margin-top: 30px;
  }

  .services-1 {
    height: auto;
  }

  .services-1 h3 {
    font-size: 1.1rem;
  }

  .services-1 p {
    font-size: 0.95rem;
  }

  /* --- Prestamos --- */
  .general {
    height: auto;
  }

  .general-fondo {
    grid-template-columns: 1fr 1fr;
    height: auto;
    padding: 80px 30px 20px 30px;
  }

  .fondodesc {
    height: auto;
    padding: 4vh;
    grid-template-rows: auto auto auto;
    gap: 15px;
  }

  .fondodesc h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .fondodesc p {
    font-size: 1rem;
  }

  .detail {
    font-size: 0.95rem;
  }

  .carousel {
    display: block;
  }

  /* --- Contacto --- */
  .contactanos {
    height: auto;
  }

  .contact__contenedor {
    grid-template-columns: 1fr 1fr;
    height: auto;
    padding: 8vh;
  }

  /* --- Footer --- */
  .link {
    display: grid;
  }

  /* --- Scroll --- */
  [id] {
    scroll-margin-top: 140px;
  }
}

/* =============================================
   MAX-WIDTH: 768px — Tablets
   ============================================= */
@media (max-width: 768px) {

  /* --- Header (logo + botón arriba, nav abajo) --- */
  .brand-header {
    height: auto;
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .logo-container {
    width: 160px;
    order: 1;
    flex-shrink: 0;
  }

  .aside-btn {
    order: 2;
    flex-shrink: 0;
  }

  .aside-btn .btn-submit {
    width: auto;
    padding: 0.6rem 20px;
    font-size: 0.9rem;
  }

  .nav-header {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .brand-header ul {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-header ul li a {
    font-size: 0.8rem;
    padding: 5px 8px;
    border-width: 2px;
    white-space: nowrap;
  }

  /* --- Login Section --- */
  .login-section {
    grid-template-columns: 1fr;
    padding: 20px 20px;
    gap: 25px;
  }

  .login-container {
    padding: 5px 10px;
  }

  .brand-container {
    padding-top: 15px;
  }

  .login-section .brand-container h1 {
    font-size: 2.2rem;
  }

  .brand-container h2 {
    font-size: 1.3rem;
  }

  .logo-figure {
    width: 60%;
  }

  .logo-figure img {
    width: 50%;
  }

  .bg-image {
    height: 150dvh;
  }

  .form-container {
    padding: 10px 25px;
  }

  .form-container img {
    width: 200px;
  }

  .form-input {
    padding: 12px;
    border-radius: 12px;
  }

  .btn-submit {
    width: 100%;
    max-width: 280px;
    font-size: 1rem;
    padding: 0.8rem 12px;
  }

  .form-footer {
    gap: 20px;
    padding-bottom: 20px;
  }

  /* --- Nosotros --- */
  .us-container {
    padding: 1.5rem 1rem;
  }

  .us-card {
    padding: 1.5rem 1rem;
  }

  .us-card h2 {
    font-size: 1.8rem;
  }

  .txt-p {
    font-size: 0.95rem;
  }

  .card-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card-list li {
    padding: 20px 15px;
  }

  .img-card img {
    width: 100px;
  }

  /* --- Beneficios --- */
  .services {
    height: auto;
    padding-bottom: 40px;
  }

  .services-content {
    padding: 50px 15px 20px 15px;
  }

  .services-content h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .services-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
  }

  .services-group {
    grid-template-columns: 1fr;
    width: 90%;
    gap: 25px;
    margin-top: 25px;
  }

  .services-1 {
    height: auto;
    grid-template-rows: auto auto auto;
    gap: 10px;
    padding: 15px;
  }

  .services-1 img {
    width: 10vh;
  }

  .services-1 h3 {
    font-size: 0.95rem;
  }

  .services-1 p {
    font-size: 0.85rem;
  }

  /* --- Prestamos --- */
  .general-fondo {
    padding: 40px 15px 30px 15px;
    grid-template-columns: 1fr;
    height: auto;
    gap: 30px;
  }

  .presdescrip {
    height: auto;
  }

  .fondodesc {
    grid-template-rows: auto auto auto;
    padding: 4vh;
    height: auto;
    width: 100%;
  }

  .fondodesc h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
  }

  .fondodesc p {
    font-size: 0.9rem;
    text-align: center;
  }

  .detail {
    grid-template-columns: 15% 85%;
    font-size: 0.85rem;
    gap: 5px;
    align-items: start;
  }

  .detail svg {
    width: 25px;
    height: 25px;
  }

  .carousel {
    margin-top: 20px;
  }

  /* --- Contacto --- */
  .contactanos {
    height: auto;
  }

  .contact__contenedor {
    grid-template-columns: 1fr;
    padding: 4vh 2vh;
    height: auto;
  }

  .contact__contenedor h2 {
    font-size: 1.6rem;
  }

  .fondo_form {
    padding: 15px;
  }

  .formulario {
    width: 100%;
    font-size: 0.9rem;
  }

  .continfo {
    padding: 15px;
  }

  .cont-img {
    width: 60%;
    max-width: 220px;
  }

  /* --- Footer --- */
  .footer {
    height: auto;
  }

  .link {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 10px;
  }

  .link a {
    font-size: 0.85rem;
  }

  /* --- Modal --- */
  .dialog-content {
    margin: 15% auto;
    width: 90%;
  }

  /* --- Scroll --- */
  [id] {
    scroll-margin-top: 180px;
  }
}

/* =============================================
   MAX-WIDTH: 480px — Smartphones
   ============================================= */
@media (max-width: 480px) {

  /* --- Header (logo + botón arriba, nav abajo) --- */
  .brand-header {
    padding: 8px 10px;
    gap: 8px;
  }

  .logo-container {
    width: 120px;
    order: 1;
  }

  .aside-btn {
    order: 2;
  }

  .aside-btn .btn-submit {
    padding: 0.5rem 15px;
    font-size: 0.8rem;
  }

  .nav-header {
    order: 3;
    width: 100%;
  }

  .brand-header ul {
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-header ul li a {
    font-size: 0.65rem;
    padding: 4px 5px;
    border: solid 2px transparent;
  }

  .brand-header ul li a:hover {
    border: solid 2px white;
  }

  /* --- Login Section --- */
  .login-section {
    padding: 15px 10px;
    gap: 20px;
  }

  .login-container {
    padding: 0 5px;
  }

  .login-section .brand-container h1 {
    font-size: 1.5rem;
  }

  .brand-container h2 {
    font-size: 1rem;
  }

  .logo-figure {
    width: 50%;
  }

  .logo-figure img {
    width: 60%;
  }

  .bg-image {
    height: 180dvh;
  }

  .form-container {
    padding: 8px 15px;
    border-radius: 15px;
  }

  .form-container img {
    width: 150px;
    margin: 0 auto 10px auto;
  }

  .form-input {
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .form-label {
    font-size: 0.85rem;
  }

  .btn-submit {
    width: 100%;
    max-width: 250px;
    padding: 0.65rem 10px;
    font-size: 0.9rem;
    border-radius: 20px;
  }

  .form-footer {
    gap: 15px;
    padding-bottom: 15px;
  }

  .form-footer a {
    font-size: 0.85rem;
  }

  .button-form {
    font-size: 0.85rem;
  }

  /* --- Nosotros --- */
  .us-container {
    padding: 1rem 0.5rem;
  }

  .us-card {
    padding: 1.2rem 0.8rem;
    border-radius: 20px;
  }

  .us-card h2 {
    font-size: 1.3rem;
  }

  .txt-p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .card-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .card-list li {
    padding: 15px 10px;
  }

  .card-list li h3 {
    font-size: 1rem;
  }

  .card-list li p {
    font-size: 0.85rem;
  }

  .img-card img {
    width: 70px;
  }

  /* --- Beneficios --- */
  .services-content {
    padding: 40px 10px 20px 10px;
  }

  .services-content h2 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .servicios_contendor p {
    font-size: 0.8rem;
    padding: 0 10px;
  }

  .services-group {
    width: 95%;
    gap: 20px;
    margin-top: 20px;
  }

  .services-1 img {
    width: 8vh;
  }

  .services-1 h3 {
    font-size: 0.85rem;
  }

  .services-1 p {
    font-size: 0.75rem;
  }

  /* --- Prestamos --- */
  .general-fondo {
    padding: 30px 10px 20px 10px;
  }

  .fondodesc {
    padding: 3vh;
    border-radius: 15px;
  }

  .fondodesc h2 {
    font-size: 1.1rem;
  }

  .fondodesc p {
    font-size: 0.8rem;
  }

  .detail {
    grid-template-columns: 18% 82%;
    font-size: 0.75rem;
  }

  .detail svg {
    width: 20px;
    height: 20px;
  }

  /* --- Contacto --- */
  .contact__contenedor {
    padding: 3vh 1.5vh;
  }

  .contact__contenedor h2 {
    font-size: 1.2rem;
  }

  .formulario {
    font-size: 0.8rem;
  }

  .cont-img {
    width: 50%;
    max-width: 160px;
  }

  /* --- Footer --- */
  .link {
    padding: 10px;
  }

  .link a {
    font-size: 0.75rem;
  }

  /* --- Modal --- */
  .dialog-content {
    margin: 20% auto;
    width: 95%;
    padding: 1rem;
  }

  .content .row {
    flex-direction: column;
    gap: 10px;
  }

  .content .col {
    min-width: 100%;
  }

  .content input[type="text"] {
    font-size: 0.85rem;
  }

  /* --- Scroll --- */
  [id] {
    scroll-margin-top: 200px;
  }
}
