* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}



/* TIPOGRAFIAS */ 


@font-face {
    font-family: "lobstertwo-bolditalic";
    src: url("../fuentes/LobsterTwo-BoldItalic.ttf");
}

@font-face {
    font-family: "lato-regular";
    src: url("../fuentes/Lato-Regular.ttf");
}

@font-face {
    font-family: "forum-regular";
    src: url("../fuentes/Forum-Regular.ttf");
}

@font-face {
    font-family: "rozhaone-regular";
    src: url("../fuentes/RozhaOne-Regular.ttf");
}

@font-face {
    font-family: "librebaskerville-regular";
    src: url("../fuentes/LibreBaskerville-Regular.ttf");
}

@font-face {
    font-family: "librebaskerville-bold";
    src: url("../fuentes/LibreBaskerville-Bold.ttf");
}




/* ETIQUETAS/ELEMENTOS DEL CONTENIDO CON PROPIEDADES IGUALES */


#header, #main, #footer {
    width: 100%;
}

#logo, #menu, #carrito {
    padding: 50px 40px;
}

#imagen-logo, #imagen-logo p, #opciones-menu ul li a, #pagina-carrito, 
.button {
    color: black;
}

#imagen-logo, #pagina-carrito, #opciones-encabezado ul li a, 
#opciones-menu ul li a, .button, .opciones li a, #pag-tartas a, #footer a {
    text-decoration: none;
}

.wrapper, #imagen-logo, #menu, #opciones-menu ul, #opciones-menu ul li, 
#carrito, #opciones-encabezado .wrapper ul, #secciones-conte, .productos, 
.opciones, .opciones li, #pag-tartas, #footer, #info_completa_footer, 
.partes-footer, #redes-sociales {
    display: flex;
}

.secciones-cuerpo .wrapper, #top-ventas .wrapper, #novedades .wrapper,
#tartas-espai .wrapper {
    display: block;
}

#menu, #opciones-menu ul li, #carrito, #secciones-conte .wrapper, 
#opciones-encabezado .wrapper, .opciones li, #pag-tartas, #footer {
    justify-content: center;
}

#opciones-menu ul li a span, #homero_logo {
    position: absolute;
}

#pag-tartas a, #boton .wrapper a i, #footer h3, #footer a, #footer ul li, 
#footer p {
    color: white;
}

#menu, #opciones-menu ul li, #imagen-logo, #carrito, #secciones-conte .wrapper, 
.opciones li, #pag-tartas, #footer  {
    align-items: center;
}

#imagen-logo, #frase-sixpack strong {
    font-family: "lobstertwo-bolditalic", Arial, Helvetica, sans-serif;
}

#imagen-logo p, .info-footer ul li a, .horario-tienda, #copy_right {
    font-size: 12px;
}

#imagen-logo p, .info-footer ul li a, .horario-tienda {
    font-family: "lato-regular", Arial, Helvetica, sans-serif;
}

#opciones-menu ul li a:hover, .button:hover, #carrito a:hover, 
#resolucion-dudas .naranja, .hover label:hover, .precios-tartasºº { 
    color: #f39c12;
}

#pagina-carrito, #opciones-menu ul li a, .precios-tartas, .hover label {
    font-size: 16px;
}

#opciones-menu ul li a, #pagina-carrito, .info-footer h3, #copy_right {
    font-family: "forum-regular", Arial, Helvetica, sans-serif;
}

#opciones-menu ul li a, .container {
    position: relative;
}

#opciones-menu ul li a span, .contenido {
    opacity: 0;
}

.button, #pagina-carrito, #opciones-menu ul li a, .productos h2, 
.opciones li a, .precios-tartas, #pag-tartas a, .hover label, .info-tartas, 
.negrita, .horario-tienda {
    font-weight: bold;
}

#pagina-carrito i, .button, #boton .wrapper a i, .info-footer ul li i {
    font-size: 20px;
}

#pagina-carrito i, .opciones li a {
    color: #5f6a6a;
}

#opciones-encabezado .wrapper, .opciones li {
    background-color: #fef5e7;
}

#opciones-encabezado .wrapper ul li a, .productos h2, .opciones li h3, 
.precios-tartas, .opciones li a, #pag-tartas a, #resolucion-dudas h2, 
#resolucion-dudas .naranja {
    font-family: "librebaskerville-bold", Arial, Helvetica, sans-serif;
}

#opciones-encabezado .wrapper ul li a, .opciones li a, .contenido p, 
#tamanos-tartas li, .info-footer h3 {
    font-size: 14px;
}

#imagen-logo, .productos, .opciones li, #info_completa_footer {
    flex-direction: column;
}

#titulo, .productos h2, .opciones li h3, .precios-tartas, #frase-sixpack, 
#resolucion-dudas h2, #resolucion-dudas .naranja, .info-footer h3 {
    text-align: center;
}

.productos h2, #pag-tartas a, #resolucion-dudas h2, 
#resolucion-dudas .naranja {
    font-size: 30px;
}

.imagenes-tartas, .info-footer ul li {
    padding: 5px 0;
}

.opciones, #footer, .partes-footer  {
    flex-direction: row;
}

.opciones li h3, .precios-tartas, #boton .wrapper a {
    padding: 15px;
}

.opciones li h3, #frase-sixpack {
    font-size: 18px;
}

.opciones li a, #boton .wrapper a:hover {
    background-color: #fad7a0;
}

.contenido p, #tamanos-tartas li, .hover label {
    font-family: "librebaskerville-regular", Arial, Helvetica, sans-serif;
}

.contenido p, #tamanos-tartas li, #frase-sixpack {
    line-height: 1.5em;
}

.contenido p, #tamanos-tartas li {
    text-align: justify;
}



/* ETIQUETAS/ELEMENTOS DEL CONTENIDO CON IDENTIFICADORES UNICOS */

#main {
    background: radial-gradient(circle at bottom, #FFFFFF 60%, #fad7a0);
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap:wrap;
    justify-content: space-between;
}


/* OPCIONES ENCABEZADO - MENU Y CARRITO DE COMPRA */

#imagen-logo {
    font-size: 28px;
}

#opciones-menu ul li {
    padding: 0 30px;
}

#opciones-menu ul li a {
    padding: 6px 20px;
    transition: .3s;
}

#opciones-menu ul li a:hover span {
    transform: scale(1) translateY(0);
    opacity: 1;
}

#opciones-menu ul li a span {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-bottom: 2px solid #f39c12;
    border-radius: 15px;
    transform: scale(0) translateY(50px);
    transition: .5s;
}


/* OPCIONES MENU - QUE LLEVAN AL APARTADO CORRESPONDIENTE */

#opciones-encabezado .wrapper {
    max-width: none;
}

#opciones-encabezado .wrapper ul li {
    padding: 30px 60px;
}


/* APARTADO CONTENIDO */

#secciones-conte {
    background-image: url(../img/Pastel_cheesecake_clasica.jpg);
    background-repeat: no-repeat;
    background-position:center;
    background-size: cover;
    height: 700px;
}

#sub-menu, #popup-img {
    display: none;
}

#titulo {
    padding: 70px 0 50px;
    font-size: 40px;
    font-family: "rozhaone-regular", Arial, Helvetica, sans-serif;
}

.productos h2 {
    padding: 40px 20px 30px;
}

/* CON LA PROPIEDAD "gap" HACEMOS QUE FACILITE LA CREACION DE ESPACIO
    ENTRE ELEMENTOS DE MANERA CONSISTENTE Y LIMPIA, EVITANDO LA 
    NECESIDAD DE USAR MARGENES O RELLENOS INDIVIDUALES EN CADA ELEMENTO  */
.opciones  {
    flex-wrap: wrap;
    gap: 50px;
}

/* HACEMOS UN CALCULO DE RESTA, LOS 25% ES EL ANCHO QUE QUIERO QUE OCUPE CADA 
    CAJA Y LOS 50px QUE LE RESTAMOS SON DEL ESPACIO QUE QUIERO QUE TENGAN 
    ENTRE CADA CAJA */
.opciones li {
    flex: calc(25% - 50px);
    padding: 25px 15px;
    border: 1px solid #fad7a0;
    border-radius: 1em;
    border-top-right-radius: 5% 25%;
}

.opciones li:hover, #boton .wrapper a:hover {
    cursor: pointer;
    box-shadow: 0px 0px 10px 10px #f39c12;
    -webkit-box-shadow: 0px 0px 10px 10px #f39c12;
}

.imagenes-tartas {
    object-fit: contain;
    transition: .2s linear;
    width: 300px;
    height: 300px;
}

.opciones li:hover .imagenes-tartas {
    transform: scale(1.1);
}

.opciones li a {
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #f39c12;
}

#popup-img {
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgb(0, 0, 0, .9);
}

#popup-img span {
    position: absolute;
    z-index: 100;
    top: 0;
    right: 30px;
    font-size: 60px;
    font-weight: bolder;
    color: white;
    cursor: pointer;
}

#popup-img img {
    object-fit: contain;
    position: absolute;
    width: 550px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    border: 5px solid #FFFFFF;
}

#pag-tartas {
    margin: 40px 0;
}

#pag-tartas a {
    padding: 20px;
    border-radius: 0.5em;
    background-color: black;
}


/* APARTADO DE PREGUNTAS FRECUENTES */ 

#resolucion-dudas {
    margin: 50px auto;
    width: 65%;
}

#resolucion-dudas h2 {
    padding: 20px 0;
}

.hover {
    padding: 10px 0 10px 15px;
    border-top: 1px solid #e0e3e5;
    border-bottom: 1px solid #e0e3e5;
}

.hover label i {
    padding-right: 10px;
    color: #e67e22;
}

[type="radio"] {
  display: none;
}

[type="radio"]:checked ~ .contenido {
    padding: 10px 0px 10px 30px;
    height: 120px;
    opacity: 1;
}

.contenido {
    overflow: hidden;
    height: 0;
    transition: all 1s;
}

#tamanos-tartas {
    list-style-type: square;
}

#tamanos-tartas {
    padding: 10px 0px 10px 30px;
}

#boton .wrapper a {
    z-index: 2;
    position: fixed;
    border-radius: 50%;
    bottom: 45px;
    right: 45px;
    transition: .3s ease;
    background-color: #e67e22;
}

#boton .wrapper a:hover {
    transform: translateY(-5px);
}

#boton .wrapper a i:hover {
    color: #e67e22;
}



/* APARTADO PIE DE PAGINA */

.container {
    width: 100%;
}

#footer {
    justify-content: flex-start;
    position: relative; /* MUY NECESARIO PARA QUE EL z-index FUNCIONE */
    z-index: 1; /* PARA ASEGURAR QUE EL FOOTER ESTE POR DEBAJO DEL FOOTER */
    padding: 70px 0 20px 320px;
    clip-path: polygon(0 0, 100% 29%, 100% 100%, 0% 100%);
    gap: 25px;
    background-color: black;
}

#info_completa_footer {
    gap: 10px;
}

.partes-footer {
    gap: 60px;
}

#copy_right {
    padding: 20px;
}

.info-footer h3 {
    padding: 10px 0;
}

#redes-sociales {
    margin-top: 40px;
    gap: 20px; 
}

#homero_logo {
    z-index: 2; /* ASEGURAR QUE LA IMAGEN DE HOMERO ESTE POR ENCIMA DEL FOOTER */
    width: 350px;
    height: 350px;
    bottom: 10px;
    right: 285px;
}