@import 'blocks/blocks-titularfull.css';
@import 'blocks/blocks-video-bg.css?v=2';
@import 'blocks/blocks-video-pop.css?v=2';
@import 'blocks/blocks-texto-cols.css';
@import 'blocks/blocks-team.css';
@import 'blocks/blocks-carrusel.css';
@import 'blocks/blocks-galeria.css';
@import 'blocks/blocks-testimonals.css';
@import 'blocks/blocks-nav-slider.css';
@import 'blocks/blocks-proyectos.css';
@import 'blocks/blocks-menu.css';
@import 'blocks/blocks-blog.css';
@import 'blocks/blocks-legal.css';
@import 'blocks/blocks-accordion.css';
@import 'blocks/blocks-hero.css';
@import 'blocks/blocks-texto-imagen.css';
@import 'blocks/blocks-mapa-contacto.css';
@import 'blocks/blocks-noticias.css';
@import 'blocks/footer.css';
@import 'blocks/formulario.css';
@import 'blocks/modals.css';
@import 'blocks/burger-menu.css';

*{
    /*border: 1px solid red;*/
}


html,
body {
    height: 100%;
    background: #2D5D2A;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    overflow-y: clip;
}

.title {
    color: var(--sb-white);
    left: 50%;
    line-height: 1.3;
    pointer-events: none;
    position: absolute;
    text-shadow: 0 0 10px var(--sb-black);
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-out;
}
.title[data-hide="true"] {
    opacity: 0;
}



@keyframes move-canvas {
    0%      {transform: translateY(-2%) }
    50%     {transform: translateY(5%) }
    100%    {transform: translateY(-2%)}
}

.canvas-anima{

}
.canvas-anima-in{
    animation-name: move-canvas;
    animation-iteration-count: infinite;
    animation-duration: 4s;
    transform-origin: 50% 70%;
}
.canvas-anima-stop{
   /* animation-name: none; */
   animation-play-state: paused;
}


.overlay-text{
        position: absolute;
        background: white;
        color: black;
        top: 10px;
        left: 10px;
        font-size: 24px;
        padding: 20px;
        border-radius: 10px;
    z-index: 99;
}
.overlay-text-logo{
    position: absolute;
    top: 40px;
    left: 40px;
    color: white;
     z-index: 99;
}
.overlay-text-links{
    position: absolute;
    color: black;
    top: 40px;
    right: 40px;
    z-index: 99;
}
.overlay-text-links span{
    cursor: pointer;
}

.overlay-text-links a{
    text-decoration: none;
    margin: 0 0 0 20px
}

.overlay-text-legal{
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
     z-index: 99;
}



#ContadorGlobal{
    top: 80px;
    background: silver
}
#ButtonContadorGlobal{
    top: 140px;
    background: silver
}

 
    



.text-1-wrap {
    position: relative;
    top: 0%;
    left: 0%;
    margin-top: 0px;
    z-index: 1;
}

.text-1-wrap h1{
    transform: scale(1.3);
}

.text-1-wrap .t1{
    display: block;
    font-size: 90px;
    color: #C5D618;
    line-height: 100%;
}
.text-1-wrap .t1-2{
    display: none;
}





@keyframes anima-cumple {
    0%      {transform: scale(1)}
    50%     {transform: scale(1.2)}
    100%    {transform: scale(1) }
}

.canvas-anima{

}
.text-1-wrap .t1-3{
    /*animation-name: anima-cumple;*/
    transform-origin: 50% 50%;    
    animation-iteration-count: 1;
    animation-duration: 1s;
    animation-fill-mode: forwards;  /* ← Mantiene el estado final */
    animation-delay: .5s;
}

.t3-mask{
    position: absolute;
    width: 420px;
    height: 180px;
    background-image: url(../papa/anos.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    left: 0px;
    top: 0px;
}






.text-1-wrap .t1-3 {
    position: relative;
    display: block;
    height: 181px;
    overflow: hidden;
    margin-top: -24px;
    margin-bottom: -32px;
    width: 420px;

}

.text-2-wrap {
    position: absolute;
    bottom: 5%;
    right: 5%;
    margin-top: -140px;
}

.text-2-wrap .t2{
    display: block;
    font-size: 40px;
    color: #7bd095;
    line-height: 90%;
}

.t-numeros{
    font-size: 80px;
    color: #7bd095;
    line-height: 90%;
    margin: auto;
}
    
    
    





    #boxWrapper {
        width: 750px;
        height: 750px;
        position: relative;
        margin: 0;
    }
    #boxPosition {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      cursor: grab;
      user-select: none;
      will-change: transform;
    }
    #boxPosition:active { cursor: grabbing; }
    #boxScale {
      width: 100%;
      height: 100%;
      /*background-color: #efefef;*/
      background-image: url(../papa/oreja.png);
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: center;
      position: absolute;
      top: 0;
      left: 0;
      transform-origin: top center;
      will-change: transform;
      pointer-events: none; /* Deja que los eventos pasen a boxPosition */
    }

/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
#instrucciones {
    position: absolute;
    top: 50%;
    left: 390px;
    width: 270px;
    height: 160px;
    margin-top: -40px;
    background-image: url(../papa/flecha.png);
    background-size: 190px;
    background-repeat: no-repeat;
    background-position: bottom left;
}
#instrucciones p {
    font-size: 40px;
    color: darkgreen;
    line-height: 90%;
    padding-left: 120px;
}


/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/

.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    max-width: 490px;
    border-radius: 31px;
}
.modal-body {
    padding: 40px 40px 30px !important;
}

.upper{
    text-transform: uppercase;
}
    .color-green{
        color: #1b5e3b;
    }

    .code-box{
      display:inline-flex;
      align-items:center;
      border:3px solid #c7d300;
      border-radius:14px;
      /*overflow:hidden;*/
      background:#fff;
      position:relative;
    }

    .code-label {
        background: #c7d300;
        color: #0b5a33;
        font-weight: 500;
        text-transform: uppercase;
        padding: 4px 22px;
        font-size: 30px;
        letter-spacing: 0;
        border-radius: 6px 0 0 6px;
    }

    .code-value {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0 10px 0 30px;
        font-weight: 500;
        color: #1b5e3b;
        font-size: 29px;
        min-width: 180px;
        justify-content: center;
    }

    .copy-btn{
      cursor:pointer;
      color:#1b5e3b;
      transition:0.2s ease;
        width: 40px;
        height: 40px;
        background-image: url(../papa/clipboard.png);
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}


    .copy-btn:hover{
      transform:scale(1.1);

    }

    .copied-msg{
      position:absolute;
      bottom:-38px;
      left:50%;
      transform:translateX(-50%);
      background:#1b5e3b;
      color:#fff;
      padding:6px 12px;
      border-radius:8px;
      font-size:14px;
      opacity:0;
      pointer-events:none;
      transition:0.3s ease;
    }

    .copied-msg.show{
      opacity:1;
      bottom:-46px;

    }


.copied-msg {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1b5e3b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    margin-left: 40px;
    min-width: 130px;
}
 .copied-msg.show{
      opacity:1;
      bottom:2px;

    }


.modal .btn-close {
    z-index: 99;
    background-image: url(../papa/close.png);
    background-position: center;
    background-size: cover;
    opacity: 1;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
}

/* Eliminar el halo/focus ring al hacer clic */
.modal .btn-close:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

/* Opcional: también eliminar el efecto al hover si lo deseas */
.modal .btn-close:hover {
    opacity: 0.8; /* o el valor que prefieras */
}

/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/


.ContadorBox{
    background: black;
    position: relative;
    
}
.ContadorPop{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: black;
    height: 100%;
}
#ContadorGif {
    /*position: relative;
    width: 320px;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: auto;
    margin-top: -4px;*/
    
    position: relative;
    width: 320px;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: auto;
    margin-top: -4px;
    left: 50%;
    margin-left: -160px;
}

#ContadorGif video {
    display: none;
    position: absolute;
    /* top: 0; */
    /*left: -40px;*/
    width: 100%;
    height: 100%;
    object-fit: contain;
    top: -40px;
}

#ContadorGif video.activo {
  display: block;
}

#ContadorVideoWrap{
    display: none;
}



#BigContainer {
    display: flex;
    width: 100%;
    height: 100%;
}

#BigContainer #Section1 {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}



@keyframes entradilla {
    0%      {width: 200%;}
    50%     {width: 200%;}
    100%    {width: 100%;}
}

@keyframes entradillalogo {
    0%      {left: 50%; opacity: 0}
    20%     {left: 50%; opacity: 0}
    49%     {left: 50%; opacity: 1}
    50%     {left: 50%;}
    100%    {left: 0%;}
}




#BigContainer #Section1 .text-1-wrap{
    position: relative;
    top: 0%;
    left: 50%;
    margin-top: 0px;
    z-index: 2;
    animation-name: entradillalogo;
    animation-iteration-count: 1;
    animation-duration: 3s;
    animation-fill-mode: forwards;  /* ← Mantiene el estado final */
}
#BigContainer #Section1:after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 200%;
    height: 100%;
    background: #2d5d2a;
    z-index: 1;
    
    animation-name: entradilla;
    animation-iteration-count: 1;
    animation-duration: 3s;
    animation-fill-mode: forwards;  /* ← Mantiene el estado final */
}


#BigContainer #Section2{
    position: relative;
    background-color: #a0c4e9;
    background-image: url(../papa/fondo1.jpg);
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: left bottom;
        display: flex;
    align-items: center
}


/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/


.marcador-metal{
    background: gray;
    padding: 6px;
    background-image: url(../papa/metal.jpg);
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
}
.marcador-black{
    background: black;
    /*padding: 20px;*/
    padding: 20px 20px;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid white;
}
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
/*////////////////////////////////////////*/
@media screen and (max-width: 1400px) {
    .text-1-wrap h1 {
        transform: scale(1.1);
    }
    #boxWrapper {
        width: 650px;
        height: 650px;
    }
    #instrucciones {
        left: 300px;
    }

}


@media screen and (max-width: 990px) {
    body {
      overscroll-behavior-y: contain;
    }
    
    #ContadorGlobal{display: none}
    #ButtonContadorGlobal{display: none}
    
    html, body {
        overflow: inherit;
        /*overflow: hidden;*/
        height: 100dvh;
    }
    #content {
        width: 100%;
        overflow: hidden;
        position: relative;
        height: 100vh;
        /* La solución real: se adapta al espacio visible actual */
        height: 100dvh;
    }
    #BigContainer {
        display: block;
        width: 100%;
        height: 100%;
    }
    .overlay-text-links span {
        color: #f4e9de !important;
    }
    .overlay-text-logo img{
        max-width: 150px !important;
    }
    .text-1-wrap h1 {
        transform: scale(0.7);
    }
    
    @keyframes entradilla {
        0%      {width: 200%;}
        50%     {width: 200%;}
        100%    {width: 100%;}
    }

    @keyframes entradillalogo {
        0%      {left: 0%; top: 2%; opacity: 0}
        20%     {left: 0%; top: 2%; opacity: 0}
        49%     {left: 0%; top: 0%; opacity: 1}
        50%     {left: 0%; top: 0%;}
        100%    {left: 0%; top: 0%;}
    }
    
    
    
@keyframes entradilla {
    0%      {width: 100%; height: 130%}
    50%     {width: 100%;height: 130%}
    100%    {width: 100%;height: 100%}
}

@keyframes entradillalogo {
    0%      {left: 0%; top: 15%; opacity: 0}
    50%     {left: 0%; top: 15%; opacity: 1}
    90%     {left: 0%; top: 0%; opacity: 1}
    100%    {left: 0%; top: 0%; opacity: 1}
}

    #BigContainer #Section1:after {
    animation-name: entradilla;
    animation-iteration-count: 1;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}
    
    #BigContainer #Section1 .text-1-wrap{
        left: 0%; top: 15%; opacity: 0;
        /*animation-delay: 1s;*/
        animation-duration: 2s;
}
    
    @keyframes entradillaflecha {
    0%      {opacity: 0}
    50%     {opacity: 0}
    90%     {opacity: 1}
    100%    {opacity: 1}
}

    #BotonMovilWrap{
        animation-name: entradillaflecha;
        animation-iteration-count: 1;
        animation-duration: 3s;
        animation-fill-mode: forwards;  /* ← Mantiene el estado final */
    }
    
    
    .overlay-text-legal {
        bottom: 20px;
        left: 0;
        color: white;
        z-index: 0;
        width: 100%;
        text-align: center;
        padding: 0 5%;
        line-height: 100%;
    }

    
    #BigContainer #Section1 {
        position: relative;
        width: 100%;
        height: 80%;    /* esta cifra debe ser igual */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #BigContainer.big-pos-in{
        top: -68%;       /* esta cifra debe inversa */
        
    }
    
    
    #BigContainer #Section2 {
        width: 100%;
        height: 90%;
    }
    #BotonMovilWrap{
        position: absolute;
        bottom: 20px;
        left: 50%;
        z-index: 2;
        margin-left: -20px;
        width: 40px;
        height: 40px;
    }
    #BotonMovil {
        position: relative;
        width: 40px;
        height: 40px;
        background-image: url(../papa/flecha-down.png);
        background-repeat: no-repeat;
        background-size: cover;
        cursor: pointer;
    }
    
    
    #BigContainer{
        position: relative;
        transition: all 1s ease;
        top: 0;
         /*transition-timing-function: cubic-bezier(0.1, 0.7, 1.0, 0.1);*/
    }


    .text-2-wrap {
        bottom: auto;
        top: 1%;
        right: 0;
        margin-top: 0px;
        transform: scale(.75);
    }
     .marcador-black {
        padding: 20px 10px;    
    }
    
    
    #boxWrapper {
        width: 320px;
        height: 320px;
    }
    #boxPosition {
        top: -10%;
    }

    .text-2-wrap .t2 {
        font-size: 24px;
    }
    .t-numeros {
        font-size: 60px;
    }
    
    
    .ContadorBox {
       
    }
    
    #ContadorGif {
        /*width: 100%;
        height: 100%;
        min-width: 150px;
        max-width: 150px;
        transform: scale(1.5) translateX(-2%);
        margin-top: 0;*/
        
        
        
        width: 100%;
        height: 100%;
        min-width: 150px;
        max-width: 150px;
        transform: scale(1.5) translateX(-0%);
        margin-top: 0;
        left: 50%;
        
        margin-left: -75px;
    }
    #ContadorGif video {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        
    }

    #instrucciones {
        top: 43%;
        left: 97px;
        margin-top: -30px;
        transform: scale(0.6);
        height: 130px;
        background-size: 140px;
    }
    #instrucciones p {
        padding-left: 80px;
    }
    

    
    .overlay-text-logo {
        top: 3vh;
        left: 30px;
    }
    
    @keyframes flechaMov {
        0%      {transform: translateY(-5px)}
        50%     {transform: translateY(5px)}
        100%    {transform: translateY(-5px)}
    }
    
    
    #BotonMovil{
        animation-name: flechaMov;
        animation-iteration-count: infinite;
        animation-duration: 2s;
    }

    
    .overlay-text-links {
        right: 20px;
        top: 4vh
    }
    .overlay-text-links span{
        font-size: 14px;
    }
    
    .modal-dialog {
        padding: 10px;
    }
    .modal-content {
        border-radius: 20px;
    }
    .modal-body {
        padding: 20px 10px 10px !important;
    }
    
    .code-box {
        width: 100%;
        max-width: 266px;
    }
    .code-label {
        padding: 4px 16px;
        font-size: 28px;
    }
    .code-value {
        padding: 0 4px 0 21px;
        font-size: 27px;
        min-width: 160px;
    }
    .modal .btn-close {
        width: 24px;
        height: 24px;
    }
    
   
    
}
