:root {
    --primary: #6c63ff;
    --secondary: #4d44db;
    --accent: #ff6584;
    --dark: #2d2d44;
    --light: #f8f9ff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(248, 249, 255, 0.8);
    border-bottom: 1px solid rgba(45, 45, 68, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

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

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

nav a {
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef0ff 100%);
}

.hero-blob {
    position: absolute;
    top: -300px;
    right: -300px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, rgba(108, 99, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Tech Graphics */
.tech-graphics {
    position: absolute;
    right: 5%;
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tech-circle {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    animation: rotate 30s linear infinite;
}

.tech-logo {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    color: white;
}

.tech-logo i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.tech-logo span {
    font-size: 1rem;
}

/* Posiciones específicas de los logos */
.react {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: #61DAFB;
    color: #2D2D2D;
}

.node {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: #8CC84B;
}

.python {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: #3776AB;
}

.flutter {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: #02569B;
}

.aws {
    top: 35%;
    left: 35%;
    background: #FF9900;
    color: #2D2D2D;
}

.code-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.symbol {
    position: absolute;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.1;
    color: var(--primary);
    animation: float 6s ease-in-out infinite;
}

.symbol:nth-child(1) {
    top: 15%;
    left: 20%;
}

.symbol:nth-child(2) {
    top: 70%;
    left: 25%;
    animation-delay: 1s;
}

.symbol:nth-child(3) {
    top: 40%;
    right: 20%;
    animation-delay: 0.5s;
}

.symbol:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 1.5s;
}

/* Sección de Servicios */
.services {
    padding: 6rem 5%;
    position: relative;
    background-color: white;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -3rem 0;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

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

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    color: white;
}

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

.service-card:hover .service-icon {
    color: white;
}

.service-card:hover h3, 
.service-card:hover p {
    color: white;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card p {
    color: #666;
    transition: all 0.3s ease;
}

/* Sección de Experiencia */
.experience {
    padding: 8rem 5%;
    background: var(--light);
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%236c63ff" opacity="0.05" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    z-index: 0;
}

.experience-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.experience-image {
    flex: 1;
    position: relative;
}

.experience-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.experience-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.experience-text {
    flex: 1;
}

.experience-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.experience-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-item {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: var(--gradient);
    color: white;
}

/* Sección de Proyectos */
.projects {
    padding: 6rem 5%;
    background: white;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -3rem 0;
}

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

.project-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #666;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Sección de Contacto */
.contact {
    padding: 6rem 5%;
    background: var(--gradient);
    color: white;
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-top: -3rem;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="white" opacity="0.05" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    z-index: 0;
}

.contact-content {
    display: flex;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-text {
    flex: 1;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* WhatsApp button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    transition: all 0.3s ease;
}

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

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .tech-circle {
        width: 350px;
        height: 350px;
    }
    
    .tech-logo {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tech-graphics {
        position: relative;
        right: auto;
        width: 100%;
        height: 350px;
        margin-top: 3rem;
    }
    
    .experience-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .tech-circle {
        width: 280px;
        height: 280px;
    }
    
    .tech-logo {
        width: 70px;
        height: 70px;
    }
    
    .tech-logo i {
        font-size: 1.8rem;
    }
    
    .tech-logo span {
        font-size: 0.8rem;
    }
}