@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
  
main{
    position: absolute;
    left: 0vh;
    top: 0vh;
    width: 100%;
    height: max-content;
    display: grid;
    grid-auto-rows: max-content;

    background-color: white;
}
h1 {
    font-size: 10vh;
   
    grid-area: TIT;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    padding: 0;
    font-family: "Roboto", serif;
    font-weight: 700;
    font-style: normal;
    color: white;

}
.whats{
    transition: transform 0.1s ease-in-out;
    animation: aparecer 2s both;
    box-shadow: 1vh 0vh 1vh rgba(0, 0, 0, 0.2);
    width: 8vh;
    height: 8vh;
    background-image: url(src/SVG/whats.svg);
    background-color: #25D366;
    border-radius: 50vh;
    background-position: center;
    background-size: 5vh;
    background-repeat: no-repeat;
    position: fixed;
    right: 2vh;
    bottom: 2vh;
    z-index: 100;
    opacity: 90%;
}
.whats:hover{
    transform: scale(1.1);
    
}
h1, h2, h3, details {
   
    grid-area: TIT;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    padding: 0;
    font-family: "Roboto", serif;
    font-weight: 700;
    font-style: normal;
    color: white;

}
p, a, li{
    grid-area: TXT;
    margin: 0;
    padding: 0;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2vh;
}
a{
    grid-area: auto;
}
button{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2vh;
    border: none;
}
h1{
    font-size: 10vh;

}
h2{
    font-size: 6vh;

}
h3{
    font-size: 3vh;

}
details{
    font-size: 5vh;

}
header {

    position: fixed;
    top: 5vh; /* empieza a 5vh del top */
    width: 99vw;
    box-sizing: border-box;
    height: 12vh;
    background-color: #001b6a70;
    -webkit-backdrop-filter: blur(1vh);
    backdrop-filter: blur(1vh);
    z-index: 10; 
    transition: top 0.2s;    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5vw;
    padding-right: 5vw;
}

.logo{
    animation: aparecer3 1s both;
    position: relative;
    width: 18vh;
    height: 8vh;
 
}
.logo iframe{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
#navegacion{
    gap: 2vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    height: 5vh;
}
#navegacion .opcion{
    animation: aparecer3 1s both;
    cursor: pointer;
    background-color: transparent;
    font-size: 2vh;
    color: white;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}
#navegacion :nth-child(1){
    animation-delay: 0.2s;
}
#navegacion :nth-child(2){
    animation-delay: 0.4s;
}
#navegacion :nth-child(3){
    animation-delay: 0.6s;
}
#navegacion :nth-child(4){
    animation-delay: 0.8s;
}
#navegacion :nth-child(5){
    animation-delay: 1s;
}

section{
    margin-bottom: 10vh;
    min-height: 100vh;
    position: relative;
}
#video1{
    margin-bottom: 10vh;
    height: 100vh;
    width: 100%;
    position: relative;
}
#video{
    min-height: auto;
    height: 50vw;
}
footer{
  
    position: relative;

    background-color: #001a6a;
    margin-bottom: 0;
    padding-top: 5vh;
    overflow: hidden;
    
    
}
.lenguaje{
        background-position: center;

        background-repeat: no-repeat;
        background-size: contain;
        position: absolute;
        left: -30vh;
         min-width: 30vh;
         height: 50%;
     }
     @keyframes animarca {
        0%{
            left: -30vh;
        }
        100%{
            left: 250vh;
        }
    }
#videos{
    background-color: #001a6a;
    z-index: 1;
    position: absolute;
    left: 0vh;
    top: 0vh;
    width: 100%;
    height: 100%;
}
#carrusel{
    min-height: 100dvh;
}
#videos video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease;
  }
  
  .fade-in-text {
    animation: subir 0.5s forwards;
  }
  
  .fade-out-text {
    animation: bajar 0.5s forwards;
  }
  
  @keyframes subir {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  @keyframes bajar {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
  }
.filtro{
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(0.3vh);
    backdrop-filter: blur(0.3vh);
}
.filtro2{
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #001a6a; 
    mix-blend-mode: lighten;
    opacity: 30%;
}
#textos{
    z-index: 3;
    position: absolute;
    left: 0vh;
    bottom: 0vh;
    width: 100%;
    height: 100%;  
    
    z-index: 2;
    display: grid;
    grid-template:
    ". . . ."17vh
    ". . . ."auto
    ". TIT TIT ."max-content
    ". . . ."auto
    ". MIN . ."max-content
    ". FOR . ."max-content
    ". . . ."auto
    "BOT BOT BOT BOT"max-content/
    8% max-content max-content auto ;
}
#textos h1{
    width: auto;
    padding: 0;
    margin: 0;
}
#titulo{
    grid-area: TIT;
    max-width: 80vw;
}
#minitexto{
    grid-area: MIN;
    padding-bottom: 1vh;
}
#formulario{
    grid-area: FOR;
    display: grid;
    grid-template-columns: 1fr max-content;
    height: 9vh;
    max-width: 45vh;
}
form button{
    background-color: #001a6a;
    color: white;
    border: none;
    padding: 3vh;
    font-size: 2vh;
    font-family: Arial, Helvetica, sans-serif;
}
form input{
    color: black;
    background-color: white;
    font-size: 2vh;
    border: none;
    padding: 2vh;
    font-family: Arial, Helvetica, sans-serif;
}
form textarea{
    resize: none;
    color: black;
    background-color: white;
    font-size: 2vh;
    border: none;
    padding: 2vh;
    font-family: Arial, Helvetica, sans-serif;
}
#botones{
    display: flex;
    justify-content: center;
    grid-area: BOT;
    height: 10vh;
    align-items: center;
}
#botones button {
margin: 1vh;
background-color: white;
border: none;
border-radius: 25vh;
cursor: pointer;
transition: all 0.2s ;

}
.activo{
    height: 1.8vh;
    width: 1.8vh;
    opacity: 100%;
}
.inactivo{
    height: 1.5vh;
    width: 1.5vh;
    opacity: 50%;

}
#botones button:hover{
    transform: scale(1.2);
}
#butsidebar{
    background-color: transparent;
    border: none;
    color: white;
    padding: 1vh;
    font-size: 4vh;
    display: none;
}
#sidebar{
    padding-top: 20vh;
    transition: transform 0.5s ease-in-out;
    z-index: 9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 19, 107, 0.5);
    -webkit-backdrop-filter: blur(0.5vh);
    backdrop-filter: blur(0.5vh);
    display: none;
    grid-auto-rows:5vh ;
    gap: 4vh;
    transform: translateX(100%);

}
#inicio{
    display: none;
}
#sidebar button{
    background-color: transparent;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2vh;
    color: white;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    border-bottom: white 0.2;
}
.titulo{
    padding-left: 6vh;
    background-repeat: no-repeat;
    background-position: left;
    background-size: 5vh;
}
.B{
    background-image: url(src/SVG/estrellaB0.svg);
    animation: estrella 3s both infinite;

}
.A{
    background-image: url(src/SVG/estrellaA0.svg);
    animation: estrella 3s both infinite;
}

@keyframes estrella {
    0%{
        background-size: 5vh;
    }
    50%{
        background-size: 4.4vh;
    }
    100%{
        background-size: 5vh;

    }
}
#sobremi{
    background-color: #001a6a;
    min-height: 40vh;
    display: grid;
    gap: 1vh;
    padding-left: 2%;
    padding-right: 2%;
    grid-template:
    ". . ."auto
    ". TIT ."max-content
    ". TXT . "max-content
    ". . ."auto/
    auto minmax(0vh, 80vh) auto ;
}
#servicios{
    position: relative;
    min-height: 50vh;
    display: grid;
    gap: 1vh;
    padding-left: 2%;
    padding-right: 2%;
    grid-template:
    ". . ."auto
    ". TIT ."max-content
    ". SER . "max-content
    ". . ."auto/
    auto 90% auto ;
}
.custom-ul {
    grid-area: TXT;
    color: white;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1vh
}

.custom-ul li {
    padding: 0;
    margin-bottom: 1vh;
    background: url(src/SVG/check0.svg) no-repeat left center;
    background-size: 1.4vh;
    padding-left: 2vh; /* espacio para el icono */
}
.servicio{
    box-shadow: 0vh 1vh 1vh rgba(0, 0, 0, 0.2);
    
    position: relative;
    background-color: #001a6a;
width: 45vh;
height: max-content;
display: grid;
gap: 1vh;
grid-template:
". . ."2vh
" . TIT ."auto
" . TXT ."auto
". BOT ."auto
". . ."2vh/
2vh auto 2vh ;
}
.escondido{
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}
.mostrar {
    opacity: 1;
    transform: translateY(0);
  }
.servicio button{
    grid-area: BOT;
    background-color: white;
    border: none;
    padding: 2vh;
    color: #001a6a;
}
.miniheader{
    box-shadow: 0vh 1vh 1vh rgba(0, 0, 0, 0.2);

    grid-area: HEA;
    background-color: #001b6a70;
    -webkit-backdrop-filter: blur(1vh);
    backdrop-filter: blur(1vh);
    z-index: 3; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5vw;
    padding-right: 5vw;
}
#listaproyectos{
    z-index: 3;
    grid-area: SER;
    display: flex;
    gap: 5vh;
    flex-wrap: wrap;
    justify-content: center;
}
details{
    background-position:  5vh top;
    background-size: 25vh;
    background-repeat: no-repeat;
    border: none;
}
details[open] {
opacity: 100%;

transform: scale(1.05);
}
#listaservicios{
    max-width: 100%;
    margin-top: 5vh;
    grid-area: SER;
    display: flex;
    gap: 5vh;
    flex-wrap: wrap;
    justify-content: center;
}
#servicios h2{
    color: #001a6a;
}
#portfolio{
    position: relative;
    overflow: hidden;
    max-height: max-content;
    min-height: 80vh;
    background-image: url(src/JPG/fondo.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    display: grid;
    grid-template:
    ". . ."5vh
    "HEA HEA HEA" 12vh
    ". . ."5vh
    ". SER ."max-content
    ". . ."10vh/
    10% auto auto ;
}
.proyecto{
    
    opacity: 50%;
    text-decoration: none;
    width: 100%;
    min-height: 45;
    font-size: 5vh;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0;
    font-family: "Roboto", serif;
    font-weight: 700;
    font-style: normal;
    color: white;
    border-radius: 0;

    transition: transform 0.1s linear, opacity 0.1s linear;
}
.proyectotitulo{
    
    text-decoration: none;
    width: 100%;
    min-height: 45;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0;
    font-family: "Roboto", serif;
    font-weight: 700;
    font-style: normal;
    color: white;
    border-radius: 0;

    transition: transform 0.1s linear, opacity 0.1s linear;
}
.proyecto:hover {
    opacity: 100%;

    transform: scale(1.05);
}
.proyecto p {
    padding-top: 1vh;
    padding-bottom: 2vh;
    width: 80vw;
    height: max-content;
    max-width: 80vh;
}
.proyecto img{
    width: 80vw;
    height: max-content;
    max-width: 80vh;


}
.proyecto a{
    text-decoration: none;
    width: 100%;
    max-width: 80vh;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    padding: 2vh;
    background-color: #001a6a;

}   
/*.proyecto:hover{
    background-color: #001b6a70;
    -webkit-backdrop-filter: blur(1vh);
    backdrop-filter: blur(1vh);
}*/
.formulario2{
    grid-area: FOR;
    background-color: #001a6a;
    display: grid;
    gap: 1vh;
    grid-template:
    ". . . ."auto
    ". TIT TIT ."max-content
    ". MIN MIN ."max-content
    " . TXA TXA ."10vh
    ". INP BOT ."max-content
    ". . . ."auto/
    auto 20vw 20vw auto
     ;
}
.formulario2 h3{
    grid-area: MIN;
}
.formulario2 h2{
    grid-area: TIT;
}
.formulario2 textarea{
    grid-area: TXA;
    box-shadow: 0vh 1vh 1vh rgba(0, 0, 0, 0.2);

}
.formulario2 input{
    grid-area: INP;
    box-shadow: 0vh 1vh 1vh rgba(0, 0, 0, 0.2);

}
#marcadeagua{
    min-height: 8vh;
    margin-bottom: 0;
    background-color: #001a6a;
    display: flex;
    justify-content: center;
    align-items: center;

}
.formulario2 button{
    grid-area: BOT;
    box-shadow: 0vh 1vh 1vh rgba(0, 0, 0, 0.2);
}
#contacto{

    min-height: 70vh;
    display: grid;
    grid-template:
    "FOR ANI"auto/
    50% 50%;
}
.contenedor{
  
    width: 40vw;
    height: 20vw;
    transform: scale(2);
}
.animation{
    overflow: hidden;
    pointer-events: none;
    background-color: rgb(226, 226, 226);
    grid-area: ANI; 
    display: flex;
    justify-content: center;
    align-items: center;
}
button:hover{
    cursor: pointer;
    transform: scale(1.1);
}
/* Animación */
@keyframes fondod {
    0%   { background-position-x: 70vh; }
    100% { background-position-x: -70vh; }
}
@keyframes aparecer3 {
    0%{
        transform: translateY(-50vh);
        opacity: 0%;
    }
    100%{
        opacity: 100%;
        transform: translateY(0vh);

    }
}

@media (max-width:100vh) {
    .contenedor{
        height: 40vw;
        transform: scale(2);
    }
    .formulario2{
        grid-area: FOR;
        background-color: #001a6a;
        display: grid;
        gap: 1vh;
        grid-template:
        ". . . ."auto
        ". TIT TIT ."max-content
        ". MIN MIN ."max-content
        " . TXA TXA ."10vh
        ". INP BOT ."max-content
        ". . . ."auto/
        2% auto auto 2%
         ;
    }
    
    #contacto{
    
        min-height: 70vh;
        display: grid;
        grid-template:
        "FOR"50vh
        "ANI"60vh
        /
        auto;
    }
    .servicio{
        width: 100%;
    }
    #navegacion .opcion{
        display: none;
        font-size: 0vh;
padding: 0;
    }
   
    #butsidebar {
        display: block;
    }
    #sidebar{
        display: grid;

    }
    h1{
        font-size: 11.2vw;
    }
    #formulario{
        grid-area: FOR;
        display: grid;
        grid-template-columns: 1fr max-content;
        height: 9vh;
        max-width: 40vh;
    }
    form button{
        background-color: #001a6a;
        color: white;
        border: none;
        padding: 1vh;
        font-size: 2vh;
        font-family: Arial, Helvetica, sans-serif;
    }
    #textos{
        position: absolute;
        left: 0vh;
        bottom: 0vh;
        width: 100%;
        height: 100%;  
        
        z-index: 2;
        display: grid;
        grid-template:
        ". . ."auto
        ". TIT ."max-content
        ". . ."15vh
        ". MIN ."max-content
        ". FOR ."max-content
        ". . ."8vh
        "BOT BOT BOT"max-content/
        auto min-content auto ;
    }
    #sobremi{

        min-height: 50vh;
    
    }
    #marcadeagua p{ 
        font-size: 3vw;
    }
}

/* ===== FOOTER ===== */
#footer {
    background: linear-gradient(180deg, #001a6a 0%, #141414 100%);
    color: #e0e0e0;
    padding: 60px 5vw 25px;
    height: max-content;
    font-family: 'Roboto', Arial, sans-serif;
    position: relative;
    z-index: 5;
  }
  
  .footer-contenedor {
    height: max-content;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-col {
    height: max-content;
    flex: 1 1 300px;
    min-width: 250px;
  }
  
  .footer-col h3 {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 0.5px;
  }
  .footer-col h3.loguito {
    font-weight: 700;
    font-size: 5vh;
    color: #fff;
    letter-spacing: 0.5px;
  }
  .footer-col h2 {
    transform: translateY(-1.5vh);
    font-weight: 200;
    font-size: 2.3vh;
    margin-bottom: 15px;
    color: #fff;
    font-family: "Bagel Fat One", serif;
    letter-spacing: 0.5px;
  }
  
  .footer-col p {
    color: #bfbfbf;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-col ul li {
    margin: 8px 0;
  }
  
  .footer-col ul li a {
    color: #b5b5b5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
  }
  
  .footer-col ul li a:hover {
    color: #ffffff;
    transform: translateX(3px);
  }
  
  .footer-col .contacto li a {
    display: block;
    word-break: break-word;
  }
  
  .social {
    margin-top: 20px;
    display: flex;
    gap: 18px;
  }
  
  .social a img {
    width: 26px;
    height: 26px;
    opacity: 0.75;
    transition: opacity 0.3s, transform 0.3s;
    filter: brightness(0.9);
  }
  
  .social a:hover img {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1.1);
  }
  
  .footer-copy {
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 0.9rem;
    color: #9c9c9c;
    letter-spacing: 0.5px;
  }
  
  .footer-copy span {
    color: #fff;
    font-weight: 600;
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .footer-contenedor {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-col {
      max-width: 500px;
    }
  
    .social {
      justify-content: center;
    }
  }
  


  .logoentero{
    overflow: hidden;
    display: grid;
    width: max-content;
    height: max-content;
    margin-bottom: 1vh;
    grid-template:
    " LOGT LOGT LOGT"max-content
    "TXT2 . TXT3 "max-content/
     max-content max-content max-content  ;
}


.logotexto2{
 height: 4.2vh;
    font-family: Roboto;
    font-size: 5vh;
    text-align: left;
    color: white;
    font-weight: 700;
    grid-area: LOGT;
    padding: 0;
}
p.texto4{
    font-weight: 100;
    padding: 0;
    color: white;
    padding-right: 0.5vh;
    padding-left: 0.1vh;
    grid-area: TXT2;
    font-family: "Bagel Fat One", serif;
    font-size: 2vh;
}
p.texto5{
   padding: 0;
    color: white;
    margin-top: 0.2vh;

    text-align: end;
    grid-area: TXT3;
    font-family: comfortaa;
    font-size: 2vh;
}