/* -------------------------
   RESET
-------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* -------------------------
   BASE
-------------------------- */

body {
    background: #050816;
    color: #f2f2f2;
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden; /* ← permite scroll vertical */
}

/* -------------------------
   TIPOGRAFÍA FLUIDA
-------------------------- */

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.25;
    font-weight: 600;
    color: #ffffff;
}

section p,
section li {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: #e8e8e8;
}

.microcopy {
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: #9ca3af;
}

/* -------------------------
   LAYOUT 60/40 (HEADER + SECCIONES)
-------------------------- */

header,
section {
    display: grid;
    grid-template-columns: 3fr 2fr; /* 60% / 40% */
    grid-template-areas:
        "title image"
        "content image";
    gap: 32px;
    max-width: 1200px;
    margin: clamp(40px, 8vw, 120px) auto;
    padding: clamp(10px, 3vw, 40px);
    position: relative;
    z-index: 2; /* ← contenido por encima de partículas */
}

/* Áreas del grid */
header h1,
section h2 {
    grid-area: title;
    margin-bottom: clamp(12px, 2vw, 24px);
}

.hero-content,
section > div {
    grid-area: content;
    margin-bottom: clamp(12px, 2vw, 28px);
}

/* -------------------------
   IMÁGENES
-------------------------- */

.hero-img,
.section-img {
    grid-area: image;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* -------------------------
   BOTONES
-------------------------- */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: clamp(6px, 1vw, 12px);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

/* -------------------------
   RESPONSIVE
-------------------------- */

@media (max-width: 900px) {

    header,
    section {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "title"
            "content";
        text-align: center;
    }

    .hero-img,
    .section-img {
        max-width: 80%;
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 600px) {

    header,
    section {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 60px;
    }

    h1 {
        line-height: 1.25;
    }

    h2 {
        line-height: 1.3;
    }

    .hero-img,
    .section-img {
        max-width: 100%;
        border-radius: 12px;
    }
}

/* -------------------------
   FOOTER
-------------------------- */

footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.9rem;
    color: #9ca3af;
    position: relative;
    z-index: 2;
}

footer a {
    color: #38bdf8;
}

/* -------------------------
   ANIMACIONES
-------------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------
   SECCIÓN QUIÉN SOY
-------------------------- */

.section-about {
    max-width: 700px;
    margin: clamp(60px, 10vw, 140px) auto;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.section-about h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 16px;
}

.section-about p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: #d0d0d0;
    margin-bottom: 24px;
}

.section-about .about-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* -------------------------
   CONTENIDO POR ENCIMA DE PARTÍCULAS
-------------------------- */

header, section, footer {
    position: relative;
    z-index: 2;
}

/* -------------------------
   PARTICULAS FLOTANTES
-------------------------- */

.floating-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4); /* Algo tenue pero visible */
    border-radius: 50%;
    animation: float 6s ease-in-out infinite; /* velocidad para verlas */
    pointer-events: none;
    z-index: -1;
}



@keyframes float {
    0% { transform: translateY(0); opacity: 0.4; }
    100% { transform: translateY(-160vh); opacity: 0.1; }
}


/* Sección "Quién soy" minimalista */
.section-about--minimal {
    max-width: 520px;
    margin: 80px auto;
    text-align: center;
    opacity: 0.85;
}

.section-about--minimal h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-bottom: 10px;
    color: #e5e5e5;
    font-weight: 500;
}

.section-about--minimal p {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #bfc3c9;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Microfooter minimalista */
.microfooter {
    text-align: center;
    margin: 60px auto 20px;
    opacity: 0.6;
    font-size: 0.85rem;
    color: #9ca3af;
    position: relative;
    z-index: 2;
}

.microfooter .author-name {
    color: #e5e7eb;
    font-weight: 500;
}

.cv-link-micro {
    color: #9ca3af;
    text-decoration: none;
    border-bottom: 1px dotted rgba(148, 163, 184, 0.4);
    padding-bottom: 2px;
    transition: all 0.25s ease;
}

.cv-link-micro:hover {
    color: #e5e7eb;
    border-bottom-color: rgba(148, 163, 184, 0.8);
    opacity: 1;
}


