@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #989ca4;
    --bg-nav: #ffffff;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #101547;
    --second-color: #3490ce;
    --color-font: #0ef;
    --tree-color: #232C58;
    --ins-color: #B5206B;
    --twi-color: #000000;
    --what-color: #4AAA4D;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: white;
    color: black;
}

section {
    min-height: 100vh;
    padding: 6.5rem 9% 2rem;
}

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loaded #loader-wrapper {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-nav);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--main-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: #3a77b5;
    border-bottom: 2px solid #0d36ec;
    color: #0d36ec;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-nav);
}

.home-img img {
    float: right;
    margin-left: 20px;
    border-radius: 3rem;
    height: 32rem;
    margin-top: 5rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h5 {
    font-size: 2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
}




/* inicio de slider del home */

.slider-frame {
    width: 500px;
    height: 500px;
    margin: 50px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
  }
  
  .slider-frame ul {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    width: 900%; /* 9 imágenes * 100% */
    height: 100%; /* Asegura que el ul tenga la altura completa del contenedor */
    animation: slide 45s infinite;
  }
  
  .slider-frame li {
    width: 11.11%; /* 100% / 9 imágenes */
    height: 75%; /* Asegura que cada li tenga la altura completa del ul */
    float: left;
    
    align-items: center; /* Centra la imagen verticalmente */
    justify-content: center; /* Centra la imagen horizontalmente */
  }
  
  .slider-frame img {
    width: 96%;
    /* height: auto; */
    object-fit: cover;
    border-radius: 20px;
  }
  
  @keyframes slide {
    0% { left: 0; }
    10% { left: 0; }
    11% { left: -100%; }
    21% { left: -100%; }
    22% { left: -200%; }
    32% { left: -200%; }
    33% { left: -300%; }
    43% { left: -300%; }
    44% { left: -400%; }
    54% { left: -400%; }
    55% { left: -500%; }
    65% { left: -500%; }
    66% { left: -600%; }
    76% { left: -600%; }
    77% { left: -700%; }
    87% { left: -700%; }
    88% { left: -800%; }
    98% { left: -800%; }
    100% { left: -900; }
  }

  /* Media Queries */
@media screen and (max-width: 768px) {
    .slider-frame {
      max-width: 400px;
      height: 400px;
    }
  }
  
  @media screen and (max-width: 480px) {
    .slider-frame {
      max-width: 300px;
      height: 300px;
    }
  }
  
  @media screen and (max-width: 320px) {
    .slider-frame {
        max-width: 300px;
        height: 300px;

    }
  }

/* fin slider del home */




/*** Botones ***/
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--second-color); /* Azul para todos los botones */
    border: 0.2rem solid var(--second-color); /* Mismo color de fondo en el borde */
    border-radius: 50%;
    font-size: 2rem;
    color: white; /* Ícono blanco */
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

/* Hover general */
.social-media a:hover {
    color: var(--bg-nav);
    box-shadow: 0 0 2rem var(--color-font);
}

/* Colores específicos para cada red social en hover */
.social-media a:nth-child(1):hover {
    background-color: #1877f2; /* Facebook blue */
    border-color: #1877f2;
}

.social-media a:nth-child(2):hover {
    background-color: var(--ins-color); /* Instagram pink */
    border-color: var(--ins-color);
    box-shadow: 0 0 2rem var(--ins-color);
}

.social-media a:nth-child(3):hover {
    background-color: var(--twi-color); /* X (Twitter) black */
    border-color: var(--twi-color);
    box-shadow: 0 0 2rem var(--twi-color);
}

.social-media a:nth-child(4):hover {
    background-color: var(--what-color); /* WhatsApp green */
    border-color: var(--what-color);
    box-shadow: 0 0 2rem  #25d366;
}


.btn1{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--second-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--second-color);
    font-size: 1.6rem;
    color: var(--text-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: rgb(16, 196, 16);
    border-radius: 4rem;
    box-shadow: 0 0 1rem darkgreen;
    font-size: 1.6rem;
    color: var(--text-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

.btn-bola {
    background-color: var(--tree-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    text-align: center;
    line-height: 1.5rem;
    padding-bottom: 0.5rem;
}

.btn-bola1 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.btn-bola:hover {
    box-shadow: none;
    background: var(--second-color);
}


/* seccion sobre nosotros  */
.about {
    background: linear-gradient(rgba(203, 203, 203, 0.849), rgba(255, 247, 247, 0.752)), url(../images/about.jpg) left center no-repeat;
    background-size: cover;
    padding: 200px 0 70px;
    transition: background-size 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    top: -60px;
}

.about-img {
    flex: 1;
    padding-right: 30px;
}

.about-content {
    flex: 1;
}
/* finaliza seccion sobre nosotros */


.caja-fot {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: visible;
    margin: 0 auto;
}

.caja-fot img {
    position: absolute;
    z-index: 1;
    width: 250px;
    height: 250px;
    transition: transform 0.3s ease;
    border-radius: 7px;
}

.caja-fot img:hover {
    transform: translate(10px, -10px);
}

.caja-fot .imagen:nth-child(3):hover {
    transform: translate(-10px, -10px);
}

.caja-fot .imagen:nth-child(1) {
    top: -100px;
    left: -65px;
}

.caja-fot .imagen:nth-child(2) {
    top: 20px;
    right: -90px;
}

.caja-fot .imagen:nth-child(3) {
    bottom: -120px;
    left: 60px;
    transform: translateX(-10%);
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    text-align: justify;
}

/***VENTANA LEER MAS FLOTANTE***/
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    z-index: 1001;
    text-align: justify;
    border: 1px solid var(--color-font);
    box-shadow:0 0 2rem var(--second-color);
}
.modal-content {
    color: #000;
    font-size: 1.6rem;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--second-color);
    cursor: pointer;
  }
  
  .close-modal:hover,
  .close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

/***SERVICIOS***/
.services {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(11, 11, 11, 0.1)), url(../images/services11.jpg
    ) left center; /*no-repeat;*/
    background-size:auto;
}

.services h2 {
    margin-bottom: 5rem;
}

.f {
    color: var(--bg-nav);
}

.p {
    font-size: 3rem;
    color: var(--bg-nav);
}

.co {
    font-size: 2rem;
    color: var(--bg-nav);
}

.icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: transparent;
    color: var(--text-color);
    padding: 3rem 1rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--second-color);
    transition: .5s ease;

    height: 450px; 
}

.services-container .services-box:hover {
    border-color: var(--bg-nav);
    transform: scale(1.02);
}

.services-box h3 {
    font-size: 1.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
    text-align: center;
}


.contact-section {
    min-height: 8vh;
    background: linear-gradient(to right, #1a1a1a, #0c2874);
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 90px;
}

.contact-section img {
    border-radius: 3rem;
    filter: brightness(70%);
    width: 600px; /* Ajusta el tamaño de la imagen */
    height: auto; /* Mantén la proporción de la imagen */
}


.text-column {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer {
    background-color: var(--bg-nav);
    color: rgb(0, 0, 0);
    padding: 40px 0;
}

.container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.column {
    flex: 1;
    padding: 0 20px;
}

.column:not(:last-child) {
    border-right: 1px solid #555;
}

.logoFooter {
    max-width: 150px;
    margin-bottom: 20px;
}

h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 15px;
}

h5 {
    font-size: 15px;
    margin-top: 20px;
}

.justify-text {
    text-align: justify;
    letter-spacing: 0.1px;
    line-height: 1.6;
    hyphens: auto;
    font-size: 1.5rem;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--second-color);
    border-radius: 50%;
    margin-right: 10px;
}

a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
    position: relative;
}

/***BTN flotante***/
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--tree-color);
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 15px rgba(14, 87, 203, 0.8);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 1000;
  }
  
  .back-to-top:hover {
    box-shadow: 0px 6px 20px rgba(14, 87, 203, 0.8);
    transform: translateY(-3px);
  }
  
  .back-to-top.show {
    display: flex;
  }
  
.let {
    display: inline-block;
    padding: 1px 1px;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    transition: all .6s ease;
}

.let:hover {
    transform: translateY(-3px);
    border-bottom: 2px solid #0d36ec;
    color: #0d36ec;
}



@media screen and (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .home-content h1 {
        font-size: 5rem;
    }

}

/* ... (código CSS anterior sin cambios) ... */
@media screen and (max-width: 991px) {
  .header {
      padding: 2rem 3%;
  }

  section {
      padding: 10rem 3% 2rem;
  }

  .home, .about-container, .contact-section {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .home-content, .about-content, .text-column {
      order: 1;
      margin-bottom: 3rem;
  }

  .home-img, .about-img, .contact-section img {
      order: 2;
      margin-top: 2rem;
  }

  .caja-fot {
      margin: 3rem auto 0;
  }

  .footer .container {
      flex-direction: column;
      align-items: center;
  }

  .footer .column {
      width: 100%;
      text-align: center;
      border-right: none;
      margin-bottom: 3rem;
  }

  .back-to-top {
      position: static;
      margin-top: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #menu-icon {
      display: block;
  }

  .navbar {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 3%;
      background: var(--bg-nav);
      border-top: .1rem solid rgba(0, 0, 0, .2);
      box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
      display: none;
  }

  .navbar.active {
      display: block;
  }

  .navbar a {
      display: block;
      font-size: 2rem;
      margin: 3rem 0;
  }

  .home-content h3 {
      font-size: 2.6rem;
  }

  .home-content h1 {
      font-size: 5rem;
  }

@media screen and (max-width: 617px) {

    #menu-icon {
        display: block;
    }

  .home-content h1 {
      font-size: 4rem;
  }

  .about-content h2 {
      font-size: 3rem;
  }

  .contact-section h2 {
      font-size: 2.5rem;
  }

  .footer h3 {
      font-size: 2.5rem;
  }
  .caja-fot {
    width: 200px;
    height: 250px;
}

.caja-fot img {
    width: 190px;
    height: 210px;
}
} 

@media screen and (max-width: 450px) {
    html, body {
      overflow-x: hidden;
      width: 100%;
      margin: 0;
      padding: 0;
    }
  
    #menu-icon {
      display: block;
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1000;
    }
  
    html {
      font-size: 60%;
    }
  
    .home-content h1 {
      padding: 5% 0;
      font-size: 3.5rem;
    }

    .about-content h2 {
        font-size: 3rem;
        margin: 5px;
    }

    .home-img img, .about-img img, .contact-section img {
      width: 90%;
      max-width: 300px;
      margin: 1rem auto;
      border-radius: 5px;
      display: block;
      margin-right: 20px;
    }

    .about-content p {
        margin: 5px;
    }

    .about-img img {
        width: 90%;
        max-width: 300px;
        margin: 2rem auto;
        margin-right: auto;
        border-radius: 5px;
        display: block;
        margin-right: 20px;
    }
  }
  
  @media screen and (max-width: 365px) {
    .home-content h1 {
      margin-top: 10%;
      font-size: 3rem;
    }
  
    .home-img img, .about-img img, .contact-section img {
      width: 95%;
      max-width: 250px;
      border-radius: 10px;
      margin-right: 22px;
    }
  
    .caja-fot {
      width: 200px;
      height: 200px;
      margin: 0 auto;
    }
  
    .caja-fot img {
      width: 150px;
      height: 150px;
    }
  }


/* Media Queries for larger screens */

  @media screen and (min-width: 1600px) {
    .container {
      max-width: 1400px;
      margin: 0 auto;
    }
  
    .home-content h1 {
      font-size: 6rem;
    }
  
    .home-content h3 {
      font-size: 3rem;
    }
  
    .home-content p {
      font-size: 2rem;
    }
  
    .social-media a {
      font-size: 3rem;
      width: 6rem;
      height: 6rem;
    }
  
    .btn, .btn1 {
      font-size: 2rem;
      padding: 1.5rem 3.5rem;
    }
  }
  
  /* Adjust other sections similarly for larger screens */