/* ==========================================================================
   Estilos del Jardín Interactivo y Simulador de Cuidado Real 🌱🪴
   ========================================================================== */

.garden-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    align-items: start;
}

/* ==========================================================================
   Escenario Virtual de la Planta (Misma Altura que la Ventana Principal)
   ========================================================================== */
.virtual-garden-stage {
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.95) 0 14px, transparent 16px),
        radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.75) 0 26px, transparent 28px),
        radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.8) 0 18px, transparent 20px),
        radial-gradient(circle at 88% 18%, #fde047 0 16px, #facc15 17px, transparent 22px),
        linear-gradient(180deg, #7dd3fc 0%, #bae6fd 22%, #86efac 22%, #4ade80 46%, #65a30d 72%, #3f6212 100%);
    border-radius: 28px;
    border: 6px solid #8b5e34;
    box-shadow:
        inset 0 0 0 4px #e7c07a,
        inset 0 0 0 8px #6b3f22,
        0 12px 24px rgba(62, 39, 15, 0.22);
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
}

.virtual-garden-stage::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 22%;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 34px, transparent 34px 68px),
        repeating-linear-gradient(0deg, rgba(20, 83, 45, 0.08) 0 22px, transparent 22px 44px);
    pointer-events: none;
    z-index: 0;
}

.virtual-garden-stage::after {
    content: "🌸     🍄          🌷               🌼      🪨";
    position: absolute;
    left: 0;
    right: 0;
    top: 34%;
    text-align: center;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

/* Sol radiante en el fondo */
.stage-sun-element {
    position: absolute;
    top: 8px;
    left: 10px;
    right: auto;
    font-size: 2.1rem;
    animation: sunSpin 20s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 183, 3, 0.7));
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.stage-sun-element:hover {
    transform: scale(1.25) rotate(15deg);
}

@keyframes sunSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.plant-banner-info {
    text-align: center;
    z-index: 2;
    margin-bottom: 4px;
    width: 100%;
}

.plant-banner-header-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding-left: 48px;
    padding-right: 248px;
    box-sizing: border-box;
}

.plant-banner-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
}

.plant-banner-badge {
    background: white;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: inline-block;
}

/* Insignia de Nivel de Planta */
.plant-level-badge {
    background: linear-gradient(135deg, #fef08a, #facc15);
    color: #854d0e;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.25);
    border: 1px solid #fde047;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: levelPulse 3s ease-in-out infinite;
}

.care-streak-pill {
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-weight: 700;
    color: #7f4f24;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

@keyframes levelPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Barra de Experiencia de Planta (Botani-XP) */
.plant-xp-container {
    max-width: 320px;
    width: 100%;
    margin: 4px auto 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.plant-xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #713f12;
    margin-bottom: 3px;
}

.plant-xp-track {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.plant-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #eab308);
    border-radius: 8px;
    transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Indicador flotante de XP ganado (+25 XP) */
.floating-xp-indicator {
    position: absolute;
    color: #15803d;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 50;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    animation: floatUpXp 1.6s ease-out forwards;
}

@keyframes floatUpXp {
    0% { opacity: 0; transform: translateY(0) scale(0.7); }
    20% { opacity: 1; transform: translateY(-10px) scale(1.15); }
    80% { opacity: 1; transform: translateY(-35px) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(0.85); }
}

/* Accesorios y transformaciones según nivel (crecimiento sutil, sin achicar al inicio) */
.plant-avatar-stage.lvl-1 {
    transform: scale(1);
}
.plant-avatar-stage.lvl-2 {
    transform: scale(1.04);
}
.plant-avatar-stage.lvl-3 {
    transform: scale(1.08);
}
.plant-avatar-stage.lvl-4 {
    transform: scale(1.12);
}
.plant-avatar-stage.lvl-5 {
    transform: scale(1.16);
}

/* Flor de adorno en Nivel 4 */
.plant-flower-accessory {
    position: absolute;
    top: -12px;
    right: -4px;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.25));
    animation: flowerFloat 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 15;
}

@keyframes flowerFloat {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-4px) rotate(6deg); }
}

/* Corona Dorada de Campeón en Nivel 5 (MAX) */
.plant-crown-accessory {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.45rem;
    filter: drop-shadow(0 4px 8px rgba(234, 179, 8, 0.65));
    animation: crownFloat 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 15;
}

.plant-avatar-emoji.catalog-art-emoji {
    font-size: 6.4rem;
}

.plant-avatar-stage:has(.catalog-art-emoji) .pvz-face,
.plant-avatar-stage:has(.catalog-art-img) .pvz-face {
    top: 54% !important;
    transform: translate(-50%, -42%);
}

.plant-avatar-img.catalog-art-img {
    width: 140px;
    height: 120px;
}

@keyframes crownFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-4deg); }
    50% { transform: translateX(-50%) translateY(-6px) rotate(4deg); }
}

/* Maceta e Ilustración Central — planta protagonista, bien visible */
.virtual-plant-pot {
    position: relative;
    width: 210px;
    height: 168px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin: 0 auto;
    z-index: 5;
    flex-shrink: 1;
}

.plant-avatar-stage {
    --plant-scale: 1;
    container-type: inline-size;
    position: relative;
    font-size: 4.6rem;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
    animation: plantGentleBreeze 3.2s ease-in-out infinite;
    transform-origin: bottom center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 128px;
    min-width: 0;
    min-height: 0;
}

.plant-body-container {
    width: 150px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plant-body-container .stage-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.plant-avatar-stage:hover {
    transform: scale(calc(var(--plant-scale, 1) * 1.08)) rotate(3deg);
}

.plant-avatar-stage.pvz-squish {
    animation: pvzSquishBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.plant-avatar-stage.pvz-water-celebrate {
    animation: pvzWaterExcited 1.2s ease-in-out !important;
}

/* Imagen de planta subida */
.plant-avatar-img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    border-radius: 16px;
    pointer-events: none;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.plant-avatar-emoji {
    display: block;
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   SISTEMA DE ROSTRO Y OJOS ESTILO PLANTAS VS ZOMBIES (PvZ)
   ========================================================================== */
.pvz-face {
    position: absolute;
    top: 36%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    transition: transform 0.15s ease-out;
}

.plant-avatar-emoji ~ .pvz-face {
    top: 36%;
}

.plant-avatar-img ~ .pvz-face {
    top: 35%;
}

.pvz-face.pvz-stage-seed {
    top: 72% !important;
    transform: translate(-50%, -50%) scale(0.46);
}

.pvz-face.pvz-stage-sprout {
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0.7);
}

.pvz-face.pvz-stage-growing {
    top: 36% !important;
}

.pvz-face.pvz-stage-mature {
    top: 35% !important;
}

.stage-svg {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
    transition: transform 0.25s ease-out;
}

.stage-svg.is-golden-svg {
    filter: drop-shadow(0 0 16px #f59e0b) saturate(1.35) !important;
}

.pvz-eyes-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.4cqw;
    position: relative;
}

.pvz-eye {
    position: relative;
    width: 34px;
    width: 21cqw;
    height: 38px;
    height: 23.5cqw;
    max-width: 46px;
    background: #fffdf8;
    border: 2.5px solid #1a202c;
    border-radius: 50%;
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transform-origin: center center;
    animation: pvzBlink 4s ease-in-out infinite;
}

.pvz-eye-left {
    transform: rotate(-3deg);
}

.pvz-eye-right {
    transform: rotate(3deg);
}

/* Pupila de caricatura */
.pvz-pupil {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 68%;
    height: 72%;
    background: radial-gradient(circle at 35% 35%, #334155 0%, #0f172a 62%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out;
}

/* Brillo blanco brillante característico de PvZ */
.pvz-shine {
    position: absolute;
    top: 14%;
    right: 16%;
    width: 32%;
    height: 32%;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 2px #ffffff;
}

.pvz-shine-sub {
    position: absolute;
    bottom: 16%;
    left: 18%;
    width: 16%;
    height: 16%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
}

/* Mejillas sonrosadas adorables */
.pvz-cheeks {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translateX(-50%);
    width: 78px;
    width: 42cqw;
    max-width: 86px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.pvz-blush {
    width: 14px;
    width: 7.2cqw;
    height: 9px;
    height: 4.4cqw;
    background: rgba(255, 128, 156, 0.78);
    border-radius: 50%;
    filter: blur(0.3px);
}

.pvz-mouth {
    margin-top: 1px;
    width: 16px;
    width: 10cqw;
    height: 8px;
    height: 4.6cqw;
    border-bottom: 2.5px solid #1a202c;
    border-radius: 0 0 12px 12px;
    background: transparent;
    transition: all 0.25s ease;
}

/* Estados expresivos PvZ */
/* Estado Sedienta / Tierra seca */
.pvz-face.pvz-thirsty .pvz-eye {
    transform: rotate(5deg) scaleY(0.9);
}
.pvz-face.pvz-thirsty .pvz-eye-left {
    transform: rotate(-6deg) scaleY(0.85);
}
.pvz-face.pvz-thirsty .pvz-pupil {
    top: 60%;
}
.pvz-face.pvz-thirsty .pvz-mouth {
    width: 10px;
    height: 4px;
    border-bottom: none;
    border-top: 3px solid #4a5568;
    border-radius: 10px 10px 0 0;
}
.pvz-sweat-drop {
    display: none;
    position: absolute;
    top: -12px;
    right: -8px;
    font-size: 1.1rem;
    animation: pvzSweatDrip 1.5s ease-in-out infinite;
}
.pvz-face.pvz-thirsty .pvz-sweat-drop {
    display: block;
}

/* Estado Riego / Muy Feliz */
.pvz-face.pvz-happy .pvz-mouth {
    width: 16px;
    height: 10px;
    background: #e11d48;
    border: 2px solid #1a202c;
    border-radius: 2px 2px 12px 12px;
}
.pvz-face.pvz-happy .pvz-pupil {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Globo de diálogo al hacer clic/cosquillas */
.pvz-speech-bubble {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 2.5px solid #22c55e;
    color: #14532d;
    padding: 5px 14px;
    border-radius: 18px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 30;
    pointer-events: none;
    animation: pvzBubblePop 2.2s forwards;
}

.pvz-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 6px 0;
    border-style: solid;
    border-color: #22c55e transparent transparent;
    display: block;
    width: 0;
}

/* Animaciones del rostro */
@keyframes pvzBlink {
    0%, 92%, 100% {
        transform: scaleY(1);
    }
    96% {
        transform: scaleY(0.08);
    }
}

@keyframes pvzSquishBounce {
    0% { transform: scale(1, 1); }
    20% { transform: scale(1.28, 0.72); }
    45% { transform: scale(0.82, 1.24) translateY(-14px); }
    70% { transform: scale(1.12, 0.92) translateY(-4px); }
    85% { transform: scale(0.96, 1.04); }
    100% { transform: scale(1, 1); }
}

@keyframes pvzWaterExcited {
    0%, 100% { transform: translateY(0) scale(1); }
    15% { transform: translateY(-18px) scale(1.12) rotate(-5deg); }
    35% { transform: translateY(-24px) scale(1.15) rotate(5deg); }
    60% { transform: translateY(-12px) scale(1.06) rotate(-3deg); }
    80% { transform: translateY(-4px) scale(1.02) rotate(1deg); }
}

@keyframes pvzBubblePop {
    0% { opacity: 0; transform: translate(-50%, 10px) scale(0.7); }
    15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); }
    25% { transform: translate(-50%, 0) scale(1); }
    80% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -15px) scale(0.85); }
}

@keyframes pvzSweatDrip {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(4px); opacity: 1; }
}

@keyframes plantGentleBreeze {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg) translateY(-4px); }
}

.pot-graphics {
    width: 156px;
    height: 58px;
    background: linear-gradient(135deg, #b08968, #7f4f24);
    border-radius: 4px 4px 32px 32px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    position: relative;
    border-top: 10px solid #9c6644;
}

.pot-graphics::after {
    content: '🌿';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    opacity: 0.4;
}

/* Gotitas de agua cayendo */
.falling-water-drop {
    position: absolute;
    top: 0;
    width: 10px;
    height: 18px;
    background: #00b4d8;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 6px #90e0ef;
    pointer-events: none;
    animation: dropFall 0.9s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes dropFall {
    0% { transform: translateY(0) scale(0.6); opacity: 0; }
    30% { opacity: 1; }
    90% { transform: translateY(140px) scale(1.1); opacity: 1; }
    100% { transform: translateY(155px) scale(1.4, 0.4); opacity: 0; }
}

/* Soles cayendo estilo PvZ */
.falling-pvz-sun {
    position: absolute;
    top: 10px;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.95));
    pointer-events: none;
    z-index: 25;
    animation: sunFallSpin 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes sunFallSpin {
    0% { transform: translateY(0) rotate(0deg) scale(0.4); opacity: 0; }
    20% { opacity: 1; transform: translateY(15px) rotate(80deg) scale(1.15); }
    80% { opacity: 1; transform: translateY(115px) rotate(260deg) scale(1); }
    100% { opacity: 0; transform: translateY(145px) rotate(360deg) scale(0.6); }
}

/* Efecto de baño de sol radiante en la planta */
.plant-avatar-stage.pvz-sun-glow {
    filter: drop-shadow(0 0 16px #facc15) drop-shadow(0 0 30px #fde047) !important;
    animation: pvzSunBask 1.4s ease-in-out !important;
}

@keyframes pvzSunBask {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(-3deg); }
    50% { transform: scale(1.15) translateY(-8px) rotate(3deg); }
    75% { transform: scale(1.06) rotate(-1deg); }
}

/* Controles Inferiores de la Maceta */
.stage-bottom-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 5;
    margin-top: 2px;
}

/* Fila de Controles Rápidos: Humedad + Maceta Real */
.stage-controls-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 540px;
    margin-top: 2px;
    flex-wrap: wrap;
}

/* Medidor de Humedad de la Tierra (Tamaño Cómodo) */
.moisture-meter-container {
    flex: 1;
    min-width: 170px;
    max-width: 240px;
    background: white;
    border-radius: 14px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 5;
}

.moisture-meter-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.moisture-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.moisture-bar-fill {
    height: 100%;
    width: 40%;
    background: #2a9d8f;
    border-radius: 8px;
    transition: width 0.5s ease, background-color 0.4s ease;
}

/* Selector de Luz Solar (Tamaño Cómodo) */
.sun-exposure-selector {
    flex: 1;
    min-width: 215px;
    max-width: 275px;
    background: white;
    border-radius: 14px;
    padding: 6px 12px;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 5;
}

.sun-selector-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.sun-options-group {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: flex-end;
}

.sun-option-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px 8px;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sun-option-btn:hover {
    background: #f1f5f9;
}

.sun-option-btn.active {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #b45309;
    font-weight: 700;
    box-shadow: 0 1px 5px rgba(245, 158, 11, 0.25);
}

.soil-finger-alert {
    margin-top: 5px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    max-width: 460px;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.soil-finger-alert.status-dry {
    background: #ffedd5;
    color: #9a3412;
    border: 1.5px solid #fdba74;
}

.soil-finger-alert.status-perfect {
    background: #dcfce7;
    color: #166534;
    border: 1.5px solid #86efac;
}

.soil-finger-alert.status-wet {
    background: #fee2e2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
}

/* ==========================================================================
   Barra de Herramientas Interactivas (Tamaño Cómodo y Ergonómico)
   ========================================================================== */
.care-tools-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
    width: 100%;
    max-width: 560px;
    padding: 6px;
    background: rgba(255, 248, 231, 0.92);
    border: 3px solid #a16207;
    border-radius: 18px;
    box-shadow: 0 6px 0 #7c4a12;
}

.care-tool-btn {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--dark-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.care-tool-btn:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: var(--light-green);
    box-shadow: 0 4px 10px rgba(45, 106, 79, 0.14);
}

.care-tool-btn:active {
    transform: scale(0.96);
}

/* ==========================================================================
   Panel Lateral: Misiones Reales y Ficha Botánica (Tamaño Medio Balanceado)
   ========================================================================== */
.real-tasks-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    justify-content: space-between;
}

.panel-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 13px 16px;
    box-shadow: var(--shadow-soft);
    border: 1.5px solid rgba(82, 183, 136, 0.2);
}

.panel-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary-green);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.botanical-guide-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.botanical-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--light-green);
}

.guide-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.guide-content h4 {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    color: var(--dark-text);
    margin-bottom: 2px;
}

.guide-content p {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.3;
}

/* Misiones del Día para la Planta Real */
.real-missions-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.real-mission-item {
    background: #fdfbf7;
    border: 1.5px solid #fde047;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mission-text-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mission-step-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.mission-title {
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 700;
    color: #78350f;
}

.mission-instruction {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.3;
}

.confirm-real-task-btn {
    background: linear-gradient(135deg, #ff9f1c, #e76f51);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    box-shadow: 0 3px 8px rgba(231, 111, 81, 0.25);
}

.confirm-real-task-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(231, 111, 81, 0.35);
}

.confirm-real-task-btn.task-done-badge {
    background: #2a9d8f;
    box-shadow: none;
    cursor: default;
}

@media (max-width: 900px) {
    .garden-layout {
        grid-template-columns: 1fr;
    }

    .plant-banner-header-line {
        padding-left: 42px;
        padding-right: 8px;
    }

    .lapaz-weather-pill {
        position: static;
        max-width: 100%;
        margin: 0 auto 4px;
        justify-content: center;
    }

    .virtual-garden-stage::after {
        top: 30%;
        font-size: 1rem;
    }

    .botanical-guide-list {
        grid-template-columns: 1fr;
    }

    .care-tool-btn {
        flex: 1 1 30%;
        justify-content: center;
        min-height: 42px;
    }
}

@media (max-width: 700px) {
    .garden-layout {
        gap: 10px;
    }

    .virtual-garden-stage {
        width: 100%;
        padding: 6px 6px 6px;
        border-width: 4px;
        border-radius: 16px;
        gap: 2px;
    }

    .virtual-garden-stage::after {
        top: auto;
        bottom: 4px;
        font-size: 0.75rem;
        letter-spacing: 0.04em;
        opacity: 0.45;
    }

    .plant-banner-info {
        position: relative;
        z-index: 4;
    }

    .plant-banner-title {
        font-size: 1.05rem;
        justify-content: center;
    }

    .plant-banner-header-line {
        padding-left: 34px;
        padding-right: 4px;
        justify-content: center;
        gap: 4px;
    }

    .plant-banner-badge,
    .plant-level-badge,
    .care-streak-pill {
        font-size: 0.68rem;
        padding: 2px 7px;
    }

    .lapaz-weather-pill {
        font-size: 0.7rem;
        padding: 2px 6px;
        gap: 3px;
        border-radius: 12px;
        margin-bottom: 0;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .weather-advice-chip {
        font-size: 0.64rem;
        padding: 1px 6px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .plant-xp-container {
        padding: 3px 8px;
        margin-top: 2px;
    }

    .plant-xp-header {
        font-size: 0.68rem;
        margin-bottom: 2px;
        gap: 6px;
    }

    .stage-sun-element {
        top: 6px;
        left: 6px;
        font-size: 1.35rem;
    }

    .virtual-plant-pot {
        width: 142px;
        height: 108px;
        margin-top: 0;
    }

    .plant-avatar-stage,
    .plant-body-container {
        width: 110px;
        height: 86px;
        min-width: 0;
        min-height: 0;
        font-size: 3rem;
    }

    .plant-avatar-img {
        width: 100px;
        height: 78px;
    }

    .pot-graphics {
        width: 110px;
        height: 36px;
    }

    .stage-bottom-controls,
    .stage-controls-strip,
    .care-tools-bar,
    .soil-finger-alert {
        width: 100%;
        max-width: 100%;
    }

    .care-tools-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 5px;
    }

    .care-tool-btn {
        width: 100%;
        min-height: 36px;
        font-size: 0.74rem;
        padding: 5px 4px;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

    .care-tool-btn:last-child {
        grid-column: 1 / -1;
    }

    .stage-controls-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .moisture-meter-container,
    .sun-exposure-selector {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .sun-exposure-selector {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sun-options-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .missions-sidebar,
    .botanical-guide-panel,
    .panel-card,
    .real-tasks-panel {
        width: 100%;
        max-width: 100%;
    }

    .confirm-real-task-btn {
        width: 100%;
        white-space: normal;
    }
}
