/* ====================================
   ANA50 - Invitacion 50 Anos Pitufos
   Cada seccion es un bloque independiente
   ==================================== */

/* --- BASE --- */
body.page-id-5 {
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 30%, #E8F4F8 60%, #FFFFFF 100%) !important;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
}

/* Remove default block editor spacing */
.page-id-5 .entry-content,
.page-id-5 .wp-block-group {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-id-5 p {
    margin-bottom: 0;
}

/* --- SMURFS BAR --- */
.wp-block-separator.smurfs-bar-sep {
    background: #1E90FF !important;
    height: 40px !important;
    border: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    overflow: hidden;
}

.wp-block-separator.smurfs-bar-sep::before {
    content: '🍄';
    position: absolute;
    left: 20px;
    top: 5px;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

.wp-block-separator.smurfs-bar-sep::after {
    content: '🍄';
    position: absolute;
    right: 20px;
    top: 5px;
    font-size: 24px;
    animation: float 3s ease-in-out infinite 1.5s;
}

/* --- HERO --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px !important;
    background: linear-gradient(180deg, #1E90FF 0%, #4169E1 40%, #6495ED 70%, #87CEEB 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '🍄';
    position: absolute;
    font-size: 120px;
    opacity: 0.3;
    bottom: 40px;
    left: 30px;
    transform: scaleX(-1);
}

.hero-section::after {
    content: '🍄';
    position: absolute;
    font-size: 120px;
    opacity: 0.3;
    bottom: 40px;
    right: 30px;
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    pointer-events: none;
}

.star {
    position: absolute;
    color: #FFD700;
    font-size: 20px;
    animation: twinkle 2s ease-in-out infinite;
}

.star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.4s; font-size: 15px; }
.star:nth-child(3) { top: 30%; left: 5%; animation-delay: 0.8s; font-size: 25px; }
.star:nth-child(4) { top: 40%; right: 10%; animation-delay: 1.2s; font-size: 18px; }
.star:nth-child(5) { top: 15%; left: 20%; animation-delay: 1.6s; }
.star:nth-child(6) { top: 25%; right: 25%; animation-delay: 2s; font-size: 22px; }
.star:nth-child(7) { top: 45%; left: 15%; animation-delay: 0.6s; }
.star:nth-child(8) { top: 35%; right: 5%; animation-delay: 1s; font-size: 12px; }

.smurf-icon {
    margin: 0 auto 20px !important;
    width: 80px !important;
    animation: bounce-smurf 2s ease-in-out infinite;
}

.smurf-icon img {
    width: 80px !important;
    height: auto !important;
}

.hero-subtitle {
    font-family: 'Fredoka One', cursive !important;
    font-size: 28px !important;
    color: #FFF8DC !important;
    font-weight: 300 !important;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 30px !important;
    position: relative;
    z-index: 2;
}

.hero-name {
    font-family: 'Fredoka One', cursive !important;
    font-size: 100px !important;
    color: #FFD700 !important;
    text-shadow: 4px 4px 0 #1E90FF, 8px 8px 0 rgba(0,0,0,0.3) !important;
    margin: 0 0 20px !important;
    position: relative;
    z-index: 2;
    line-height: 1.1 !important;
}

.hero-title {
    font-family: 'Fredoka One', cursive !important;
    font-size: 72px !important;
    color: #FFFFFF !important;
    text-shadow: 3px 3px 0 #1E90FF, 6px 6px 0 rgba(0,0,0,0.2) !important;
    margin: 0 0 10px !important;
    position: relative;
    z-index: 2;
    line-height: 1.1 !important;
}

.hero-date {
    font-family: 'Nunito', sans-serif !important;
    font-size: 24px !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    background: rgba(255,255,255,0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 15px 40px !important;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.4);
    position: relative;
    z-index: 2;
    display: inline-block !important;
    width: auto !important;
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 80px 20px !important;
    text-align: center;
    position: relative;
}

.section-title {
    font-family: 'Fredoka One', cursive !important;
    font-size: 42px !important;
    color: #1E90FF !important;
    margin-bottom: 20px !important;
    position: relative;
    display: inline-block !important;
}

.section-title::after {
    content: '• • •';
    display: block;
    font-size: 20px;
    color: #FFD700;
    letter-spacing: 10px;
    margin-top: 10px;
}

.section-subtitle {
    font-size: 18px !important;
    color: #666 !important;
    font-weight: 300 !important;
    max-width: 600px;
    margin: 0 auto 40px !important;
}

/* --- INVITATION --- */
.invitation-section { background: #FFFFFF !important; }

.invite-text {
    font-size: 22px !important;
    color: #444 !important;
    line-height: 1.8 !important;
    max-width: 700px;
    margin: 0 auto !important;
    font-weight: 300 !important;
}

.invite-text strong { color: #1E90FF !important; }

/* --- STORY --- */
.story-section {
    background: linear-gradient(135deg, #E8F4F8 0%, #F0F8FF 100%) !important;
}

.story-smurf { margin-bottom: 20px !important; }
.story-smurf img { width: 80px !important; height: auto !important; }

.story-text {
    font-size: 18px !important;
    color: #555 !important;
    line-height: 2 !important;
    font-weight: 300 !important;
    text-align: left !important;
    background: white;
    padding: 40px !important;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(30, 144, 255, 0.1);
    border: 2px solid rgba(30, 144, 255, 0.1);
    max-width: 800px;
    margin: 0 auto !important;
    position: relative;
}

.story-text::before {
    content: '\201C';
    font-family: 'Fredoka One', cursive;
    font-size: 80px;
    color: #1E90FF;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 20px;
}

/* --- FAMILY --- */
.family-section { background: #FFFFFF !important; }

.family-smurf { margin-bottom: 10px !important; }
.family-smurf img { width: 60px !important; height: auto !important; }

.family-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.family-card {
    background: linear-gradient(135deg, #F0F8FF, #E8F4F8);
    padding: 30px;
    border-radius: 20px;
    min-width: 250px;
    flex: 1;
    max-width: 350px;
    border: 2px solid rgba(30, 144, 255, 0.1);
    transition: transform 0.3s ease;
}

.family-card:hover { transform: translateY(-5px); }

.family-card .relation {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: #1E90FF;
    margin-bottom: 5px;
}

.family-card .name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.family-card .message {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
}

/* --- GODPARENTS --- */
.godparents-section {
    background: linear-gradient(135deg, #E8F4F8 0%, #F0F8FF 100%) !important;
}

.godparents-names {
    font-family: 'Fredoka One', cursive !important;
    font-size: 28px !important;
    color: #4169E1 !important;
}

/* --- EVENT --- */
.event-section {
    background: linear-gradient(135deg, #4169E1, #1E90FF) !important;
    color: white !important;
    padding: 80px 20px !important;
}

.event-section .section-title { color: #FFD700 !important; }
.event-section .section-title::after { color: #FFFFFF !important; }

.event-sub {
    font-size: 18px !important;
    font-weight: 300 !important;
    margin-bottom: 40px !important;
    opacity: 0.9;
    color: #fff !important;
}

.event-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    background: rgba(255,255,255,0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    border: 1px solid rgba(255,255,255,0.3);
}

.event-icon { font-size: 50px; margin-bottom: 15px; }

.event-label {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 10px;
}

.event-info {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
    color: #fff !important;
}

.event-info strong { color: #FFD700 !important; }

/* --- DRESS CODE --- */
.dresscode-section { background: #FFFFFF !important; }

.dresscode-text {
    font-size: 20px !important;
    color: #555 !important;
    max-width: 600px;
    margin: 0 auto !important;
    line-height: 1.8 !important;
}

.dresscode-colors {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.color-circle.blue { background: #1E90FF; }
.color-circle.white { background: #FFFFFF; color: #333; }
.color-circle.yellow { background: #FFD700; color: #333; }

/* --- RSVP --- */
.rsvp-section {
    background: linear-gradient(135deg, #E8F4F8, #F0F8FF) !important;
}

.rsvp-button .wp-block-button__link {
    background: #25D366 !important;
    color: white !important;
    padding: 20px 50px !important;
    border-radius: 50px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3) !important;
    display: inline-block !important;
}

.rsvp-button .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4) !important;
    color: white !important;
    background: #25D366 !important;
}

.rsvp-sub {
    font-size: 14px !important;
    color: #888 !important;
    margin-top: 15px !important;
}

/* --- FOOTER --- */
.footer-section {
    background: #1E90FF !important;
    text-align: center;
    padding: 30px 20px !important;
}

.footer-text {
    font-size: 14px !important;
    font-weight: 300 !important;
    opacity: 0.8;
    color: white !important;
    line-height: 2 !important;
}

/* --- KEYFRAMES --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes bounce-smurf {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 40px !important; }
    .hero-name { font-size: 56px !important; }
    .hero-subtitle { font-size: 18px !important; letter-spacing: 4px; }
    .hero-date { font-size: 18px !important; padding: 12px 25px !important; }
    .section-title { font-size: 30px !important; }
    .invite-text { font-size: 18px !important; }
    .story-text { padding: 25px !important; font-size: 16px !important; }
    .family-card { min-width: 200px; }
    .event-card { padding: 25px 20px; }
    .godparents-names { font-size: 22px !important; }
}
