/* CONFIGURACIONES BASE */
:root {
    --primary-purple: #7C3AED;
    --dark-neutral: #111827;
    --text-muted: #4B5563;
    --text-light: #9CA3AF;
    --bg-light: #F9FAFB;
    --border-light: #E5E7EB;
    --white: #FFFFFF;
    --ink : #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--dark-neutral);
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-neutral);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span { color: var(--primary-purple); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--dark-neutral); }

/* HERO SECTION (Estilo de la imagen de referencia) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
}

.hero-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.greeting {
    display: block;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.main-title {
    font-size: 84px;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 28px;
}

.text-purple { color: var(--primary-purple); }

.description {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-buttons { display: flex; gap: 16px; }

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-dark {
    background-color: var(--dark-neutral);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-dark:hover { background-color: #000000; transform: translateY(-1px); }

.btn-light {
    background-color: #F1F3F5;
    color: #374151;
}

.btn-light:hover { background-color: #E5E7EB; transform: translateY(-1px); }

/* AVATAR RING */
.hero-avatar-container { display: flex; justify-content: flex-end; }

.outer-ring {
    width: 440px;
    height: 440px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.avatar-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: #F3F4F6;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    scale: 1.05;
}

/* SECCIONES: REGLAS COMUNES */
.section-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-subtitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-purple);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--dark-neutral);
}

/* 2. PROYECTOS SECCIÓN */
.projects {
    padding: 120px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

/* 1. El contenedor: Le damos una altura fija y lo volvemos relativo */
.project-preview {
    position: relative; /* Clave para que el texto flote sobre la imagen */
    width: 100%;
    height: 240px;      /* Altura fija ideal para tarjetas de proyectos */
    overflow: hidden;   /* Esconde lo que le sobre a la imagen gigante */
}

/* 2. La imagen: La obligamos a llenar el contenedor perfectamente */
.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Hace que la imagen encaje y se recorte sin deformarse */
    object-position: top center; /* Centra la vista en la parte superior del screenshot */
    display: block;
}

/* 3. El texto (span): Lo volvemos un elemento flotante (absoluto) */
.project-preview span {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background-color: rgba(0, 0, 0, 0.75); /* Fondo oscuro elegante */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2; /* Asegura que se vea por encima de la imagen */
}


.project-preview span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.project-info p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tech-chips span {
    font-size: 12px;
    font-weight: 500;
    color: #4B5563;
    background-color: #F3F4F6;
    padding: 6px 12px;
    border-radius: 6px;
}

.project-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
}

.project-links a { text-decoration: none; }
.project-links .link-demo { color: var(--primary-purple); }
.project-links .link-github { color: var(--text-light); transition: color 0.2s; }
.project-links .link-github:hover { color: var(--dark-neutral); }

/* 3. SECCIÓN ABOUT ME (Estilo fiel a la referencia) */
.about-section {
    padding: 120px 0;
    background-color: var(--white);
}

.about-title {
    font-size: 84px;
    font-weight: 800;
    letter-spacing: -4px;
    color: var(--dark-neutral);
    margin-bottom: 24px;
    line-height: 1;
}

.purple-dot {
    color: var(--primary-purple);
}

.about-quote-container {
    border-left: 5px solid var(--primary-purple);
    padding-left: 24px;
    margin-bottom: 64px;
    max-width: 950px;
}

.about-quote {
    font-size: 24px;
    line-height: 1.5;
    color: #6B7280; /* Gris pulido idéntico a la imagen */
    font-weight: 500;
    letter-spacing: -0.5px;
}

.about-interactive-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr; /* Asimetría premium */
    gap: 40px;
}

.column-sub-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--dark-neutral);
    margin-bottom: 20px;
}

/* Tarjeta de Stack (Fondo gris suave de la captura) */
.stack-card-container {
    background-color: #EAECEF; 
    border-radius: 24px;
    padding: 40px 32px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.stack-pill-dark {
    background-color: var(--dark-neutral);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.pill-star {
    color: var(--primary-purple);
    font-size: 14px;
}

/* Tarjeta de Ubicación Geo (My Special Place) */
.location-card-container {
    background-color: #EAECEF;
    border-radius: 24px;
    height: 300px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Esfera/Globo Conceptual con CSS Avanzado */
.globe-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 130%, #1F2937 0%, #111827 60%, #D1D5DB 120%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Punto de localización de Montreal interactivo */
.radar-dot {
    width: 10px;
    height: 10px;
    background-color: #A855F7;
    border-radius: 50%;
    position: absolute;
    top: 45%;
    left: 40%; /* Ubicación estética centrada en el cuadrante */
    z-index: 2;
}

.radar-ping {
    width: 10px;
    height: 10px;
    border: 2px solid #A855F7;
    border-radius: 50%;
    position: absolute;
    top: 45%;
    left: 40%;
    animation: ping-animation 2s infinite ease-out;
    z-index: 1;
}

@keyframes ping-animation {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

.location-label {
    position: absolute;
    bottom: 24px;
    background-color: rgba(17, 24, 39, 0.8);
    color: var(--white);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* AJUSTES RESPONSIVOS */
@media (max-width: 1024px) {
    .about-interactive-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-title { font-size: 64px; letter-spacing: -2px; }
}

@media (max-width: 768px) {
    .about-title { font-size: 48px; letter-spacing: -2px; }
    .about-quote { font-size: 18px; }
    .stack-card-container, .location-card-container { min-height: 250px; height: 250px; }
}


/* Bloque de Habilidades */
.skills-block {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 50px 60px;        /* Mayor espacio interno para darle aire a los elementos */
    border-radius: 24px;       /* Radio de curvatura idéntico al de tus tarjetas de "My Stack" */
    width: 100%;               /* Fuerza a que use todo el ancho disponible */
    max-width: 1280px;         /* Limita el ancho máximo para alinearse perfectamente con tus secciones */
    margin: 0 auto 80px auto;  
}

.block-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.block-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

.skills-category { margin-bottom: 28px; }
.skills-category h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.skills-list { display: flex; flex-wrap: wrap; gap: 10px; }

.skill-tag {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-1px);
}

/* 4. CONTACTO Y FOOTER */



  .contact-section{
    background:var(--ink);
    color:#fff;
    border-radius:32px;
    margin:0 24px 120px;
    padding:90px 60px;
    position:relative;
    overflow:hidden;
  }

  
  .contact-section::before{
    content:'';
    position:absolute;
    top:-120px; right:-120px;
    width:420px; height:420px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(124,58,237,.35) 30%, rgba(124,58,237,0) 70%);
  }

  
  .contact-inner{
    position:relative;
    z-index:2;
    max-width:640px;
    margin: 0 auto;       /* Centra el contenedor completo dentro de la tarjeta oscura */
  text-align: center;
  }

  
  .contact-section .eyebrow{ color:var(--purple-light); }




  .contact-section h2{
    font-size:clamp(2.2rem,4vw,3.2rem);
    font-weight:700;
    letter-spacing:-.03em;
    line-height:1.1;
    margin-bottom:22px;
  }

  
  .contact-section p{
    color:#9CA3AF;
    font-size:1.05rem;
    line-height:1.7;
    font-weight:300;
    margin-bottom:36px;
    max-width:480px;
    margin: 0 auto 36px;
  }

  .contact-row{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    justify-content: center;
  }

  
  .btn-light{
    background:#fff;
    color:var(--ink);
  }
  .btn-light:hover{
    background:var(--grad);
    color:#fff;
    transform:translateY(-3px);
  }

  
  .btn-outline-dark{
    border:1.5px solid rgba(255,255,255,.25);
    color:#fff;
  }
  .btn-outline-dark:hover{
    border-color:var(--purple-light);
    color:var(--purple-light);
    transform:translateY(-3px);
  }


  footer{
    padding:40px 0 50px;
  }
  .footer-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
    border-top:1px solid var(--mist);
    padding-top:32px;
  }
  footer p{
    font-size:.85rem;
    color:var(--slate);
    margin: auto;
  }
  .footer-socials{
    display:flex;
    gap:20px;
    margin: auto;
  }
  .footer-socials a{
    font-size:.85rem;
    font-weight:600;
    color:var(--slate);
    transition:color .3s var(--ease);
  }
  .footer-socials a:hover{ color:var(--purple); }

/* AJUSTES RESPONSIVOS (MÓVILES) */
@media (max-width: 1024px) {
    .main-title { font-size: 64px; letter-spacing: -2px; }
    .outer-ring { width: 340px; height: 340px; }
    .projects-grid, .cv-grid { grid-template-columns: 1fr; gap: 48px; }
    
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .navbar { height: 75px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; padding: 0 24px; gap: 48px; }
    .hero-text { display: flex; flex-direction: column; align-items: center; }
    .hero-avatar-container { justify-content: center; order: -1; }
    .main-title { font-size: 54px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
    .outer-ring { width: 280px; height: 280px; padding: 16px; }
    .section-container { padding: 0 24px; }
    .section-title { font-size: 32px; }
    .contact-section{ margin:0 16px 90px; padding:60px 28px; }
    .contact-row{ flex-direction:column; }
    .contact-row .btn{ width:100%; justify-content:center; }
    .section-pad{ padding:80px 0; }
    .footer { flex-direction: column; gap: 24px; }

}