/*
 Theme Name: Twenty Twenty-Five Child
 Template: twentytwentyfive
*/
body {
    /* overflow-y: hidden; */
}
#initial-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
}

/* modal post */
/* Modal overlay */
.heart-post-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.heart-post-modal.is-open {
    display: block;
}

.heart-post-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.heart-post-modal__dialog {
    position: absolute;
    inset: 5vh 5vw;
    max-width: 900px;
    margin: calc(25vh / 2) auto;
    background: transparent;
}

.heart-post-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
    border: none;
    background: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Fondo corazón dentro del modal */
.heart-post-modal__bg {
    position: relative;
    margin: 0 auto;
    height: 70vh;
    width: 100%;
    max-width: 900px;
    /*background-image: url('../twentytwentyfive/assets/images/corazonFondo.png');*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fondo-corazon {
    background-image: url('../twentytwentyfive/assets/images/corazonFondo.png');

}
.fondo-candado {
    background-image: url('../twentytwentyfive/assets/images/candadoFondo.png');

}
.fondo-mural {
    background-image: url('../twentytwentyfive/assets/images/grafityFondo.png');

}

.wp-block-woocommerce-checkout-order-summary-block {
    overflow: hidden;
}
.wc-block-components-product-details__google-maps, .wc-block-components-product-details__you-tube, .wc-block-components-product-details__coraz-n {
    display: none;
}
/* Contenido central (iniciales) */
.heart-post-modal__content-box {
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.heart-post-modal__content {
    font-family: 'MedievalSharp', cursive;
    color: #614112;
    font-size: 10rem;
    line-height: 1.2;
}
.fondo-mural .heart-post-modal__content {
    font-family: "Inspiration", cursive;
    color: #760000;
}
.heart-post-modal__content * {
    color: inherit;
    margin-top: 74px;
}
.heart-post-modal__fecha{
    position: absolute;
    bottom: 2rem;
    background-color: #c09767;
    color: white;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'MedievalSharp', cursive;
}
/* Botones flotantes video / mapa dentro del modal */
.heart-post-modal__links {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

/* Botones circulares con iconos */
a.heart-circle-btn {
    color: transparent;
    display: block;
    width: 60px;
    height: 60px;
    opacity: 0;
    animation:
        heartIntro 0.7s ease-out forwards,
        heartFloat 3.5s ease-in-out 0.7s infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.heart-circle-btn--video {
    background: url('../twentytwentyfive/assets/images/iconPlay.png') center center / contain no-repeat;
    animation-delay: 0s, 0.7s;
}

a.heart-circle-btn--map {
    background: url('../twentytwentyfive/assets/images/iconMap.png') center center / contain no-repeat;
    animation-delay: 0.15s, 0.85s;
}

a.heart-circle-btn:hover {
    transform: scale(1.1);
}

/* Animaciones */
@keyframes heartIntro {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    60% {
        transform: translateY(-4px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes heartFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0);
    }
}

/* fin modal post */


.tree-canvas {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow: auto;
}

.tree-canvas__inner {
  display: block;
  width: 100%;
  max-width: 100%;
}

.tree-canvas__modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(24 26 27 / 18%);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.tree-canvas__modal.active {
    display: flex;
}

.tree-canvas__modal-content {
    background: #f3f3f3;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tree-canvas__modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-canvas__modal-close:hover {
    color: #000;
}
.tree-canvas__wrap {
    display:flex;gap:12px;justify-content:center;margin-top:1rem;
}
.tree-canvas__modal h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 1rem 0;
}

.tree-canvas__modal p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}
.modal-step--icons img {
    height: 30px;
}
.tree-canvas__modal-button {
    background: #dbd3bb;
    color: #000;
    border: none;
    padding: 12px 32px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 200ms ease;
}

.tree-canvas__modal-button:hover {
    background: #ffd700;
}


.tree-canvas__overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100vh;
    pointer-events: auto;
    overflow-y: hidden;
}

.tree-canvas__overlay svg {
    display: block;
    width: auto;
    height: 100vh;
}

.tree-canvas__overlay path {
    fill: rgba(0, 0, 0, 0.001);
    pointer-events: all;
    transition: stroke 150ms ease, filter 180ms ease, stroke-width 150ms ease;
    /* stroke: #ffeb3b */
}

.tree-canvas__overlay path:hover {
    stroke: #ffeb3b !important;
    stroke-width: 3.5 !important;
    filter: url(#glow);
    cursor: pointer;
}

/* Clase aplicada al path seleccionado para mantener el efecto mientras el modal esté abierto */
.tree-canvas__overlay path.active-heart {
    stroke: #ffeb3b !important;
    stroke-width: 3.5 !important;
    filter: url(#glow);
    cursor: default;
}

/* animaicon destacar pathdd */

@keyframes heartGlow {
  0%   { stroke-opacity: 0.21; stroke: #7D7D7D; }
  40%  { stroke-opacity: 0.9;  stroke: #ffeb3b; }
  60%  { stroke-opacity: 1;    stroke: #ffeb3b; }
  100% { stroke-opacity: 0.21; stroke: #7D7D7D; }
}

.firefly-glow {
  animation: heartGlow 1.5s ease-in-out; /* Eliminado el '1' */
}


@media (max-width: 768px) {
    .heart-post-modal__dialog {
        inset: 6vh 4vw;
        max-width: 100%;
    }

    .heart-post-modal__bg {
        min-height: 60vh;
        border-radius: 10px;
    }

    .heart-post-modal__content {
        font-size: 7rem;
        line-height: 1.1;
    }

    .heart-post-modal__links {
        bottom: .5rem;
        right: 1.5rem;
    }

    .heart-circle-btn {
        width: 48px;
        height: 48px;
    }

    .tree-canvas__modal-content {
        padding: 1rem;
        width: 57vw;
    }
    .tree-canvas__modal-button {
        padding: 12px 9px;
    }
 }
@media (max-width: 480px) {
    .heart-post-modal__content {
        font-size: 5rem;
    }

    .heart-post-modal__dialog {
        max-width: 88vw;
    }

    .heart-post-modal.is-open {
        width: 100vw;
    }

    a.heart-circle-btn{
        width: 30px;
        height: 30px;
    }
    .heart-post-modal__fecha {
        left: 1.5rem;
        bottom: 1rem;
    }
    .tree-canvas__modal-close {
        top: .2rem;
        right: .2rem;
    }
    .heart-post-modal__bg {
        background-size: 150%;
    }

}
