/*
Theme Name: Mono de Dulce
Theme URI: http://localhost/monodedulce-wp
Author: Mono de Dulce (migrado por Claude Code)
Description: Tema a medida de la web de reposteria Mono de Dulce, integrado con WooCommerce. Recrea el diseno original (hero animado, Sobre mi, catalogo de tartas y cookies, contacto) sobre una tienda WooCommerce real.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: monodedulce
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
}
/* GTranslate / Google Translate envuelve el texto traducido en etiquetas <font>.
   El selector * de arriba les forzaba Lato 18px y se perdian las tipografias
   (Pacifico, Ephesis, Gluten...). Hacemos que hereden del elemento padre. */
font {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
}
:root {
    --border-color: #fff5;
    --w-image: 700px;
    --calculate: 1.4;
    --verde1: rgb(210, 228, 210);
    --verde2: rgb(198, 240, 198);
    --marron: rgb(143, 93, 0);
    --crema: rgb(251, 234, 208);
}
html { height: 100%; }
body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images MJ/fotoPrincipal.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* --------------- Cabecera --------------- */
.header {
    background: linear-gradient(to right, var(--verde1), var(--verde2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 6%;
    position: sticky;
    top: 0;
    z-index: 500;
}
.header .logo img {
    height: 105px;
    width: auto;
    border-radius: 70px;
}
@keyframes animacionMono {
    from { transform: rotate(0deg); }
    60%  { transform: rotate(0deg); }
    70%  { transform: rotate(-60deg); }
    to   { transform: rotate(360deg); }
}
.monoAnimado { animation: animacionMono 8s infinite; }
.header nav { display: flex; }
.header .nav-links { list-style-type: none; display: flex; gap: 25px; align-items: center; }
.header .nav-links li {
    padding: 10px;
    border: 8px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}
.header .nav-links li a {
    font-family: "Gluten";
    text-decoration: none;
    color: rgb(77, 69, 77);
    font-size: 21px;
}
.header .nav-links li:hover {
    background-color: #fff;
    border-color: rgb(253, 216, 244);
}
.header .nav-principal { display: flex; }
/* Boton hamburguesa: oculto en escritorio */
.hamburguesa {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 600;
}
.hamburguesa span {
    display: block;
    width: 30px;
    height: 3px;
    background: rgb(77, 69, 77);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --------------- Titulo central (hero) --------------- */
.tituloCentral {
    color: rgb(252, 249, 245);
    text-align: center;
    margin: 180px 20px;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}
.tituloCentral .titulo1 {
    display: block;
    font-family: "Pacifico";
    font-size: 150px;
    line-height: 1;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}
@keyframes fadeIn {
    0%   { opacity: 0; filter: blur(20px); }
    20%  { opacity: 1; filter: brightness(2) blur(10px); }
    100% { opacity: 1; filter: brightness(1) blur(0px); }
}
.tituloCentral .titulo2 {
    display: inline;
    font-family: "Pacifico";
    font-size: 80px;
    position: relative;
    top: -80px;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
    animation-delay: 1.4s;
}
.tituloCentral .titulo3 {
    display: inline;
    font-family: "Pacifico";
    font-size: 150px;
    position: relative;
    top: -30px;
    animation: fadeIn 2s ease forwards;
    opacity: 0;
    animation-delay: 2.3s;
}
.tituloCentral .contenedor_texto_animacion {
    font-family: "Ephesis";
    font-size: 50px;
    letter-spacing: 6px;
    color: rgb(218, 212, 204);
    text-align: center;
    position: relative;
    top: -50px;
    height: 0px;
}

/* --------------- Sobre Mi --------------- */
#sobreMi {
    display: grid;
    grid-template-columns: 1fr auto;
    background: linear-gradient(to right, var(--verde1), var(--verde2));
    overflow: hidden;
    padding: 80px 0;
    align-items: center;
}
.contenedorPadre {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.contenedorHijo1 {
    height: 440px;
    width: 500px;
    border: 0.5px solid rgb(190, 190, 190);
    border-radius: 20px;
    background-color: var(--crema);
    box-shadow: 0px 0px 40px 40px rgba(0, 0, 0, 0.15);
    position: absolute;
    z-index: 1;
    animation: aparecerCaja 1.1s ease both;
}
.titulo {
    text-align: center;
    font-family: "Ephesis";
    font-size: 3em;
    z-index: 2;
    animation: aparecerTitulo 1.1s ease both;
}
.contenido {
    width: 460px;
    max-width: 90%;
    padding: 30px;
    text-align: justify;
    font-family: "Ephesis";
    z-index: 2;
    font-size: 1.7em;
    animation: aparecerContenido 1.1s ease 0.15s both;
}
/* Animaciones de entrada (no dependen de JavaScript: siempre terminan visibles) */
@keyframes aparecerCaja {
    from { opacity: 0; transform: translateX(-80px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes aparecerTitulo {
    from { opacity: 0; transform: translateX(60px); filter: blur(12px); }
    to   { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes aparecerContenido {
    from { opacity: 0; transform: translateY(60px); filter: blur(12px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.containerMJ { padding-right: 120px; padding-left: 40px; }
.MJ {
    height: 600px;
    width: 600px;
    max-width: 40vw;
    object-fit: cover;
    box-shadow: 0px 0px 40px 40px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    animation: fadeIn 1.5s ease 0.3s both;
}

/* --------------- Secciones de catalogo (WooCommerce) --------------- */
.seccionCatalogo { padding: 70px 6% 40px; text-align: center; }
.seccionCatalogo > h1 {
    font-family: "Ephesis";
    font-size: 5em;
    color: #fff;
    text-shadow: 4px 4px 10px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}
.woocommerce ul.products, .seccionCatalogo ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* WooCommerce anade ::before/::after (clearfix) a ul.products; en un grid
   se convierten en celdas vacias (la primera y la ultima). Los anulamos. */
.woocommerce ul.products::before, .woocommerce ul.products::after,
.seccionCatalogo ul.products::before, .seccionCatalogo ul.products::after {
    content: none !important;
    display: none !important;
}
.woocommerce ul.products li.product, .seccionCatalogo ul.products li.product {
    background: var(--crema);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0px 0px 25px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product:hover { transform: translateY(-8px); }
.woocommerce ul.products li.product img {
    border-radius: 15px;
    margin-bottom: 12px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: "Gluten";
    font-size: 1.4em;
    color: rgb(78, 51, 0);
    padding: 6px 0;
}
.woocommerce ul.products li.product .price {
    color: #af3814 !important;
    font-weight: bold;
    font-size: 1.3em;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit {
    background-color: rgb(197, 248, 182) !important;
    color: #000 !important;
    border-radius: 30px !important;
    padding: 10px 25px !important;
    font-family: "Gluten" !important;
    border: 4px solid transparent !important;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
    background-color: #fff !important;
    border-color: rgb(255, 171, 233) !important;
}

/* Paginas internas de WooCommerce (carrito, checkout, mi cuenta, ficha) */
.contenedorWoo {
    max-width: 1100px;
    margin: 40px auto 80px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0px 0px 30px rgba(0,0,0,0.25);
}
.contenedorWoo .page-title, .contenedorWoo h1 {
    font-family: "Gluten";
    color: rgb(78, 51, 0);
    margin-bottom: 20px;
}

/* --------------- Contacto --------------- */
#contacto {
    display: grid;
    grid-template-columns: 1fr auto;
    background: linear-gradient(to right, var(--verde1), var(--verde2));
    padding: 60px 0;
    align-items: center;
}
.contenedorContacto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 100px;
}
.prinCont { font-family: "Ephesis"; font-size: 5em; padding: 20px; }
.cajaContacto {
    width: 600px;
    max-width: 90%;
    border: 0.5px solid rgb(190, 190, 190);
    border-radius: 20px;
    padding: 50px;
    background-color: var(--crema);
    box-shadow: 0px 0px 40px 40px rgba(0, 0, 0, 0.15);
}
.contentContacto { font-family: "Arial"; font-size: 22px; }
.contentContact2 { font-family: "Arial"; font-size: 25px; margin: 2px; }
.redesSociales #instagram { cursor: pointer; }
.containerMapa { padding-right: 100px; padding-left: 40px; }
.containerMapa iframe {
    height: 600px;
    width: 600px;
    max-width: 45vw;
    border-radius: 20px;
    box-shadow: 0px 0px 40px 40px rgba(0, 0, 0, 0.15);
    border: none;
}

/* --------------- Footer --------------- */
footer.site-footer {
    background: linear-gradient(to right, var(--verde1), var(--verde2));
    padding: 55px 6% 25px;
    width: 100%;
    color: rgb(70, 52, 25);
}
.footer-kitdigital {
    background: #fff;
    border-radius: 14px;
    padding: 18px 25px;
    max-width: 1100px;
    margin: 0 auto 45px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
    text-align: center;
}
.footer-kitdigital img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.4fr 1fr;
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}
.footer-col h2 {
    font-family: "Gluten";
    color: rgb(78, 51, 0);
    font-size: 1.15rem;
    margin-bottom: 20px;
}
.footer-col p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 10px; }
.footer-col a {
    color: rgb(122, 79, 0);
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    margin-bottom: 13px;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: #af3814; }
.footer-logo img { width: 150px; height: auto; border-radius: 20px; }
.footer-keywords { color: rgb(120, 92, 50); line-height: 1.9; }
.footer-social a { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-social img { width: 38px; height: 38px; flex-shrink: 0; }
.footer-bottom {
    text-align: center;
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(143, 93, 0, 0.3);
    font-size: 0.8rem;
    color: rgb(90, 70, 40);
}
@media screen and (max-width: 1023px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media screen and (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col a { display: inline-block; }
    .footer-logo img { width: 130px; }
    .footer-social a { justify-content: center; }
}

/* --------------- Responsive --------------- */
@media screen and (max-width: 1023px) {
    #sobreMi, #contacto { grid-template-columns: 1fr; }
    .containerMJ, .containerMapa { padding: 30px; display: flex; justify-content: center; }
    .contenedorContacto { padding-left: 0; align-items: center; }
    /* La caja crema es solo decorativa (fondo); en pantallas pequenas estorba */
    .contenedorHijo1 { display: none; }
}
@media screen and (max-width: 767px) {
    /* El fondo fijo + cover se ampliaba demasiado en movil: lo soltamos */
    body {
        background-attachment: scroll;
        background-position: center top;
    }

    /* Cabecera con menu hamburguesa */
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 5px 5%;
    }
    .header .logo img { height: 70px; }
    .hamburguesa { display: flex; }
    .header .nav-principal { flex-basis: 100%; order: 3; }
    .header .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: linear-gradient(to right, var(--verde1), var(--verde2));
        border-radius: 0 0 12px 12px;
        overflow: hidden;
    }
    .header .nav-links.abierto { display: flex; }
    .header .nav-links li {
        width: 100%;
        text-align: center;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 0;
        padding: 14px 0;
    }
    .header .nav-links li:hover { background-color: rgba(255, 255, 255, 0.5); border-color: transparent; }
    /* Animacion del icono a "X" al abrir */
    .hamburguesa.activo span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburguesa.activo span:nth-child(2) { opacity: 0; }
    .hamburguesa.activo span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .tituloCentral { margin: 60px 10px; }
    .tituloCentral .titulo1 { font-size: 60px; }
    .tituloCentral .titulo2 { font-size: 30px; top: -30px; }
    .tituloCentral .titulo3 { font-size: 60px; top: -10px; }
    .tituloCentral .contenedor_texto_animacion { font-size: 24px; top: -20px; }
    .titulo, .contenido { transform: none !important; filter: none !important; opacity: 1 !important; text-align: center; width: auto; }
    .contenedorHijo1 { width: 90%; height: auto; min-height: 300px; }
    .MJ { max-width: 80vw; height: auto; }
    .seccionCatalogo > h1, .prinCont { font-size: 3em; }
    .containerMapa iframe, .cajaContacto { width: 90%; max-width: 90vw; }
}

/* =================== Carrusel 3D (original) =================== */
#slider, #sliderCookies { position: relative; width: 100%; overflow: hidden; }
.carrusel {
    margin-top: -30px;
    width: 100%;
    height: 960px;
    overflow: hidden;
}
.carrusel .list { height: 100%; position: relative; }
.carrusel .list::before {
    position: absolute;
    width: var(--w-image);
    height: 100%;
    content: '';
    top: 0;
    left: calc(100% - calc(var(--w-image) * var(--calculate)));
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    z-index: 10;
    pointer-events: none;
}
.carrusel .list::after {
    position: absolute;
    top: 50px;
    left: 50px;
    content: '';
    background-color: red;
    width: 400px;
    height: 300px;
    z-index: 10;
    pointer-events: none;
    border-radius: 20px 50px 110px 230px;
    filter: blur(150px);
    opacity: .6;
}
.carrusel .list .item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.carrusel .list .item .image {
    width: var(--w-image);
    height: 100%;
    position: absolute;
    top: 0;
    left: calc(100% - calc(var(--w-image) * var(--calculate)));
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    font-weight: 500;
}
.carrusel .list .item .image img {
    width: 90%;
    margin-bottom: 20px;
    filter: drop-shadow(0 150px 50px #9e0c0c55);
}
.carrusel .list .item .image figcaption {
    font-family: "Ephesis";
    font-weight: bold;
    font-size: 2em;
    text-align: right;
    margin-bottom: 30px;
    width: 70%;
    color: #fff;
}
.carrusel .list .item .main-content {
    height: 100%;
    display: grid;
    grid-template-columns: calc(100% - calc(var(--w-image) * var(--calculate)));
}
.carrusel .list .item .main-content .content { padding: 150px 20px 20px 80px; color: #fff; }
.carrusel .list .item .main-content .content h2 {
    font-size: 7em;
    font-family: "Ephesis";
    font-weight: 600;
}
.carrusel .list .item .main-content .content .precio {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3em;
    margin: 20px 0;
}
.carrusel .list .item .main-content .content .descripcion { font-size: 1em; line-height: 1.5; }
.carrusel .list .item .main-content .content .anadirCarrito {
    display: inline-block;
    background-color: rgb(197, 248, 182);
    color: #000 !important;
    border: 8px solid transparent;
    padding: 10px 30px;
    font-family: "Arial";
    font-size: large;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.carrusel .list .item .main-content .content .anadirCarrito:hover {
    background-color: #fff;
    border-color: rgb(255, 171, 233);
    border-style: solid;
}
.arrows {
    position: sticky;
    bottom: 20px;
    width: calc(100% - calc(var(--w-image) * var(--calculate)));
    display: grid;
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: 50px;
    justify-content: end;
    gap: 10px;
    z-index: 10;
}
.arrows button {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: monospace;
    font-size: large;
    font-weight: bold;
    line-height: 0px;
    box-shadow: 0 10px 40px #5555;
    cursor: pointer;
    transition: 0.5s;
}
.arrows button:hover { background-color: #eee5; }
.carrusel .list .item { display: none; }
.carrusel .list .item.active,
.carrusel .list .item.other_1,
.carrusel .list .item.other_2 { display: block; }
.carrusel .list .item.active { z-index: 4; }
.carrusel .list .item.other_1,
.carrusel .list .item.other_2 { pointer-events: none; }
.carrusel .list .item.active .main-content { animation: showContent 1s ease-in-out 1 forwards; }
@keyframes showContent {
    from { clip-path: circle(0% at 70% 50%); }
    to   { clip-path: circle(100% at 70% 50%); }
}
.next .item.other_1 { z-index: 3; }
.next .item .image img,
.next .item .image figcaption { animation: effectNext .5s ease-in-out 1 forwards; }
@keyframes effectNext {
    from { transform: translateX(calc(var(--transform-from))); }
    to   { transform: translateX(calc(var(--transform-from) - var(--w-image))); }
}
.next .item.active .image { --transform-from: var(--w-image); }
.next .item.other_1 .image { z-index: 5; --transform-from: 0px; overflow: hidden; }
.next .item.other_2 .image { z-index: 5; --transform-from: calc(var(--w-image) * 2); }
.prev .list .item .image img,
.prev .list .item .image figcaption { animation: effectPrev 0.5s ease-in-out 1 forwards; }
@keyframes effectPrev {
    from { transform: translateX(calc(var(--transform-from))); }
    to   { transform: translateX(calc(var(--transform-from) + var(--w-image))); }
}
.prev .list .item.active .image { --transform-from: calc(var(--w-image) * -1); overflow: hidden; }
.prev .list .item.other_1 .image { z-index: 5; --transform-from: 0px; }
.prev .list .item.other_2 .image { z-index: 5; --transform-from: var(--w-image); }
.prev .list .item.other_2 .main-content { opacity: 0; }

@media screen and (max-width: 1023px) {
    :root { --calculate: 1; --w-image: 400px; }
    .carrusel .list .item .main-content .content h2 { font-size: 3em; }
}
@media screen and (max-width: 767px) {
    .carrusel { height: 720px; }
    .carrusel .list .item .image { width: 100%; left: 0; justify-content: center; }
    .carrusel .list .item .image figcaption { color: #fff; width: 100%; text-align: center; }
    .carrusel .list .item .main-content .content { display: none; }
    .arrows { left: 50%; justify-content: center; }
}
