/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #711caa;
    --primary-gradient: linear-gradient(135deg, #ffffff 0%, #595959 100%);
    --secondary-color: #430F65;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #050505;
    background-image: url('assets/backr.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

/* Overlay para oscurecer un poco el fondo y asegurar legibilidad */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    border: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--text-color);
    color: #050505;
    box-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: none;
}

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

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
}

.btn-outline:hover {
    background: var(--text-color);
    color: #000;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0px;
    z-index: 100;
    transition: background 0.3s ease,
        padding 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.3s ease,
        transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 0px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header.nav-hidden {
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        padding 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        background 0.3s ease,
        box-shadow 0.3s ease;
}

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

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
}

.projects-mobile-wrapper {
    display: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.hero-icon-wrapper {
    perspective: 800px;
}

.hero-icon-spin {
    width: 300px;
    height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(113, 28, 170, 0.6)) drop-shadow(0 0 40px rgba(113, 28, 170, 0.3));
    animation: spin-y 5s linear infinite;
}

@keyframes spin-y {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.hero-brand-name {
    max-width: 500px;
    height: auto;

}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    margin-bottom: 24px;

}


.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   Services Section — Timed Cards Gallery
   ========================================================================== */
.srv-mobile-wrapper {
    display: none;
}

.services {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #111;
}

/* El encabezado de servicios flota sobre las cards con z-index alto */
.services .section-header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 110;
    width: 100%;
    padding-top: 10px;
}

/* Cards */
.srv-card {
    position: absolute;
    left: 0;
    top: 0;
    background-position: center;
    background-size: cover;
    box-shadow: 6px 6px 10px 2px rgba(0, 0, 0, 0.6);
}

.srv-card-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    opacity: 0.15;
    pointer-events: none;
    line-height: 1;
}

/* Card content (small thumbnail label) */
.srv-card-content {
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 16px;
}

.srv-content-category {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.srv-content-title-1,
.srv-content-title-2 {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    font-family: var(--font-heading);
}

/* Details overlay (left panel) */
.srv-details {
    z-index: 22;
    position: absolute;
    top: 280px;
    left: 60px;
}

@media (max-width: 640px) {
    .srv-details {
        left: 20px;
        top: 160px;
    }
}

.srv-place-box {
    height: 46px;
    overflow: hidden;
}

.srv-text {
    padding-top: 16px;
    font-size: 18px;
    font-weight: 500;
    position: relative;
}

.srv-text::before {
    top: 0;
    left: 0;
    position: absolute;
    content: '';
    width: 30px;
    height: 4px;
    border-radius: 99px;
    background-color: var(--primary-color);
}

.srv-title-box-1,
.srv-title-box-2 {
    margin-top: 2px;
    height: 100px;
    overflow: hidden;
}

.srv-title-1,
.srv-title-2 {
    font-weight: 700;
    font-size: clamp(48px, 6vw, 80px);
    font-family: var(--font-heading);
    line-height: 1;
    color: #fff;
}

.srv-desc {
    margin-top: 16px;
    width: min(500px, calc(100vw - 80px));
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.srv-cta {
    margin-top: 28px;
}

.srv-discover {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background-color: transparent;
    height: 40px;
    border-radius: 99px;
    color: #fff;
    padding: 10px 28px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.srv-discover:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Pagination */
.srv-pagination {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.srv-arrow {
    z-index: 60;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.srv-arrow:nth-child(2) {
    margin-left: 20px;
}

.srv-arrow:hover {
    border-color: var(--primary-color);
}

.srv-arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    color: rgba(255, 255, 255, 0.7);
}

.srv-progress-sub-container {
    margin-left: 24px;
    z-index: 60;
    width: 300px;
    height: 50px;
    display: flex;
    align-items: center;
}

.srv-progress-sub-background {
    width: 300px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.15);
}

.srv-progress-sub-foreground {
    height: 3px;
    background-color: var(--primary-color);
}

.srv-slide-numbers {
    width: 50px;
    height: 50px;
    overflow: hidden;
    z-index: 60;
    position: relative;
}

.srv-slide-item {
    width: 50px;
    height: 50px;
    position: absolute;
    color: white;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 700;
}

/* Intro cover */
.srv-cover {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    z-index: 100;
}



/* Section Headers */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0 10px;
    position: relative;
    z-index: 30;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(113, 28, 170, 0.12);
    border: 1px solid rgba(113, 28, 170, 0.35);
    border-radius: 99px;
    padding: 5px 18px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 30%, rgba(180, 100, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(113, 28, 170, 0.3));
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(113, 28, 170, 0.2));
    border-radius: 99px;
    margin: 0 auto 10px;
}

/* Contact section label (inline, not in section-header wrapper) */
.contact-container .section-label {
    margin-bottom: 12px;
}

.contact-container .section-divider {
    margin-bottom: 24px;
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(113, 28, 170, 0.2);
    border-color: rgba(113, 28, 170, 0.4);
}

.service-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}



/* ==========================================================================
   Tech Stack Section
   ========================================================================== */
.tech-stack {
    padding: 100px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px 60px;
    margin-top: 50px;
    padding-left: 30px;
    /* Buffer para que las imágenes flotantes no se corten */
}

@media (width <=640px) {
    .tech-grid {
        grid-template-columns: 1fr;
        padding-left: 0;
        gap: 60px;
        margin-top: 80px;
    }
}

.tech-card {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 30, 0.8);
    box-shadow: 0px 14px 40px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 20px 20px 20px 0;
    transition: all .3s;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (width <=640px) {
    .tech-card {
        flex-direction: column;
        padding: 0 20px 20px 20px;
        text-align: center;
        padding-top: 0;
    }
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 20px 50px rgba(113, 28, 170, 0.2);
}

.tech-icon-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: linear-gradient(147deg, #711caa 0%, #430F65 74%);
    box-shadow: 4px 5px 15px rgba(113, 28, 170, 0.4);
    border-radius: 16px;
    transform: translateX(-30px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all .3s;
}

@media (width <=640px) {
    .tech-icon-wrapper {
        transform: translateY(-30px);
        margin-bottom: -15px;
    }
}

.tech-card:hover .tech-icon-wrapper {
    transform: translateX(-30px) scale(1.05);
    box-shadow: 4px 15px 30px rgba(113, 28, 170, 0.6);
}

@media (width <=640px) {
    .tech-card:hover .tech-icon-wrapper {
        transform: translateY(-30px) scale(1.05);
    }
}

.tech-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

.tech-icon.invert-dark {
    filter: invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.tech-content {
    padding-right: 15px;
}

@media (width <=640px) {
    .tech-content {
        padding-right: 0;
    }
}

.tech-content h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: #ffffff;
}

.tech-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects {
    position: relative;
    padding: 80px 0 100px;
}

.gallery-root {
    --thumb-scale: 0.15;
    --thumb-gap: 14px;
    --thumb-bottom: 30px;
    --zoom-duration: 0.8s;
    --zoom-ease: cubic-bezier(0.22, 1, 0.36, 1);

    height: 90vh;
    min-height: 700px;
    width: 95%;
    max-width: 1600px;
    margin: 40px auto 0;
    overflow: hidden;
    position: relative;
    background: #0b0b0f;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media (width <=640px) {
    .gallery-root {
        --thumb-scale: 0.2;
        --thumb-gap: 10px;
        --thumb-bottom: 20px;
    }
}

.gallery-track {
    height: 100%;
    overflow: visible;
    position: relative;
}

.gallery-item {
    inset: 0;
    margin: 0;
    pointer-events: none;
    position: absolute;
    transform: none;
    width: auto;
}

.gallery-item[data-active="true"] {
    z-index: 1;
}

.gallery-item[data-active="false"] {
    z-index: 10;
}

.gallery-slide {
    border-radius: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: auto;
    position: absolute;
    transform: translate(0, 0) scale(1);
    transition:
        transform var(--zoom-duration) var(--zoom-ease),
        border-radius var(--zoom-duration) var(--zoom-ease),
        filter 0.25s ease;
    will-change: transform;
}

.gallery-item[data-active="false"] .gallery-slide {
    border-radius: 32px;
    filter: brightness(0.6);
    transform: translate(calc(var(--offset) * (var(--thumb-scale) * 100vw + var(--thumb-gap))),
            calc((50% - var(--thumb-scale) * 50%) - var(--thumb-bottom))) scale(var(--thumb-scale));
    cursor: pointer;
}

.gallery-item[data-active="false"] .gallery-slide:hover {
    filter: brightness(1);
}

.gallery-iframe {
    display: block;
    /* Hacemos el iframe un poco más grande para que las barras de scroll queden ocultas por el overflow:hidden del padre */
    width: calc(100% + 25px);
    height: calc(100% + 25px);
    border: none;
    background-color: #ffffff;
}

.gallery-rail {
    align-items: flex-start;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    inset: 0 auto 0 0;
    justify-content: flex-start;
    max-width: min(700px, 80%);
    padding: 12% 4rem 0;
    pointer-events: none;
    position: absolute;
    z-index: 5;
}

@media (width <=640px) {
    .gallery-rail {
        max-width: 90%;
        padding: 15% 1.5rem 0;
    }
}

.gallery-content {
    animation: content-in 0.6s var(--zoom-ease) calc(var(--zoom-duration) * 0.4) backwards;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto;
}

@keyframes content-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
}

.gallery-kicker {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
}

.gallery-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0;
    font-family: var(--font-heading);
}

.gallery-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.6;
    margin: 0;
}

.gallery-controls {
    display: flex;
    gap: 1rem;
    pointer-events: auto;
}

.gallery-navBtn {
    align-items: center;
    appearance: none;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 3.5rem;
    justify-content: center;
    transition: all 0.3s ease;
    width: 3.5rem;
}

.gallery-navBtn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

.project-link span {
    transition: transform 0.3s ease;
}

.project-link:hover span {
    transform: translateX(5px);
}

/* Estilos específicos para el header de la sección proyectos */
.projects .section-header {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto 20px auto;
    position: relative;
}

/* Contenedor del botón Ver Todos (a la derecha del título) */
.projects-ver-todos-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 20;
}

#gallery-ver-mas-static {
    padding: 10px 24px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .projects-ver-todos-container {
        position: static;
        transform: none;
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }
}

.gallery-ver-mas-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    opacity: 0.75;
}

/* ==========================================================================
   Contact Section — Minimal
   ========================================================================== */
.contact {
    padding: 140px 0 160px;
    text-align: center;
}

.contact-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 640px;
}

.contact-overline {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-color);
    opacity: 0.8;
}

.contact-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}

.contact-sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 420px;
    margin: 0;
}

/* Botón WhatsApp */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    margin-top: 8px;
}

.btn-whatsapp:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    color: #fff;
}

.btn-whatsapp-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Enlace email */
.contact-email-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2px;
}

.contact-email-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 60px 0 0 0;
    border-top: 1px solid var(--border-glass);
    background: rgba(8, 8, 16, 0.95);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .footer-brand p {
        margin: 0 auto;
    }
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    object-position: left;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-logo {
        object-position: center;
    }
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(8, 8, 16, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 900;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
    }
    
    .nav-list.active {
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 40px; /* Un poco más pequeño que en escritorio pero visible */
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Reducción íconos hero */
    .hero-icon-spin {
        width: 140px;
        height: 140px;
    }

    .hero-brand-name {
        max-width: 240px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-root {
        min-height: 550px;
    }
    
    .contact {
        padding: 80px 0 100px;
    }
    
    .projects {
        padding: 50px 0 60px;
    }
    
    /* Servicios en Móvil (Lista estática) */
    .services {
        height: auto;
        overflow: visible;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .services .section-header {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 30px;
    }
    
    .srv-mobile-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .srv-mobile-card {
        position: relative;
        border-radius: 16px;
        padding: 30px 20px;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    
    .srv-mobile-emoji {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
        opacity: 0.8;
    }
    
    .srv-mobile-content {
        position: relative;
        z-index: 10;
    }
    
    .srv-mobile-category {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--primary-color);
        margin-bottom: 8px;
    }
    
    .srv-mobile-title {
        font-size: 1.5rem;
        font-family: var(--font-heading);
        font-weight: 700;
        color: #ffffff;
        margin: 0 0 10px 0;
        line-height: 1.2;
    }
    
    .srv-mobile-desc {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.5;
        margin: 0;
    }
    
    #servicios {
        overflow: visible;
        min-height: auto;
    }
    
    /* Ocultar canvas y detalles originales en móvil */
    .srv-desktop-wrapper, #srv-pagination, .srv-details {
        display: none !important;
    }
    
    .srv-mobile-wrapper {
        display: flex !important;
    }
    
    .projects-desktop-wrapper {
        display: none !important;
    }
    
    .projects-mobile-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
        margin-top: 20px;
    }

    .project-mobile-card {
        background: #0f0f15;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    }

    .project-mobile-preview {
        position: relative;
        width: 100%;
        height: 240px;
        background: #000;
        overflow: hidden;
    }

    .project-mobile-iframe {
        width: 167%;
        height: 167%;
        border: none;
        pointer-events: none;
        transform-origin: top left;
        transform: scale(0.6);
    }

    .project-mobile-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(2px);
    }
    
    .project-mobile-card:hover .project-mobile-overlay, 
    .project-mobile-card:active .project-mobile-overlay {
        opacity: 1;
    }

    .project-mobile-btn {
        background: var(--primary-color);
        color: #fff;
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        transform: translateY(15px);
        transition: transform 0.3s ease;
    }
    
    .project-mobile-card:hover .project-mobile-btn,
    .project-mobile-card:active .project-mobile-btn {
        transform: translateY(0);
    }

    .project-mobile-info {
        padding: 20px;
    }

    .project-mobile-title {
        font-size: 1.25rem;
        font-family: var(--font-heading);
        margin-bottom: 8px;
        color: #fff;
    }

    .project-mobile-desc {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.5;
        margin: 0;
    }
}
    
    /* Pero necesitamos que el demo sí sea visible, ya que metimos nuestro grid adentro */
    #srv-demo {
        display: block !important;
        position: relative;
        height: auto;
    }
}