:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --text-dark: #2d3436;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-image: url('fondo-familia.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow-x: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    padding-bottom: 4rem;
    text-align: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideDown 1s ease-out;
}

.text-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 0.5s both;
    max-width: 90%;
}

.btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:active {
    transform: scale(0.95);
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), #ff8787);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.secondary-btn {
    background: linear-gradient(45deg, var(--secondary-color), #63e6de);
    color: white;
    margin-top: 1.5rem;
}

.secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.panel {
    margin-top: 1.5rem;
    transition: all 0.5s ease;
    width: 100%;
}

.panel.hidden {
    display: none;
}

.panel.visible {
    animation: fadeIn 0.5s ease forwards;
}

.family-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

@media (min-width: 600px) {
    .family-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.family-btn {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.family-btn:hover, .family-btn.active {
    background: white;
    color: var(--text-dark);
    transform: translateY(-3px);
}

.members-card {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.members-card.visible {
    transform: scale(1);
    opacity: 1;
}

.members-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.members-card p {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Animaciones */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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