:root {
    --primary: #0056b3;
    --accent: #6f42c1;
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --white: #ffffff;
}

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

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

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

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 2rem;
    font-weight: 600;
    transition: 0.3s;
}

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

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(45deg, rgba(0,86,179,0.8), rgba(111,66,193,0.8)), 
                url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero h1 span { color: #00d2ff; }

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s transform;
    border: none;
    cursor: pointer;
}

.btn-primary:hover { transform: translateY(-5px); background: var(--primary); }

/* Cards */
.card, .project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card:hover { transform: translateY(-10px); }

.project-card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

/* NUEVA SECCIÓN: Tecnologías con Botones */
.tech-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tech-btn {
    background: var(--white);
    border: 3px solid var(--primary);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

.tech-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.tech-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: scale(1.05);
}

.btn-icon {
    font-size: 1.5rem;
}

.tech-content {
    max-width: 900px;
    margin: auto;
    min-height: 250px;
}

.tech-info {
    display: none;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

.tech-info.active {
    display: block;
}

.tech-info h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tech-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
}

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

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    
    .button-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .tech-btn {
        width: 80%;
        justify-content: center;
    }
    
    .tech-info {
        padding: 1.5rem;
    }
    
    .tech-info h3 {
        font-size: 1.5rem;
    }
    
    .tech-info p {
        font-size: 1rem;
    }
}