:root {
    --bg-color: #fbfaf8;
    --navy: #0a2540;
    --gold: #cbb26a;
    --gold-hover: #bda055;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    /* Fuentes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-color);
}

/* --- Navegación --- */
header {
    background: rgba(10, 37, 64, 0.95);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 2px solid var(--gold);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    font-weight: 300;
    font-size: 1rem;
    color: var(--gold);
    margin-left: 10px;
}

nav ul { display: flex; list-style: none; margin: 0; }
nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

nav ul li a:hover { color: var(--gold); }

/* --- Hero Section (Con Foto) --- */
.hero {
    background: var(--navy);
    color: var(--text-light);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content { max-width: 800px; }

/* Estilo de la Foto de Perfil */
.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover; /* Asegura que la foto no se estire */
    border: 4px solid var(--gold);
    margin-bottom: 2rem;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tagline {
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

/* Botones */
.btn, .btn-outline {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn {
    background: var(--gold);
    color: var(--navy);
}

.btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    margin: 10px;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy);
}

/* --- Secciones Generales --- */
.container { max-width: 1200px; margin: 5rem auto; padding: 0 2rem; }
.dark-bg { background: #f0ede8; padding: 5rem 0; }

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    opacity: 0.7;
}

/* --- Tarjetas de Proyecto --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.08); }

.card-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.card h3 { color: var(--navy); margin-top: 0; font-family: var(--font-heading); }

/* --- Habilidades (Skills) --- */
.skills { text-align: center; }

.skills span {
    background: var(--navy);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    margin: 8px;
    font-size: 0.85rem;
    font-weight: 300;
    border: 1px solid transparent;
}

.skills span:hover {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

/* --- Nueva Sección de Enlaces --- */
.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--navy);
    color: var(--gold);
    text-decoration: none;
    padding: 2rem;
    border-radius: 8px;
    transition: 0.3s;
    text-align: center;
}

.link-card i { font-size: 2.5rem; margin-bottom: 1rem; }
.link-card span { color: var(--text-light); font-weight: 600; }

.link-card:hover {
    background: var(--gold);
    color: var(--navy);
}
.link-card:hover span { color: var(--navy); }

/* --- Contacto --- */
.contact-info { text-align: center; }

/* --- Footer --- */
footer { text-align: center; padding: 3rem; background: #051422; color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* --- Responsivo --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .profile-img { width: 140px; height: 140px; }
    nav ul { display: none; } /* Ocultar menú en móvil para simplificar */
}
