html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

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

h1 {
    color: black;
    margin: 0;
}

@media screen and (max-width: 768px) {
    #menu {
        position: absolute;
        width: 360px;
        margin: -100px 0 0 0;
        padding: 50px;
        padding-top: 125px;
        right: -100px;
        background: #ffffff;
        list-style-type: none;
        -webkit-font-smoothing: antialiased;
        transform-origin: 0% 0%;
        transform: translate(100%, 0);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        border-left: 3px solid #005098;
        border-bottom: 3px solid #005098;
    }

    a {
        color: #232323;
        transition: color 0.3s ease;
    }

    #menuToggle {
        display: block;
        position: relative;
        top: 10px;
        right: 10px;
        z-index: 1;
        -webkit-user-select: none;
        user-select: none;
        left: 50%;
        transform: translateX(-50%);
    }

    #menuToggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;
        cursor: pointer;
        opacity: 0;
        z-index: 2;
        -webkit-touch-callout: none;
    }

    #menuToggle span {
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: #000000;
        border-radius: 3px;
        z-index: 1;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.55s ease;
    }

    #menuToggle span:first-child {
        display: none;
        transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2) {
        transform-origin: 0% 100%;
    }

    #menuToggle input:checked~span {
        opacity: 1;
        transform: rotate(45deg) translate(-2px, -1px);
        background: #232323;
    }

    #menuToggle input:checked~span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked~span:nth-last-child(2) {
        opacity: 1;
        transform: rotate(-45deg) translate(0, -1px);
    }

    #menu li {
        padding: 10px 0;
        font-size: 22px;
    }

    #menuToggle input:checked~ul {
        transform: none;
        opacity: 1;
    }
}

@media screen and (min-width: 768px) {
    .dropdown-icon {
        position: absolute;
    }

    #menuToggle input[type="checkbox"] {
        display: none;
    }

    h1 {
        font-size: 280%;
    }

    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
    }

    nav li {
        margin: 10px 40px;
        position: relative;
        color: black;
        font-weight: bold;
        cursor: pointer;
        transition: color 0.3s ease;
        font-size: 1.1em;
    }

    nav li:hover {
        color: #005098;
    }

    nav li ul {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgb(255, 255, 255);
        padding: 20px;
        margin-bottom: 5px;
        display: none;
        width: 250px;
        z-index: 1;
        border-left: 1px solid #868686;
        border-right: 1px solid #868686;
        border-top: 1px solid #868686;
        border-bottom: 1px solid #868686;
    }

    nav li:hover ul {
        display: block;
    }

    nav li ul li {
        font-weight: normal;
        margin: 5px 0;
        font-size: 1em;
        white-space: nowrap;
    }

    nav li ul li:hover {
        color: #005098;
    }
}

.contenedor {
    position: relative;
}

@media (min-width: 768px) {
    .fondo {
        background-color: rgba(0, 0, 0, 0.7);
        color: #fff;
        padding: 40px;
    }

    section h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    section p {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .contenedor {
        background-image: url("Img/imgFondoBlog.jpg");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        color: #fff;
        z-index: -1;
    }
}

@media (max-width: 768px) {
    .fondo {
        background-color: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 40px;
    }

    section h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    section p {
        font-size: 18px;
        line-height: 1.5;
    }

    .contenedor {
        background-image: url("Img/imgFondoBlog.jpg");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        color: #fff;
        z-index: -1;
    }
}

@media (min-width: 768px) {
    .ptitulo {
        font-size: 2.5em;
        text-align: center;
        color: black;
        text-decoration: solid;
    }

    .pinfo {
        font-size: 1em;
        text-align: center;
        color: black;
        text-decoration: solid;
    }

    .card {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
        transition: 0.3s;
        width: 40%;
        height: 350px;
        display: flex;
        flex-direction: column;
        background-size: cover;
        background-position: center;
        margin-bottom: 20px;
        margin-right: 20px;
        margin-left: 20px;
        align-items: center;
        border-radius: 20px;
    }

    .container {
        display: flex;
        flex-wrap: wrap;
        background-color: transparent;
        margin-top: auto;
        text-align: center;
    }

    .card-wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .card .container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding-top: 15px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        background-color: rgba(255, 255, 255, 0.7);
    }

    .card .container h3 {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .ptitulo {
        font-size: 1.5em;
        text-align: center;
        color: black;
        text-decoration: solid;
    }

    .pinfo {
        font-size: 0.8em;
        text-align: center;
        color: black;
        text-decoration: none;
    }

    .card {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
        transition: 0.3s;
        width: 90%;
        height: 350px;
        display: flex;
        flex-direction: column;
        background-size: cover;
        background-position: center;
        margin-bottom: 20px;
        margin-inline: auto;
        align-items: center;
        border-radius: 20px;
    }

    .container {
        display: flex;
        flex-wrap: wrap;
        background-color: transparent;
        margin-top: auto;
        text-align: center;
    }

    .card .container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding-top: 15px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        background-color: rgba(255, 255, 255, 0.7);
    }
}

footer {
    background-color: #8fbad8;
    text-align: center;
    padding: 5px 10px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
}

.columnas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-right: 75px;
    margin-left: 75px;
    width: 100%;
}

.columna {
    display: inline-table;
    width: 300px;
    max-height: 200px;
    vertical-align: top;
    text-align: center;
}

.columna>h2 {
    text-align: center;
    margin: 0px;
    padding: 5px;
    margin-bottom: 10px;
}

iframe {
    border: none;
    width: 280px;
    height: 200px;
}

table {
    border: none;
    width: 100%;
}

th,
td {
    text-align: center;
}

@media only screen and (max-width: 767px) {
    .horario {
        display: none;
        max-width: 0;
    }

    .contacto {
        display: block;
    }

    .mapa {
        margin-top: 10px;
        height: 300px;
    }

    .columnas {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-right: 75px;
        margin-left: 75px;
    }
}

@media only screen and (min-width: 767px) {
    .columnas {
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin-right: 100px;
        margin-left: 100px;
    }
}

#miDiv {
    clear: both;
    font-size: 13px;
}
.salidas{
    font-size: 90%;
}