/* ==========================================================================
   NOVELTY PORTFOLIO - ESTILOS PREMIUM (INSPIRADO EN GABRIELVALDIVIA.COM)
   ========================================================================== */

:root {
    --bg-main: #0B0F17;
    --bg-surface: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(31, 41, 55, 0.85);
    --bg-floating: rgba(15, 23, 42, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-glass: rgba(255, 255, 255, 0.12);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent: #E11D48;
    --accent-glow: rgba(225, 29, 72, 0.35);
    --accent-hover: #BE123C;
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --container-max: 1240px;
}

[data-theme="light"] {
    --bg-main: #FAFAFB;
    --bg-surface: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: #FFFFFF;
    --bg-floating: rgba(255, 255, 255, 0.85);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.12);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --accent: #E11D48;
    --accent-glow: rgba(225, 29, 72, 0.2);
    --accent-hover: #BE123C;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    position: relative;
}

/* Background Ambient Glows */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.ambient-glow-1 {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.ambient-glow-2 {
    bottom: 10%;
    left: -150px;
    background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
    opacity: 0.15;
}

/* Container */
.portfolio-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Owner Topbar */
.owner-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(90deg, #1E1B4B 0%, #311042 100%);
    color: #FFF;
    padding: 10px 20px;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.owner-bar.hidden {
    display: none !important;
}

.owner-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.owner-bar-info .badge {
    background: var(--accent);
    color: #FFF;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.owner-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.owner-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.owner-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.owner-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
}

.owner-btn.primary:hover {
    background: var(--accent-hover);
}

/* Floating Navigation */
.floating-nav-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    pointer-events: none;
    transition: top 0.3s ease;
}

/* Cuando la barra de modo propietario está activa */
body.has-owner-bar .floating-nav-wrapper,
body:has(.owner-bar:not(.hidden)) .floating-nav-wrapper {
    top: 68px;
}

body.has-owner-bar .hero-section,
body:has(.owner-bar:not(.hidden)) .hero-section {
    padding-top: 180px;
}

.floating-nav {
    pointer-events: auto;
    background: var(--bg-floating);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    max-width: 96vw;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-brand .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-strong);
    transform: scale(1.05);
}

[data-theme="light"] .icon-btn {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .icon-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.share-pill-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #BE123C 100%);
    color: #FFF;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: var(--transition);
}

.share-pill-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 70px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    width: fit-content;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
}

.status-indicator-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--success);
    opacity: 0.4;
    animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin-bottom: 24px;
    max-width: 980px;
}

.hero-subtitle {
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 760px;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 13px 26px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    opacity: 0.92;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 13px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Section Header */
.section {
    padding: 90px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Category Filter Bar */
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-pill {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: var(--transition);
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}

.filter-pill.active {
    background: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

/* Work Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    background: var(--bg-card-hover);
}

.project-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: #1E293B;
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-cover img {
    transform: scale(1.04);
}

.project-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFF;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-owner-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.project-owner-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.project-owner-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.project-owner-btn.delete:hover {
    background: #EF4444;
}

.project-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}

.project-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tech-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

[data-theme="light"] .tech-chip {
    background: rgba(0, 0, 0, 0.04);
}

.project-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.project-link-btn {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.project-link-btn:hover {
    color: var(--accent);
    transform: translateX(2px);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 50px;
    align-items: center;
}

.about-photo-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    aspect-ratio: 1 / 1.15;
    background: #1E293B;
}

.about-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-bio {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.about-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    color: var(--text-primary);
}

.about-bullet-item i {
    color: var(--accent);
    margin-top: 4px;
    font-size: 14px;
}

/* Capabilities Pills */
.capabilities-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.capability-pill {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: var(--transition);
    cursor: default;
}

.capability-pill:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Approach Cards */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.approach-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approach-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.approach-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.8;
}

.approach-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.approach-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials Cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.author-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Contact Section */
.contact-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input, .form-textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13.5px;
    outline: none;
    transition: var(--transition);
}

[data-theme="light"] .form-input, [data-theme="light"] .form-textarea {
    background: #F8FAFC;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    margin-bottom: 12px;
}

.channel-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
    transform: translateX(4px);
}

.channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
}

.channel-title {
    font-size: 13.5px;
    font-weight: 700;
}

.channel-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.portfolio-footer {
    padding: 60px 0 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Modals */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.portfolio-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-modal.active .portfolio-modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

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

/* Share Modal Options */
.share-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.share-btn-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: var(--transition);
}

.share-btn-big:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.share-btn-big.whatsapp {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.3);
}

.share-btn-big.whatsapp:hover {
    background: rgba(37, 211, 102, 0.12);
}

.share-btn-big.email {
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.3);
}

.share-btn-big.email:hover {
    background: rgba(56, 189, 248, 0.12);
}

.share-btn-big.copy {
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
}

.share-btn-big.copy:hover {
    background: rgba(245, 158, 11, 0.12);
}

.share-btn-big i {
    font-size: 26px;
}

.copy-link-box {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    align-items: center;
}

.copy-link-input {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    flex-grow: 1;
    outline: none;
    font-family: monospace;
}

/* Toast */
.portfolio-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    color: #FFF;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    body.has-owner-bar .floating-nav-wrapper,
    body:has(.owner-bar:not(.hidden)) .floating-nav-wrapper {
        top: 92px;
    }

    body.has-owner-bar .hero-section,
    body:has(.owner-bar:not(.hidden)) .hero-section {
        padding-top: 190px;
    }

    .floating-nav-wrapper {
        padding: 0 10px;
        top: 12px;
    }

    .floating-nav {
        max-width: 100%;
        width: 100%;
        padding: 6px 12px;
        gap: 8px;
    }

    .nav-brand {
        max-width: 110px;
        font-size: 12.5px;
    }

    .nav-links {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 4px 6px;
        gap: 6px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        flex-shrink: 0;
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-photo-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .form-input,
    .form-textarea,
    .studio-input,
    .studio-textarea,
    .studio-select,
    .copy-link-input {
        font-size: 16px !important;
    }
}

@media (max-width: 640px) {
    body.has-owner-bar .floating-nav-wrapper,
    body:has(.owner-bar:not(.hidden)) .floating-nav-wrapper {
        top: 108px;
    }

    body.has-owner-bar .hero-section,
    body:has(.owner-bar:not(.hidden)) .hero-section {
        padding-top: 210px;
    }

    .portfolio-container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding-top: 95px;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-headline {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .share-options-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-nav {
        padding: 5px 8px;
        gap: 6px;
    }
    
    .nav-brand {
        max-width: 85px;
        font-size: 11.5px;
    }

    .nav-brand #nav-user-name {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-link {
        padding: 4px 7px;
        font-size: 11px;
    }

    .share-pill-btn {
        padding: 5px 9px;
        font-size: 11px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        font-size: 12px;
    }
}

/* ==========================================================================
   ALERT & CONFIRM MODALS (100% MODAL DIALOGS)
   ========================================================================== */
.dialog-modal-content {
    max-width: 440px !important;
    text-align: center;
    padding: 36px 28px !important;
}

.dialog-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 28px;
}

.dialog-icon-wrapper.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.dialog-icon-wrapper.error {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dialog-icon-wrapper.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.dialog-icon-wrapper.info {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.dialog-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.dialog-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFF;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   THEME & FONT CUSTOMIZER CONTROLS
   ========================================================================== */
.theme-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.theme-swatch {
    height: 38px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.theme-swatch:hover {
    transform: scale(1.08);
}

.theme-swatch.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.color-picker-input {
    width: 100%;
    height: 42px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.font-preview-card {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Category Tags Editor */
.category-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.category-tag-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-tag-remove {
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.category-tag-remove:hover {
    color: #EF4444;
}

/* Empty Projects State */
.empty-projects-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.empty-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 460px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Optgroup Styling in selects */
select optgroup {
    background: #111827;
    color: var(--accent);
    font-weight: 700;
    padding: 6px 0;
}

select option {
    background: #1F2937;
    color: #F3F4F6;
    font-weight: 400;
    padding: 6px;
}

/* ==========================================================================
   NOVELTY PORTFOLIO STUDIO - SISTEMA DE EDICIÓN EN PANTALLA COMPLETA (100vw x 100vh)
   ========================================================================== */

:root {
    --studio-bg: #06090F;
    --studio-surface: #0E131F;
    --studio-surface-glass: rgba(14, 19, 31, 0.85);
    --studio-surface-card: rgba(20, 27, 45, 0.65);
    --studio-border: rgba(255, 255, 255, 0.09);
    --studio-border-focus: rgba(225, 29, 72, 0.6);
    --studio-text-main: #F8FAFC;
    --studio-text-muted: #94A3B8;
    --studio-text-subtle: #64748B;
    --studio-accent: #E11D48;
    --studio-accent-glow: rgba(225, 29, 72, 0.35);
    --studio-accent-hover: #BE123C;
    --studio-teal: #07B4C6;
    --studio-success: #10B981;
    --studio-danger: #EF4444;
    --studio-font: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --studio-radius-sm: 8px;
    --studio-radius-md: 14px;
    --studio-radius-lg: 20px;
    --studio-radius-full: 9999px;
    --studio-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .studio-overlay {
    --studio-bg: #F1F5F9;
    --studio-surface: #FFFFFF;
    --studio-surface-glass: rgba(255, 255, 255, 0.92);
    --studio-surface-card: rgba(255, 255, 255, 0.95);
    --studio-border: rgba(0, 0, 0, 0.08);
    --studio-text-main: #0F172A;
    --studio-text-muted: #475569;
    --studio-text-subtle: #475569;
}

/* Overlay Contenedor Pantalla Completa (100vw x 100vh) */
.studio-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: var(--studio-bg);
    color: var(--studio-text-main);
    font-family: var(--studio-font);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.99);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Header del Studio */
.studio-header {
    height: 68px;
    background: var(--studio-surface-glass);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--studio-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    flex-shrink: 0;
    z-index: 10;
}

.studio-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--studio-radius-md);
    background: linear-gradient(135deg, var(--studio-accent) 0%, #8E64B8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 16px;
    box-shadow: 0 0 16px var(--studio-accent-glow);
}

.studio-brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.1;
    color: var(--studio-text-main);
}

.studio-sync-status {
    font-size: 11px;
    color: var(--studio-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--studio-success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Header Actions */
.studio-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BOTÓN DESTACADO: Ver cambios en nueva ventana */
.studio-btn-preview {
    background: rgba(7, 180, 198, 0.12);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--studio-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--studio-transition);
    text-decoration: none;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.15);
}

.studio-btn-preview:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38BDF8;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.studio-badge-live {
    background: #38BDF8;
    color: #06090F;
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.studio-btn {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--studio-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--studio-transition);
    border: 1px solid transparent;
    font-family: var(--studio-font);
}

.studio-btn-primary {
    background: var(--studio-accent);
    color: #FFF;
    box-shadow: 0 0 16px var(--studio-accent-glow);
}

.studio-btn-primary:hover {
    background: var(--studio-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 24px var(--studio-accent-glow);
}

.studio-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--studio-text-main);
    border-color: var(--studio-border);
}

.studio-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.studio-btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.studio-btn-danger:hover {
    background: #EF4444;
    color: #FFF;
}

.studio-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--studio-border);
    color: var(--studio-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--studio-transition);
}

.studio-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--studio-text-main);
}

.studio-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Studio Layout */
.studio-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar de Navegación */
.studio-sidebar {
    width: 280px;
    background: var(--studio-surface);
    border-right: 1px solid var(--studio-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.studio-nav-list {
    list-style: none;
    padding: 16px 12px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.studio-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--studio-radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--studio-text-muted);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--studio-font);
    cursor: pointer;
    text-align: left;
    transition: var(--studio-transition);
}

.studio-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--studio-text-subtle);
    transition: var(--studio-transition);
}

.studio-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--studio-text-main);
}

.studio-nav-item:hover i {
    color: var(--studio-accent);
}

.studio-nav-item.active {
    background: rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.35);
    color: #FFF;
    box-shadow: 0 0 16px rgba(225, 29, 72, 0.15);
}

.studio-nav-item.active i {
    color: var(--studio-accent);
}

.studio-nav-counter {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    color: var(--studio-text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--studio-radius-full);
}

.studio-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--studio-border);
}

.studio-tips-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--studio-border);
    border-radius: var(--studio-radius-sm);
    padding: 12px;
    font-size: 11.5px;
    color: var(--studio-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.studio-tips-card i {
    color: #F59E0B;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Workspace Central */
.studio-workspace {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px;
    background: radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.04) 0%, transparent 60%);
}

.studio-tab-pane {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInTab 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-tab-pane.active {
    display: block;
}

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

.studio-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.studio-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--studio-text-main);
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.studio-section-desc {
    font-size: 13.5px;
    color: var(--studio-text-muted);
    margin: 0;
    max-width: 700px;
    line-height: 1.5;
}

/* Cards & Forms */
.studio-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.studio-card {
    background: var(--studio-surface-card);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-md);
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.studio-card-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--studio-text-main);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-card-subtitle i {
    color: var(--studio-accent);
}

.studio-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.studio-form-group:last-child {
    margin-bottom: 0;
}

.studio-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--studio-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-input,
.studio-textarea,
.studio-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
    padding: 11px 14px;
    color: var(--studio-text-main);
    font-size: 13.5px;
    font-family: var(--studio-font);
    transition: var(--studio-transition);
    outline: none;
}

.studio-input:focus,
.studio-textarea:focus,
.studio-select:focus {
    border-color: var(--studio-accent);
    box-shadow: 0 0 12px var(--studio-accent-glow);
    background: rgba(0, 0, 0, 0.5);
}

.studio-textarea {
    resize: vertical;
    line-height: 1.5;
}

.studio-help-text {
    font-size: 11.5px;
    color: var(--studio-text-muted);
    line-height: 1.4;
}

.studio-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.studio-input-with-icon i {
    position: absolute;
    left: 14px;
    color: var(--studio-text-subtle);
    font-size: 14px;
}

.studio-input-with-icon input {
    padding-left: 38px;
}

.studio-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Switch & Toggle */
.studio-toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
    margin-top: 8px;
}

.studio-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.studio-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.studio-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.12);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
}

.studio-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

.studio-switch input:checked + .studio-slider {
    background-color: var(--studio-success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.studio-switch input:checked + .studio-slider:before {
    transform: translateX(20px);
}

.studio-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.studio-toggle-label strong {
    font-size: 13px;
    color: var(--studio-text-main);
}

.studio-toggle-label span {
    font-size: 11.5px;
    color: var(--studio-text-muted);
}

/* Avatar Preview & Gallery */
.studio-avatar-preview-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
}

.studio-avatar-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--studio-accent);
    box-shadow: 0 0 14px var(--studio-accent-glow);
    flex-shrink: 0;
}

.studio-avatar-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.studio-avatar-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.studio-avatar-option {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    padding: 2px;
    transition: var(--studio-transition);
}

.studio-avatar-option img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.studio-avatar-option:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.studio-avatar-option.active {
    border-color: var(--studio-accent);
    box-shadow: 0 0 12px var(--studio-accent-glow);
    transform: scale(1.1);
}

/* Component & Font Live Preview Box in Studio */
.studio-component-preview-wrapper {
    margin-top: 14px;
}

.studio-component-preview-card {
    padding: 20px;
    border-radius: var(--studio-radius-sm);
    border: 1px solid var(--studio-border);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.preview-mini-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-mini-badge {
    font-size: 13px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.preview-mini-title {
    font-size: 15.5px;
    font-weight: 800;
    flex: 1;
    line-height: 1.3;
}

.preview-mini-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.preview-mini-desc {
    font-size: 12.5px;
    line-height: 1.55;
    margin: 0;
}

.preview-mini-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid;
}

.preview-mini-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.preview-mini-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.preview-mini-btn:hover {
    transform: scale(1.04);
}

/* Preset theme buttons in studio */
.studio-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.studio-preset-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--studio-border);
    color: var(--studio-text-main);
    padding: 6px 12px;
    border-radius: var(--studio-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--studio-transition);
}

.studio-preset-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--studio-accent);
    transform: translateY(-1px);
}

/* Color Picker & Swatches */
.studio-color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-color-input {
    width: 46px;
    height: 42px;
    padding: 2px;
    border-radius: var(--studio-radius-sm);
    border: 1px solid var(--studio-border);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.studio-swatches-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.studio-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--studio-transition);
}

.studio-swatch:hover {
    transform: scale(1.15);
}

.studio-swatch.active {
    border-color: var(--studio-accent);
    box-shadow: 0 0 10px var(--studio-accent-glow);
    transform: scale(1.1);
}

/* Project Split View */
.studio-project-split-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: flex-start;
}

.studio-project-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.studio-project-manager-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-project-item-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
    cursor: pointer;
    transition: var(--studio-transition);
}

.studio-project-item-bar:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.studio-project-item-bar.active {
    border-color: var(--studio-accent);
    background: rgba(225, 29, 72, 0.08);
    box-shadow: 0 0 14px var(--studio-accent-glow);
}

.studio-proj-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-proj-bar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--studio-text-main);
}

.studio-proj-bar-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--studio-radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--studio-text-muted);
}

.studio-proj-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--studio-border);
}

/* Sticky Preview Pane */
.studio-preview-sticky-box {
    position: sticky;
    top: 0;
    background: var(--studio-surface-card);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-md);
    padding: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.studio-preview-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--studio-border);
}

.studio-preview-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--studio-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-live-card-container {
    display: flex;
    justify-content: center;
}

/* Tag Manager */
.studio-tag-manager-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
}

.studio-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.studio-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.35);
    border-radius: var(--studio-radius-full);
    font-size: 12.5px;
    font-weight: 600;
    color: #FFF;
}

.studio-tag-remove-btn {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--studio-transition);
}

.studio-tag-remove-btn:hover {
    color: #EF4444;
}

.studio-tag-input-field {
    background: transparent;
    border: none;
    outline: none;
    color: var(--studio-text-main);
    font-size: 13.5px;
    font-family: var(--studio-font);
    padding: 6px 0;
}

/* Interactive Bullet List */
.studio-interactive-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-bullet-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.studio-bullet-row input {
    flex: 1;
}

/* Steps Grid (01-06) */
.studio-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.studio-step-card {
    background: var(--studio-surface-card);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.studio-step-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--studio-accent);
    letter-spacing: -0.5px;
}

/* Testimonials List */
.studio-testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.studio-testimonial-edit-card {
    background: var(--studio-surface-card);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.studio-testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVILES DESDE 320px, TABLETS Y 4K)
   ========================================================================== */
@media (max-width: 990px) {
    .studio-layout {
        flex-direction: column;
    }

    .studio-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--studio-border);
    }

    .studio-nav-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px 12px;
        gap: 6px;
    }

    .studio-nav-item {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 12.5px;
    }

    .studio-sidebar-footer {
        display: none;
    }

    .studio-workspace {
        padding: 20px 16px;
    }

    .studio-card-grid {
        grid-template-columns: 1fr;
    }

    .studio-project-split-layout {
        grid-template-columns: 1fr;
    }

    .studio-preview-sticky-box {
        position: static;
    }
}

@media (max-width: 640px) {
    .studio-header {
        padding: 0 16px;
        height: 60px;
    }

    .studio-brand-title {
        font-size: 14px;
    }

    .studio-sync-status {
        display: none;
    }

    .studio-btn-preview span:first-of-type {
        display: none;
    }

    .studio-grid-2col {
        grid-template-columns: 1fr;
    }

    .studio-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ==========================================================================
   SISTEMA DE ALINEACIÓN GLOBAL DE TEXTOS (Alpha v.3)
   ========================================================================== */
body[data-text-align="left"] {
    --portfolio-text-align: left;
}

body[data-text-align="center"] {
    --portfolio-text-align: center;
}

body[data-text-align="right"] {
    --portfolio-text-align: right;
}

body[data-text-align="justify"] {
    --portfolio-text-align: justify;
}

/* Aplicación en Secciones de Portafolio */
body[data-text-align="center"] .hero-content {
    text-align: center;
    margin: 0 auto;
}
body[data-text-align="center"] .hero-title,
body[data-text-align="center"] .hero-subtitle {
    text-align: center;
}
body[data-text-align="center"] .hero-cta-row {
    justify-content: center;
}
body[data-text-align="center"] .section-header {
    text-align: center;
}
body[data-text-align="center"] .section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
body[data-text-align="center"] .about-bio {
    text-align: center;
}
body[data-text-align="center"] .about-bullets {
    align-items: center;
}
body[data-text-align="center"] .capabilities-pills {
    justify-content: center;
}
body[data-text-align="center"] .approach-card {
    text-align: center;
    align-items: center;
}
body[data-text-align="center"] .testimonial-card {
    text-align: center;
}
body[data-text-align="center"] .testimonial-author {
    justify-content: center;
}
body[data-text-align="center"] .project-title,
body[data-text-align="center"] .project-desc {
    text-align: center;
}
body[data-text-align="center"] .project-tech-chips,
body[data-text-align="center"] .project-footer-links {
    justify-content: center;
}

/* Alineación Derecha */
body[data-text-align="right"] .hero-content {
    text-align: right;
    margin-left: auto;
}
body[data-text-align="right"] .hero-title,
body[data-text-align="right"] .hero-subtitle {
    text-align: right;
}
body[data-text-align="right"] .hero-cta-row {
    justify-content: flex-end;
}
body[data-text-align="right"] .section-header {
    text-align: right;
}
body[data-text-align="right"] .section-desc {
    text-align: right;
    margin-left: auto;
}
body[data-text-align="right"] .about-bio {
    text-align: right;
}
body[data-text-align="right"] .about-bullets {
    align-items: flex-end;
}
body[data-text-align="right"] .capabilities-pills {
    justify-content: flex-end;
}
body[data-text-align="right"] .approach-card {
    text-align: right;
    align-items: flex-end;
}
body[data-text-align="right"] .testimonial-card {
    text-align: right;
}
body[data-text-align="right"] .testimonial-author {
    justify-content: flex-end;
}
body[data-text-align="right"] .project-title,
body[data-text-align="right"] .project-desc {
    text-align: right;
}
body[data-text-align="right"] .project-tech-chips,
body[data-text-align="right"] .project-footer-links {
    justify-content: flex-end;
}

/* Justificado */
body[data-text-align="justify"] .hero-subtitle,
body[data-text-align="justify"] .about-bio,
body[data-text-align="justify"] .section-desc,
body[data-text-align="justify"] .project-desc,
body[data-text-align="justify"] .approach-card-desc,
body[data-text-align="justify"] .testimonial-quote {
    text-align: justify;
}

/* ==========================================================================
   STUDIO: CONTROLES DE ALINEACIÓN & SELECTOR DE MODO OSCURO / CLARO
   ========================================================================== */
.studio-align-btn-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.studio-align-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--studio-border);
    color: var(--studio-text-muted);
    padding: 10px 12px;
    border-radius: var(--studio-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: var(--studio-transition);
}

.studio-align-btn i {
    font-size: 15px;
}

.studio-align-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--studio-text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.studio-align-btn.active {
    background: var(--studio-accent);
    color: #FFF;
    border-color: var(--studio-accent);
    box-shadow: 0 0 14px var(--studio-accent-glow);
}

.studio-mode-switcher-container {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.studio-mode-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--studio-border);
    color: var(--studio-text-muted);
    padding: 10px 16px;
    border-radius: var(--studio-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--studio-transition);
}

.studio-mode-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--studio-text-main);
}

.studio-mode-tab-btn.active {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(225, 29, 72, 0.08));
    border-color: var(--studio-accent);
    color: #FFF;
    box-shadow: 0 0 16px var(--studio-accent-glow);
}

.studio-mode-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--studio-text-main);
    border: 1px solid var(--studio-border);
}

/* ==========================================================================
   MASTER LIGHT THEME SUITE - PORTFOLIO (100% CONTRAST & LEGIBILITY)
   ========================================================================== */

[data-theme="light"] {
    --bg-main: #F8FAFC !important;
    --bg-surface: #FFFFFF !important;
    --bg-card: #FFFFFF !important;
    --bg-card-hover: #F1F5F9 !important;
    --border-subtle: #E2E8F0 !important;
    --border-strong: #CBD5E1 !important;
    --border-glass: #E2E8F0 !important;
    --text-primary: #0F172A !important;
    --text-secondary: #334155 !important;
    --text-muted: #64748B !important;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .portfolio-card-title,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
    text-shadow: none !important;
}

[data-theme="light"] .portfolio-tech-tag {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
    font-weight: 600 !important;
}

[data-theme="light"] .portfolio-category-tag {
    background: #FFFFFF !important;
    color: #DC2626 !important;
    -webkit-text-fill-color: #DC2626 !important;
    border: 1px solid #FCA5A5 !important;
}






