/*Estilos Para tablets y dispositivos medianos (769px - 1024px)********************************************** */
@media (min-width: 800px) and (max-width: 1024px) {
    /* Estilos para tablets */
   
    
    /*Elementos comunes ********************************************/
    header {
        position: relative;
        top: 0px;
        right: 0px;
        width: 100%;
        height: 175px;
        min-height: 175px;
        max-height: 175px;
        padding: 0; 
        z-index: 2; 
        overflow: hidden;  
    }

    .header-text{
        font-family: "Dancing Script", cursive;
    }

    .header-text h1{
        font-size: 1.55rem;
        font-weight: bolder;    
    }

    .header-text .subtitle {
        font-family: Arial, sans-serif;
        font-size: 0.75rem;
        font-weight: normal;
    }

    .logo{
        margin-left: 2%;
    }

    .tooltip-text-logo {
        width: 90px;
        top: 10px;
        left: 155px;
        background-color: rgb(252, 249, 249);
        color: rgb(114, 19, 19); 
        font-size: small;              
    }


    .navbar {
        padding: 1%;
        margin-left: 0%;
    }

    nav ul {
        padding: 0;
        margin-left: -1%;
    }

    nav ul li {
        margin: 5px 10px; /* Ajustar los márgenes para el espaciado */
        font-size: 0.94rem /* Reducir el tamaño de la fuente para pantallas pequeñas */
    }

    nav ul li a {
        font-size: 0.89rem; /* Reducir el tamaño de la fuente para pantallas pequeñas */
    }

    .home-icon-wrapper {
        top: 75px; 
        right: 30px !important; /* Ajuste más controlado con px */
        width: 40px;
        height: 40px;
        z-index: 1000 !important;
       
    }

    .home-icon-wrapper-supplies {
        top: 75px; 
        right: 30px !important; /* Ajuste más controlado con px */
        width: 40px;
        height: 40px;
        z-index: 1000 !important;       
    }

    .tooltip-text {
        width: 90px;
        background-color: rgb(252, 249, 249);
        color: rgb(114, 19, 19);
        top: 0px; /* Ajusta para que el tooltip aparezca fuera del borde */
        right: 95px;
        font-size: small;
    }

    .tooltip-text-supplies {
        width: 90px;
        background-color: rgb(252, 249, 249);
        color: rgb(114, 19, 19);
        top: 2px; /* Ajusta para que el tooltip aparezca fuera del borde */
        right: 95px;
        font-size: small;  
    }

    .social-icons {        
        position: absolute;
        bottom: 10px;
        right: 30px; /* Ajustado para dispositivos más pequeños */
        display: flex;
        gap: 15px;
        z-index: 2;
        overflow: hidden;
    }

    .social-icons a{
        font-size: 23px; /* Tamaño de los iconos */
        overflow: hidden;
    }

    /*BARRA DE NOTIFICACIONES*/
    .notification-viewport{
        position: relative;
        width: 100%;
        height: 65px;       
        padding: 2px 0;   
        margin: 0 0 0 4%  ;
        overflow: hidden;
    }

    footer{
        z-index: 2;
    }

    /*index.html***************************************************/
    .grid {
        width: 95%; /* Asegurar el ancho completo */
        gap: 15px; /* Añadir espacio entre los elementos */
        margin-left: 2%;
        max-width: 920px;
    }
    
    /*les damos tamaño al triangulo, centramos letras en el triangulo y le damos tamaño a dichas letras. Estas variables vienen de .image-container; de syles.css*/
    .image-container { 
        --corner: 90px;
        --tri-center-offset: -4%;/* % del lado: centroide */
        --label-size: 0.95rem; 
    }

    
    /* howtobuy.html — NUEVO LAYOUT (iconos arriba, texto debajo) */
    /* howtobuy.html **********************************************/
    /* howtobuy.html — NUEVO LAYOUT (iconos arriba, texto debajo) */
        .how-to-buy-section{
            position: relative;
            margin: 1px auto max(6vh, 60px);   /* +aire abajo para que no lo pise el footer */
            padding: clamp(12px, 2vw, 20px);
            width: min(76vw, 800px);
            display: flex;
            flex-direction: column;
            gap: clamp(16px, 2vh, 24px);       /* separación mínima entre iconos y texto */
            overflow: visible !important;
        }

        .icons-column{
            position: relative;
            top: 0;
            z-index: 2;
            background: transparent;
            padding-bottom: 6px;
            width: 90%;
            height: auto !important;
            margin: auto;
            margin-bottom: 0 !important;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); /* 4 botones en una fila */
            gap: clamp(8px, 1.6vw, 16px);
        }

        .icon-box{
            aspect-ratio: 1 / 1; /* botón cuadrado elástico */
            display: grid;
            place-items: center;
            padding: clamp(6px, 1.2vw, 12px);

        }

        .icon-box i{
            font-size: clamp(2rem, 2vw, 2.4rem);
        }

        .icon-box p{
            font-size: clamp(0.9rem, 1.2vw, 0.9rem);
            margin: 0;
        }

        .text-column{
            width: 100%;
            margin: 0 !important;
            padding: 0 !important;
            display: flex !important;
            justify-content: center !important;
            box-shadow: none !important;
        }

        .how-to-buy-text{
            font-size: clamp(0.85rem, 1.2vw, 1rem);
            line-height: 1.6;
            width: min(92%, 900px);             /* limita ancho y centra */
            margin: 0 auto;
            padding: clamp(12px, 2vw, 20px);
            padding-bottom: 375px;              /* tu ancla #returns */
            max-height: min(49.5svh, 499px);
            overflow: auto;
            box-shadow: none !important;
        }

        /* Quitar margen superior del primer heading del bloque de texto */
        .how-to-buy-text h1:first-child,
        .how-to-buy-text h2:first-child,
        .how-to-buy-text h3:first-child{
            margin-top: 0 !important;
            }

        /* Opcional: compactar un poco el resto */
        .how-to-buy-text p{ 
            margin-top: 0.4em; 
        }



    /* ESTO HACERLO mejor en javascript**************
    Mejor que hacks con :before: usar scroll-margin-top en los anclajes */
    /*#how-to-buy, #paypal, #shipping, #returns{
        scroll-margin-top: clamp(140px, 20svh, 200px);
    }*/

    /*Estilos About.html **************************************** */
    .about {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
        width: 100%;
        min-width: 790px;
        max-width: 790px;
        height: auto;
        min-height: 540px;
        max-height: 540px;
        box-sizing: border-box;
        justify-items: center;
        align-items: start;
        overflow-y: auto;
        margin-top: 0%;
        padding-left: 0%;
    }

    .about-image-container {
        width: 100%;
        min-width: 770px;
        max-width: 770px;
        display: flex;
        justify-content: center;
        height: 222px;
        min-height: 222px;
        max-height: 222px;
    }

    .about-image {
        width: 300px; /* Asegura que la imagen ocupe todo el espacio asignado */
        height: 205px;
        padding: 0%;
        margin-top: -1.3%;
    }

    .about-text {
        text-align: justify;
        font-size: 0.8rem;
        width: 95%;
        padding: 2%;
        min-width: 770px;
        max-width: 770px;
        box-sizing: border-box;
        margin-top: -0.5%;
        z-index: 1;
    }

    .right-column {
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* Alinea los elementos al final de la columna */
        margin-right: 1px;
    }
    
    .right-column .right-align {
        text-align: right;
        padding-right: 0%;
    }
        
    .right-align {
        font-size: 0.7rem;
    }
    
    .name {
        font-family: "Dancing Script", cursive;
        font-size: 1.3rem;
    }

    
    /* Estilos contact.html *****************************************/
    .contact-section{
        position: fixed;
        top: 160px;
        left: 50%; /* Posicionar el contenedor desde el centro */
        transform: translateX(-50%);
        width: 100%; 
        height: 100vh; 
        min-height: 300px; 
        max-height: 480px;
        max-width: 700px; 
        margin: auto;
        overflow-y: hidden;
    }

    .contact-grid{
        height: 100vh;
        min-height: 475px;
        max-height: 500px;
        overflow-y: auto;
    }

    .icons-contact-wrapper {
        gap: 15px; 
        padding: 5%;
        max-width: 450px;
    }
    
    .contact-icon-box {
        width: 125px; /* Ancho fijo para asegurar que sea cuadrado */
        height: 125px; /* Altura fija para asegurar que sea cuadrado */
        aspect-ratio: 1;
    }
    
    
    .contact-icon-box i {
        font-size: 2.2em;
    }
    
    .contact-icon-box p {
        font-size: 0.9em;
        margin: 5px 0 0 0;
        color: #594545;
    }
    
    .contact-text {
        font-size: medium;
        margin-bottom: 20px; /* Espacio entre el texto y los íconos */
        padding-top: 1.5%;
    }



    /* Estilos drone_reeds.html *********************************/
    .drone-reeds {
        height: auto; /* Fijar altura en píxeles */
        min-height: 520px;
        max-height: 700px; /* Limitar la altura máxima */
        margin: auto;
        margin-top: 2%;
        overflow-y: auto; /* Habilitar el scroll vertical */
        padding: 2%;
    }

    .drone-reeds-image,
    #chanter-reed-gallery {
        width: 375px; 
        height: 275px; /* Tamaño fijo para la imagen */
        margin-left: 0%;
    }

    .purchase-info {
        margin-bottom: 20%;
        margin-left: 0%;
        width: 375px;
        height: 175px; /* Tamaño fijo para la sección de compra */
        overflow-y: hidden; /* Habilitar scroll si es necesario */
    }

    .drone-reeds-description {
        overflow-y: auto;
        margin-top: 0%;
        margin-left: 0%;
        width: auto;
        min-width: 374px;
        max-width: 700px;
        height: 100vh; 
        min-height: 473px;
        max-height: 473px;
        font-size: 0.8rem;
        padding-top: 0%;
    }
    
    .stock{
        margin-top: 2%;
        padding-bottom: 0%;
    }

    .prices { 
        text-align: center;
        height:45%;
        font-size: 0.83rem;
        padding: 2%;
        /*margin-left: 4%;*/
        padding-top: 0%;
    }

    .price-highlight {
        font-size: 0.9rem;
    }
    
    .button {           
        font-size: 1rem; /* Ajustamos el tamaño de la fuente */
        padding-top: 1.5%;
        margin-top: 0%;
    }
    
    .paypal-icon {
        margin-top: 1.8%;
    }

        /*sub-mediaquery creada para el problema del precio en 
        los articulos y el scroll del texto descriptivo*/
        @media (max-height: 779px) {

            header {
                position: fixed;
                top: 0px;
                height: 175px; /* Asegura que el header no desaparezca */
                min-height: 175px;
                padding: 0;
                z-index: 1000 !important;           
            }
    
            main {
                flex: 1;
                overflow-y: auto !important; /* Permitir scroll en el contenido */
            }        
    
            footer {
                position: sticky;
                height: 50px;
                min-height: 50px;
            }              


            .notification-bar {
                position: sticky;
                top:175px;

            } 

            /*Estilos iconos RRSS*/
            .social-icons {
                bottom: 10px;
                right: 30px; /* Ajustado para dispositivos más pequeños */
                overflow: hidden;
            }
        
            .social-icons a{
                font-size: 23px; /* Tamaño de los iconos */
                overflow: hidden;
            }

            .icons-column,
            .text-column,
            .how-to-buy-text{
                z-index: auto !important;
            }    

            /*Estilos index.html*/
            .gallery{
                margin-top: calc(100px + 10vh);
            }

            /*Estilos howtobuy.html*/
            .how-to-buy-section{
                position: relative; /* quitar fixed */
                margin: 175px auto 3vh; 
                z-index: 3;
            }
         
            /* Estilos about.html*/
            .about{
                margin-top: calc(95px + 10vh);
            }

            
            /* Estilos drone_reeds.html */
            .drone-reeds{
                margin-top: 20%; /* Ajustar dependiendo de la altura del header y la barra de notificación */
                min-height: 300px;
                max-height: 520px;
            }                           


            
            /*sub-sub-mediaquery creada para el problema de los iconos 
            de RRSS, iconos de contactar.html... */
            @media (max-height: 668px), (max-width: 640px) {
                header {
                    position:sticky;
                    top:0;
                    width: 100%;
                    height: 150px; /* Asegura que el header no desaparezca */
                    min-height: 150px;
                    overflow: hidden;
                }

                main {
                    flex: 1;
                    overflow-y: hidden; /* Permitir scroll en el contenido */
                }
    
                .navbar {
                    position: fixed;
                    height: 50px;
                    min-height: 50px;
                } 
                
                .header-text h1{
                    font-size: 1.5rem;
                }
            
                .header-text .subtitle {
                    font-size: 0.7rem;
                }            
            
                footer {
                    position: sticky;
                    bottom: 0;
                    height: 50px;
                    min-height: 50px;
                    z-index: 2;
                }                

                .notification-bar{
                    position: sticky;
                    top: 150px;

                } 
                
                .tooltip-text-logo {
                    width: 90px;
                    top: 2px; /* Ajusta la posición */
                    left: 160px;
                    background-color: rgb(252, 249, 249);
                    color: rgb(114, 19, 19);               
                }

                .tooltip-text {
                    width: 90px;
                    top: 2px; /* Ajusta para que el tooltip aparezca fuera del borde */
                    right: 100px;
                    font-size:small;
                }

                .tooltip-text-supplies {
                    width: 90px;
                    top: 2px; /* Ajusta para que el tooltip aparezca fuera del borde */
                    right: 100px;
                    font-size: small; 
                }


                .home-icon-wrapper {
                    top: 53px; 
                }
            
                .home-icon-wrapper-supplies {
                    top: 53px;  
                }
    
                /* Asegurar que los elementos del footer estén siempre visibles */
                .social-icons {
                    bottom: 10px;
                    right: 20px;
                    z-index: auto !important; 
                }


                /*Estilos index.html*/
                .gallery{
                    margin-top: 0px;
                }


                /*Estilos howtobuy.html*/
                .how-to-buy-section {                   
                    /*position: relative; /* quitar fixed */
                    margin: 0px auto 3vh;/* respeta header+noti */
                    overflow:visible !important;
                }                


                /*Estilos about.html */
                .about{
                    margin-top: 0;
                    height: 100vh; /* Ocupa toda la altura visible de la ventana */
                    min-height: 210px;
                    max-height: 400px;
                }
                
                .about-text{
                    margin-top: -1%; /* Separar un poco más el texto de la imagen */
                    padding-bottom: 2%;
                }
                        

    
                /*Estilos contact.html */
                .contact-section {
                    position: fixed;
                    top: 30px;
                    left: 50%;
                    transform: translateX(-50%); /* Mover el contenedor hacia la izquierda para centrarlo */
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    width: 100%; 
                    height: 100vh; 
                    min-height: 300px; 
                    max-height: 420px;
                    max-width: 700px; 
                    margin: auto;
                    overflow-y: hidden;
                }


                .icons-contact-wrapper {
                    display: grid;
                    align-items: center;
                    justify-content: center;
                    grid-template-columns: repeat(4, 1fr); /* Distribuye los íconos en 4 columnas */
                    gap: 0px; /* Reduce el espacio entre los íconos */
                    width: 90%; /* Asegúrate de que ocupe el ancho completo */
                    max-width: 648px;
                    height: 275px;
                    margin-top: -8%;
                }
        


                .contact-icon-box {            
                    padding: 0px; /* Ajusta el espacio dentro del contenedor */
                    overflow: hidden;
                    width: 100%; /* Se ajusta a la columna asignada en el grid */
                    height: auto;
                    max-width: 125px;
                    max-height: 125px;
                    aspect-ratio: 1;
                }

                .contact-icon-box i {
                    font-size: 2.3em; /* Ajusta el tamaño del icono */
                    overflow: hidden;
                }

                .contact-icon-box p {
                    font-size: 0.8em; /* Ajusta el tamaño del texto */
                    overflow: hidden;
                    margin-top: -5%;
                }
                
                
                /* Estilos drone_reeds.html */
                .drone-reeds{
                    margin-top: 0%; /* Ajustar dependiendo de la altura del header y la barra de notificación */
                    min-height: 300px;
                    max-height: 520px;
                }
                

                @media (max-height: 600px){
                    /*Estilos howtobuy.html */
                    .how-to-buy-section {                   
                    /*position: relative; /* quitar fixed */
                    margin: 0px auto 3vh;/* respeta header+noti */
                    overflow:visible !important;
                    }      

                    /*Estilos about.html */
                    .about{
                        height: auto;
                        margin-top: 0%;
                        min-height: 150px;
                        max-height: 300px;
                        overflow-y: auto;
                    }
    
                }


                @media (max-height: 476px) {
                
                    /* Estilos index.html */
                    .gallery{
                        margin-top: 0%; /* Ajustar dependiendo de la altura del header y la barra de notificación */
                        overflow-y: auto;
                    }


                    /*Estilos howtobuy.html */
                    .how-to-buy-section {                   
                        /*position: relative; /* quitar fixed */
                        margin: 0px auto 3vh;/* respeta header+noti */
                        overflow:visible !important;
                    }

                    /*Estilos about.html */
                    .about{
                        margin-top: 0;
                        height: 100vh; /* Ocupa toda la altura visible de la ventana */
                        min-height: 150px;
                        max-height: 250px;
                    }
                    
                    .about-text{
                        margin-top: -1%; /* Separar un poco más el texto de la imagen */
                    }

                   /*Estilos contact.html */
                    .contact-section {
                        position: fixed;
                        top: 150px;
                        left: 50%; /* Posicionar el contenedor desde el centro */
                        transform: translateX(-50%); /* Mover el contenedor hacia la izquierda para centrarlo */
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        width: 100%; 
                        overflow-y: auto; 
                        height: 100vh; 
                        min-height: 250px; 
                        max-height: 250px;
                        max-width: 700px; 
                        overflow-y: auto;

                    }

                    .contact-grid{
                        margin-left: 4%;                           
                    }

                    .contact-text {
                        text-align: center;
                        margin-top: 6%; /* Reduce el espacio entre el texto y los íconos */
                        width: 100%;
                        font-size: medium;
                    }

                    .icons-contact-wrapper {
                        display: grid;
                        align-items: center;
                        justify-content: center;
                        grid-template-columns: repeat(4, 1fr); /* Distribuye los íconos en 4 columnas */
                        gap: 0px; /* Reduce el espacio entre los íconos */
                        width: 90%; /* Asegúrate de que ocupe el ancho completo */
                        max-width: 648px;
                        height: 275px;
                        margin-top: -8%;

                       
                    }

                    .contact-icon-box {            
                        padding: 0px; /* Ajusta el espacio dentro del contenedor */
                        overflow: hidden;
                        width: 100%; /* Se ajusta a la columna asignada en el grid */
                        height: auto;
                        max-width: 125px;
                        max-height: 125px;
                        aspect-ratio: 1;
                    }

                    .contact-icon-box i {
                        font-size: 2.3em; /* Ajusta el tamaño del icono */
                        overflow-y: hidden;
                    }

                    .contact-icon-box p {
                        font-size: 0.8em; /* Ajusta el tamaño del texto */
                        overflow: hidden;
                        margin-top: -5%;
                    }


                    /* Estilos drone_reeds.html */
                    .drone-reeds{
                        margin-top: 1%; /* Ajustar dependiendo de la altura del header y la barra de notificación */
                        min-height: 250px;
                        max-height: 520px;
                    }


                }             
            }
        }    
}

