/* Estilos móviles medianos (481px - 768px) ********** */
@media (min-width: 600px) and (max-width: 799px) {
    
    main { 
        overflow: auto; 
    }   

    /* Estilos elementos comunes */

    header {
        position: relative;
        top: 0px;
        width: 100%;
        height: 175px;
        min-height: 175px;
        max-height: 175px;
        padding: 0; 
        z-index: 2; 
    }

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

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

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

    .logo {
        margin-left: 2%;
    }

    .tooltip-text-logo {
        width: 85px;
        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;
        font-size: 0.9rem;
    }

    nav ul li a {
        font-size: 0.85rem;
    }

    .social-icons {
        position: absolute;
        bottom: 10px;
        right: 20px;
        display: flex;
        gap: 15px;
        z-index: 2;
        overflow: hidden;
    }

    .social-icons a {
        font-size: 24px;
    }


    .home-icon-wrapper {
        position: fixed;
        top: 75px; 
        right: 13px;
        width: 40px;
        height: 40px;
        z-index: 13;
    }

    .home-icon-wrapper-supplies {
        position: fixed;
        top: 75px; 
        right: 13px;
        width: 40px;
        height: 40px;
        z-index: 13;
    }

    .tooltip-text {
        width: 85px;
        background-color: rgb(252, 249, 249);
        color: rgb(114, 19, 19);
        top: 0px;
        right: 100px;
        font-size: small;
    }

    .tooltip-text-supplies {
        width: 85px;
        background-color: rgb(252, 249, 249);
        color: rgb(114, 19, 19);
        top: 0px;
        right: 100px;
        font-size: small;
    }

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

    footer {
        width: 100%;
        background-color: #333;
        padding: 20px 0;
        text-align: center;
        color: white;
        flex-shrink: 0;
        position: relative;
        bottom: 0;
        height: auto;
        min-height: 50px;
        z-index: 2;
    }

    /* Estilos para la página index.html */
    .gallery {
        height: auto;
        overflow-y: auto;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 17px;
    }

    /*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: 70px;
        --tri-center-offset: 8%;/* % del lado: centroide */
        --label-size: 0.9rem; 
    }


    /* Estilos para la página howtobuy.html */
    .how-to-buy-section{
        position: relative;
        margin: 1px auto max(6vh, 60px);
        padding: clamp(12px, 2vw, 20px);
        width: min(400vw, 600px);
        display: flex;
        flex-direction: column;
        gap: clamp(16px, 2vh, 24px);
        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(1.9rem, 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.9rem, 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(60svh, 520px);
        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; 
        }

    /* Estilos para la página about.html */
    .about {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        width: 95%; 
        height: auto !important;
        max-height: none !important;
        margin-top: 0%;
        box-sizing: border-box;
        justify-items: center;
        align-items: start;
    }

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

    .about-image {
        width: 290px; /* Asegura que la imagen ocupe todo el espacio asignado */
        height: 195px;
        object-fit: cover;
        border-radius: 10px;
        padding: 0%;
        margin-top: -1.3%;
    }

    .about-text {
        text-align: justify;
        font-size: 0.8rem;
        width: 95%;
        padding: 2%;
        padding-top: 0%;
        min-width: 525px;
        max-width: 525px;
        margin-top: 1%;
        margin-left: 2%;
        margin-right: 2%;
        box-sizing: border-box;
        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.65rem;
    }
    
    .name {
        font-family: "Dancing Script", cursive;
        font-size: 1.2rem;
    }


    /* Estilos para la página contact.html */
    .contact-section{
        position: fixed;
        top: 150px;
        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%;
        width: 100%;
        max-width: 325px;
    }

    .contact-icon-box {
        width: 120px;
        height: 120px;
        aspect-ratio: 1;
    }

    .contact-icon-box i {
        font-size: 1.9rem;
    }

    .contact-icon-box p {
        font-size: 0.8rem;
        margin: 5px 0 0 0;
        color: #594545;
    }

    .contact-text {
        font-size: medium;
        margin-bottom: 20px; /* Espacio entre el texto y los íconos */
    }

    .contact-icon-box:hover {
        transform: scale(1.15);
        border: none;
    }

    

    /* Estilos para la página drone_reeds.html */
    .drone-reeds {
        height: auto;
        min-height: 520px;
        max-height: 700px;
        margin: auto;
        margin-top: 2%;
        overflow-y: auto;
    }

    .drone-reeds-image,
    #chanter-reed-gallery,
    #template-reed-CO-gallery {
        width: 300px;
        height: 275px;
        margin-left: 1%;
    }

    .purchase-info {
        margin-bottom: 20%;
        margin-left: 1%;
        width: 300px;
        height: 175px;
    }

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

    .title {
        font-size: 1.1rem; /* Aumenta el tamaño de la fuente */
    }

    .prices{
        font-size: 0.8rem;
    }

    .price-highlight{
        font-size: 1rem;
    }

    .paypal-icon {
        margin-top: 6.8%;        
    }


    /* Sub-mediaquery para (max-height: 768px) */
    @media (max-height: 768px) {

        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: auto;
        }

        footer {
            position: sticky;
            height: 50px;
            min-height: 50px;
        }

        .navbar {
            position: fixed;
            height: 58px;
            min-height: 58px;
        }

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

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

        .home-icon-wrapper {
            position: fixed;
            top: 75px; 
            right: 13px;
            width: 40px;
            height: 40px;
            z-index: 1000 !important;
        }

        .home-icon-wrapper-supplies {
            position: fixed;
            top: 75px; 
            right: 13px;
            width: 40px;
            height: 40px;
            z-index: 1000 !important;
        }



        /* Estilos index.html */
        .gallery{
            margin-top: calc(100px + 10vh); /* Ajustar dependiendo de la altura del header y la barra de notificación */
        }


        /*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(100px + 10vh);
            height: auto;
            min-height: 350px;
            max-height: 560px;
        }

       
        /* Estilos drone_reeds.html */
        .drone-reeds{
            margin-top: calc(105px + 10vh); /* Ajustar dependiendo de la altura del header y la barra de notificación */
        }


    }

    /* Sub-sub-mediaquery para (min-height: 395px) and (max-height: 668px) */
    @media (max-height: 668px) {
        header {
            position: fixed;
            top: 0;
            width: 100%;
            height: 150px;
            min-height: 150px;
            overflow: hidden;
        }

        main {
            flex: 1;
        }

        .home-icon-wrapper {
            position: fixed;
            top: 60px;
            z-index: 1001 !important; 

        }
    
        .home-icon-wrapper-supplies {
            position: fixed;
            top: 60px;
            z-index: 1001 !important;  
        }

        footer {
            position: sticky;
            bottom: 0;
            height: 50px;
            min-height: 50px;
            z-index: 2;
        }

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


        /* Estilos index.html */
        .gallery{
            margin: 150px 0 0 0%; /* Ajustar dependiendo de la altura del header y la barra de notificación */
            overflow-x: hidden !important; 
            overflow-y: auto !important;
        }

        .grid {
            width: 95%;
            gap: 12px;
            margin-left: 1%;
            max-width: 750px;
        }


        /*Estilos howtobuy.html*/
        .how-to-buy-section {                              
            position:relative !important; /* quitar fixed */
            margin: 150px auto 3vh;
        }                



        /*Estilos about.html */
        .about{  
            margin-top: 148px;       
            height: 100vh; /* Ocupa toda la altura visible de la ventana */
            min-height: 210px;
            max-height: 525px;
        }

        

        /*Estilos contact.html */
        .contact-section {
            position: fixed;
            top: 5px;
            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%; 
            height: 100vh; 
            min-height: 300px; 
            max-height: 420px;
            max-width: 700px; 
            margin: auto;
            overflow-y: hidden;
        }

    
        .contact-text {
            text-align: center;
            margin-bottom: 0; /* Reduce el espacio entre el texto y los íconos */
            font-size: medium;
        }
    
        .icons-contact-wrapper {
            margin-top: -2%;
            display: grid;
            align-items: center;
            justify-content: center;
            grid-template-columns: repeat(4, 1fr); /* Distribuye los íconos en 4 columnas */
            gap: 1px; /* Reduce el espacio entre los íconos */
            width: 85%; /* Asegúrate de que ocupe el ancho completo */
            min-width: 555px;
            max-width: 555px;
            height: 225px;
            max-height: 225px;
        }

        .contact-icon-box:hover {
            transform: scale(1.15);
            border: none;
        }



        /* Estilos drone_reeds.html */
        .drone-reeds{
            margin-top: calc(100px + 10vh); /* Ajustar dependiendo de la altura del header y la barra de notificación */
            min-height: 300px;
            max-height: 520px;
        }

        @media (max-height: 450px) {
        
            /* Estilos index.html */
            .gallery{
                margin-top: calc(100px + 11vh); /* Ajustar dependiendo de la altura del header y la barra de notificación */
                overflow-y: scroll;
            }


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

            /*Estilos about.html */
            .about{
                height: 100vh; /* Ocupa toda la altura visible de la ventana */
                min-height: 150px;
                max-height: 250px;
            }
            


            /*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%; 
                height: 100vh; 
                min-height: 250px; 
                max-height: 350px;
                max-width: 700px; 
                overflow-y: auto;
                padding: 0%;
            }

            .contact-grid{
                margin-left: 4%;                   
            }
        
            .contact-text {
                text-align: center;
                margin-top: -13%; /* Reduce el espacio entre el texto y los íconos */
                width: 100%;
                font-size: medium;
            }
        
            .icons-contact-wrapper {
                margin-top: -2%;
                display: grid;
                align-items: center;
                justify-content: center;
                grid-template-columns: repeat(4, 1fr); /* Distribuye los íconos en 4 columnas */
                gap: 1px; /* Reduce el espacio entre los íconos */
                width: 85%; /* Asegúrate de que ocupe el ancho completo */
                min-width: 555px;
                max-width: 555px;
                height: 225px;
            }

            .contact-icon-box:hover {
                transform: scale(1.15);
                border: none;
            }



            /* Estilos drone_reeds.html */
            .drone-reeds{
                min-height: 250px;
                max-height: 520px;
            }
        
        }


    }
}
