/* Template Ficha 6 - Forest Green */

/* Animaciones CSS optimizadas */
@keyframes nf-scale-up-forest {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(70px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@keyframes nf-scale {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes nf-rotate-in {
    from {
        opacity: 0;
        transform: translateX(70px) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}
@keyframes nf-scale-rotate {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}
.nf-animate-scale-up-forest {
    animation: nf-scale-up-forest 1.3s ease-out forwards;
}
.nf-animate-scale {
    animation: nf-scale 1.1s ease-out forwards;
}
.nf-animate-rotate-in {
    animation: nf-rotate-in 0.75s ease-out forwards;
}
.nf-animate-scale-rotate {
    animation: nf-scale-rotate 0.65s ease-out forwards;
}
/* Hover de iconos ahora en CSS */
.nf-forest-icon {
    transition: transform 0.3s ease !important;
}
.nf-forest-info-item:hover .nf-forest-icon {
    transform: scale(1.35) rotate(360deg) !important;
}
.nf-forest-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #d4e157 0%, #9ccc65 25%, #66bb6a 50%, #43a047 75%, #2e7d32 100%) !important;
    padding: 60px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}
.nf-forest-page::before {
    content: '';
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background: 
        radial-gradient(circle at 15% 25%, rgba(156, 204, 101, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(67, 160, 71, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(46, 125, 50, 0.04) 0%, transparent 60%);
    z-index: 0 !important;
    animation: nature-pulse 12s ease-in-out infinite;
    pointer-events: none !important;
}
@keyframes nature-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}
.nf-forest-floating-leaves {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 0 !important;
}
.nf-forest-leaf-fall {
    position: absolute !important;
    font-size: 28px !important;
    opacity: 0.25 !important;
    animation: leaf-drift 18s linear infinite;
}
@keyframes leaf-drift {
    0% {
        top: -10%;
        opacity: 0 !important;
        transform: translateX(0) rotate(0deg) !important;
    }
    10% {
        opacity: 0.25 !important;
    }
    90% {
        opacity: 0.25 !important;
    }
    100% {
        top: 110%;
        opacity: 0 !important;
        transform: translateX(150px) rotate(720deg) !important;
    }
}
.nf-forest-container {
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative !important;
    z-index: 1 !important;
}
.nf-forest-hero {
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 40px !important;
    padding: 70px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 35px 90px rgba(67, 160, 71, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    border: 4px solid rgba(156, 204, 101, 0.4) !important;
}
.nf-forest-hero::before {
    content: '';
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    height: 10px !important;
    background: linear-gradient(90deg, #2e7d32 0%, #43a047 25%, #66bb6a 50%, #9ccc65 75%, #d4e157 100%) !important;
}
.nf-forest-hero::after {
    content: '🌲';
    position: absolute !important;
    bottom: 30px;
    right: 30px;
    font-size: 120px !important;
    opacity: 0.05 !important;
}
.nf-forest-top-section {
    text-align: center !important;
    margin-bottom: 50px !important;
}
.nf-forest-badge {
    display: inline-block !important;
    padding: 12px 30px !important;
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%) !important;
    color: white !important;
    border-radius: 40px !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 25px rgba(67, 160, 71, 0.3) !important;
}
.nf-forest-title {
    font-size: 56px !important;
    font-weight: 900 !important;
    margin: 0 0 18px 0 !important;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 30%, #66bb6a 70%, #9ccc65 100%) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text !important;
    line-height: 1.2 !important;
}
.nf-forest-location-info {
    font-size: 19px !important;
    color: #558b2f !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px !important;
    margin-bottom: 25px !important;
    font-weight: 600 !important;
}
.nf-forest-rating-nature {
    display: inline-flex !important;
    align-items: center;
    gap: 20px !important;
    padding: 20px 45px !important;
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 50%, #9ccc65 100%) !important;
    color: white !important;
    border-radius: 65px !important;
    box-shadow: 0 18px 45px rgba(67, 160, 71, 0.45) !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}
.nf-forest-stars-shine {
    color: #ffd54f !important;
    font-size: 26px !important;
    text-shadow: 0 0 12px rgba(255, 213, 79, 0.6);
    animation: star-glow 2s ease-in-out infinite;
}
@keyframes star-glow {
    0%, 100% { 
        text-shadow: 0 0 12px rgba(255, 213, 79, 0.6);
        transform: scale(1) !important;
    }
    50% { 
        text-shadow: 0 0 25px rgba(255, 213, 79, 0.9), 0 0 35px rgba(255, 213, 79, 0.6);
        transform: scale(1.08) !important;
    }
}
.nf-forest-main-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 50px !important;
    margin-bottom: 50px !important;
}
@media (max-width: 968px) {
    .nf-forest-main-layout {
        grid-template-columns: 1fr;
    }
}
.nf-forest-featured-image {
    position: relative !important;
    border-radius: 35px !important;
    overflow: hidden !important;
    height: 550px !important;
    box-shadow: 0 30px 80px rgba(67, 160, 71, 0.4) !important;
    border: 5px solid #9ccc65 !important;
}
.nf-forest-featured-image::before {
    content: '';
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.35) 0%, rgba(156, 204, 101, 0.35) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease;
    z-index: 1 !important;
}
.nf-forest-featured-image:hover::before {
    opacity: 1 !important;
}
.nf-forest-featured-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.7s ease;
    transform: none !important; /* Evitar movimiento con scroll */
}
.nf-forest-featured-image:hover img {
    transform: scale(1.15) !important;
}
.nf-forest-tree-rings {
    position: absolute !important;
    top: 20px;
    left: 20px;
    z-index: 2 !important;
}
.nf-forest-ring {
    width: 60px !important;
    height: 60px !important;
    border: 3px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;
    position: relative !important;
}
.nf-forest-ring::before,
.nf-forest-ring::after {
    content: '';
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
}
.nf-forest-ring::before {
    width: 40px !important;
    height: 40px !important;
}
.nf-forest-ring::after {
    width: 20px !important;
    height: 20px !important;
}
.nf-forest-info-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
}
.nf-forest-info-item {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%) !important;
    padding: 32px !important;
    border-radius: 25px !important;
    border-left: 6px solid #66bb6a !important;
    transition: all 0.4s ease;
    position: relative !important;
    overflow: hidden !important;
}
.nf-forest-info-item::before {
    content: '🍃';
    position: absolute !important;
    bottom: 10px;
    right: 15px;
    font-size: 50px !important;
    opacity: 0.1 !important;
    transition: all 0.4s ease;
}
.nf-forest-info-item:hover::before {
    opacity: 0.25 !important;
    transform: rotate(25deg) scale(1.3) !important;
}
.nf-forest-info-item:hover {
    transform: translateY(-8px) translateX(10px) !important;
    box-shadow: 0 20px 50px rgba(67, 160, 71, 0.3) !important;
    border-left-width: 10px;
}
.nf-forest-icon {
    font-size: 42px !important;
    margin-bottom: 15px !important;
    display: block !important;
    filter: drop-shadow(0 5px 10px rgba(67, 160, 71, 0.3));
    animation: gentle-sway 4s ease-in-out infinite;
}
@keyframes gentle-sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}
.nf-forest-label-text {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #43a047 !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}
.nf-forest-value-text {
    font-size: 18px !important;
    color: #2e7d32 !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
}
.nf-forest-section {
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 35px !important;
    padding: 60px !important;
    margin-bottom: 35px !important;
    box-shadow: 0 25px 70px rgba(67, 160, 71, 0.25) !important;
    border: 3px solid rgba(156, 204, 101, 0.3) !important;
}
.nf-forest-section-title {
    font-size: 36px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text !important;
    margin: 0 0 35px 0 !important;
    text-align: center !important;
}
/* SOLO el contenedor interno debe tener grid, NO el padre */
.nf-forest-schedule-table > .wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}
@media (max-width: 768px) {
    .nf-forest-schedule-table > .wp-block-group__inner-container {
        grid-template-columns: 1fr !important;
    }
}
.nf-forest-schedule-row {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%) !important;
    padding: 22px 32px !important;
    border-radius: 20px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #c5e1a5 !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(67, 160, 71, 0.1) !important;
}
.nf-forest-schedule-row:hover {
    transform: translateY(-6px) rotate(-1deg) !important;
    box-shadow: 0 18px 40px rgba(67, 160, 71, 0.28) !important;
    border-color: #66bb6a !important;
}
.nf-forest-day-text {
    font-weight: 800 !important;
    color: #43a047 !important;
    font-size: 17px !important;
}
.nf-forest-time-text {
    color: #558b2f !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
.nf-forest-map-box {
    border-radius: 35px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 80px rgba(67, 160, 71, 0.35) !important;
    border: 6px solid #9ccc65 !important;
}
.nf-forest-cta-section {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 25%, #66bb6a 50%, #9ccc65 75%, #d4e157 100%) !important;
    padding: 70px 60px !important;
    border-radius: 40px !important;
    text-align: center !important;
    margin-top: 40px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 30px 90px rgba(67, 160, 71, 0.5) !important;
}
.nf-forest-cta-section::before {
    content: '';
    position: absolute !important;
    width: 400px !important;
    height: 400px !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    top: -150px;
    right: -150px;
    animation: orb-float 10s ease-in-out infinite;
    z-index: 0 !important;
    pointer-events: none !important;
}
.nf-forest-cta-section a {
    position: relative !important;
    z-index: 2 !important;
}
@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, 80px) scale(1.3); }
}
.nf-forest-cta-section::after {
    content: '🌿';
    position: absolute !important;
    bottom: 20px;
    left: 40px;
    font-size: 80px !important;
    opacity: 0.15 !important;
}
.nf-forest-cta-title {
    font-size: 48px !important;
    font-weight: 900 !important;
    color: white !important;
    margin: 0 0 20px 0 !important;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative !important;
    z-index: 1 !important;
}
.nf-forest-cta-subtitle {
    font-size: 22px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 0 35px 0 !important;
    position: relative !important;
    z-index: 1 !important;
    font-weight: 600 !important;
}
.nf-forest-cta-button {
    display: inline-block !important;
    padding: 25px 65px !important;
    background: white !important;
    color: #2e7d32 !important;
    text-decoration: none;
    font-size: 20px !important;
    font-weight: 900 !important;
    border-radius: 70px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative !important;
    z-index: 1 !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 4px solid white !important;
}
.nf-forest-cta-button:hover {
    transform: scale(1.15) translateY(-8px) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4) !important;
    background: #ffd54f !important;
    color: #2e7d32 !important;
}



/* Fix: Eliminar espacio extra debajo de mapas (responsive) */
.su-u-responsive-media-yes.mapa,
.su-gmap.su-u-responsive-media-yes {
    padding-bottom: 0 !important;
    height: 0 !important;
    padding-top: 56.25% !important; /* Aspect ratio 16:9 pero arriba */
    position: relative !important;
}
.su-u-responsive-media-yes.mapa iframe,
.su-gmap.su-u-responsive-media-yes iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    min-height: 300px; /* Altura mínima en móviles */
}

/* Responsive adicional */
@media (max-width: 768px) {
    .nf-forest-wrapper { padding: 40px 20px !important; }
    .nf-forest-hero { padding: 40px 30px !important; }
    .nf-forest-title { font-size: 32px !important; }
    .nf-forest-card { padding: 25px !important; }
    .nf-forest-info-box { padding: 20px !important; }
    .su-u-responsive-media-yes.mapa,
    .su-gmap.su-u-responsive-media-yes { padding-top: 75% !important; }
}
@media (max-width: 480px) {
    .nf-forest-wrapper { padding: 30px 15px !important; }
    .nf-forest-title { font-size: 24px !important; }
}
