/* ============================================
   HUELITAS CREMATORIO - TEMAS PREMIUM
   Diseño minimalista con fondos ambientales
   ============================================ */

:root {
    --gold: #c9a96e;
    --gold-light: #e8d5b7;
    --dark: #1a1a2e;
    --white: #ffffff;
    --cream: #faf9f6;
}

/* ============================================
   TEMA 1: CLÁSICO ELEGANTE
   ============================================ */
.tema-clasico {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 25%, #dfd0b8 50%, #d4c4a8 75%, #c9b898 100%);
    position: relative;
    overflow: hidden;
    color: #3a3226;
}

.tema-clasico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(201, 169, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 169, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.tema-clasico::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 2px;
    pointer-events: none;
}

.tema-clasico .mascota-nombre { 
    color: #2c1810; 
    font-family: 'Cormorant Garamond', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tema-clasico .mascota-frase { 
    color: #8b7355; 
    font-style: italic;
    border-left: 3px solid #c9a96e;
    padding-left: 20px;
}

/* Marco decorativo para clásico */
.tema-clasico .homenaje-card::before {
    content: '❦';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #c9a96e;
    opacity: 0.5;
}

/* ============================================
   TEMA 2: JARDÍN DEL EDÉN
   ============================================ */
.tema-jardin {
    background: linear-gradient(180deg, 
        #e8f5e9 0%, 
        #c8e6c9 15%, 
        #a5d6a7 30%, 
        #81c784 45%, 
        #66bb6a 60%, 
        #4caf50 75%, 
        #388e3c 90%, 
        #2e7d32 100%);
    position: relative;
    overflow: hidden;
    color: #1a3a1a;
}

.tema-jardin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Flores */
        radial-gradient(circle at 15% 20%, rgba(255, 183, 197, 0.4) 0%, transparent 30px),
        radial-gradient(circle at 25% 15%, rgba(255, 183, 197, 0.3) 0%, transparent 25px),
        radial-gradient(circle at 85% 25%, rgba(255, 183, 197, 0.4) 0%, transparent 30px),
        radial-gradient(circle at 75% 20%, rgba(255, 183, 197, 0.3) 0%, transparent 25px),
        /* Rayos de sol */
        radial-gradient(circle at 10% 80%, rgba(255, 255, 200, 0.4) 0%, transparent 40px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 200, 0.3) 0%, transparent 35px),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.5) 0%, transparent 60px);
    pointer-events: none;
    animation: jardinSuave 20s ease-in-out infinite;
}

@keyframes jardinSuave {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* Hojas decorativas */
.tema-jardin::after {
    content: '🌿 🍃 🌸 🌺 🌼 🌻 🌷 🌹 🍀 🌱';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 16px;
    opacity: 0.2;
    letter-spacing: 15px;
    pointer-events: none;
    animation: flotarHojas 15s linear infinite;
}

@keyframes flotarHojas {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(10%); }
}

.tema-jardin .mascota-nombre { 
    color: #1b3a1b; 
    text-shadow: 0 2px 4px rgba(255,255,255,0.3);
}
.tema-jardin .mascota-frase { 
    color: #2d5a2d; 
    border-left: 3px solid #66bb6a;
}

/* Marco de enredadera */
.tema-jardin .homenaje-card {
    border: 2px solid rgba(76, 175, 80, 0.3);
    box-shadow: 
        0 0 0 8px rgba(76, 175, 80, 0.1),
        0 0 0 15px rgba(76, 175, 80, 0.05),
        0 20px 40px rgba(0,0,0,0.1);
}

/* ============================================
   TEMA 3: CIELO ESTRELLADO
   ============================================ */
.tema-estrellas {
    background: linear-gradient(180deg, 
        #0a0a1a 0%, 
        #0f0f2a 15%, 
        #151535 30%, 
        #1a1a45 45%, 
        #202055 60%, 
        #252560 75%, 
        #2a2a70 90%, 
        #303080 100%);
    position: relative;
    overflow: hidden;
    color: #c0c0e0;
}

.tema-estrellas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Estrellas grandes */
        radial-gradient(2px 2px at 10% 15%, #ffffff, transparent),
        radial-gradient(2px 2px at 20% 25%, #ffffff, transparent),
        radial-gradient(3px 3px at 30% 10%, #ffd700, transparent),
        radial-gradient(2px 2px at 40% 35%, #ffffff, transparent),
        radial-gradient(1px 1px at 50% 20%, #ffffff, transparent),
        radial-gradient(2px 2px at 60% 40%, #ffd700, transparent),
        radial-gradient(3px 3px at 70% 15%, #ffffff, transparent),
        radial-gradient(2px 2px at 80% 30%, #ffffff, transparent),
        radial-gradient(1px 1px at 90% 20%, #ffd700, transparent),
        radial-gradient(2px 2px at 15% 45%, #ffffff, transparent),
        radial-gradient(1px 1px at 25% 50%, #ffffff, transparent),
        radial-gradient(2px 2px at 35% 55%, #ffd700, transparent),
        radial-gradient(3px 3px at 45% 40%, #ffffff, transparent),
        radial-gradient(1px 1px at 55% 48%, #ffffff, transparent),
        radial-gradient(2px 2px at 65% 38%, #ffd700, transparent),
        radial-gradient(1px 1px at 75% 52%, #ffffff, transparent),
        radial-gradient(2px 2px at 85% 45%, #ffffff, transparent),
        radial-gradient(3px 3px at 95% 42%, #ffd700, transparent),
        /* Nebulosa */
        radial-gradient(ellipse at 30% 60%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 20, 147, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: estrellasParpadeo 5s ease-in-out infinite alternate;
}

@keyframes estrellasParpadeo {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.tema-estrellas::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(0deg, 
        rgba(10, 10, 30, 0.8) 0%, 
        rgba(15, 15, 40, 0.4) 50%, 
        transparent 100%);
    pointer-events: none;
}

.tema-estrellas .mascota-nombre { 
    color: #ffd700; 
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
}
.tema-estrellas .mascota-frase { 
    color: #b8b8ff; 
    border-left: 3px solid #ffd700;
    text-shadow: 0 0 10px rgba(184, 184, 255, 0.3);
}

/* Marco estelar */
.tema-estrellas .homenaje-card {
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.1),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(5px);
}

/* ============================================
   TEMA 4: ATARDECER DORADO
   ============================================ */
.tema-atardecer {
    background: linear-gradient(180deg, 
        #ff9a76 0%, 
        #ff7e67 10%, 
        #ff6b6b 20%, 
        #ee5a24 30%, 
        #f0932b 40%, 
        #fdcb6e 50%, 
        #e1b12c 60%, 
        #c7a500 70%, 
        #e8d5b7 80%, 
        #dfd0b8 90%, 
        #c9b898 100%);
    position: relative;
    overflow: hidden;
    color: #3a2a1a;
}

.tema-atardecer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Sol */
        radial-gradient(circle at 50% 40%, rgba(255, 200, 50, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 200, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 50% 40%, rgba(255, 200, 100, 0.3) 0%, transparent 50%),
        /* Nubes */
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 30px),
        radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.15) 0%, transparent 25px),
        radial-gradient(ellipse at 70% 35%, rgba(255, 255, 255, 0.2) 0%, transparent 35px),
        radial-gradient(ellipse at 80% 28%, rgba(255, 255, 255, 0.15) 0%, transparent 28px);
    pointer-events: none;
    animation: atardecerSuave 15s ease-in-out infinite;
}

@keyframes atardecerSuave {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.tema-atardecer::after {
    content: '🌅';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    opacity: 0.3;
    pointer-events: none;
    animation: solFlotante 4s ease-in-out infinite;
}

@keyframes solFlotante {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.tema-atardecer .mascota-nombre { 
    color: #4a1a0a; 
    text-shadow: 0 2px 4px rgba(255,255,255,0.3);
}
.tema-atardecer .mascota-frase { 
    color: #6a3a2a; 
    border-left: 3px solid #ee5a24;
}

/* ============================================
   TEMA 5: OCÉANO ETERNO
   ============================================ */
.tema-oceano {
    background: linear-gradient(180deg, 
        #e0f7fa 0%, 
        #b2ebf2 15%, 
        #80deea 25%, 
        #4dd0e1 35%, 
        #26c6da 45%, 
        #00bcd4 55%, 
        #0097a7 65%, 
        #00838f 75%, 
        #006064 85%, 
        #004d40 100%);
    position: relative;
    overflow: hidden;
    color: #003d4d;
}

.tema-oceano::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Reflejos de luz */
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%),
        /* Burbujas */
        radial-gradient(circle at 20% 60%, rgba(255,255,255,0.3) 0%, transparent 5px),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.2) 0%, transparent 4px),
        radial-gradient(circle at 60% 70%, rgba(255,255,255,0.3) 0%, transparent 5px),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.2) 0%, transparent 4px);
    pointer-events: none;
}

/* Olas animadas */
.tema-oceano::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: 
        linear-gradient(0deg, rgba(0, 188, 212, 0.3) 0%, transparent 100%);
    pointer-events: none;
    animation: olas 8s ease-in-out infinite;
}

@keyframes olas {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tema-oceano .mascota-nombre { 
    color: #002d3d; 
    text-shadow: 0 2px 4px rgba(255,255,255,0.3);
}
.tema-oceano .mascota-frase { 
    color: #004d5d; 
    border-left: 3px solid #00bcd4;
}

/* Marco marino */
.tema-oceano .homenaje-card {
    border: 2px solid rgba(0, 188, 212, 0.3);
    box-shadow: 
        0 0 30px rgba(0, 188, 212, 0.1),
        inset 0 0 20px rgba(0, 188, 212, 0.05);
}

/* ============================================
   TEMA 6: BOSQUE SAGRADO
   ============================================ */
.tema-bosque {
    background: linear-gradient(180deg, 
        #1a3a1a 0%, 
        #1b4a1b 15%, 
        #1d5a1d 30%, 
        #1f6a1f 45%, 
        #1a5a1a 60%, 
        #154a15 75%, 
        #103a10 90%, 
        #0a2a0a 100%);
    position: relative;
    overflow: hidden;
    color: #c0d0c0;
}

.tema-bosque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Rayos de luz entre árboles */
        linear-gradient(90deg, 
            transparent 20%, 
            rgba(255, 255, 200, 0.05) 25%, 
            transparent 30%,
            transparent 60%, 
            rgba(255, 255, 200, 0.05) 65%, 
            transparent 70%),
        /* Partículas flotantes */
        radial-gradient(circle at 30% 40%, rgba(255, 255, 200, 0.1) 0%, transparent 5px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 200, 0.1) 0%, transparent 5px),
        radial-gradient(circle at 50% 30%, rgba(255, 255, 200, 0.1) 0%, transparent 5px);
    pointer-events: none;
    animation: bosqueLuz 10s ease-in-out infinite;
}

@keyframes bosqueLuz {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.tema-bosque .mascota-nombre { 
    color: #90ee90; 
    text-shadow: 0 0 15px rgba(144, 238, 144, 0.3);
}
.tema-bosque .mascota-frase { 
    color: #a0d0a0; 
    border-left: 3px solid #4caf50;
}

/* ============================================
   SELECTOR DE TEMAS MEJORADO
   ============================================ */
.temas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.tema-option {
    cursor: pointer;
    text-align: center;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.tema-option:hover {
    border-color: #c9a96e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tema-option.selected {
    border-color: #c9a96e;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.1), rgba(232, 213, 183, 0.1));
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.2);
}

.tema-preview {
    width: 100%;
    height: 70px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    overflow: hidden;
}

.tema-preview.clasico {
    background: linear-gradient(135deg, #f5f0e8, #c9b898);
}
.tema-preview.clasico::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(201, 169, 110, 0.5);
    border-radius: 3px;
}

.tema-preview.jardin {
    background: linear-gradient(180deg, #e8f5e9, #4caf50);
}
.tema-preview.jardin::after {
    content: '🌸';
    position: absolute;
    font-size: 12px;
    animation: flotarFlores 3s ease-in-out infinite;
}

@keyframes flotarFlores {
    0%, 100% { top: 10px; left: 10px; }
    25% { top: 15px; left: 20px; }
    50% { top: 10px; left: 30px; }
    75% { top: 5px; left: 20px; }
}

.tema-preview.estrellas {
    background: linear-gradient(180deg, #0a0a1a, #303080);
}
.tema-preview.estrellas::after {
    content: '⭐';
    position: absolute;
    font-size: 10px;
    top: 10px;
    left: 10px;
    animation: estrellaBrilla 1s ease-in-out infinite;
}
.tema-preview.estrellas::before {
    content: '✨';
    position: absolute;
    font-size: 8px;
    top: 20px;
    right: 15px;
    animation: estrellaBrilla 1.5s ease-in-out infinite reverse;
}

@keyframes estrellaBrilla {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.tema-preview.atardecer {
    background: linear-gradient(180deg, #ff9a76, #c7a500);
}

.tema-preview.oceano {
    background: linear-gradient(180deg, #e0f7fa, #00bcd4);
}

.tema-preview.bosque {
    background: linear-gradient(180deg, #1a3a1a, #0a2a0a);
}

/* ============================================
   TARJETAS DE HOMENAJE MEJORADAS
   ============================================ */
.homenaje-card {
    position: relative;
    padding: 50px 40px;
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.homenaje-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    pointer-events: none;
}

/* ============================================
   MÚSICA DE FONDO
   ============================================ */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 169, 110, 0.3);
}

.music-control:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.music-icon {
    font-size: 1.5rem;
    animation: musicPulse 2s ease-in-out infinite;
}

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

.music-text {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .temas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .homenaje-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .temas-grid {
        grid-template-columns: 1fr;
    }
}