/* Animaciones CSS optimizadas */
@keyframes nc-scale-up {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@keyframes nc-scale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes nc-right {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes nc-scale-rotate {
    from {
        opacity: 0;
        transform: scale(0.85) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}
.nc-animate-scale-up {
    animation: nc-scale-up 1.2s ease-out forwards;
}
.nc-animate-scale {
    animation: nc-scale 1s ease-out forwards;
}
.nc-animate-right {
    animation: nc-right 0.7s ease-out forwards;
}
.nc-animate-scale-rotate {
    animation: nc-scale-rotate 0.6s ease-out forwards;
}
/* Hover de iconos ahora en CSS */
.nc-forest-info-icon {
    transition: transform 0.3s ease !important;
}
.nc-forest-info-card:hover .nc-forest-info-icon {
    transform: scale(1.25) rotate(15deg) !important;
}

.nc-forest-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #d4e157 0%, #9ccc65 30%, #66bb6a 60%, #43a047 100%) !important;
    padding: 50px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}
.nc-forest-page::before {
    content: '';
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background: 
        radial-gradient(circle at 20% 30%, rgba(156, 204, 101, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(67, 160, 71, 0.06) 0%, transparent 40%);
    z-index: 0 !important;
    animation: nature-breathe 10s ease-in-out infinite;
    pointer-events: none !important;
}
@keyframes nature-breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}
.nc-forest-leaves {
    position: fixed !important;
    top: -10%;
    left: 0;
    width: 100% !important;
    height: 120% !important;
    pointer-events: none;
    z-index: 0 !important;
}
.nc-forest-leaf {
    position: absolute !important;
    font-size: 24px !important;
    opacity: 0.2 !important;
    animation: fall-leaf 15s linear infinite;
}
@keyframes fall-leaf {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg) !important;
    }
    100% {
        top: 110%;
        transform: translateX(100px) rotate(360deg) !important;
    }
}
.nc-forest-container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative !important;
    z-index: 1 !important;
}
.nc-forest-card {
    background: rgba(255, 255, 255, 0.97) !important;
    border-radius: 35px !important;
    padding: 60px !important;
    box-shadow: 0 30px 80px rgba(67, 160, 71, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
    border: 3px solid rgba(156, 204, 101, 0.3) !important;
}
.nc-forest-card::before {
    content: '';
    position: absolute !important;
    top: -50%;
    left: -50%;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(156, 204, 101, 0.08) 0%, transparent 60%) !important;
    animation: rotate-nature 20s linear infinite;
}
@keyframes rotate-nature {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.nc-forest-header {
    text-align: center !important;
    margin-bottom: 50px !important;
    padding-bottom: 30px !important;
    position: relative !important;
}
.nc-forest-header::after {
    content: '';
    position: absolute !important;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) !important;
    width: 200px !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, #66bb6a, transparent) !important;
    border-radius: 10px !important;
}
.nc-forest-header h1 {
    font-size: 52px !important;
    font-weight: 800 !important;
    margin: 0 0 20px 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;
}
.nc-forest-subtitle {
    font-size: 18px !important;
    color: #558b2f !important;
    font-weight: 600 !important;
}
.nc-forest-rating-leaf {
    display: inline-flex !important;
    align-items: center;
    gap: 18px !important;
    padding: 18px 40px !important;
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%) !important;
    color: white !important;
    border-radius: 50px !important;
    box-shadow: 0 15px 40px rgba(67, 160, 71, 0.4) !important;
    margin: 25px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
.nc-forest-stars {
    color: #ffd54f !important;
    font-size: 22px !important;
    text-shadow: 0 0 10px rgba(255, 213, 79, 0.5);
}
.nc-forest-content-grid {
    display: grid !important;
    grid-template-columns: 420px 1fr;
    gap: 50px !important;
    margin-bottom: 50px !important;
}
@media (max-width: 968px) {
    .nc-forest-content-grid {
        grid-template-columns: 1fr;
    }
}
.nc-forest-image-container {
    position: relative !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 70px rgba(67, 160, 71, 0.35) !important;
    border: 4px solid #9ccc65 !important;
}
.nc-forest-image-container::before {
    content: '';
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.3), rgba(156, 204, 101, 0.3)) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease;
    z-index: 1 !important;
}
.nc-forest-image-container:hover::before {
    opacity: 1 !important;
}
.nc-forest-image-container img {
    width: 100% !important;
    height: 500px !important;
    min-height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.6s ease;
    transform: none !important; /* Evitar movimiento con scroll */
}
.nc-forest-image-container:hover img {
    transform: scale(1.1) !important;
}
.nc-forest-growth-ring {
    position: absolute !important;
    bottom: 20px;
    right: 20px;
    width: 60px !important;
    height: 60px !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
    z-index: 2 !important;
}
.nc-forest-growth-ring::before,
.nc-forest-growth-ring::after {
    content: '';
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    border: 3px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 50% !important;
}
.nc-forest-growth-ring::before {
    width: 40px !important;
    height: 40px !important;
}
.nc-forest-growth-ring::after {
    width: 20px !important;
    height: 20px !important;
}
.nc-forest-info-list {
    display: grid !important;
    gap: 22px !important;
}
.nc-forest-info-card {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%) !important;
    padding: 28px 32px !important;
    border-radius: 22px !important;
    border-left: 5px solid #66bb6a !important;
    transition: all 0.3s ease;
    position: relative !important;
}
.nc-forest-info-card::before {
    content: '🌿';
    position: absolute !important;
    top: 15px;
    right: 20px;
    font-size: 40px !important;
    opacity: 0.15 !important;
    transition: all 0.3s ease;
}
.nc-forest-info-card:hover::before {
    opacity: 0.3 !important;
    transform: rotate(20deg) scale(1.2) !important;
}
.nc-forest-info-card:hover {
    transform: translateX(12px) !important;
    box-shadow: 0 15px 40px rgba(67, 160, 71, 0.25) !important;
    border-left-width: 8px;
}
.nc-forest-info-icon {
    font-size: 38px !important;
    margin-bottom: 12px !important;
    display: block !important;
    filter: drop-shadow(0 4px 8px rgba(67, 160, 71, 0.3));
    animation: sway 3s ease-in-out infinite;
}
@keyframes sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}
.nc-forest-info-label {
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #43a047 !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}
.nc-forest-info-text {
    font-size: 17px !important;
    color: #2e7d32 !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}
.nc-forest-divider {
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #66bb6a, transparent) !important;
    margin: 50px 0 !important;
    position: relative !important;
}
.nc-forest-divider::after {
    content: '🌳';
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    background: white !important;
    padding: 0 20px !important;
    font-size: 28px !important;
}
.nc-forest-schedule-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 35px !important;
    color: #2e7d32 !important;
}
/* SOLO el contenedor interno debe tener grid, NO el padre */
.nc-forest-schedule-grid > .wp-block-group__inner-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
}
.nc-forest-schedule-grid {
    margin: 30px 0 !important;
}
@media (max-width: 768px) {
    .nc-forest-schedule-grid > .wp-block-group__inner-container {
        grid-template-columns: 1fr !important;
    }
}
.nc-forest-schedule-item {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%) !important;
    padding: 20px 30px !important;
    border-radius: 18px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #c5e1a5 !important;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(67, 160, 71, 0.1) !important;
}
.nc-forest-schedule-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(67, 160, 71, 0.25) !important;
    border-color: #66bb6a !important;
}
.nc-forest-day {
    font-weight: 700 !important;
    color: #43a047 !important;
    font-size: 16px !important;
}
.nc-forest-time {
    color: #558b2f !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}
.nc-forest-map-wrapper {
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 70px rgba(67, 160, 71, 0.3) !important;
    border: 5px solid #9ccc65 !important;
    margin: 40px 0 !important;
}
.nc-forest-cta {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 30%, #66bb6a 70%, #9ccc65 100%) !important;
    padding: 60px 50px !important;
    border-radius: 35px !important;
    text-align: center !important;
    margin-top: 50px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 25px 70px rgba(67, 160, 71, 0.4) !important;
}
.nc-forest-cta::before {
    content: '';
    position: absolute !important;
    width: 300px !important;
    height: 300px !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    animation: float-orb 8s ease-in-out infinite;
    top: -100px;
    left: -100px;
    z-index: 0 !important;
    pointer-events: none !important;
}
.nc-forest-cta a {
    position: relative !important;
    z-index: 2 !important;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.2); }
}
.nc-forest-cta-title {
    font-size: 42px !important;
    font-weight: 900 !important;
    color: white !important;
    margin: 0 0 15px 0 !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative !important;
    z-index: 1 !important;
}
.nc-forest-cta-subtitle {
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 0 30px 0 !important;
    position: relative !important;
    z-index: 1 !important;
}
.nc-forest-button {
    display: inline-block !important;
    padding: 22px 55px !important;
    background: white !important;
    color: #2e7d32 !important;
    text-decoration: none;
    font-size: 18px !important;
    font-weight: 800 !important;
    border-radius: 60px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s ease;
    position: relative !important;
    z-index: 1 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid white !important;
}
.nc-forest-button:hover {
    transform: scale(1.12) translateY(-5px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    background: #ffd54f !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) {
    .nc-forest-wrapper { padding: 40px 20px !important; }
    .nc-forest-card { padding: 25px !important; }
    .nc-forest-title { font-size: 28px !important; }
    .nc-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) {
    .nc-forest-wrapper { padding: 30px 15px !important; }
    .nc-forest-title { font-size: 22px !important; }
}
