/* Variables de color globales */
:root {
    /* Colores principales */
    --primary-black: #0a0a0a;
    --secondary-black: #111111;
    --dark-gray: #1a1a1a;
    --medium-gray: #222222;
    --light-gray: #333333;
    --lighter-gray: #444444;
    
    /* Colores de texto */
    --text-white: #ffffff;
    --text-light: #cccccc;
    --text-medium: #999999;
    --text-dark: #666666;
    --text-darker: #444444;
    
    /* Colores de acento */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    
    /* Colores de fondo */
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-lighter: #f0f0f0;
    --bg-gray: #f5f5f5;
    
    /* Transparencias */
    --transparent-white-05: rgba(255, 255, 255, 0.05);
    --transparent-white-08: rgba(255, 255, 255, 0.08);
    --transparent-white-1: rgba(255, 255, 255, 0.1);
    --transparent-white-2: rgba(255, 255, 255, 0.2);
    --transparent-white-3: rgba(255, 255, 255, 0.3);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: 
        /* Fondo base */
        linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 50%, var(--dark-gray) 100%);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* X's con efecto de zoom en el background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='rgba(255,255,255,0.015)'%3E%3Cline x1='3' y1='3' x2='27' y2='27' stroke='currentColor' stroke-width='1'/%3E%3Cline x1='27' y1='3' x2='3' y2='27' stroke='currentColor' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='rgba(255,255,255,0.008)'%3E%3Cline x1='8' y1='8' x2='52' y2='52' stroke='currentColor' stroke-width='1.5'/%3E%3Cline x1='52' y1='8' x2='8' y2='52' stroke='currentColor' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='rgba(255,255,255,0.005)'%3E%3Cline x1='15' y1='15' x2='105' y2='105' stroke='currentColor' stroke-width='2'/%3E%3Cline x1='105' y1='15' x2='15' y2='105' stroke='currentColor' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 30px 30px, 60px 60px, 120px 120px;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: -1;
    animation: xBackgroundZoom 60s ease-in-out infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--transparent-white-1);
}

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

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

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.animated-x {
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
}

.x-bar {
    position: absolute;
    background-color: var(--text-white);
    border-radius: 1px;
}

.x-bar.static {
    width: 3px;
    height: 1.5rem;
    transform: rotate(45deg);
    animation: rotateStatic 4s ease infinite;
}

.x-bar.rotating {
    width: 3px;
    height: 1.5rem;
    transform: rotate(-45deg);
    animation: rotateX 4s ease infinite;
}

@keyframes rotateX {
    0% { transform: rotate(-45deg); }
    40% { transform: rotate(-45deg); }
    55% { transform: rotate(0deg); }
    80% { transform: rotate(0deg); }
    100% { transform: rotate(-45deg); }
}

@keyframes rotateStatic {
    0% { transform: rotate(45deg); }
    40% { transform: rotate(45deg); }
    55% { transform: rotate(90deg); }
    80% { transform: rotate(90deg); }
    100% { transform: rotate(45deg); }
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-white);
    transform: translateY(-1px);
}

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

.nav-link.active {
    color: var(--accent-blue);
    font-weight: 600;
}

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



/* Modo claro */
body.light-mode {
    background: 
        /* Fondo base claro */
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: var(--primary-black);
}

body.light-mode::before {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='rgba(0,0,0,0.015)'%3E%3Cline x1='3' y1='3' x2='27' y2='27' stroke='currentColor' stroke-width='1'/%3E%3Cline x1='27' y1='3' x2='3' y2='27' stroke='currentColor' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='rgba(0,0,0,0.008)'%3E%3Cline x1='8' y1='8' x2='52' y2='52' stroke='currentColor' stroke-width='1.5'/%3E%3Cline x1='52' y1='8' x2='8' y2='52' stroke='currentColor' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='rgba(0,0,0,0.005)'%3E%3Cline x1='15' y1='15' x2='105' y2='105' stroke='currentColor' stroke-width='2'/%3E%3Cline x1='105' y1='15' x2='15' y2='105' stroke='currentColor' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
}

body.light-mode .navbar {
    background-color: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .logo-text,
body.light-mode .nav-link,
body.light-mode .hero-title,
body.light-mode .section-title,
body.light-mode .process-title,
body.light-mode .service-title,
body.light-mode .project-title,
body.light-mode .contact-title {
    color: var(--primary-black);
}

body.light-mode .hero-subtitle,
body.light-mode .section-subtitle,
body.light-mode .process-description,
body.light-mode .service-description,
body.light-mode .project-description,
body.light-mode .contact-subtitle {
    color: var(--text-dark);
}

body.light-mode .process-card,
body.light-mode .service-card,
body.light-mode .project-card,
body.light-mode .contact-form {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .floating-card {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Sección Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.title-text {
    color: var(--text-white);
}

.animated-x.large {
    width: 3.5rem;
    height: 3.5rem;
    position: relative;
}

.animated-x.large .x-bar {
    position: absolute;
    background-color: var(--text-white);
    border-radius: 2px;
}

.animated-x.large .x-bar.static {
    width: 8px;
    height: 3.5rem;
    transform: rotate(45deg);
    animation: rotateStatic 4s ease infinite;
}

.animated-x.large .x-bar.rotating {
    width: 8px;
    height: 3.5rem;
    transform: rotate(-45deg);
    animation: rotateX 4s ease infinite;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.cta-button.primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-md);
    transition: all 0.1s ease;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--transparent-white-2);
}

.cta-button.secondary:hover {
    background: var(--transparent-white-1);
    border-color: var(--transparent-white-3);
    transform: translateY(-1px);
}

.cta-button.secondary:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--transparent-white-2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--transparent-white-3);
    box-shadow: var(--shadow-lg);
}

.floating-card:active {
    transform: translateY(-5px) scale(0.98);
    transition: all 0.1s ease;
}

.floating-card.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.floating-card:hover .card-icon {
    transform: scale(1.1);
}

.card-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.floating-card:hover .card-text {
    color: var(--text-white);
}

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

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

/* Secciones generales */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Separadores de sección */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--transparent-white-1) 20%, 
        var(--transparent-white-2) 50%, 
        var(--transparent-white-1) 80%, 
        transparent 100%);
    margin: 0;
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-blue), 
        transparent);
    animation: dividerShine 3s ease-in-out infinite;
}

@keyframes dividerShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Sección Desarrollo End-to-End */
.development-process {
    padding: 80px 0;
    background: var(--dark-gray);
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--transparent-white-1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.process-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--transparent-white-2);
}

.process-card:hover::before {
    opacity: 0.1;
}

.process-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.process-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.process-card:hover .process-icon {
    transform: scale(1.1);
}

.process-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.process-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.process-features {
    list-style: none;
    text-align: left;
}

.process-features li {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.process-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.process-card:hover .process-features li {
    color: var(--text-light);
}

.process-card:hover .process-features li::before {
    transform: scale(1.2);
}

/* Sección de Servicios */
.services {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--transparent-white-1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--transparent-white-2);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: var(--accent-blue);
    color: var(--text-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-tag:hover {
    background: var(--accent-purple);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.feature-tag:active {
    transform: translateY(0) scale(0.95);
    transition: all 0.1s ease;
}

/* Sección de Proyectos */
.projects {
    padding: 80px 0;
    background: var(--dark-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--transparent-white-1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--transparent-white-2);
    box-shadow: var(--shadow-lg);
}

.project-card:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.project-image {
    height: 150px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover .project-image::before {
    transform: translateX(100%);
}

.project-placeholder {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-placeholder {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

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

.tech-tag {
    background: var(--accent-green);
    color: var(--text-white);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-tag:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.tech-tag:active {
    transform: translateY(0) scale(0.95);
    transition: all 0.1s ease;
}

.project-link {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    transition: left 0.3s ease;
    z-index: -1;
}

.project-link:hover {
    background: var(--accent-blue);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.project-link:hover::before {
    left: 0;
}

.project-link:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Sección de Contacto */
.contact {
    padding: 100px 0;
}

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

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.contact-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.contact-item:active {
    transform: translateX(2px) scale(0.98);
    transition: all 0.1s ease;
}

.contact-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-text {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.contact-item:hover .contact-text {
    color: var(--text-white);
}

/* Formulario de contacto */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--transparent-white-1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-form:hover::before {
    opacity: 0.05;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--transparent-white-2);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Validación visual de formularios */
.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.form-group input.success::after,
.form-group textarea.success::after,
.form-group select.success::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-error::before {
    content: '⚠️';
    font-size: 0.9rem;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-white);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.submit-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-md);
    transition: all 0.1s ease;
}

/* Footer */
.footer {
    background: var(--medium-gray);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--transparent-white-1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo .logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.animated-x.small {
    width: 1.25rem;
    height: 1.25rem;
}

.animated-x.small .x-bar {
    width: 2px;
    height: 1.25rem;
}

.footer-description {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

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

.footer-link:active {
    transform: translateX(2px) scale(0.98);
    transition: all 0.1s ease;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:active {
    transform: translateY(0) scale(0.95);
    transition: all 0.1s ease;
}

.social-icon {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--transparent-white-1);
}

.footer-copyright {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Animaciones de scroll mejoradas */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.stagger-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos de parallax mejorados */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    transform: translateZ(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes xBackgroundRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes xBackgroundZoom {
    0% {
        background-size: 30px 30px, 60px 60px, 120px 120px;
        opacity: 0.8;
    }
    50% {
        background-size: 45px 45px, 90px 90px, 180px 180px;
        opacity: 1;
    }
    100% {
        background-size: 30px 30px, 60px 60px, 120px 120px;
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        gap: 1rem;
    }
    
    .animated-x.large {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .animated-x.large .x-bar.static,
    .animated-x.large .x-bar.rotating {
        width: 6px;
        height: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        gap: 0.8rem;
    }
    
    .animated-x.large {
        width: 2rem;
        height: 2rem;
    }
    
    .animated-x.large .x-bar.static,
    .animated-x.large .x-bar.rotating {
        width: 5px;
        height: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .process-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
} 