/* --- VARIABLES DE COLOR --- */
:root {
    --color-purple: #7d82ff;
    --color-blue: #3879a7;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-bg-light: #f8f9fe; /* Un gris/azulado muy claro para el fondo */
    --color-text-gray: #555555;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-black);
    line-height: 1.6;
}

/* --- NAVEGACIÓN --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-blue);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--color-black);
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-purple);
}

/* --- BOTONES --- */
.btn-primary {
    background-color: var(--color-purple);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 30px; /* Bordes muy redondeados como en la imagen */
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-blue);
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--color-blue);
    transition: all 0.3s;
}

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

/* --- SECCIÓN HERO --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    min-height: 80vh;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--color-purple);
}

.hero-text p {
    color: var(--color-text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Cajas temporales para tus fotos */
.image-placeholder {
    width: 350px;
    height: 450px;
    background: linear-gradient(45deg, var(--color-purple), var(--color-blue));
    border-radius: 200px 200px 20px 20px; /* Forma de arco similar a la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
}

.image-placeholder.rectangle {
    border-radius: 30px;
    width: 100%;
    height: 400px;
}

/* --- SECCIÓN HABILIDADES --- */
.skills {
    padding: 80px 5%;
    background-color: var(--color-white);
}

.skills-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.skills-image {
    flex: 1;
}

.skills-content {
    flex: 1;
}

.skills-content h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--color-blue);
}

.skill-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.skill-item .icon {
    font-size: 24px;
    background-color: var(--color-bg-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-purple);
}

.skill-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.skill-item p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

/* --- SECCIÓN PROYECTOS (TARJETAS) --- */
.projects {
    padding: 80px 5%;
    text-align: center;
}

.projects h2 {
    font-size: 2.2rem;
    color: var(--color-blue);
}

.projects > p {
    color: var(--color-text-gray);
    margin-bottom: 40px;
}

.cards-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.card {
    background-color: var(--color-white);
    border-radius: 25px;
    padding: 20px;
    width: 30%;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra suave típica de estas UI */
    transition: transform 0.3s;
}

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

.card-img {
    height: 200px;
    background-color: #e0e0e0;
    border-radius: 15px;
    margin-bottom: 20px;
}

.tag {
    background-color: rgba(125, 130, 255, 0.1);
    color: var(--color-purple);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-info h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.card-info p {
    color: var(--color-text-gray);
    font-size: 0.9rem;
}