/* Ocultar cursor nativo en toda la página */
* {
    cursor: none !important;
}

/* Asegurar que se mantenga oculto incluso en elementos interactivos */
a, button, .portfolio-item, .service-card, .skill-tag, .social-links a, 
input, textarea, select, label, [role="button"] {
    cursor: none !important;
}

/* Cursor personalizado visible */
.cursor, .cursor-follower {
    pointer-events: none;
    z-index: 99999;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --yellow: #ffd900;
    --cyan: #001aff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
}

/* Content layers above particles */
nav, .hero, .portfolio, .about, .services, .contact, footer, .marquee-container {
    position: relative;
    z-index: 2;
}

/* ===== CURSOR ===== */
.cursor {
    width: 24px;
    height: 24px;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
}

.cursor::before,
.cursor::after {
    content: '';
    position: absolute;
    background: #ffffff;
    transition: all 0.3s;
}

.cursor::before {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.cursor::after {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* HOVER — Gira a X, cambia a amarillo */
.cursor.hover::before,
.cursor.hover::after {
    background: var(--yellow);
}

.cursor.hover::before {
    transform: translateX(-50%) rotate(45deg);
    height: 140%;
    top: -20%;
}

.cursor.hover::after {
    transform: translateY(-50%) rotate(45deg);
    width: 140%;
    left: -20%;
}

/* RASTRO SLOW-MOTION */
.trail-cross {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 99998;
    opacity: 0.4;
    animation: trailCrossFade 1.2s ease-out forwards;
}

.trail-cross::before,
.trail-cross::after {
    content: '';
    position: absolute;
    background: var(--yellow);
}

.trail-cross::before {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.trail-cross::after {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

@keyframes trailCrossFade {
    0% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* Follower principal */
.cursor-follower {
    width: 60px;
    height: 60px;
    position: fixed;
    pointer-events: none;
    z-index: 99997;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-follower::before,
.cursor-follower::after {
    content: '';
    position: absolute;
    background: rgba(255, 217, 0, 0.06);
    transition: all 0.4s;
}

.cursor-follower::before {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.cursor-follower::after {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.cursor-follower.hover::before,
.cursor-follower.hover::after {
    background: rgba(255, 217, 0, 0.2);
}

.cursor-follower.hover {
    transform: scale(0.8);
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 768px) {
    
    /* Ocultar cursor y todo lo relacionado en móvil */
    .cursor,
    .cursor-follower,
    .trail-cross,
    #particle-layer,
    #trail-container {
        display: none !important;
    }
    
    /* Restaurar cursor nativo */
    * {
        cursor: auto !important;
    }
    
    body {
        cursor: auto;
    }
    
    /* Hero: texto que no se corte */
    .hero {
        padding: 0 1.5rem;
        height: auto;
        min-height: 100vh;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    .hero h1 {
        font-size: 3rem;
        line-height: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .hero h1 .line1,
    .hero h1 .line2,
    .hero h1 .line3 {
        display: block;
        width: 100%;
    }
    
    .hero-bg-text {
        font-size: 25vw;
    }
    
    .hero-label {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        padding: 1rem 2rem;
    }
    
    /* Marquee */
    .marquee-container {
        transform: rotate(-2deg) scale(1.02);
        margin: 2rem 0;
    }
    
    .marquee span {
        font-size: 1.2rem;
    }
    
    /* Portfolio */
    .portfolio {
        padding: 4rem 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* About */
    .about {
        padding: 4rem 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual .square {
        width: 80%;
        margin: 0 auto;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    /* Services */
    .services {
        padding: 4rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Contact */
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .contact h2 {
        font-size: 2.2rem;
    }
    
    .contact-email {
        font-size: 1.1rem;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Nav */
    nav {
        padding: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* ===== TABLET ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}


/* Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--yellow);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--yellow);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 20vw;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    z-index: 0;
    white-space: nowrap;
    user-select: none;
    animation: slideText 20s linear infinite;
}

@keyframes slideText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.hero-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--yellow);
    margin-bottom: 2rem;
    display: block;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: 7rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero h1 .line1 { 
    color: #ffffff;  /* CREANDO - Blanco */
}

.hero h1 .line2 { 
    color: #ffffff;  /* VISUALES - Blanco (antes amarillo) */
}

.hero h1 .line3 { 
    color: transparent;
    -webkit-text-stroke: 2px var(--yellow);  /* IMPACTANTES - Contorno amarillo */
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--yellow);
    transition: left 0.3s;
    z-index: -1;
}

.cta-button:hover {
    color: var(--bg-primary);
}

.cta-button:hover::before {
    left: 0;
}

/* MARQUEE — Versión estable */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.marquee-container {
    background: var(--yellow);
    color: var(--bg-primary);
    padding: 1rem 0;
    overflow: hidden;
    transform: rotate(-2deg) scale(1.02);
    width: 110%;
    margin-left: -5%;
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

.marquee span {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    text-transform: uppercase;
    padding: 0 2rem;
    letter-spacing: 0.05em;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Portfolio Grid */
.portfolio {
    padding: 8rem 4rem;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.section-header h2 span {
    color: var(--yellow);
}

.section-header-centered {
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.view-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--text-secondary);
    padding-bottom: 0.2rem;
    transition: all 0.3s;
}

.view-all:hover {
    color: var(--yellow);
    border-color: var(--yellow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--bg-secondary);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
    filter: grayscale(100%) contrast(1.2);
}

.portfolio-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.portfolio-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--yellow);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-alt {
    background: var(--cyan);
    color: var(--bg-primary);
}

.tag-contrast {
    background: var(--yellow);
    color: var(--bg-primary);
    border: 2px solid var(--cyan);
}

/* About Section */
.about {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual .square {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--yellow), var(--cyan));
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.about-visual .square::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: -2rem;
    bottom: -2rem;
    border: 2px solid var(--yellow);
    z-index: -1;
}

.about-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.about-content h2 .highlight {
    color: var(--yellow);
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--yellow);
    color: var(--bg-primary);
    border-color: var(--yellow);
}

/* Services */
.services {
    padding: 8rem 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 217, 0, 0.3);
}

.service-number {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.alt-color {
    color: var(--cyan);
}

/* Contact */
.contact {
    padding: 8rem 4rem;
    text-align: center;
    position: relative;
}

.contact h2 {
    font-family: 'Syne', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.contact h2 .gradient-text {
    background: linear-gradient(135deg, var(--yellow), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-sub {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-email {
    font-size: 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 0.5rem;
    transition: all 0.3s;
    display: inline-block;
    margin: 2rem 0;
}

.contact-email:hover {
    color: var(--yellow);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-links a {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--bg-primary);
    transform: rotate(45deg);
}

/* Footer */
footer {
    padding: 3rem 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-back {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-back:hover {
    color: var(--yellow);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (max-width: 968px) {
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        padding: 1.5rem 2rem;
    }
    
    .hero, .portfolio, .about, .services, .contact {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact h2 {
        font-size: 2.5rem;
    }

    .contact-email {
        font-size: 1.2rem;
    }
/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 768px) {
    
    /* Ocultar cursor y todo lo relacionado en móvil */
    .cursor,
    .cursor-follower,
    .trail-cross,
    #trail-container,
    #particle-layer {
        display: none !important;
    }
    
    /* Restaurar cursor nativo */
    * {
        cursor: auto !important;
    }
    
    body {
        cursor: auto;
    }
    
    /* Hero: SUBIR TEXTO para no dejar hueco vacío */
    .hero {
        padding: 0 1rem;
        height: auto;
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 0;
        justify-content: flex-start;
        position: relative;
        z-index: 1;
        overflow: visible;
    }
    
    /* Texto más pequeño para que quepa */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.05;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        letter-spacing: -0.02em;
    }
    
    .hero h1 .line1,
    .hero h1 .line2,
    .hero h1 .line3 {
        display: block;
        width: 100%;
    }
    
    /* IMPACTANTES más pequeño para no bajar de línea */
    .hero h1 .line3 {
        font-size: 1.8rem;
        -webkit-text-stroke: 1px var(--yellow);
    }
    
    /* TEXTO ASTRO DE FONDO - MÁS ARRIBA */
    .hero-bg-text {
        position: relative;
        font-size: 18vw;
        top: auto;
        left: 0;
        margin-top: 0.5rem; /* Más arriba, justo debajo del botón */
        margin-bottom: 0;
        animation: slideText 10s linear infinite;
        z-index: 0;
        opacity: 0.12;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
        line-height: 1;
        height: auto;
        overflow: hidden;
    }
    
    .hero-label {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        margin-bottom: 1rem;
        margin-top: 0;
    }
    
    .hero-description {
        font-size: 0.9rem;
        max-width: 100%;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        padding: 1rem 1.5rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        position: relative;
        z-index: 2;
    }
    
    /* MARQUEE - ESPACIO CORRECTO, NO CORTA LA PÁGINA */
    .marquee-container {
        transform: rotate(-2deg);
        margin-top: 2rem; /* Espacio después del ASTRO */
        margin-bottom: 2rem;
        padding: 1.2rem 0;
        position: relative;
        z-index: 2;
        width: 110%;
        margin-left: -5%;
    }
    
    .marquee {
        animation: marquee 6s linear infinite;
    }
    
    .marquee span {
        font-size: 1.4rem;
        padding: 0 1.5rem;
        letter-spacing: 0.08em;
    }
    
    /* Portfolio */
    .portfolio {
        padding: 3rem 1rem;
        position: relative;
        z-index: 3;
        background: var(--bg-primary);
        margin-top: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-item {
        aspect-ratio: 3/4;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-tag {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* About */
    .about {
        padding: 3rem 1rem;
        position: relative;
        z-index: 4;
        background: var(--bg-secondary);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-visual .square {
        width: 70%;
        margin: 0 auto;
    }
    
    .about-content h2 {
        font-size: 1.6rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .skills {
        gap: 0.6rem;
    }
    
    .skill-tag {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Services */
    .services {
        padding: 3rem 1rem;
        position: relative;
        z-index: 5;
        background: var(--bg-primary);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-number {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* Contact */
    .contact {
        padding: 3rem 1rem;
        position: relative;
        z-index: 6;
        background: var(--bg-primary);
    }
    
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-sub {
        font-size: 1rem;
    }
    
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .contact-email {
        font-size: 1rem;
        margin: 1.5rem 0;
    }
    
    .social-links {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 0.75rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        font-size: 0.8rem;
        position: relative;
        z-index: 7;
        background: var(--bg-primary);
    }
    
    /* Nav */
    nav {
        padding: 1.2rem 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo {
        font-size: 1.1rem;
    }
}

/* ===== MÓVIL PEQUEÑO (iPhone SE, etc) ===== */
@media (max-width: 380px) {
    .hero {
        padding-top: 4rem;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero h1 .line3 {
        font-size: 1.5rem;
    }
    
    .hero-label {
        font-size: 0.6rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .contact h2 {
        font-size: 1.5rem;
    }
    
    .hero-bg-text {
        font-size: 20vw;
        margin-top: 0.3rem;
    }
    
    .marquee-container {
        margin-top: 1.5rem;
        padding: 1rem 0;
    }
    
    .marquee span {
        font-size: 1.2rem;
    }
    
    .marquee {
        animation: marquee 5s linear infinite;
    }
}
}

