/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

:root {
    /* Color Palette - BLACK & WHITE THEME */
    --primary-bg: #111111;
    --secondary-bg: #1a1a1a;
    --card-bg: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --border-color: #444444;
    
    /* Orange accent - ONLY FOR EBOOK BUTTON */
    --ebook-orange: #F97316;
    --ebook-orange-hover: #ea580c;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out;
}

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

/* ========================================
   PROFILE SECTION
   ======================================== */

.profile-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: slideDown 0.7s ease-out;
}

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

/* Profile Image */
.profile-image-wrapper {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.profile-image {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-full);
    border: 3px solid var(--text-primary);
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-image:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-lg);
}

/* Profile Name & Title */
.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Profile Bio */
.profile-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.7;
}

/* Badges */
.badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.badge:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* ========================================
   LINKS SECTION
   ======================================== */

.links-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* Link Button - BASE STYLES */
.link-button {
    display: block;
    padding: 1.2rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    animation: slideUp 0.6s ease-out backwards;
}

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

.link-button:nth-child(1) { animation-delay: 0.1s; }
.link-button:nth-child(2) { animation-delay: 0.2s; }
.link-button:nth-child(3) { animation-delay: 0.3s; }
.link-button:nth-child(4) { animation-delay: 0.4s; }
.link-button:nth-child(5) { animation-delay: 0.5s; }

.link-button:hover:not(.disabled) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.link-button:active:not(.disabled) {
    transform: translateY(-2px);
}

/* Link Content Layout */
.link-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.link-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.link-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.link-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.link-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
}

.link-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
}

.link-button:hover:not(.disabled) .link-arrow {
    transform: translateX(5px);
}

/* ========================================
   E-BOOK BUTTON - ORANGE EMPHASIS
   ======================================== */

.ebook-button {
    background: linear-gradient(135deg, var(--ebook-orange) 0%, var(--ebook-orange-hover) 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
    position: relative;
    overflow: hidden;
}

.ebook-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ebook-button:hover::before {
    left: 100%;
}

.ebook-button:hover {
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.5);
}

.ebook-button .link-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.ebook-button .link-title,
.ebook-button .link-subtitle,
.ebook-button .link-arrow {
    color: #ffffff;
}

.ebook-button .link-subtitle {
    opacity: 0.9;
}

/* Badge Oferta - PULSING ANIMATION */
.badge-oferta {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6);
    }
}

/* ========================================
   OTHER BUTTONS - BLACK & WHITE THEME
   ======================================== */

.whatsapp-button,
.email-button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.whatsapp-button .link-icon,
.email-button .link-icon {
    background: transparent;
    color: var(--text-primary);
}

.whatsapp-button:hover {
    border-color: #666666;
}

.email-button:hover {
    border-color: #666666;
}

/* ========================================
   FUTURE LINKS (DISABLED)
   ======================================== */

.future-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
}

.future-link:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.future-link .link-icon {
    background: transparent;
    color: var(--text-secondary);
}

.future-link .link-title {
    color: var(--text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    margin-top: auto;
    padding-top: var(--spacing-xl);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--border-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.instagram-handle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    transition: bottom var(--transition-normal);
}

.toast.show {
    bottom: 2rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 640px) {
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .profile-title {
        font-size: 1rem;
    }
    
    .profile-bio {
        font-size: 0.9rem;
    }
    
    .link-button {
        padding: 1rem 1.2rem;
    }
    
    .link-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    
    .link-title {
        font-size: 0.95rem;
    }
    
    .link-subtitle {
        font-size: 0.8rem;
    }
    
    .badges {
        gap: 0.4rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }
}

@media (max-width: 380px) {
    .profile-image {
        width: 90px;
        height: 90px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .link-content {
        gap: var(--spacing-sm);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .link-button {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}