:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-teal: #14b8a6;
    --accent-purple: #7e22ce;
    --gray-text: #a1a1aa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    background: radial-gradient(circle at 10% 10%, rgba(20, 184, 166, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 10%, rgba(126, 34, 206, 0.2) 0%, transparent 40%),
                var(--bg-color);

    background-attachment: fixed;
    overflow-x: hidden;
}

/* --- NAVEGACIÓN --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 8%; 
    max-width: 1400px;
    margin: 0 auto; 
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-text);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-teal);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 8%;
    gap: 3.6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content .intro {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--gray-text);
    display: block;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.role {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    border-bottom: 3px solid var(--text-color);
    padding-bottom: 5px;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 1.9rem;
}

.social-icons a {
    color: var(--gray-text);
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    color: white;
    transform: translateY(-3px);
}

.description {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 1.5px solid white;
}

.btn-outline {
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* --- IMAGEN --- */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-card {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/5;
    background: url('https://via.placeholder.com/450x550') no-repeat center center/cover;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }
    .nav-links { display: none; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .cta-buttons { justify-content: center; }
    .hero-image-container { justify-content: center; width: 100%; }
}

/* Activa el scroll suave para toda la página */
html {
    scroll-behavior: smooth;
}

.about-section {
    padding: 8rem 8% 4rem; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.about-card {
    background: #111111; 
    border-radius: 40px;
    padding: 3rem;
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    position: relative;
   
    box-shadow: 0 0 50px -10px rgba(126, 34, 206, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-text-content {
    flex: 1.5;
}

.about-text-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.bio {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* Estadísticas */
.stats-container {
    display: flex;
    gap: 4rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item h4 span {
    color: #a855f7; 
}

.stat-item p {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stat-item small {
    color: var(--gray-text);
    display: block;
    max-width: 200px;
    font-size: 0.85rem;
}

/* Imagen de la tarjeta */
.about-image {
    flex: 1;
    display: flex;
    align-items: center;
}

.image-box {
    width: 100%;
    aspect-ratio: 1/1.2;
    background:no-repeat center center/cover;
    border-radius: 25px;
}

/* Ajuste para móviles */
@media (max-width: 850px) {
    .about-card {
        flex-direction: column-reverse;
        padding: 2rem;
    }
    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }
}

.skills-section {
    padding: 4rem 8% 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.skills-header {
    margin-bottom: 3rem;
}

.skills-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.skills-header p {
    color: var(--gray-text);
    font-size: 1.1rem;
}

.skills-grid {
    display: grid;
    /* Crea 4 columnas iguales */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: var(--accent-teal);
}

.skill-card img {
    width: 35px;
    height: 35px;
    object-fit: contain; 
    filter: grayscale(20%); 
    transition: filter 0.3s ease;
}
.skill-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.skill-info span {
    color: var(--gray-text);
    font-size: 0.85rem;
    display: block;
}

/* --- RESPONSIVE PARA EL GRID --- */
@media (max-width: 1100px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr; 
    }
}

.projects-section {
    padding: 4rem 8% 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: #0f1717; 
    border-radius: 16px;
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(20, 184, 166, 0.3);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 650px) {
    .projects-grid {
        grid-template-columns: 1fr; 
    }
    .section-title {
        text-align: center;
    }
}
.contact-section {
    padding: 8rem 8% 10rem;
    min-height: 80vh;
    display: flex;
    align-items: center;

    max-width: 1400px; 
    margin: 0 auto; 
}
.contact-container {
    display: flex;
    width: 100%;

}
.contact-spacer {
    flex: 1; 
}

.contact-card {
 
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    

    background: #111111; 
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 0 60px -15px rgba(126, 34, 206, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.contact-card h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.btn-send {
    width: 100%;
    padding: 1rem;
    background: #86198f;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 1rem;
}

.btn-send:hover {
    background: #a21caf;
    transform: scale(1.02);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-spacer { display: none; }
    .contact-card { width: 100%; }
}

.site-footer {
   
    padding: 2rem 0; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
   
    padding: 0 8%; 
    color: var(--gray-text);
    font-size: 0.95rem;
}
.footer-socials {
    display: flex;
    gap: 1.5rem; 
    font-size: 1.2rem; 
}

.footer-socials a {
    color: var(--gray-text);
    transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-teal); 
    transform: translateY(-3px); 
}

/* --- RESPONSIVE PARA EL FOOTER --- */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column-reverse; 
        text-align: center;
    }
}