
@font-face {
    font-family: 'Sketchy';
    src: url('../fonts/Sketchy-1jX4.woff') format('woff');

    font-weight: 400;
    font-style: normal;

}

h1, h2, h3, title {
    font-family: 'Sketchy', sans-serif;
}

p {
    font-family: sans-serif;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-image: url('../imagenes/fondoWEB.webp'); 
    background-repeat: repeat; 
    background-size: auto;
    background-attachment: fixed;
  }
 
/*------------------------------------------------------final de la imagen de cabecera------------------------------*/
@media (max-width: 999px) {

    body {
        width: 100%;
        background-attachment: fixed;
    }

    .responsive-image {
        padding-top: 60px;
        /*margin-top: 50px;*/
        height: auto;
        width: 100%;
        z-index:1;
    }

    .overlay-text {
        position: absolute;
        top: 15%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: black;
        font-size: 1.1rem;
        font-family: 'Sketchy', sans-serif;
        text-align: center;
        text-shadow: 5px 5px 15px rgba(59, 116, 223, 1.0);
        white-space: nowrap; /* Evita que el texto se divida en varias líneas */
        overflow: hidden; /* Oculta el texto que no cabe */
        border-right: 16px solid lightblue; /* Simula el cursor de escritura */
        width: 0; /* Inicialmente oculta todo el texto */
        animation: typing 4s steps(30, end) forwards, blink 0.5s step-end infinite;
    }
    
    @keyframes typing {
        from {
            width: 0;
        }
        to {
            width: 100%; /* Ajusta el texto completo */
        }
    }
    
    @keyframes blink {
        from, to {
            border-color: transparent;
        }
        50% {
            border-color: white;
        }
    }
    .container {
        width: 80%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px;
    }
    
    /* About sections */
    .about {
        background: rgba(0, 0, 0, 0.6);
        font-size: 1.2rem;
        color: #ffffff;
        width: 90%;
        margin: 10px auto;
        padding: 40px 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    .about p {
        font-size: 1.3rem;
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: justify;
    }

    .feature-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .feature-item {
        flex: 1 1 100%;
        width: 100%;
        background: #fff;
        padding: 5px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    .features h2 {
        font-size: 2rem;
        text-align: center;
        color: #ffffff;
        margin-bottom: 40px;
        text-transform: uppercase;
    }
    
    .feature-item h3 {
        font-size: 1.3rem;
        color: #333;
        margin-bottom: 10px;
    }
    
    .feature-item p {
        font-size: 1rem;
        line-height: 1.6;
    }

    #imagen-background {
        background: rgba(0, 0, 0, 0.6); 
        margin: 10px auto; 
        padding: 40px 20px;
        width: 90%; 
        text-align: center; 
        border-radius: 10px; 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    }

    #imagen-background p {
        font-size: 1.2rem;
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: center;
        color: #ffffff;
    }

    /* Estilo para la imagen */
    .imagenes img {
        max-width: 100%; /* Asegura que la imagen no exceda el contenedor */
        height: auto; /* Mantiene la proporción de la imagen */
        object-fit: cover; /* Ajusta la imagen al espacio disponible */
        border-radius: 10px; /* Bordes redondeados */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra para la imagen */
    }

    /* Call-to-action section */
    .cta {
        background: linear-gradient(to right, #207483, #7396bf);
        color: #fff;
        text-align: center;
        padding: 60px 20px;
    }

    .cta h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .cta p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .cta .btn-secondary {
        background: #fff;
        color: #9013fe;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1rem;
        transition: background 0.3s;
    }

    .cta .btn-secondary:hover {
        background: #f4f4f9;
        color: #4a90e2;
    }

    .containerForm {
        background-color: #4d89b8;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 70%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        margin-bottom: 20px;
        overflow-x: hidden; /* Evita el desplazamiento horizontal */
    }
    
    .containerForm h1 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 3rem;
        color: #FFFFFF;
    }

    .containerForm h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 2.5rem;
        color: #FFFFFF;
    }

    .containerForm h3 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 2rem;
        color: #FFFFFF;
    }
    
    .containerForm form {
        display: flex;
        flex-direction: column;
        width: 100%; /* Asegura que el formulario ocupe todo el ancho del contenedor */
    }
    
    .containerForm label {
        margin-top: 10px;
        font-size: 1.2rem;
        color: #FFFFFF;
    }
    
    .containerForm input[type="text"],
    .containerForm input[type="number"],
    .containerForm input[type="email"], 
    .containerForm input[type="password"],
    .containerForm input[type="date"], 
    
    .containerForm select {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        background-color: #f9f9f9;
        position: relative;
        color: #333;
    }
    
    .containerForm textarea {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        background-color: #f9f9f9;
        position: relative;
        color: #333;
    }
    
    .containerForm button {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 12px;
        font-size: 16px;
        border-radius: 4px;
        cursor: pointer;
        margin-top: 20px;
        width: 100%; /* Asegura que el botón no se desborde */
    }
    
    .containerForm button:hover {
        background-color: #218838;
    }
    
    .containerForm p {
        font-size: 1.5rem;
        color: #FFFFFF;
        margin: 10px 0;
        text-align: center;
    }
    
    .containerForm i {
        color: #0024D3;
        cursor: pointer;
        margin-left: 10px;
        position: relative;
        top: -25px;
        left: 90%;
        transform: translateY(-20%);
    }
}
/*-----------------------------------------------------------------------------------pc screens--------------------------------------------------*/
@media (min-width: 1000px) {
    .background-image {
      width: 100%;
      height: auto;
      object-fit: cover; /* Asegura que la imagen se ajuste */
      }
  
      h1, h2, h3 {
          font-family: 'Sketchy', sans-serif; /* Aplicar en títulos */
      }
  
  
  
      .responsive-image {
          width: 100%;
          height: auto;
      }
  
      .overlay-text {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          color: black;
          font-size: 3rem;
          font-family: 'Sketchy', sans-serif;
          text-align: center;
          text-shadow: 5px 5px 15px rgba(59, 116, 223, 1.0);
          white-space: nowrap; /* Evita que el texto se divida en varias líneas */
          overflow: hidden; /* Oculta el texto que no cabe */
          border-right: 16px solid lightblue; /* Simula el cursor de escritura */
          width: 0; /* Inicialmente oculta todo el texto */
          animation: typing 4s steps(30, end) forwards, blink 0.5s step-end infinite;
      }
  
      @keyframes typing {
          from {
              width: 0;
          }
          to {
              width: 100%; /* Ajusta el texto completo */
          }
      }
  
      @keyframes blink {
          from, to {
              border-color: transparent;
          }
          50% {
              border-color: white;
          }
      }

/*-----------------------------------------------------CSS para páginas-----------------------------------------*/
    .container {
        width: 70%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    /* About sections */
    .about {
        background: rgba(0, 0, 0, 0.6);
        font-size: 1.2rem;
        color: #ffffff;
        width: 70%;
        margin: 20px auto;
        padding: 40px 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .about p {
        font-size: 1.2rem;
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: justify;
    }

    #imagen-background {
        background: rgba(0, 0, 0, 0.6); 
        margin: 20px auto; 
        padding: 40px 20px;
        width: 70%; 
        text-align: center; 
        border-radius: 10px; 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    }

    #imagen-background p {
        font-size: 1.2rem;
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: center;
        color: #ffffff;
    }

    /* Estilo para la imagen */
    .imagenes img {
        max-width: 100%; /* Asegura que la imagen no exceda el contenedor */
        height: auto; /* Mantiene la proporción de la imagen */
        object-fit: cover; /* Ajusta la imagen al espacio disponible */
        border-radius: 10px; /* Bordes redondeados */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra para la imagen */
    }
    /* Features section */
    .features {
        background: rgba(0, 0, 0, 0.6);
        margin: 20px auto;
        padding: 40px 20px;
        width: 70%;
        text-align: center;
        border-radius: 10px;
    }

    .features h2 {
        font-size: 2.5rem;
        text-align: center;
        color: #ffffff;
        margin-bottom: 40px;
        text-transform: uppercase;
    }

    .feature-list {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .feature-item {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        flex: 1 1 calc(33.333% - 40px);
        max-width: calc(33.333% - 40px);
    }

    .feature-item h3 {
        font-size: 1.5rem;
        color: #333;
        margin-bottom: 10px;
    }

    .feature-item p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Call-to-action section */
    .cta {
        background: linear-gradient(to right, #207483, #7396bf);
        color: #fff;
        text-align: center;
        padding: 60px 20px;
    }

    .cta h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .cta p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .cta .btn-secondary {
        background: #fff;
        color: #9013fe;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1rem;
        transition: background 0.3s;
    }

    .cta .btn-secondary:hover {
        background: #f4f4f9;
        color: #4a90e2;
    }
    /*--------------------------------------------Final CSS para páginas-----------------------------------------*/
    /*--------------------------------------------Formulario-----------------------------------------*/
    .containerForm {
        background-color: #4d89b8;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 70%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        margin-bottom: 20px;
        overflow-x: hidden; /* Evita el desplazamiento horizontal */
    }

    .containerForm h1 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 3rem;
        color: #FFFFFF;
    }

    .containerForm h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 2.5rem;
        color: #FFFFFF;
    }

    .containerForm h3 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 2rem;
        color: #FFFFFF;
    }

    .containerForm form {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .containerForm label {
        margin-top: 40px;
        font-size: 1.5rem;
        color: #FFFFFF;
    }

    .containerForm input[type="text"],
    .containerForm input[type="number"],
    .containerForm input[type="email"], 
    .containerForm input[type="password"],
    .containerForm input[type="date"], 
    .containerForm select {
        width: 90%;
        padding: 10px;
        margin-top: 5px;
        border: 1px solid #050505;
        border-radius: 4px;
        font-size: 14px;
        background-color: #f9f9f9;
        position: relative;
        color: #333;
    }

    .containerForm textarea {
        width: 90%;
        padding: 10px;
        margin-top: 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        background-color: #f9f9f9;
        position: relative;
        color: #333;
    }

    .containerForm button {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 12px;
        font-size: 16px;
        border-radius: 4px;
        cursor: pointer;
        margin-top: 20px;
        width: 80%; /* Asegura que el botón no se desborde */
    }

    .containerForm button:hover {
        background-color: #218838;
    }

    .containerForm p {
        font-size: 1.3rem;
        color: #FFFFFF;
        margin: 10px 0;
    }

    .containerForm i {
        color: #0024D3;
        cursor: pointer;
        margin-left: 10px;
        position: relative;
        top: -25px;
        left: 90%;
        transform: translateY(-20%);
    }

}

/*--------------------------------------------fin Formulario-----------------------------------------*/