html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;

}


@media (min-width: 1024px) {
    .heading {
        background: linear-gradient(to right, red, orange);
        padding: 1px 10px 10px 0px;
        height: 90px;
        font-family: "Montserrat", sans-serif;
    }

    .heading a {
        text-decoration: none;
        color: black;
    }

    .head-logo img {
        height: 90px;
        width: auto;
        margin: 10px 0 10px 20px;
        flex-direction: column;
    }

    .navbar input {
        opacity: 0;
    }

    .head-p {
        display: block;
        margin: -100px 130px 0;
        line-height: 10px;
        color: white;
        font-size: 23px
    }

    .head-head {
        display: flex;
        gap: 30px;
        margin: -100px 0;
        justify-content: right;
        align-items: center;
    }

    .head-head h1 {
        font-size: 20px;
        padding: 5px 10px 0 0;
        display: inline-block;
        position: relative;
        background: linear-gradient(90deg, #ffffff 0%, rgba(255, 0, 0, 0.4) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-size: 200% auto;
        transition: all 1s ease-in-out;
    }

    /* Línea inferior */
    .head-head h1::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        /* separa la línea del texto */
        width: 0%;
        height: 2px;
        background: #ff3737;
        transition: width 0.2s ease-in-out;
    }

    /* Efectos al pasar el mouse */
    .head-head h1:hover {
        transform: scale(1.1);
        background-position: right center;
        cursor: pointer;
    }

    .head-head h1:hover::after {
        width: 100%;
    }


    .container-principal {
        font-family: "Montserrat", sans-serif;
        background-image: url(./imgs/bomberosfondo.jpg);
        width: 100%;
        height: 100vh;
        background-attachment: fixed;
        background-size: cover;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .container-principal p {
        color: white;
        font-size: 30px;
        margin: 0;
        text-align: center;
        flex-direction: column;
        line-height: -1px;
        filter: drop-shadow(2px 4px 6px black);

    }

    .container-principal button {
        margin: 20px 0;
        font-size: 30px;
        padding: 10px;
        border: 2px solid white;
        border-radius: 20px;
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        text-transform: uppercase;
        line-height: 1;
        background-color: transparent;
        outline: none;
    }

    .container-principal button:hover {
        cursor: pointer;
        filter: brightness(1.2) blur(1px);
        transition: all 0.3s ease-in-out;
        border: 2px solid white;
        background-color: rgb(238, 24, 5);
    }

    .obras-bomberos {
        background: linear-gradient(to right, red, orange);
        font-family: "Montserrat", sans-serif;
        margin: -50px 0;
    }

    .obras-bomberos video {
        width: 1024px;
        height: auto;
        display: block;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        margin: 20px auto;
    }

    #text {
        padding: 20px;
        text-align: center;
    }

    .obras-bomberos #hov {
        cursor: pointer;
        border-radius: 40px;
        border-style: inset;
    }

    .obras-bomberos #hov:hover {
        filter: brightness(1.2) blur(2px);
        transition: all 0.3s ease-in-out;
        border-color: red;
    }


    .obras {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        flex-wrap: wrap;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .obras img {
        width: 300px;
        height: 400px;
        border-radius: 20px;
        object-fit: cover;
    }

    .int1 {
        background-color: rgb(255, 255, 255);
        opacity: 0.9;
        border-radius: 25px;
        box-sizing: border-box;
    }

    .int2 {
        background-color: rgb(255, 255, 255);
        opacity: 0.9;
        margin: 10px;
        border-radius: 25px;
    }
    .int1 #rank {
        margin: 10px;
    }

    .integrantes h1 {
        margin: 20px 0;
        padding: 20px 0 20px 0;
        text-align: center;
        font-size: 40px;
        line-height: 5px;
        color: white;
        filter: drop-shadow(21px 4px 6px black);
    }

    .integrantes-1 img {
        height: 125px;
        width: auto;
        display: flex;
        margin: 40px;
        text-align: center;
    }

    .integrantes-1 img:hover {
        transform: scale(1.1);
        transition: all 0.3s ease-in-out;
    }

    .integrantes-1 p {
        font-size: auto;
        justify-content: center;
        text-align: center;
    }

    .integrantes-1 {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    #todos {
        text-decoration: none;
        color: black;
    }

    .todos {
        text-align: center;
    }

    .todos button {
        font-size: 25px;
        padding: 10px 20px;
        border: 2px solid white;
        border-radius: 20px;
        margin: 40px 0px;
    }

    .todos button:hover {
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        background-color: rgb(238, 24, 5);
        color: white;
        border: 2px solid red;

    }

    #cuartel {
        text-align: center;
        font-size: 50px;
        margin: 70px 0 -20px 0;
    }

    .contacto-principal {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin: 150px 0px 150px 0px;
        padding: 40px;
    }

    .contact {
        display: flex;
        gap: 40px;
    }

    .item-columna {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }


    .camion img {
        width: 700px;
        height: 600px;
        box-shadow: 10px 24px 10px rgba(0, 0, 0, 0.1);
    }

    .ubicacion {
        padding: 20px;
        margin: 20px auto;
        max-width: 1200px;
    }

    .ubicacion iframe {
        height: 450px;
        display: block;
    }

    .fundacion h1 {
        text-align: center;
        font-size: 35px;
    }

    .fundacion .relleno {
        background-color: rgb(255, 255, 255);
        filter: drop-shadow(16px 16px 2px rgb(238, 234, 234));
        width: 1000px;
        border-radius: 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        padding: 20px;
        line-height: 0.5;
        transition: all 0.5s ease-in-out;
    }

    .fundacion .relleno:hover {
        transform: scale(1.02);
        transition: all 0.5s ease-in-out;
    }

    /*Carrusel de noticias, con boton y animaciones en*/
    #noticias {
        font-size: 50px;
        text-align: center;
        color: white;
        filter: drop-shadow(2px 4px 6px rgb(0, 0, 0));
        margin: 40px;
    }

    .slider-contenedor {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 0;
    }

    .slider-items {
        position: relative;
        overflow: hidden;
        z-index: 10;
    }


    .noticias {
        width: 100%;
        height: auto;
        margin: auto;
        padding: 20px;
        background-color: white;
        border-radius: 8px;
        display: none;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        transition: opacity 0.5s;
    }

    .noticias.activa {
        display: flex;
    }

    .noticias #fecha {
        text-align: left;
        font-size: 14px;
        margin: 0;
        color: gray;
        margin-bottom: 10px;
        padding: 0 10px 0 0;
    }

    .noticias .img-noti img#logor {
        width: 400px !important;
        height: 300px !important;
        margin: 0 auto;
    }

    .noticias .img-noti img {
        width: 500px;
        height: auto;
        padding: 0 20px 0 0;
        display: block;
    }

    .noticias .textos h1 {
        font-size: 30px;
        line-height: 1.6;
        text-align: left;
        color: #333;
        padding-right: 20px;
    }

    .wrapper {
        justify-content: center;
        align-items: center;
        text-align: left;
        margin: 20px 0 0 0;
        padding: 0;
    }

    .wrapper a {
        display: inline-block;
        width: 200px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
        font-family: sans-serif;
        text-decoration: none;
        color: #333;
        border: 2px solid #333;
        letter-spacing: 2px;
        text-align: center;
        position: relative;
        transition: all .35s;
    }

    .wrapper a span {
        position: relative;
        z-index: 2;
    }

    .wrapper a:after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: #ff003b;
        transition: all .35s;
        z-index: 1;
    }

    .wrapper a:hover {
        color: #fff;
    }

    .wrapper a:hover:after {
        width: 100%;
    }

    .slider-controles {
        text-align: center;
        padding-top: 20px;
    }

    .dot {
        height: 10px;
        width: 40px;
        margin: 0 5px;
        background-color: #bbb;
        border-radius: 5px;
        display: inline-block;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .dot-activa {
        background-color: #ff003b;
    }



    .footer {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #333;
        color: white;
    }

    .ft-secc a {
        margin: 20px;
        text-align: left;
        font-family: 'Montserrat', sans-serif;
        color: white;
    }

    .ft-secc a:hover {
        text-decoration: underline;
        cursor: pointer;
    }

    .ft-datos img {
        width: 120px;
        height: auto;
        justify-content: left;
    }

    .ft-datos {
        display: flex;
        align-items: center;
        margin: 40px;
    }

    .ft-textos {
        position: relative;
        flex-direction: row;
        margin: 20px;
        line-height: 5px;
        font-size: 17px;
    }

    .ft-logos img {
        height: 40px;
        width: auto;
        margin: 10px;
        filter: drop-shadow(0px 4px 10px rgb(255, 255, 255));

    }

    .ft-logos img:hover {
        transform: scale(1.1);
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        filter: drop-shadow(2px 4px 10px rgb(255, 42, 42));

    }

    #dev {
        color: white;
        background-color: #333;
        margin: 0;
        text-align: center;
        padding: 10px;
    }

    #dev a {
        text-decoration: underline;
        color: white;
    }
}

@media (max-width: 1023px) {
    body {
        background: linear-gradient(to right, red, orange);

    }

    .heading {
        background: linear-gradient(to right, red, orange);
        font-family: "Montserrat", sans-serif;
        width: 100%;
        display: flex;
        min-height: 100px;
        align-items: center;
        justify-content: space-between;
        position: static;
        z-index: 30;
    }

    .head-logo img {
        width: 50px;
        height: auto;
    }

    .head-p a {
        text-decoration: none;
        color: black;
        line-height: 5px;
    }

    .navbar {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        height: 60px;
        background-color: transparent;
        position: relative;
        padding: 0 20px;
    }

    #menu-toggle {
        display: none;
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 20;
    }

    .menu-icon .bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }

    .head-head {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 200px;
        background-color: transparent;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, background-color 0.4s ease-in-out;
        z-index: 10;
        padding: 0;
    }

    .head-head h1 {
        padding: 15px;
        margin: 0;
        width: 100%;
        text-align: left;
        background-color: transparent;
        color: white;
        font-size: 1.2em;
        border-bottom: 1px solid #555;
        transition: background-color 0.3s ease;
    }

    .head-head h1:last-child {
        border-bottom: none;
    }

    #menu-toggle:checked~.head-head {
        max-height: 500px;
        background-color: gray;
        overflow-y: auto;
    }

    #menu-toggle:checked~.menu-icon .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    #menu-toggle:checked~.menu-icon .bar:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked~.menu-icon .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .container-principal {
        font-family: "Montserrat", sans-serif;
        background-image: url(./imgs/bomberosfondo.jpg);
        width: 100%;
        height: 500px;
        background-size: cover;
        background-repeat: no-repeat;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .container-principal p {
        color: white;
        font-size: 25px;
        margin: 0;
        text-align: center;
        flex-direction: column;
        line-height: -1px;
        filter: drop-shadow(2px 4px 6px black);

    }

    .container-principal button {
        margin: 20px 0;
        font-size: 30px;
        padding: 10px;
        border: 2px solid white;
        border-radius: 20px;
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        text-transform: uppercase;
        line-height: 1;
        background-color: transparent;
        outline: none;
    }

    .obras-bomberos video {
        width: auto;
        height: 200px;
        margin: 20px auto;
    }

    .int1 {
        background-color: rgb(255, 255, 255);
        opacity: 0.9;
        margin: 10px;
        border-radius: 25px;
        height: auto;
    }

    .integrantes h1 {
        margin: 20px 0;
        padding: 20px 0 20px 0;
        text-align: center;
        font-size: 25px;
        line-height: 1;
        color: white;
        filter: drop-shadow(21px 4px 6px black);
    }

    .integrantes-1 img {
        height: 200px;
        width: auto;
        margin: 20px;
    }

    .int1 p {
        line-height: 0.5px;
        font-size: 20px;
        text-align: center;
    }

    .int1 #rank {
        font-size: 25px;
    }

    .int1 #nombre {
        padding: 20px 10px 20px 10px;
    }

    .todos a {
        text-align: center;
        text-decoration: none;
        color: black;
    }

    .todos button {
        font-size: 25px;
        padding: 10px 20px;
        background-color: #ff7040;
        border: 2px solid rgb(255, 121, 121);
        border-radius: 20px;
        margin: 20px 10px 40px 10px;
    }

    #cuartel {
        text-align: center;

    }

    .item-columna img {
        width: 300px;
        height: auto;
        box-shadow: 10px 24px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        align-items: center;
        justify-content: center;
        margin: 20px 10px 20px 10px;
    }

    .ubicacion iframe {
        width: 300px;
        height: 300px;
        display: block;
        margin: 20px 10px 20px 10px;

    }
    .fundacion {
        padding: 20px;
        text-align: center;
    }
    .fundacion .relleno {
        background-color: rgb(255, 255, 255);
        filter: drop-shadow(16px 16px 2px rgb(238, 234, 234));
        width: auto;
        border-radius: 20px;
        align-items: center;
        justify-content: center;
        line-height: 1;
        padding: 5px;
        transition: all 0.5s ease-in-out;
    }
    .fundacion .parrafos p {
        margin: 0;
        text-align: left;
        padding: 2px;
        font-weight: 200;
    }

    #noticias {
        font-size: 30px;
        margin: 20px 0;
        text-align: center;
    }

    .slider-contenedor {
        max-width: 100%;
        padding: 10px;
        margin: 20px;
    }

    #noticias {
        font-size: 30px;
        margin: 20px 0;
        text-align: center;
    }

    .slider-contenedor {
        max-width: 100%;
        padding: 10px;
    }

    .noticias {
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: calc(100% - 20px);
        margin: 0;
        padding: 20px;
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
    }

    .noticias.activa {
        opacity: 1;
        position: relative;
        z-index: 1;
    }


    .noticias .img-noti {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        overflow: hidden;
    }

    .noticias .img-noti img {
        width: 100%;
        height: auto;
        padding: 0;
        display: block;
    }

    .noticias .textos {
        width: 100%;
        padding: 0 15px 15px 15px;
        text-align: left;
    }

    .noticias #fecha {
        font-size: 14px;
        margin: 0 0 10px 0;
        color: gray;
    }

    .noticias .textos h1 {
        font-size: 20px;
        line-height: 1.4;
        text-align: left;
        color: #333;
        margin-bottom: 10px;
    }

    .noticias .textos p:not(#fecha) {
        font-size: 16px;
        line-height: 1.5;
        color: #555;
        margin-bottom: 20px;
    }

    .wrapper {
        justify-content: flex-start;
        text-align: left;
        margin: 10px 0 0 0;
        padding: 0;
    }

    .wrapper a {
        width: 150px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        background-color: #a8943f;
        color: white;
        transition: background-color .35s;
        font-size: 20px;
        text-decoration: none;
        padding: 10px;
        margin: 0px 0px 0px 20px;
        border-radius: 12px;
    }

    .wrapper a:after {
        content: none;
    }

    .wrapper a:hover {
        background-color: #8f7d35;
        color: white;
    }

    .slider-controles {
        padding-top: 15px;
    }

    .slider-controles {
        text-align: center;
        padding-top: 20px;
    }

    .dot {
        height: 10px;
        width: 40px;
        margin: 0 5px;
        background-color: #bbb;
        border-radius: 5px;
        display: inline-block;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .dot-activa {
        background-color: #ff003b;
    }

    .footer {
        background-color: rgb(66, 66, 66);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .footer img {
        width: 50px;
        height: auto;
    }

    .footer .ft-secc a {
        text-decoration: underline;
    }

    #dev {
        background-color: rgb(66, 66, 66);
        text-align: center;
        margin: 0;

    }

    #dev a {
        text-decoration: none;
        color: black;
    }

}