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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --success: #00d084;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 15px;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ─── Navigation ─── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

[data-theme="light"] nav {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

/* Video background */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.65);
    z-index: 0;
}

[data-theme="light"] .hero-video-overlay {
    background: rgba(240, 242, 255, 0.72);
}

/* Dot grid overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .hero::after {
    background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
}

/* Gradient orbs */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.hero-orb-1 {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb1 9s ease-in-out infinite;
}

.hero-orb-2 {
    width: 380px;
    height: 380px;
    background: #0066ff;
    opacity: 0.13;
    top: 5%;
    right: 8%;
    animation: floatOrb2 11s ease-in-out infinite;
}

.hero-orb-3 {
    width: 320px;
    height: 320px;
    background: #764ba2;
    opacity: 0.12;
    bottom: 8%;
    left: 8%;
    animation: floatOrb3 13s ease-in-out infinite;
}

[data-theme="light"] .hero-orb-1 { opacity: 0.1; }
[data-theme="light"] .hero-orb-2 { opacity: 0.08; }
[data-theme="light"] .hero-orb-3 { opacity: 0.07; }

@keyframes floatOrb1 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33%       { transform: translate(-50%, -50%) scale(1.08) translate(30px, 20px); }
    66%       { transform: translate(-50%, -50%) scale(0.95) translate(-20px, 30px); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-30px, 20px) scale(1.08); }
    66%       { transform: translate(20px, -30px) scale(0.94); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(25px, -20px) scale(1.1); }
}

.hero-content {
    max-width: 760px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: fadeInUp 0.7s ease both;
}

.hero-role {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: white;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.3s both;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-arrow {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    opacity: 0.5;
}

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

/* ─── Buttons ─── */
.btn {
    padding: 0.85rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ─── Sections ─── */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ─── Sobre mí ─── */
#sobre-mi {
    padding-top: 5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
}

.about-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 20px 60px rgba(102,126,234,0.4);
    flex-shrink: 0;
}

.photo-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102,126,234,0.4);
    flex-shrink: 0;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    display: block;
}

.avatar-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
    white-space: nowrap;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ─── Servicios ─── */
#servicios {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.service-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.service-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
}

.service-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.service-icon {
    font-size: 2.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.service-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 1.25rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.service-cta {
    margin-top: auto;
    text-align: center;
}

/* ─── Skills ─── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.skill-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: 1.05rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ─── Experiencia compacta ─── */
.experience-strip-section {
    padding: 2rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.exp-strip-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.exp-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
}

.exp-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.exp-company {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.exp-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.exp-divider {
    width: 1px;
    height: 36px;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .exp-divider { display: none; }
    .exp-strip { gap: 1.25rem; }
}

/* ─── Proyectos ─── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.project-card.featured-project {
    border: 2px solid rgba(102,126,234,0.4);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.project-card:hover .project-screenshot {
    transform: scale(1.05);
}

.project-emoji {
    font-size: 3.5rem;
}

.project-content {
    padding: 1.5rem;
}

.project-tag-live {
    display: inline-block;
    background: rgba(0, 208, 132, 0.15);
    color: var(--success);
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-tag-private {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--accent-hover);
}

.projects-cta {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.projects-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ─── Testimonios ─── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.testimonial-quote {
    font-size: 5rem;
    line-height: 0.5;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: Georgia, serif;
}

.testimonial-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ─── Contacto ─── */
.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    background: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
}

.contact-method:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

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

.contact-method strong {
    display: block;
    font-size: 0.95rem;
}

.contact-method span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ─── Formulario ─── */
.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form select option {
    background: var(--bg-secondary);
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

/* ─── Footer ─── */
footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ─── Animaciones ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Mobile menu ─── */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ─── Scroll reveal ─── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-avatar-wrapper {
        margin: 0 auto;
    }

    .stats-row {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .services-grid:not(.carousel-track) {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

/* ─── Carousel nav (oculto en desktop) ─── */
.carousel-nav {
    display: none;
}

/* ─── Carousel Mobile ─── */
@media (max-width: 768px) {
    .carousel-wrapper {
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    #carousel-services {
        padding-top: 16px;
    }

    .carousel-track {
        display: flex !important;
        grid-template-columns: unset !important;
        gap: 0 !important;
        width: 100%;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
    }

    .carousel-track > * {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .carousel-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.25rem;
    }

    .carousel-btn {
        background: var(--bg-tertiary);
        border: none;
        color: var(--text-primary);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 1.8rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s;
        line-height: 1;
        flex-shrink: 0;
    }

    .carousel-btn:hover,
    .carousel-btn:active {
        background: var(--accent);
        color: white;
    }

    .carousel-dots {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .carousel-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--bg-tertiary);
        border: 2px solid var(--text-secondary);
        cursor: pointer;
        transition: background 0.2s, transform 0.2s, border-color 0.2s;
        padding: 0;
    }

    .carousel-dot.active {
        background: var(--accent);
        border-color: var(--accent);
        transform: scale(1.35);
    }
}
