/* ============================================
   HUELITAS CREMATORIO - ESTILO PRINCIPAL
   Diseño minimalista y elegante
   ============================================ */

:root {
    --color-primary: #2c3e50;
    --color-secondary: #c9a96e;
    --color-accent: #e8d5b7;
    --color-bg: #faf9f6;
    --color-white: #ffffff;
    --color-text: #4a4a4a;
    --color-light: #f0ebe3;
    --shadow-elegant: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.1);
    --border-radius: 2px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ============ MARCOS DECORATIVOS ============ */
.corner-frame {
    position: fixed;
    width: 60px;
    height: 60px;
    z-index: 1000;
    pointer-events: none;
}

.corner-frame::before,
.corner-frame::after {
    content: '';
    position: absolute;
    background: var(--color-secondary);
}

.top-left {
    top: 20px;
    left: 20px;
}

.top-left::before {
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    animation: drawVertical 2s ease forwards;
}

.top-left::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    animation: drawHorizontal 2s ease forwards;
}

.top-right {
    top: 20px;
    right: 20px;
}

.top-right::before {
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
}

.top-right::after {
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
}

.bottom-left::before {
    bottom: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.bottom-left::after {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
}

.bottom-right::before {
    bottom: 0;
    right: 0;
    width: 3px;
    height: 100%;
}

.bottom-right::after {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
}

@keyframes drawVertical {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes drawHorizontal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ============ CONTENEDOR PRINCIPAL ============ */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px;
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ EMBLEMA ============ */
.emblem-container {
    margin-bottom: 40px;
}

.emblem-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s ease-in-out infinite;
    position: relative;
}

.emblem-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--color-secondary);
    border-radius: 50%;
    opacity: 0.3;
}

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

.paw-svg {
    width: 60px;
    height: 60px;
}

/* ============ TÍTULOS ============ */
.title-section {
    margin-bottom: 50px;
}

.main-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-secondary);
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.tagline {
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ============ BOTONES ELEGANTES ============ */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto 60px;
}

.btn-elegant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px;
    background: var(--color-white);
    border: 1px solid var(--color-accent);
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    text-decoration: none;
}

.btn-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-elegant:hover::before {
    left: 100%;
}

.btn-elegant:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

.btn-icon {
    font-size: 1.4rem;
    margin-right: 15px;
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-arrow {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

.btn-elegant:hover .btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

.btn-primary { border-left: 3px solid var(--color-secondary); }
.btn-secondary { border-left: 3px solid #a5d6a7; }
.btn-tertiary { border-left: 3px solid #90caf9; }

/* ============ ESTADÍSTICAS ============ */
.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px;
    border-top: 1px solid var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-accent);
}

/* ============ FOOTER ============ */
.minimal-footer {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
}

.minimal-footer p {
    font-size: 0.75rem;
    color: #ccc;
    letter-spacing: 2px;
}

/* ============ FORMULARIOS ============ */
.obituario-container,
.homenajes-container,
.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.form-elegante {
    background: var(--color-white);
    padding: 50px;
    border-radius: 2px;
    box-shadow: var(--shadow-elegant);
    position: relative;
}

.form-elegante::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--color-accent);
    pointer-events: none;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.input-group-elegant {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.input-elegant {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-accent);
    background: var(--color-bg);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: var(--transition-smooth);
}

.input-elegant:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

textarea.input-elegant {
    resize: vertical;
    min-height: 100px;
}

select.input-elegant {
    cursor: pointer;
}

.file-upload-elegant {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-area {
    border: 2px dashed var(--color-accent);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.file-upload-area:hover {
    border-color: var(--color-secondary);
    background: rgba(201, 169, 110, 0.05);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.file-upload-text {
    font-size: 0.9rem;
    color: #999;
}

/* ============ HOMENAJE CREADO ============ */
.homenaje-card {
    background: var(--color-white);
    padding: 60px;
    box-shadow: var(--shadow-elegant);
    position: relative;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.homenaje-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--color-secondary);
    opacity: 0.3;
    pointer-events: none;
}

.vela-virtual {
    font-size: 4rem;
    animation: flicker 2s ease-in-out infinite;
    margin-bottom: 20px;
    display: block;
}

@keyframes flicker {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    25% { opacity: 1; transform: scale(1.05); }
    50% { opacity: 0.9; transform: scale(1); }
    75% { opacity: 1; transform: scale(1.02); }
}

.mascota-foto {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    margin: 30px auto;
    display: block;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.mascota-nombre {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.mascota-frase {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--color-secondary);
    padding: 20px 40px;
    position: relative;
    line-height: 1.8;
}

.mascota-frase::before,
.mascota-frase::after {
    content: '"';
    font-size: 3rem;
    color: var(--color-accent);
    position: absolute;
}

.mascota-frase::before {
    top: 0;
    left: 0;
}

.mascota-frase::after {
    bottom: -20px;
    right: 0;
}

.propietario-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-accent);
}

.propietario-nombre {
    font-size: 1rem;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.fecha-homenaje {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
    letter-spacing: 1px;
}

.acciones-homenaje {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-accion {
    padding: 12px 25px;
    border: 1px solid var(--color-accent);
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-accion:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* ============ HEADER DE PÁGINAS ============ */
.header-homenajes {
    text-align: center;
    margin-bottom: 40px;
}

.titulo-pagina {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--color-primary);
    margin: 20px 0;
}

.subtitulo-pagina {
    color: #999;
    letter-spacing: 2px;
}

.btn-volver {
    background: none;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 10px 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: absolute;
    top: 30px;
    left: 30px;
}

.btn-volver:hover {
    background: var(--color-secondary);
    color: white;
}

/* ============ ANIMACIONES ============ */
@keyframes flotarParticula {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes flotarVela {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .corner-frame {
        width: 40px;
        height: 40px;
    }
    
    .main-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .form-elegante {
        padding: 30px 20px;
    }
    
    .homenaje-card {
        padding: 30px 20px;
    }
    
    .mascota-foto {
        width: 200px;
        height: 200px;
    }
    
    .mascota-nombre {
        font-size: 2rem;
    }
    
    .acciones-homenaje {
        flex-direction: column;
    }
    
    .btn-volver {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .btn-elegant {
        padding: 15px 20px;
        font-size: 0.8rem;
    }
    
    .mascota-frase {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
}