/* ============================================
   OVNI.AGENCY - Tema oscuro, acentos amarillos
   Inspirado en YONT
   ============================================ */

:root {
    --bg: #000000;
    --bg-card: #0a0a0a;
    --bg-elevated: #111111;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #fae922;
    --accent-dim: rgba(250, 233, 34, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(250, 233, 34, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Navigation - Estilo iOS pill
   ============================================ */

.nav-pill-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 12px 24px;
    max-width: 1280px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), rgba(15, 15, 15, 0.92));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}

.nav-pill {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1002;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
}

.nav-pill.scrolled {
    top: 14px;
}

/* Nav sobre sección amarilla: fondo sólido para contraste */
.nav-pill.over-yellow .nav-pill-inner {
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.nav-pill.over-yellow .nav-links button {
    color: var(--text);
}

.nav-pill.over-yellow .nav-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-pill.over-yellow .nav-icon img {
    filter: brightness(0) invert(1);
}

.nav-pill.over-yellow .mobile-menu-btn span {
    background: var(--text);
}

.logo {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 28px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-links button:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav-social {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(250, 233, 34, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.nav-icon-text {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.nav-icon:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(250, 233, 34, 0.35);
    background: rgba(0, 0, 0, 0.8);
}

.nav-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.nav-social span.nav-icon {
    cursor: default;
}
.nav-social span.nav-icon:hover {
    transform: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent);
}

/* Mobile menu overlay - lateral, letras grandes */
.mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 100dvh;
        z-index: 999;
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        pointer-events: auto;
    }
    
    .mobile-menu-panel {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        min-height: 100dvh;
        background: #0a0a0a;
        padding: 80px 1.5rem 2rem;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .mobile-menu-overlay.active .mobile-menu-panel {
        transform: translateX(0);
    }
    
    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .mobile-menu-links button {
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        color: var(--text);
        font-family: 'Space Grotesk', sans-serif;
        font-size: clamp(2rem, 10vw, 3.5rem);
        font-weight: 700;
        line-height: 1.05;
        letter-spacing: -0.02em;
        padding: 1rem 0;
        cursor: pointer;
        transition: color 0.2s;
        white-space: nowrap;
    }
    
    .mobile-menu-links button:hover {
        color: var(--accent);
    }
    
    .mobile-menu-links button .menu-num {
        font-size: 0.35em;
        font-weight: 500;
        color: var(--text-muted);
        margin-right: 0.15em;
    }
    
    .mobile-menu-links button:hover .menu-num {
        color: var(--accent);
    }
    
    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 100dvh;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.35s ease;
        z-index: 1000;
    }
    
    .mobile-menu-overlay.active .mobile-menu-backdrop {
        opacity: 1;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================
   Hero - Tipografía grande + elementos flotantes
   ============================================ */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 1.5rem 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, #1a1a1a 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 80% 80%, rgba(250, 233, 34, 0.03) 0%, transparent 50%);
}

.hero-rings {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(250, 233, 34, 0.08);
    animation: ring-pulse 8s ease-in-out infinite;
}

.hero-rings::before {
    content: '';
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 1px solid rgba(250, 233, 34, 0.05);
}

.hero-rings::after {
    content: '';
    position: absolute;
    inset: 80px;
    border-radius: 50%;
    border: 1px solid rgba(250, 233, 34, 0.03);
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    min-height: 500px;
}

.hero-text {
    position: relative;
    z-index: 0;
    padding-right: 45%;
}

.hero-visual {
    position: absolute;
    right: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4.5rem, 11vw, 8.5rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-title .hero-line {
    display: block;
    white-space: nowrap;
}

.hero-sub {
    font-size: clamp(1.125rem, 1.5vw, 1.35rem);
    color: var(--text-muted);
    max-width: 420px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    padding: 16px 36px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #0a0a0a;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 20px 50px rgba(250, 233, 34, 0.25);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(250, 233, 34, 0.35);
}

/* Laptop flotante - sobre los títulos */
.hero-visual {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-floating-img {
    max-width: 100%;
    max-height: 706px;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: float 6s ease-in-out infinite 0.3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   Sections - Tema oscuro
   ============================================ */

.section {
    padding: 6rem 1.5rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}


.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-header h2 .accent {
    color: var(--accent);
}

/* Sobre Nosotros / Agencia */
.sobre-nosotros {
    background: var(--bg);
}

.grid-agencia {
    align-items: start;
}

.agency-text-block {
    padding-right: 1rem;
}

.agency-text-block .section-tag {
    margin-bottom: 0.75rem;
}

.agency-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.agency-text-block .text-content p {
    font-size: 1.375rem;
}

.agency-text-block .text-content p:first-child {
    margin-top: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.text-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.image-placeholder {
    height: 400px;
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Agencia - alien con parallax al scroll */
.agency-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    margin-top: 1.5rem;
}

.agency-alien {
    max-width: 100%;
    max-height: 816px;
    width: auto;
    height: auto;
    object-fit: contain;
    will-change: transform;
    animation: float 7s ease-in-out infinite 0.6s;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.value-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.value-num {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
}

.value-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Servicios - Carrusel */
.servicios {
    background: var(--bg);
}

.services-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-elevated);
    padding-bottom: 1rem;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.services-carousel::-webkit-scrollbar {
    height: 8px;
}

.services-carousel::-webkit-scrollbar-track {
    background: var(--bg-elevated);
    border-radius: 4px;
}

.services-carousel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.services-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    opacity: 0.9;
}

.services-swipe-hint {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: left;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.services-track {
    display: flex;
    gap: 2rem;
    min-width: min-content;
}

.service-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: calc((min(1280px, 100vw) - 2rem) / 2);
    min-width: 380px;
    padding: 2.5rem;
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-card:hover .service-title,
.service-card:hover .service-desc,
.service-card:hover .service-sub,
.service-card:hover .service-list li,
.service-card:hover .service-list li::before {
    color: #0a0a0a;
}

.service-card:hover .service-cta {
    border-color: #0a0a0a;
    color: #0a0a0a;
}

.service-card:hover .service-cta:hover {
    background: #0a0a0a;
    color: var(--accent);
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-sub {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-cta {
    align-self: flex-start;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.service-cta:hover {
    background: var(--accent);
    color: #0a0a0a;
}

@media (max-width: 768px) {
    .service-card {
        width: calc(100vw - 3rem);
        min-width: unset;
    }
}

/* Creatividad */
.creatividad {
    background: var(--bg);
}

.filters {
    margin-bottom: 3rem;
}

.filters-desktop {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filters-mobile {
    display: block;
    position: relative;
}

@media (min-width: 769px) {
    .filters-desktop {
        display: flex;
    }
    .filters-mobile {
        display: none;
    }
}

.filter-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: radial-gradient(circle at top, #1b1b1f 0%, #050507 100%);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-dropdown-trigger .filter-arrow {
    margin-left: 10px;
    font-size: 0.7rem;
    opacity: 0.8;
}

.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 8px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}

.filter-dropdown-menu.open {
    display: block;
}

.filter-dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-dropdown-item:hover {
    background: rgba(250, 233, 34, 0.1);
    color: var(--accent);
}

.filter-dropdown-item.active {
    color: var(--accent);
    font-weight: 600;
}

/* Botones de filtro estilo Artlist */
.filter-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: radial-gradient(circle at top, #1b1b1f 0%, #050507 100%);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--accent);
    border-color: rgba(250, 233, 34, 0.5);
    background: radial-gradient(circle at top, #26262c 0%, #08080b 100%);
    box-shadow: 0 0 0 1px rgba(250, 233, 34, 0.15);
}

.filter-btn.active {
    background: var(--accent);
    color: #111827;
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(250, 233, 34, 0.35);
}

/* Grid de trabajos tipo mosaico Artlist */
.projects-grid {
    display: grid;
    gap: 6px;
}

.projects-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.projects-grid.mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
}

.project-card {
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
    color: var(--accent);
}

.project-info {
    padding: 1.25rem;
}

.project-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-card.hidden {
    display: none;
}

/* Variantes de tamaño de tile */
.tile-large {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-tall {
    grid-row: span 2;
}

.tile-wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .projects-grid.mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 160px;
    }
}

@media (max-width: 600px) {
    .projects-grid.mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
        gap: 6px;
    }
}

/* Modal proyecto */
.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

body.modal-open {
    overflow: hidden;
}

.project-modal-content {
    background: var(--bg-elevated);
    border-radius: 24px;
    overflow: hidden;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
}

.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.project-modal-close:hover {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
}

.project-modal-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.project-modal-slides {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-modal-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-modal-slide.active {
    opacity: 1;
    z-index: 1;
}

.project-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.project-modal-arrow:hover {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent);
}

.project-modal-prev {
    left: 1rem;
}

.project-modal-next {
    right: 1rem;
}

.project-modal-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.project-modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.project-modal-dot.active {
    background: var(--accent);
    border-color: var(--accent);
}

.project-modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem 0;
}

.project-modal-like {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.project-modal-like:hover {
    color: var(--accent);
}

.project-modal-like.liked {
    color: var(--accent);
}

.project-modal-like .like-icon {
    font-size: 1rem;
    line-height: 1;
}

.project-modal-share-wrap {
    position: relative;
}

.project-modal-share-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-share-btn:hover {
    opacity: 1;
    color: var(--accent);
}

.project-modal-share-btn .share-icon {
    width: 18px;
    height: 18px;
}

.project-modal-share-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 140px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
}

.project-modal-share-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.share-option:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.share-option img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.project-modal-info {
    padding: 2rem;
}

.project-modal-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.project-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.project-modal-synopsis {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Clientes */
.clientes {
    background: var(--bg);
}

.clients-marquee {
    overflow: hidden;
    margin: 0 -1.5rem 4rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track-wrapper {
    display: flex;
    width: max-content;
    animation: marquee 17s linear infinite;
}

.clients-track-wrapper:hover {
    animation-play-state: paused;
}

.clients-track {
    display: flex;
    gap: 2rem;
    padding: 2rem 1.5rem;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo {
    flex-shrink: 0;
    width: 168px;
    height: 96px;
    min-width: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.client-logo:hover img {
    opacity: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contacto - Footer amarillo */
.contacto {
    background: var(--accent);
}

.contacto .section-tag {
    color: #0a0a0a;
}

.contact-grid.contact-footer {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0a0a0a;
    margin-bottom: 2rem;
}

.contact-heading-line {
    display: block;
}

.contact-heading-bold {
    font-weight: 700;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    line-height: 1.56;
}

.contact-details p {
    font-size: 1rem;
    color: #0a0a0a;
    margin: 0;
}

.contact-details a {
    color: #0a0a0a;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-details a:hover {
    opacity: 0.7;
}

.contact-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    align-self: flex-start;
}

.contact-footer-logo {
    margin-bottom: 1rem;
}

.contact-footer-logo img {
    height: 144px;
    width: auto;
    filter: brightness(0);
}

.contact-social {
    display: flex;
    gap: 0.75rem;
}

.contact-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.2s;
}

.contact-social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0);
}

.contact-social-icon:hover {
    background: #0a0a0a;
}

.contact-social-icon:hover img {
    filter: brightness(0) invert(1);
}

.contact-social span.contact-social-icon {
    cursor: default;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    background: #0a0a0a;
    border: none;
    border-radius: 999px;
    color: var(--accent);
    font-family: inherit;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.form-group textarea {
    border-radius: 24px;
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--accent);
    opacity: 0.95;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
}

.contact-footer .submit-btn {
    padding: 16px 32px;
    background: var(--accent);
    color: #0a0a0a;
    border: 2px solid #0a0a0a;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

.contact-footer .submit-btn:hover {
    background: #0a0a0a;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Zócalo / Footer */
.site-footer {
    background: #0a0a0a;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Popup éxito contacto */
.contact-success-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.contact-success-popup.active {
    opacity: 1;
    visibility: visible;
}

.contact-success-popup-inner {
    background: var(--bg-elevated);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.contact-success-popup.active .contact-success-popup-inner {
    transform: scale(1);
}

.contact-success-popup-inner p {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.contact-success-close {
    padding: 12px 28px;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.contact-success-close:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        padding: 36px 1.5rem 3rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-text {
        padding-right: 0;
        padding-top: 0;
        text-align: center;
        order: 1;
    }
    
    .hero-visual {
        display: flex;
        order: 2;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        justify-content: center;
        margin-top: 2rem;
        min-height: 320px;
    }
    
    .hero-floating-img {
        max-height: 320px;
    }
    
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        margin-left: auto;
        margin-right: auto;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-pill {
        top: 12px;
        padding: 0 0.75rem;
    }
    
    .nav-pill-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 8px 16px;
        gap: 1rem;
    }
    
    .logo img {
        height: 24px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* En mobile, ocultamos los íconos para mantener la barra baja */
    .nav-social {
        display: none;
    }
    
    .hero {
        padding: 72px 1.5rem 2.5rem;
    }
    
    /* Compactar secciones en mobile */
    .section {
        padding: 3.25rem 1.5rem;
    }
    
    .grid-2 {
        margin-bottom: 3rem;
    }
    
    /* Reducir espacio vertical entre secciones en mobile,
       especialmente antes de 02. Servicios */
    .servicios {
        padding-top: 1.5rem;
    }
    
    .hero-content {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-text {
        text-align: left;
        padding-right: 0;
        padding-top: 0;
        order: 1;
        align-self: stretch;
    }
    
    .hero-visual {
        display: flex;
        order: 2;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        justify-content: center;
        margin-top: 2rem;
        min-height: 336px;
    }
    
    .hero-floating-img {
        max-height: 336px;
    }
    
    .hero-sub {
        margin-left: 0;
    }
    
    .hero-cta {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }
    
    .hero-title .hero-line {
        white-space: normal;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .agency-visual {
        min-height: 380px;
        margin-top: 2rem;
    }
    
    .agency-alien {
        max-height: 408px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid.contact-footer {
        display: flex;
        flex-direction: column;
    }

    .contact-left {
        display: contents;
    }

    .contact-heading {
        order: 1;
    }

    .contact-form {
        order: 2;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form .form-group,
    .contact-form .form-group input,
    .contact-form .form-group textarea,
    .contact-form .submit-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form .submit-btn {
        align-self: stretch;
    }

    .contact-footer-bottom {
        order: 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
        margin-top: 2rem;
        align-items: start;
    }

    .contact-footer-bottom .contact-details {
        margin-bottom: 0;
        gap: 0.5rem;
        line-height: 1.56;
    }

    .contact-footer-bottom .contact-details p {
        font-size: calc(1rem - 2pt);
    }

    .contact-footer-bottom .contact-footer-brand {
        justify-self: end;
        align-items: center;
        gap: 1rem;
    }

    .contact-footer-bottom .contact-footer-logo img {
        height: 120px;
        width: auto;
    }

    .contact-footer-bottom .contact-social {
        gap: 0.75rem;
    }

    .contact-footer-bottom .contact-social-icon {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .contact-footer-bottom .contact-social-icon img {
        width: 16px;
        height: 16px;
    }
    
    .projects-grid:not(.mosaic) {
        grid-template-columns: 1fr;
    }
}
