:root {
    /* Brand Colors based on Orquestrador */
    --bg-dark: #09090b;
    --orange: #f97316; /* Bright vibrant orange */
    --red: #ef4444;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    
    /* Text & UI */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html, body {
    width: 100%;
}

body {
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Libre Franklin', sans-serif;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.site-wrapper {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

[data-elementor-type="wp-page"] {
}

/* Background Ambient Glow */
.bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    animation: float 10s infinite ease-in-out alternate;
}

.orange-glow {
    background: var(--orange);
    top: -50px;
    left: -100px;
}

.purple-glow {
    background: var(--purple);
    top: 40%;
    right: -150px;
    animation-delay: -3s;
}

.blue-glow {
    background: var(--blue);
    bottom: -50px;
    left: 10%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Main Container - Mobile First approach */
.container {
    width: 100%;
    max-width: 500px; /* Constrain on desktop to keep mobile look */
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* --- Header --- */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.visible {
    opacity: 1;
    transform: translateY(0);
}

.profile-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #000;
    border: 3px solid var(--glass-border);
    padding: 6px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Animated Ring around Profile */
.profile-img::before {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--orange), var(--red), var(--purple), var(--blue));
    z-index: -1;
    background-size: 300% 300%;
    animation: gradientSpin 4s ease infinite;
}

@keyframes gradientSpin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    background: #000;
}

.title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 90%;
    margin-bottom: 24px;
}

/* --- Social Icons --- */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 26px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.social-icon:active, @media (hover: hover) {
    .social-icon:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-4px) scale(1.05);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--orange);
    }
}

/* --- Divider --- */
.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    margin: 8px 0;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.8s ease 0.2s;
}

.divider.visible {
    opacity: 1;
    transform: scaleX(1);
}

/* --- Ebooks Section (Carousel) --- */
.section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 700;
    margin-left: 4px;
}

.carousel-container {
    position: relative;
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
}

.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 24px 32px 24px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* Carousel Item with drag/fade-in effect */
.ebook-card {
    min-width: 270px;
    max-width: 270px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 0;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    overflow: hidden;
    
    /* Starting state for scroll-into-view animation */
    opacity: 0;
    transform: translateX(60px) scale(0.95);
}

/* The JS will apply .visible when scrolled into view */
.ebook-card.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) var(--delay);
}

.ebook-card:active, @media (hover: hover) {
    .ebook-card:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.25);
    }
}

.ebook-cover {
    height: 160px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: none;
    width: 100%;
}

.ebook-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ebook-info {
    padding: 0 20px;
}

.ebook-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.25;
}

.ebook-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s;
}

.ebook-card:active .btn-download, @media (hover: hover) {
    .ebook-card:hover .btn-download {
        background: var(--text-main);
        color: var(--bg-dark);
        transform: translateY(-2px);
    }
}

/* --- Standard Links Section --- */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    
    /* Reveal animation */
    opacity: 0;
    transform: translateY(30px);
}

.link-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--delay);
}

.link-card i {
    font-size: 24px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

/* Specific colors for icons */
.link-card:nth-child(1) i { color: var(--orange); }
.link-card:nth-child(2) i { color: var(--purple); }
.link-card:nth-child(3) i { color: var(--blue); }

.link-card:active, @media (hover: hover) {
    .link-card:hover {
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.25);
        transform: scale(1.02);
    }
}

/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

footer a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--orange);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255,255,255,0.05);
}

.error-msg {
    display: none;
    color: var(--red);
    font-size: 12px;
    margin-top: 6px;
}

.input-group.invalid input {
    border-color: var(--red);
}

.input-group.invalid .error-msg {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249,115,22,0.3);
}
