:root {
    --brand-primary: #c85a24;
    --brand-primary-hover: #a04000;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f9f9f9;
}

.ver-memorial-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.volver-container { margin-bottom: 30px; }
.btn-volver {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--brand-primary); text-decoration: none;
    font-weight: 500; font-size: 1rem; transition: color 0.3s;
}
.btn-volver:hover { color: var(--brand-primary-hover); }

.memorial-detail-card {
    background: white; border-radius: 12px; padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); text-align: center; margin-bottom: 40px;
}
.memorial-detail-photo {
    width: 200px; height: 200px; margin: 0 auto 30px;
    border-radius: 50%; overflow: hidden; border: 4px solid #ecf0f1;
    display: flex; align-items: center; justify-content: center; background: var(--bg-light);
}
.memorial-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.memorial-photo-placeholder { font-size: 4rem; color: #bdc3c7; }
.memorial-detail-name { font-size: 2.5rem; color: var(--text-dark); margin: 0 0 15px 0; font-weight: 400; }
.memorial-detail-dates { font-size: 1.1rem; color: var(--text-light); margin-bottom: 20px; }
.memorial-detail-location { font-size: 1rem; color: var(--text-light); margin-bottom: 25px; }
.memorial-detail-message {
    background: var(--bg-light); border-left: 4px solid var(--brand-primary);
    padding: 20px; margin: 25px 0 0 0; font-style: italic; color: #555;
    font-size: 1.05rem; line-height: 1.6; text-align: left;
}

.altar-virtual {
    background: white; border-radius: 12px; padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 40px; position: relative; overflow: hidden;
}
.altar-virtual h3 { text-align: center; color: var(--text-dark); margin: 0 0 30px 0; font-weight: 400; font-size: 1.5rem; }

.candle-section { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #ecf0f1; }
.candle-display { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 10px; }
.candle-icon { font-size: 3rem; }
.candle-count { font-size: 3rem; font-weight: bold; color: var(--brand-primary); }
.candle-text { color: var(--text-light); margin: 0 0 20px 0; }
.btn-vela {
    padding: 12px 30px; background: var(--brand-primary); color: white;
    border: none; border-radius: 30px; font-size: 1rem; cursor: pointer; transition: all 0.3s;
}
.btn-vela:hover:not(:disabled) { background: var(--brand-primary-hover); transform: scale(1.05); }
.btn-vela:disabled { background: #bdc3c7; cursor: not-allowed; }
.vela-msg { color: #27ae60; font-size: 0.95rem; margin-top: 15px; }

.flowers-section { text-align: center; }
.flowers-title { color: var(--text-light); margin: 0 0 20px 0; }
.flowers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 15px; justify-content: center; }
.flower-btn {
    display: flex; flex-direction: column; align-items: center; padding: 15px 10px;
    background: var(--bg-light); border: 2px solid #e0e0e0; border-radius: 12px;
    cursor: pointer; transition: all 0.3s;
}
.flower-btn:hover { background: white; border-color: var(--brand-primary); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(200, 90, 36, 0.15); }
.flower-icon { font-size: 2.5rem; margin-bottom: 8px; }
.flower-name { font-size: 0.85rem; color: var(--text-light); margin-bottom: 5px; }
.flower-count {
    background: var(--brand-primary); color: white; font-size: 0.75rem;
    font-weight: bold; padding: 2px 8px; border-radius: 10px; min-width: 20px; text-align: center;
}

.flor-flotante {
    position: absolute; font-size: 2.5rem; pointer-events: none;
    animation: flotar 3s ease-out forwards; z-index: 10;
}
@keyframes flotar {
    0% { bottom: 50px; opacity: 1; transform: scale(1); }
    100% { bottom: 100%; opacity: 0; transform: scale(1.5); }
}

.pesames-section { background: white; border-radius: 12px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.pesames-section h3 { color: var(--text-dark); margin: 0 0 25px 0; font-weight: 400; font-size: 1.5rem; }
.pesames-list { margin-bottom: 30px; }
.pesame-item { background: var(--bg-light); padding: 20px; border-radius: 8px; margin-bottom: 15px; border-left: 3px solid var(--brand-primary); }
.pesame-author { font-weight: bold; color: var(--text-dark); margin-bottom: 8px; }
.pesame-text { color: #555; line-height: 1.6; margin-bottom: 10px; }
.pesame-date { font-size: 0.85rem; color: var(--text-light); }
.empty-pesames { text-align: center; color: var(--text-light); padding: 30px; }

.pesame-form-container { border-top: 1px solid #ecf0f1; padding-top: 25px; }
.pesame-form-container h4 { color: var(--text-dark); margin: 0 0 20px 0; font-weight: 500; }
.pesame-form-container .form-group { margin-bottom: 15px; }
.pesame-form-container input, .pesame-form-container textarea {
    width: 100%; padding: 12px; border: 1px solid #e0e0e0; border-radius: 6px;
    font-size: 1rem; font-family: inherit; box-sizing: border-box;
}
.pesame-form-container input:focus, .pesame-form-container textarea:focus { outline: none; border-color: var(--brand-primary); }
.pesame-form-container .btn-primary {
    padding: 12px 30px; background: var(--brand-primary); color: white;
    border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; transition: background 0.3s;
}
.pesame-form-container .btn-primary:hover { background: var(--brand-primary-hover); }
.exito-msg { color: #27ae60; text-align: center; margin-top: 15px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); font-size: 1.1rem; }

/* Responsive Pulido */
@media (max-width: 768px) {
    .ver-memorial-container { padding: 20px 15px; }
    .memorial-detail-card { padding: 25px 15px; }
    .memorial-detail-name { font-size: 1.8rem; }
    .memorial-detail-photo { width: 140px; height: 140px; margin-bottom: 20px; }
    .altar-virtual, .pesames-section { padding: 20px 15px; }
    .flowers-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .flower-btn { padding: 12px 5px; }
    .flower-icon { font-size: 2rem; }
    .candle-count { font-size: 2.5rem; }
}

/* Estado de flor ya enviada hoy */
.flower-btn.enviada,
.flower-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    border-color: #ccc !important;
}

.flower-btn.enviada .flower-icon {
    filter: grayscale(100%);
}