html {
    font-size: 62.5%;
}

html, body {
    min-height: 100vh;
    margin: 0;
}

body {
    padding-top: 80px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 3rem;
}

h4 {
    font-size: 16px;
    font-weight: 700;
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 50px;
    margin-left: 20px;
    margin-top: -5px;
}

/* CARRITO */

.cart {
    margin-top: -5px;
    position: relative;
}

.cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: 500px;
    max-width: 100%;
}

.cart:hover .cart-dropdown {
    display: block;
}

#mostrar-carrito {
    text-decoration: none;
    color: #111111;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-right: 20px;
    font-size: 1.9rem;
    font-family: Bodoni MT;
}

#mostrar-carrito:hover {
    color: #D93A5B;
}

#aviso-correos {
    font-size: 10px;
    text-align: center;
    margin-top: 5px;
}

.borrar-curso {
    background-color: #111111;
    border-radius: 100%;
    padding: 5px 9px;
    text-decoration: none;
    text-align: center;
    color: white;
    font-weight: bold;
}

.borrar-curso:hover {
    background-color: #D93A5B;
}

ul {
    list-style: none;
}

.submenu {
    position: relative;
}

.submenu #carrito {
    display: none;
}

#carrito {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    background-color: #f7f7f7;
    padding: 20px;
    min-height: 100px;
    min-width: 300px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.submenu:hover #carrito {
    display: block;
}

.disminuir-cantidad,
.aumentar-cantidad {
    font-size: 12px;
    padding: 2px 6px;
    width: 30px;
    height: 30px;
    line-height: 16px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    cursor: pointer;
}

.disminuir-cantidad:hover,
.aumentar-cantidad:hover {
    background-color: #111111;
    color: white;
}

#gastos-envio {
    margin-top: 0px;
}

#seleccion-pais {
    margin-top: -20px;
}

#total-real-carrito {
    margin-top: -20px;
    font-weight: bold;
    font-size: 2rem;
    color: #111111;
}

.vacio {
    padding: 10px;
    background-color: #D93A5B;
    text-align: center;
    border-radius: 10px;
    color: white;
}

/* CONTENIDO */

.contenido-hero {
    margin-top: 80px;
    color: white;
}

.contenido-hero form {
    position: relative;
    margin-bottom: 0;
}

.contenido-hero form #buscador {
    height: 50px;
    margin-bottom: 0;
}

.contenido-hero form .submit-buscador {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0;
    display: block;
    text-indent: -9999px;
    width: 50px;
    background-image: url(../img/lupa.png);
    background-position: right center;
    background-repeat: no-repeat;
    border: none;
}

.imagen-curso {
    width: 100%;
    height: auto;
    min-height: 250px;
    display: block;
    max-height: 250px;
    object-fit: contain;
}

.barra {
    padding: 20px 0;
    background: #f7f7f7;
}

.barra p {
    margin: 0;
    color: #111111;
}

#lista-cursos {
    flex: 1;
}

#lista-cursos .row {
    margin-bottom: 20px;
}

.card {
    text-align: center;
    margin-top: 5px;
    background: #ffffff;
}

@media (min-width: 550px) {
    .card {
        text-align: left;
    }
}

.info-card {
    padding: 10px 20px;
}

.info-card p,
.card h4 {
    margin-bottom: 5px;
}

.info-card h4 {
    font-family: Bodoni MT;
    font-size: 2rem;
    color: #111111;
}

.info-card .precio {
    text-decoration: none;
    font-size: 18px;
    margin-top: 10px;
}

.info-card .precio span {
    font-weight: 700;
    font-size: 22px;
    color: #D93A5B;
}

/* BOTONES */

.agregar-carrito {
    background-color: #111111;
    color: white;
    border: none;
}

.agregar-carrito:hover {
    background-color: #D93A5B;
    color: white;
}

/* MENSAJES */

.container .message {
    margin: 40px 20px 20px 20px;
}

.container .message button {
    margin-top: 20px;
}

/* FOOTER */

.footer {
    background-color: #111111;
    color: white;
    margin-top: auto;
    padding: 30px 0;
}

.footer .container .row {
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.footer nav {
    flex: 1;
    padding: 20px;
    background-color: #111111;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 0 10px;
}

.footer h2 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.footer p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #f1f1f1;
}

.footer .enlace,
.enlace {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #D93A5B;
    text-decoration: none;
}

.enlace:hover,
.footer .enlace:hover {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .cart-dropdown {
        width: 330%;
        left: 90%;
        transform: translateX(-100%);
    }

    .footer .container .row {
        flex-direction: column;
    }

    .footer nav {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .footer .container .row {
        flex-direction: column;
    }
}

.opciones-producto {
    display: block;
    margin: 12px 0;
    position: relative;
    z-index: 5;
}

.opciones-producto label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #111;
}

.opciones-producto select {
    width: 100%;
    height: 36px;
    margin-top: 5px;
}

.checkbox-label {
    cursor: pointer;
}

.checkbox-label input {
    display: inline-block;
    width: auto;
    height: auto;
    margin-right: 8px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.agregar-carrito {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    min-height: 45px;
    height: auto;
    line-height: 1.2;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 60px auto;
    background: white;
    padding: 15px;
}

.cerrar-video {
    position: absolute;
    top: -45px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}