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

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3b82f6;
    --secondary-color: #ec4899;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #fafafa;
    --border-color: #e5e5e5;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Pantallas */
.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

@media (min-width: 640px) {
    .screen {
        padding: 24px;
    }
}

@media (min-width: 768px) {
    .screen {
        padding: 32px 24px;
    }
}

.screen.active {
    display: block;
}

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

/* Contenedor */
.container, .guest-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 640px) {
    .container, .guest-container {
        max-width: 640px;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .container, .guest-container {
        max-width: 728px;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .container, .guest-container {
        max-width: 960px;
        padding: 0;
    }
}

.header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    padding: 60px 16px 0 16px;
    width: 100%;
}

@media (min-width: 640px) {
    .header {
        padding: 60px 32px 0 32px;
        margin-bottom: 28px;
    }
}

@media (min-width: 768px) {
    .header {
        padding: 60px 40px 0 40px;
        margin-bottom: 32px;
    }
}
/* Secciones de preview a todo ancho, sin esquinas redondeadas */
.guest-view,
.admin-preview-header {
    display: block;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 24px;
    border-radius: 0;
    padding: 0 0 32px 0;
    overflow: hidden;
}

/* Hero banner para contener efectos visuales */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    padding: 0;
}

/* Contenido interno centrado y consistente */
.invitation-card-header,
.tabs-navigation,
.tab-content-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
}

/* Asegura que las pestañas y su contenido queden centrados y con respiro lateral */
.tabs-navigation {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 0 12px;
    margin: 0 auto 12px;
    width: 100%;
    scroll-behavior: smooth;
}

.tabs-navigation::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.tabs-navigation {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tab-button svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 640px) {
    .tab-button {
        padding: 10px 12px;
        font-size: 11px;
    }

    .tab-button svg {
        width: 16px;
        height: 16px;
    }
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    width: min(1200px, 100% - 32px);
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 12px;
}

/* Bloque de contenido inferior (Personalización, Compartir) separado visualmente */
.summary-section {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 24px 16px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.main-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeInScale 0.6s ease;
}

.title-icon {
    transition: all 0.3s ease;
}

.main-title:hover .title-icon {
    transform: scale(1.2) rotate(10deg);
}

.main-title .title-icon:first-child {
    color: var(--primary-color);
    animation: bounce 2s ease-in-out infinite;
}

.main-title .title-icon:last-child {
    color: #fbbf24;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

.header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .header h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .header h2 {
        font-size: 2rem;
    }
}

.header p {
    font-size: 1rem;
    color: var(--text-light);
}

.back-btn {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    font-weight: 500;
}

.back-btn:hover {
    opacity: 0.7;
}

/* Selección de Género */
.gender-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.gender-btn {
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.gender-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gender-btn.selected {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gender-btn.boy {
    color: #3b82f6;
    border-color: #3b82f6;
}

.gender-btn.boy:hover {
    background: #eff6ff;
}

.gender-btn.girl {
    color: #ec4899;
    border-color: #ec4899;
}

.gender-btn.girl:hover {
    background: #fdf2f8;
}

/* Grid de Colores */
.color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 8px;
}

.color-option {
    aspect-ratio: 1;
    border-radius: 20px;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
}

.color-option:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.color-option.selected {
    border: 4px solid var(--text-dark);
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(0, 0, 0, 0.2);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    z-index: 10;
}

@media (min-width: 640px) {
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 0;
    }
}

/* Grid de Efectos */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
    padding: 0;
}

.effect-option {
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
    border: 3px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

@media (min-width: 640px) {
    .effects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .effect-option {
        padding: 28px 16px;
        min-height: 160px;
    }
}

@media (min-width: 768px) {
    .effects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .effect-option {
        padding: 32px 16px;
        min-height: 180px;
    }
}

@media (min-width: 1024px) {
    .effects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.effect-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Contenedor de vista previa */
.effect-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* BALONES - 3 pelotas flotando */
.preview-ball {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.25;
}

.preview-ball-1 {
    width: 20px;
    height: 20px;
    top: 25%;
    left: 15%;
    animation: floatBall1 3s ease-in-out infinite;
}

.preview-ball-2 {
    width: 14px;
    height: 14px;
    top: 55%;
    right: 20%;
    animation: floatBall2 2.5s ease-in-out infinite 0.5s;
}

.preview-ball-3 {
    width: 18px;
    height: 18px;
    bottom: 30%;
    left: 25%;
    animation: floatBall3 2.8s ease-in-out infinite 1s;
}

@keyframes floatBall1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(12px, -15px) scale(1.1); }
    50% { transform: translate(22px, 5px) scale(0.9); }
    75% { transform: translate(10px, 15px) scale(1.05); }
}

@keyframes floatBall2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-15px, -12px) scale(0.85); }
    66% { transform: translate(-8px, 12px) scale(1.15); }
}

@keyframes floatBall3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10px, -20px) scale(1.2); }
}

/* HUELLITAS - Caminando */
.preview-footprint {
    position: absolute;
    width: 10px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 40% 40% 60% 60%;
    opacity: 0.2;
}

.preview-footprint-1 {
    top: 25%;
    left: 15%;
    animation: walkFootprint1 3s ease-in-out infinite;
}

.preview-footprint-2 {
    top: 35%;
    left: 20%;
    animation: walkFootprint2 3s ease-in-out infinite 0.4s;
}

.preview-footprint-3 {
    top: 28%;
    left: 17%;
    animation: walkFootprint3 3s ease-in-out infinite 0.8s;
}

@keyframes walkFootprint1 {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    10% { opacity: 0.25; }
    20% { transform: translate(12px, -3px) scale(1); }
    40% { transform: translate(24px, 0) scale(0.9); opacity: 0.3; }
    60% { transform: translate(36px, 3px) scale(0.85); opacity: 0.2; }
    80%, 100% { transform: translate(48px, 0) scale(0.8); opacity: 0; }
}

@keyframes walkFootprint2 {
    0% { transform: translate(0, 5px) scale(0.8); opacity: 0; }
    10% { opacity: 0.25; }
    20% { transform: translate(12px, 2px) scale(1); }
    40% { transform: translate(24px, 5px) scale(0.9); opacity: 0.3; }
    60% { transform: translate(36px, 8px) scale(0.85); opacity: 0.2; }
    80%, 100% { transform: translate(48px, 5px) scale(0.8); opacity: 0; }
}

@keyframes walkFootprint3 {
    0% { transform: translate(0, -2px) scale(0.8); opacity: 0; }
    10% { opacity: 0.25; }
    20% { transform: translate(12px, -5px) scale(1); }
    40% { transform: translate(24px, -3px) scale(0.9); opacity: 0.3; }
    60% { transform: translate(36px, 0) scale(0.85); opacity: 0.2; }
    80%, 100% { transform: translate(48px, -2px) scale(0.8); opacity: 0; }
}

/* ANIMALES - Saltando */
.preview-animal {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.28;
}

.preview-animal-1 {
    top: 50%;
    left: 20%;
    animation: jumpAnimal1 2.2s ease-in-out infinite;
}

.preview-animal-2 {
    top: 45%;
    right: 25%;
    animation: jumpAnimal2 2.5s ease-in-out infinite 0.6s;
}

@keyframes jumpAnimal1 {
    0%, 100% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-22px) scale(1.15); }
    40% { transform: translateY(-8px) scale(0.95); }
    60% { transform: translateY(-18px) scale(1.08); }
    80% { transform: translateY(-5px) scale(0.98); }
}

@keyframes jumpAnimal2 {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    25% { transform: translateY(-18px) scale(1.1) rotate(10deg); }
    50% { transform: translateY(-5px) scale(0.95) rotate(-5deg); }
    75% { transform: translateY(-12px) scale(1.05) rotate(5deg); }
}

/* ONDAS - Movimiento de agua */
.preview-wave {
    position: absolute;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.25;
}

.preview-wave-1 {
    width: 35px;
    top: 32%;
    left: 10%;
    animation: waveMove1 2.8s ease-in-out infinite;
}

.preview-wave-2 {
    width: 28px;
    top: 48%;
    left: 15%;
    animation: waveMove2 3.2s ease-in-out infinite 0.8s;
}

.preview-wave-3 {
    width: 32px;
    top: 62%;
    left: 12%;
    animation: waveMove3 3s ease-in-out infinite 1.5s;
}

@keyframes waveMove1 {
    0%, 100% { transform: translateX(0) scaleX(1); opacity: 0.2; }
    50% { transform: translateX(32px) scaleX(1.4); opacity: 0.3; }
}

@keyframes waveMove2 {
    0%, 100% { transform: translateX(0) scaleX(1); opacity: 0.25; }
    50% { transform: translateX(28px) scaleX(1.3); opacity: 0.35; }
}

@keyframes waveMove3 {
    0%, 100% { transform: translateX(0) scaleX(1); opacity: 0.22; }
    50% { transform: translateX(35px) scaleX(1.35); opacity: 0.32; }
}

/* CARROS - Desplazamiento */
.preview-car {
    position: absolute;
    width: 20px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 0;
}

.preview-car-1 {
    top: 40%;
    left: -25px;
    animation: carMove1 3.5s linear infinite;
}

.preview-car-2 {
    top: 58%;
    left: -25px;
    width: 16px;
    height: 10px;
    animation: carMove2 4s linear infinite 1.5s;
}

@keyframes carMove1 {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 0.3; }
    85% { opacity: 0.3; }
    100% { transform: translateX(140px); opacity: 0; }
}

@keyframes carMove2 {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 0.28; }
    85% { opacity: 0.28; }
    100% { transform: translateX(140px); opacity: 0; }
}

/* HERRAMIENTAS - Rotación */
.preview-tool {
    position: absolute;
    background: var(--primary-color);
    opacity: 0.26;
}
/* Full-bleed preview sections */
.guest-view,
.admin-preview-header {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.invitation-card-header,
.summary-section,
.tabs-navigation,
.tab-content-card {
    max-width: 900px;
    margin: 0 auto;
}

.preview-tool-1 {
    width: 14px;
    height: 14px;
    border-radius: 25%;
    top: 28%;
    right: 22%;
    animation: toolRotate1 3s ease-in-out infinite;
}

.preview-tool-2 {
    width: 18px;
    height: 18px;
    border-radius: 20%;
    bottom: 32%;
    left: 18%;
    animation: toolRotate2 3.5s ease-in-out infinite 0.8s;
}

.preview-tool-3 {
    width: 12px;
    height: 12px;
    border-radius: 30%;
    top: 55%;
    right: 28%;
    animation: toolRotate3 2.8s ease-in-out infinite 1.5s;
}

@keyframes toolRotate1 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.25); }
}

@keyframes toolRotate2 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-180deg) scale(1.15); }
}

@keyframes toolRotate3 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(360deg) scale(1.3); }
}

.effect-option:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.effect-option:hover::before {
    opacity: 0.05;
}

/* Intensificar animaciones al hover */
.effect-option:hover .preview-ball {
    opacity: 0.35;
    animation-duration: 2s;
}

.effect-option:hover .preview-footprint {
    opacity: 0.32;
    animation-duration: 2.2s;
}

.effect-option:hover .preview-animal {
    opacity: 0.38;
    animation-duration: 1.8s;
}

.effect-option:hover .preview-wave {
    opacity: 0.35;
    animation-duration: 2.3s;
}

.effect-option:hover .preview-car {
    animation-duration: 2.8s;
}

.effect-option:hover .preview-tool {
    opacity: 0.36;
    animation-duration: 2.2s;
}

.effect-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

body.girl-theme .effect-option.selected {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.effect-option.selected .effect-icon {
    animation: iconPop 0.5s ease;
}

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

.effect-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

.effect-option.disabled:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.effect-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .effect-icon {
        width: 72px;
        height: 72px;
        padding: 16px;
    }
}

@media (min-width: 768px) {
    .effect-icon {
        width: 64px;
        height: 64px;
        padding: 14px;
    }
}

.effect-option:hover .effect-icon {
    background: var(--white);
    transform: rotate(5deg);
}

.effect-option.selected .effect-icon {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.effect-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.effect-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

@media (min-width: 640px) {
    .effect-name {
        font-size: 0.95rem;
    }
}

.selected-effects {
    background: linear-gradient(135deg, var(--white) 0%, #f9fafb 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.selected-effects:has(.selected-effect-tag) {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

body.girl-theme .selected-effects:has(.selected-effect-tag) {
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.15);
}

.selected-effects p {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}

.selected-effects p #effectCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    animation: countPulse 0.3s ease;
}

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

.selected-effects-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 36px;
}

.selected-effect-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    animation: tagSlideIn 0.3s ease;
    transition: all 0.3s ease;
}

body.girl-theme .selected-effect-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, #db2777 100%);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.selected-effect-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

body.girl-theme .selected-effect-tag:hover {
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.selected-effect-tag button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 2px 6px;
    margin: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: 700;
}

.selected-effect-tag button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* Grid de Temas */
.theme-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0;
}

.theme-option {
    background: linear-gradient(135deg, var(--white) 0%, #f9fafb 100%);
    border: 3px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

@media (min-width: 640px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .theme-option {
        padding: 28px 24px;
        min-height: 110px;
    }
}

@media (min-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.theme-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.theme-option:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.theme-option:hover::before {
    opacity: 0.05;
}

.theme-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    border-width: 3px;
}

body.girl-theme .theme-option.selected {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
}

.theme-option.selected .theme-icon {
    animation: themeIconBounce 0.6s ease;
}

@keyframes themeIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
}

.theme-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.theme-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e5e7eb 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .theme-icon {
        width: 75px;
        height: 75px;
    }
}

@media (min-width: 768px) {
    .theme-icon {
        width: 70px;
        height: 70px;
    }
}

.theme-option:hover .theme-icon {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    transform: rotate(-5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.theme-option.selected .theme-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

body.girl-theme .theme-option.selected .theme-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #db2777 100%);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

.theme-icon svg {
    display: block;
    transition: all 0.3s ease;
}

.theme-option.selected .theme-icon svg {
    color: white;
}

.detail-icon svg {
    display: block;
}

.theme-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.theme-option.selected .theme-name {
    color: var(--primary-color);
}

.theme-description {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 400;
}

.theme-preview {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f3f4f6 100%);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    border: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.theme-option:hover .theme-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    transform: translateY(-2px);
}

.theme-option.selected .theme-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-color: var(--primary-color);
    color: var(--text-dark);
    font-weight: 500;
}

/* Formulario */
.form {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 36px;
    animation: fadeInUp 0.4s ease;
}

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

.form-section:nth-child(1) { animation-delay: 0s; }
.form-section:nth-child(2) { animation-delay: 0.08s; }
.form-section:nth-child(3) { animation-delay: 0.16s; }
.form-section:nth-child(4) { animation-delay: 0.24s; }
.form-section:nth-child(5) { animation-delay: 0.32s; }
.form-section:nth-child(6) { animation-delay: 0.4s; }
.form-section:nth-child(7) { animation-delay: 0.48s; }

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
}

.form-section:hover .form-section-title {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.form-section-title svg {
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section:hover .form-section-title svg {
    transform: scale(1.1) rotate(5deg);
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="time"],
.form input[type="url"],
.form input[type="number"],
.form textarea,
.form-control {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 0;
    font-size: 1rem;
    margin-bottom: 24px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    font-weight: 300;
    position: relative;
}

.form input[type="text"]::placeholder,
.form input[type="tel"]::placeholder,
.form input[type="url"]::placeholder,
.form textarea::placeholder {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.form input:focus::placeholder,
.form textarea:focus::placeholder {
    color: #94a3b8;
}

.submit-btn.confirm-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn.confirm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn.confirm-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn.confirm-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.submit-btn.confirm-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.form input:focus,
.form textarea:focus,
.form-control:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
    box-shadow: none;
    transform: none;
}

body.girl-theme .form input:focus,
body.girl-theme .form textarea:focus,
body.girl-theme .form-control:focus {
    border-bottom-color: var(--primary-color);
}

.form input:hover,
.form textarea:hover,
.form-control:hover {
    border-bottom-color: #94a3b8;
}

.date-time-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.input-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-modern label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.input-modern input {
    padding: 14px 0;
    font-size: 1rem;
    margin-bottom: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-modern input:focus + label,
.input-modern input:not(:placeholder-shown) + label {
    color: var(--primary-color);
}

.input-modern input:focus {
    border-bottom-color: var(--primary-color);
    transform: translateY(-2px);
}

.map-links-input {
    display: grid;
    gap: 14px;
}

.map-preview {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease-in-out;
}

.pac-container {
    border-radius: 8px;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 4px;
    font-family: inherit;
    z-index: 10000;
}

.pac-item {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.pac-item:hover {
    background-color: #f3f4f6;
}

.pac-icon {
    margin-right: 12px;
}

.pac-item-query {
    font-weight: 500;
    color: #1f2937;
}

@media (max-width: 640px) {
    .date-time-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.phone-input {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
}

.phone-input input {
    margin-bottom: 0;
}

/* Selector de país internacional */
.phone-input-international {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
}

.country-selector-wrapper {
    position: relative;
    user-select: none;
}

.selected-country {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.selected-country::after {
    content: '▼';
    position: absolute;
    right: 12px;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #64748b;
}

.country-selector-wrapper.active .selected-country::after {
    transform: rotate(180deg);
}

.selected-country:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.country-selector-wrapper.active .selected-country {
    border-color: var(--primary-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.country-selector-wrapper.active .country-dropdown {
    display: block;
    max-height: 400px;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-search {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.9rem;
    outline: none;
    background: #f8fafc;
    margin: 0;
    font-family: inherit;
}

.country-search:focus {
    border-bottom-color: var(--primary-color);
    background: var(--white);
}

.country-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f5f9;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.country-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateX(4px);
}

body.girl-theme .country-option:hover {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.country-flag {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.country-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 400;
}

.country-code-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
}

.country-option:hover .country-code-label {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 640px) {
    .phone-input-international {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .country-selector-wrapper {
        width: 100%;
    }
    
    .selected-country {
        padding: 12px 14px;
    }
}

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

/* Radio Options */
.gift-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.radio-option:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.radio-option:has(input:checked) {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-color);
    font-weight: 600;
}

body.girl-theme .radio-option:has(input:checked) {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.radio-option input[type="radio"] {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.custom-gifts {
    margin-top: 12px;
}

.custom-gifts.hidden {
    display: none;
}

/* Botones */
.next-btn,
.confirm-btn,
.copy-btn,
.share-btn,
.new-btn {
    width: 100%;
}

/* Botón flotante fijo en la parte inferior */
.floating-action-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    padding: 18px 28px;
    border: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (min-width: 640px) {
    .floating-action-btn {
        max-width: 600px;
        width: auto;
    }
}

.floating-action-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.floating-action-btn:active {
    transform: translateX(-50%) scale(0.98);
}

/* Ajustar padding del contenedor cuando hay botón flotante */
.screen.has-floating-btn .container {
    padding-bottom: 120px;
}

/* Padding por defecto para todos los contenedores con botones flotantes */
.container {
    padding-bottom: 120px;
}

/* Mensajes inline para feedback sin alertas nativas */
.inline-feedback {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 12px auto 0;
    padding: 12px 14px;
    max-width: 640px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateY(4px);
}

.inline-feedback.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.inline-feedback .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.inline-feedback[data-variant="warn"] {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.45);
    color: #92400e;
}

.inline-feedback[data-variant="error"] {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(239, 68, 68, 0.4);
    color: #991b1b;
}

.inline-feedback[data-variant="info"] {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.22);
    color: #0f172a;
}

/* Temas para niño/niña en botón flotante */
body.boy-theme .floating-action-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

body.girl-theme .floating-action-btn {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

body.boy-theme .floating-action-btn:hover {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

body.girl-theme .floating-action-btn:hover {
    box-shadow: 0 6px 24px rgba(236, 72, 153, 0.5);
}

.submit-btn {
    flex: 1;
    min-width: 200px;
    flex: 1;
    min-width: 200px;
    padding: 16px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preview-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.next-btn,
.submit-btn,
.confirm-btn,
.copy-btn,
.share-btn,
.new-btn {
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.next-btn,
.submit-btn,
.confirm-btn,
.copy-btn,
.share-btn,
.new-btn {
    width: 100%;
}

.next-btn,
.submit-btn,
.confirm-btn {
    background: var(--primary-color);
    color: var(--white);
}

.next-btn:hover,
.submit-btn:hover,
.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    opacity: 0.9;
}

.copy-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.copy-btn:hover {
    background: var(--bg-light);
}

.share-btn {
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.share-btn:hover {
    background: #20BA5A;
}

.new-btn {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.new-btn:hover {
    background: var(--bg-light);
}

/* Vista Previa */
.preview-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.share-section {
    margin-bottom: 24px;
}

#shareLink {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-family: monospace;
    background: var(--bg-light);
}

/* Tarjeta de Invitación */
.invitation-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

/* Efectos flotantes */
.floating-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    opacity: 0.15;
    animation: float 15s infinite ease-in-out;
}

.floating-icon svg {
    width: 100%;
    height: 100%;
}

.floating-icon:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    width: 50px;
    height: 50px;
    top: 30%;
    right: 10%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    width: 70px;
    height: 70px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

.floating-icon:nth-child(4) {
    width: 55px;
    height: 55px;
    top: 60%;
    right: 5%;
    animation-delay: 1s;
}

.floating-icon:nth-child(5) {
    width: 65px;
    height: 65px;
    top: 80%;
    left: 50%;
    animation-delay: 3s;
}

.floating-icon:nth-child(6) {
    width: 45px;
    height: 45px;
    top: 20%;
    left: 70%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(3deg);
    }
}

.invitation-card-content {
    position: relative;
    z-index: 2;
}

.invitation-card h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    text-align: center;
}

.invitation-card .baby-name {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 24px 0;
}

.invitation-card .parents {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.invitation-card .message {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-light);
}

.invitation-card .event-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
}

.map-links {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.map-link {
    padding: 6px 12px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.map-link:hover {
    opacity: 0.8;
}

.gift-list {
    margin-top: 32px;
}

.gift-list h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    text-align: center;
}

.gift-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.gift-icon {
    width: 40px;
    height: 40px;
}

.gift-icon svg {
    width: 100%;
    height: 100%;
}

.gift-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Vista Previa para Administrador */
.admin-preview-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    animation: fadeInUp 0.5s ease;
}

.preview-header {
    padding: 60px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.preview-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

.preview-gender-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
    animation: iconBreathe 3s ease-in-out infinite;
}

.preview-gender-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.preview-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.preview-baby-name {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 4px;
    margin: 16px 0;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.preview-parents {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.95;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.preview-body {
    padding: 40px 32px;
}

.preview-info-section,
.preview-message-section,
.preview-gifts-section,
.preview-theme-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.preview-theme-section {
    border-bottom: none;
    margin-bottom: 0;
}

.preview-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.preview-info-grid {
    display: grid;
    gap: 16px;
}

.preview-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.preview-info-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.preview-info-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.preview-info-item > div {
    flex: 1;
}

.preview-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}

.preview-value {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    display: block;
}

.preview-message {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.preview-gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.preview-gift-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.preview-gift-item:hover {
    background: #e2e8f0;
    transform: scale(1.02);
}

.preview-gift-icon {
    font-size: 1.5rem;
}

.preview-gift-name {
    font-weight: 500;
    color: var(--text-dark);
}

.preview-gift-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.preview-theme-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.preview-theme-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.preview-color-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 640px) {
    .preview-header {
        padding: 40px 24px;
    }
    
    .preview-body {
        padding: 32px 24px;
    }
    
    .preview-title {
        font-size: 1.5rem;
    }
    
    .preview-baby-name {
        font-size: 2rem;
    }
    
    .preview-gifts-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-theme-info {
        grid-template-columns: 1fr;
    }
}

/* Confirmación de Asistencia */
.confirmation-section {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.confirmation-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* Vista de Invitado - Tarjeta Continua */
.guest-invitation-full {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

/* Navegación de invitado */
.guest-navigation {
    display: flex;
    gap: 0;
    padding: 0;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.guest-navigation::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    flex: 1;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.02);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(0,0,0,0.02);
}

.nav-btn.active svg {
    animation: iconBounce 0.6s ease;
}

/* Contador de confirmaciones */
.confirmation-counter {
    padding: 12px 20px;
    background: var(--bg-light);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.confirmation-counter span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 4px;
}

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

.nav-btn svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.nav-btn:hover svg {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
}

.nav-btn:active {
    background: rgba(0,0,0,0.05);
}

.guest-card-header {
    position: relative;
    padding: 40px 24px 32px;
    border-radius: 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    box-shadow: none;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.guest-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
    animation: bgPulse 8s ease-in-out infinite;
}

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

.guest-card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: movePattern 20s linear infinite;
    pointer-events: none;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-effects-guest {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-effects-guest .floating-effect {
    position: absolute;
    animation: floatEffect 8s ease-in-out infinite;
    opacity: 0.12;
    z-index: 1;
    width: 40px;
    height: 40px;
}

.floating-effects-guest .floating-effect:nth-child(1) {
    animation-duration: 12s;
}

.floating-effects-guest .floating-effect:nth-child(2) {
    animation-duration: 15s;
}

.floating-effects-guest .floating-effect:nth-child(3) {
    animation-duration: 10s;
}

.floating-effects-guest .floating-effect:nth-child(4) {
    animation-duration: 18s;
}

.floating-effects-guest .floating-effect:nth-child(5) {
    animation-duration: 13s;
}

.floating-effects-guest .floating-effect:nth-child(6) {
    animation-duration: 16s;
}

.floating-effects-guest .floating-effect:nth-child(7) {
    animation-duration: 14s;
}

.floating-effects-guest .floating-effect:nth-child(8) {
    animation-duration: 11s;
}

.floating-effects-guest .floating-effect:nth-child(9) {
    animation-duration: 17s;
}

.floating-effects-guest .floating-effect:nth-child(10) {
    animation-duration: 13.5s;
}

.floating-effects-guest .floating-effect:nth-child(11) {
    animation-duration: 15.5s;
}

.floating-effects-guest .floating-effect:nth-child(12) {
    animation-duration: 12.5s;
}

.floating-effects-guest .floating-effect:nth-child(13) {
    animation-duration: 16.5s;
}

.floating-effects-guest .floating-effect:nth-child(14) {
    animation-duration: 14.5s;
}

.floating-effects-guest .floating-effect:nth-child(15) {
    animation-duration: 11.5s;
}

.floating-effects-guest .floating-effect:nth-child(16) {
    animation-duration: 13.8s;
}

.floating-effects-guest .floating-effect:nth-child(17) {
    animation-duration: 17.2s;
}

.floating-effects-guest .floating-effect:nth-child(18) {
    animation-duration: 15.3s;
}

.floating-effects-guest .floating-effect svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    fill: rgba(255,255,255,0.95);
}

/* Movimiento hacia la izquierda */
.floating-left {
    animation-name: floatLeft !important;
}

@keyframes floatLeft {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.12;
    }
    25% {
        transform: translate(-30px, -20px) rotate(-12deg) scale(1.1);
        opacity: 0.15;
    }
    50% {
        transform: translate(-50px, 15px) rotate(8deg) scale(0.95);
        opacity: 0.1;
    }
    75% {
        transform: translate(-25px, -35px) rotate(-6deg) scale(1.05);
        opacity: 0.14;
    }
}

/* Movimiento hacia la derecha */
.floating-right {
    animation-name: floatRight !important;
}

@keyframes floatRight {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.12;
    }
    25% {
        transform: translate(35px, 20px) rotate(15deg) scale(0.9);
        opacity: 0.14;
    }
    50% {
        transform: translate(55px, -10px) rotate(-10deg) scale(1.08);
        opacity: 0.11;
    }
    75% {
        transform: translate(28px, 30px) rotate(8deg) scale(0.98);
        opacity: 0.13;
    }
}

/* Movimiento hacia arriba */
.floating-up {
    animation-name: floatUp !important;
}

@keyframes floatUp {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.12;
    }
    25% {
        transform: translate(15px, -40px) rotate(10deg) scale(1.05);
        opacity: 0.15;
    }
    50% {
        transform: translate(-10px, -65px) rotate(-12deg) scale(0.92);
        opacity: 0.1;
    }
    75% {
        transform: translate(20px, -45px) rotate(7deg) scale(1.02);
        opacity: 0.14;
    }
}

/* Movimiento diagonal */
.floating-diagonal {
    animation-name: floatDiagonal !important;
}

@keyframes floatDiagonal {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.12;
    }
    25% {
        transform: translate(40px, -30px) rotate(-18deg) scale(1.08);
        opacity: 0.14;
    }
    50% {
        transform: translate(-35px, -50px) rotate(14deg) scale(0.88);
        opacity: 0.11;
    }
    75% {
        transform: translate(25px, 20px) rotate(-9deg) scale(1.12);
        opacity: 0.13;
    }
}

.guest-card-header .gender-icon-large {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    margin-top: -40px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
    animation: iconBreathe 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

@keyframes iconBreathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 12px 32px rgba(0,0,0,0.25));
    }
}

.guest-card-header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    text-shadow: 
        0 4px 12px rgba(0,0,0,0.15),
        0 0 30px rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 4px 12px rgba(0,0,0,0.15),
            0 0 30px rgba(255,255,255,0.3);
    }
    50% {
        text-shadow: 
            0 4px 16px rgba(0,0,0,0.2),
            0 0 40px rgba(255,255,255,0.5);
    }
}

.header-event-info {
    position: relative;
    z-index: 2;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
}

.parents-invitation {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.9;
}

.parents-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 8px 0;
}

.parent-name {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.parent-separator {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.7;
}

.invitation-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 16px 0 8px 0;
    opacity: 0.95;
}

.baby-name-header {
    font-size: 3rem;
    font-weight: 200;
    margin: 8px 0 24px 0;
    text-shadow: 
        0 4px 16px rgba(0,0,0,0.2),
        0 0 40px rgba(255,255,255,0.4);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: babyNameShine 3s ease-in-out infinite;
    position: relative;
}

@keyframes babyNameShine {
    0%, 100% {
        text-shadow: 
            0 4px 16px rgba(0,0,0,0.2),
            0 0 40px rgba(255,255,255,0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 4px 20px rgba(0,0,0,0.25),
            0 0 50px rgba(255,255,255,0.6);
        transform: scale(1.02);
    }
}

.event-details-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.header-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 300;
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
    opacity: 0.95;
}

.header-info-item svg {
    width: 22px;
    height: 22px;
    opacity: 0.9;
}

.guest-card-body {
    background: #fafafa;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-height: calc(100vh - 400px);
}

/* Secciones estilo app Android */
.section-content {
    display: none;
    padding: 48px 24px;
    animation: fadeInSection 0.3s ease;
}

.section-content.active {
    display: block;
}

@keyframes fadeInSection {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.98);
    }
    60% {
        opacity: 1;
        transform: translateX(-5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.event-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 16px;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-info-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.event-info-item strong {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
}

.event-info-item span {
    color: var(--text-light);
}

.baby-name-highlight {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin: 24px 0;
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.invitation-message-section {
    margin-bottom: 0;
    padding: 48px 32px;
    background: var(--white);
    border-radius: 0;
    border-left: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-align: center;
}

/* Corazón grande para mensaje */
.heart-icon-large {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.heart-icon-large svg {
    color: var(--primary-color);
    opacity: 0.9;
}

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

/* Título de bienvenida */
.invitation-welcome {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 32px 0;
    color: var(--primary-color);
    font-style: italic;
}

/* Texto del mensaje de invitación */
.invitation-message-text {
    max-width: 600px;
    margin: 0 auto 32px;
}

.invitation-message-text p {
    margin: 0 0 20px 0;
    line-height: 1.8;
    color: #475569;
    font-size: 1.05rem;
    text-align: center;
}

.invitation-message-text p:last-child {
    margin-bottom: 0;
}

/* Fecha destacada al final */
.event-date-highlight {
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 59, 130, 246), 0.05), rgba(var(--primary-color-rgb, 59, 130, 246), 0.1));
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    font-style: italic;
    line-height: 1.6;
}

.invitation-message-section h3 {
    font-size: 0.75rem;
    margin: 0 0 20px 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.invitation-message-section h3 svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    opacity: 0.6;
}

.invitation-message-section p {
    margin: 0;
    line-height: 2;
    color: #475569;
    font-size: 1.05rem;
    font-weight: 300;
}

.location-section {
    margin-bottom: 0;
    padding: 40px 32px;
    background: var(--white);
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.location-section h3 {
    font-size: 0.75rem;
    margin: 0 0 24px 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.location-section h3 svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    opacity: 0.6;
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.location-address svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 4px;
    opacity: 0.7;
}

.location-address p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
    font-weight: 300;
    font-size: 1rem;
}

.map-container {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    animation: mapFadeIn 0.6s ease;
    transition: box-shadow 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

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

.map-container iframe {
    display: block;
}

.location-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.location-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 8px;
    border: 2px solid;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.location-btn.maps {
    background: transparent;
    color: #4285F4;
    border-color: #4285F4;
}

.location-btn.waze {
    background: transparent;
    color: #33CCFF;
    border-color: #33CCFF;
}

.location-btn.maps:hover {
    background: #4285F4;
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(66, 133, 244, 0.4);
}

.location-btn.maps:active {
    transform: translateY(-1px) scale(0.98);
}

.location-btn.waze:hover {
    background: #33CCFF;
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(51, 204, 255, 0.4);
}

.location-btn.waze:active {
    transform: translateY(-1px) scale(0.98);
}

.location-btn svg {
    transition: transform 0.3s ease;
}

.location-btn:hover svg {
    transform: scale(1.1);
}

.gifts-section {
    margin-bottom: 0;
    padding: 40px 32px;
    background: var(--white);
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gifts-section h3 {
    font-size: 0.75rem;
    margin: 0 0 28px 0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.gifts-section h3 svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    opacity: 0.6;
}

.gifts-intro {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 300;
    text-align: center;
}

.gifts-grid-guest {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.gift-item-guest {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: #fafafa;
    border-radius: 8px;
    border: 2px solid rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.gift-item-guest:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
    background: var(--white);
}

.gift-item-guest:hover svg:not(.gift-check svg) {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-item-guest.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.gift-item-guest.selected svg:not(.gift-check svg) {
    color: var(--white) !important;
}

.gift-item-guest.selected span {
    color: var(--white);
}

.gift-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.gift-item-guest.selected .gift-check {
    display: flex;
    animation: checkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.gift-check svg {
    color: var(--primary-color);
}

.gift-item-guest svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
    opacity: 0.8;
}

.gift-item-guest span {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 400;
}

.selected-gifts-summary {
    margin-top: 24px;
    padding: 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    text-align: center;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.selected-gifts-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    60% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.selected-gifts-summary p {
    margin: 0;
    font-size: 1rem;
}

.selected-gifts-summary strong {
    font-weight: 600;
}

.confirmation-section-guest {
    padding: 40px 32px;
    background: var(--white);
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.confirmation-section-guest h3 {
    font-size: 0.75rem;
    margin: 0 0 32px 0;
    color: #94a3b8;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.confirmation-section-guest h3 svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    opacity: 0.6;
}

.confirmation-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Language Selector Styles */
.language-selector {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
}

/* Botón Admin */
.admin-link {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.admin-link svg {
    width: 24px;
    height: 24px;
    color: white;
    stroke: white;
}

.admin-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.language-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-btn:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.language-btn svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    min-width: 180px;
    transform-origin: top left;
    animation: languageDropdown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes languageDropdown {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.language-dropdown.hidden {
    display: none;
}

.language-option {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #475569;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8fafc;
    color: var(--primary-color);
    padding-left: 24px;
}

.language-option.active {
    background: rgba(var(--primary-color-rgb, 59, 130, 246), 0.08);
    color: var(--primary-color);
    font-weight: 600;
}

.language-option .flag {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.language-option .name {
    flex: 1;
}

.language-option .check {
    opacity: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: opacity 0.2s ease;
}

.language-option.active .check {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .language-selector {
        top: 20px;
        left: 12px;
    }
    
    .language-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 4px;
    }
    
    .language-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .language-dropdown {
        min-width: 150px;
    }
    
    .language-option {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

.confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 640px) {
    .screen {
        padding: 16px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .main-title {
        gap: 8px;
    }

    .title-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .header h2 {
        font-size: 1.35rem;
        padding: 0 10px;
    }

    .header {
        padding: 0 50px; /* Reducir padding lateral en móvil */
    }

    .back-btn {
        font-size: 0.9rem;
        padding: 6px;
    }

    .gender-btn {
        padding: 30px 40px;
    }

    .invitation-card,
    .confirmation-section {
        padding: 24px;
    }

    .invitation-card .baby-name {
        font-size: 2rem;
    }

    .gift-items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Colores dinámicos para niño */
body.boy-theme {
    --primary-color: #3b82f6;
}

body.boy-theme .gender-btn.boy,
body.boy-theme .next-btn,
body.boy-theme .submit-btn,
body.boy-theme .confirm-btn {
    background: var(--primary-color);
}

/* Colores dinámicos para niña */
body.girl-theme {
    --primary-color: #ec4899;
}

body.girl-theme .gender-btn.girl,
body.girl-theme .next-btn,
body.girl-theme .submit-btn,
body.girl-theme .confirm-btn {
    background: var(--primary-color);
}

/* Responsive para vista de invitado */
@media (max-width: 640px) {
    .guest-navigation {
        padding: 0;
        gap: 0;
    }

    .nav-btn {
        padding: 14px 12px;
        font-size: 0.7rem;
        min-width: 70px;
    }

    .nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .guest-card-header {
        padding: 60px 24px 48px;
        min-height: 350px;
    }

    .guest-card-header .gender-icon-large {
        width: 50px;
        height: 50px;
    }

    .guest-card-header h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .header-event-info {
        gap: 12px;
    }

    .parents-invitation {
        font-size: 0.75rem;
    }

    .parents-names {
        gap: 12px;
    }

    .parent-name {
        font-size: 1.1rem;
    }

    .invitation-subtitle {
        font-size: 0.8rem;
    }

    .baby-name-header {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .event-details-header {
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .header-info-item {
        font-size: 0.95rem;
    }

    .floating-effects-guest .floating-effect svg {
        width: 28px;
        height: 28px;
    }

    .guest-card-body {
        padding: 0;
    }

    .section-content {
        padding: 32px 20px;
    }

    .invitation-message-section,
    .location-section,
    .gifts-section,
    .confirmation-section-guest {
        padding: 32px 24px;
    }

    .gifts-grid-guest {
        grid-template-columns: 1fr;
    }

    .gift-item-guest {
        padding: 16px 14px;
    }

    .selected-gifts-summary {
        margin-top: 20px;
        padding: 16px;
    }

    .location-buttons {
        flex-direction: column;
    }

    .location-btn {
        width: 100%;
        min-width: unset;
    }
}

/* Estilos minimalistas para preview */
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-dark);
    z-index: 1000;
}

.back-btn:hover {
    background: var(--bg-light);
}

/* Gift list section styles */
.gift-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.gift-option-label {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gift-option-label:hover {
    background: #e9ecef;
}

.gift-option-label input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.gift-option-label span {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.hidden {
    display: none !important;
}

#customGiftList {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--primary-color, #3498DB);
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
}

.icon-button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

