/* ===== VARIABLES (DARK MODE) ===== */
:root {
    --primary: #818cf8;          /* indigo más claro para destacar en fondo oscuro */
    --primary-dark: #6366f1;
    --secondary: #f472b6;        /* rosa pastel */
    --accent: #2dd4bf;
    --dark: #f1f5f9;             /* texto claro (invertido) */
    --light: #1e293b;            /* fondo de secciones alterno */
    --gray: #475569;             /* bordes y elementos secundarios */
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-bg: linear-gradient(145deg, #1e1e2f, #0f172a); /* fondo degradado oscuro */
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 35px -10px rgba(129, 140, 248, 0.5);
    --border-radius: 1.5rem;
    --border-radius-sm: 0.75rem;

    --bg-body: #0b1120;           /* fondo general casi negro */
    --card-bg: #1e293b;           /* fondo de tarjetas */
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
}

/* ===== RESET / BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: #0f172a;    /* ligeramente más claro que el body */
}

.bg-gradient {
    background: var(--gradient-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    text-align: center;
    color: var(--dark);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 20px -8px var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px var(--primary-dark);
}

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

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

/* ===== NAVBAR ===== */
.navbar {
    background-color: rgba(15, 23, 42, 0.9); /* oscuro semitransparente */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s;
    color: var(--text-light);
}

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

/* ===== HERO ===== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15rem;
    color: #334155;              /* icono más tenue */
    animation: float 4s ease-in-out infinite;
}

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

/* ===== SOBRE MÍ ===== */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== HABILIDADES ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.skill-card i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.soft-badge {
    background: var(--card-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
    color: var(--text-light);
}

/* ===== PROYECTOS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.project-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.project-card p {
    color: var(--text-muted);
}

/* ===== ASPIRACIONES ===== */
.aspirations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.aspiration-card {
    background: var(--card-bg);
    padding: 2.5rem 1.8rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    /*  border-bottom: 5px solid transparent; */
    border-image: var(--gradient);
    border-image-slice: 1;
    position: relative;
    color: var(--text-light);
}

.aspiration-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.aspiration-card i {
    font-size: 3.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.aspiration-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.aspiration-card p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.aspiration-tag {
    display: inline-block;
    background: #2d3a4f;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
}

.aspiration-note {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    background: rgba(129, 140, 248, 0.15);
    padding: 1.5rem;
    border-radius: 50px;
    max-width: 700px;
    margin: 2rem auto 0;
    border-left: 5px solid var(--primary);
}

/* ===== CONTACTO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.contact-info i {
    width: 2rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--gray);
    transition: color 0.3s, transform 0.3s;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #334155;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
    background-color: #0f172a;
    color: var(--text-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form button {
    align-self: flex-start;
}

/* ===== FOOTER ===== */
footer {
    background: #0a0f1c;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #1e293b;
}

footer p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 4rem 2rem;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        font-size: 10rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form button {
        align-self: stretch;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

.lang-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
  font-weight: 600;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.1);
}
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #007acc;
    font-size: 1.1rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.copy-btn:hover {
    background-color: rgba(0, 122, 204, 0.1);
}
.copy-btn:active {
    transform: scale(0.95);
}
.toast-message {
    visibility: hidden;
    min-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}
.toast-message.show {
    visibility: visible;
    opacity: 1;
}
/* Hacemos que el enlace ocupe toda la celda de la cuadrícula */
.aspiration-link {
    display: flex;           /* Activa flexbox para alinear contenido */
    height: 100%;            /* Ocupa toda la altura de la celda */
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* La tarjeta se estira para llenar el enlace y ordena su contenido verticalmente */
.aspiration-link .aspiration-card {
    display: flex;
    flex-direction: column;  /* Coloca los elementos en columna */
    width: 100%;             /* Ocupa todo el ancho */
    height: 100%;            /* Ocupa toda la altura del enlace */
    /* Si la tarjeta ya tiene padding, margin, etc., se respetan */
}

/* Opcional: para que el último elemento (el tag) se pegue abajo si hay espacio */
.aspiration-link .aspiration-card .aspiration-tag {
    margin-top: auto;        /* Empuja el tag hacia abajo */
}
/* ===== MORE SKILLS BUTTON ===== */
.more-skills-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-more {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;  /* Asegura que se comporte como botón */
}

.btn-more:hover {
    background: var(--primary);
    color: #0b1120;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -8px var(--primary);
}