/* ===========================
   RESET
=========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2 {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;

    display: grid;
    text-align: center;
    font-size: 4rem;
}



/* ===========================
   HOME SECTION
=========================== */
.homesection {
    height: 90vh;
    margin: 0;
    padding: 0;
    color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: max-content;
    opacity: 1;
    animation: none;
}

.homesection h1 {
    color: white;
}



/* ===========================
   CONTENT (GENÉRICO)
=========================== */
.content {
    width: 100%;
    margin: 2rem 20% 6rem 20%;
}

.content h1 {
    text-align: left;
    font-size: 2.5rem;
    font-family: Aspira;
    padding-left: 1rem;
}

.content p {
    text-align: left;
    font-size: 1rem;
    font-family: Lexend;
    font-weight: lighter;
}



/* ===========================
   GRID DE ICONOS / IMÁGENES
=========================== */
.gridimg {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 1rem;
}

.gridimg img {
    aspect-ratio: 1;
    width: 100%;
    height: 7rem;
    object-fit: contain;
    transition: 0.3s;
}

.gridimg img:hover {
    transform: scale(1.25);
}

.elemento {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}




/* ===========================
   MY SECTION
=========================== */
.mysection {
    width: 100%;
    position: relative;
    min-height: 100%;
    display: grid;
    place-items: center;
}

.mysection h1 span:first-child {
    font-size: 0.45em;
}

.mysection h1 span:last-child {
    color: #09f;
}

.mysection p {
    padding: 0 14rem;
    text-align: center;
    margin: 1rem 0 0;
    font-size: 1.2rem;
}



/* ===========================
   PROFILE
=========================== */
#contentmysection {
    /* Usa todo el espacio restante debajo del navbar */
    min-height: calc(100vh - 8dvh);

    /* Centrado vertical y horizontal */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    
    /* Elimina el padding-top innecesario */
   
}

#myContainer {
    /* Usa todo el espacio restante debajo del navbar */
    /* Centrado vertical y horizontal */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    
    /* Elimina el padding-top innecesario */
   
}


#profilecontainer {
    
    display: flex;
    justify-content: center;
    align-items: center;
}

#rounder {
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);  /* añadir */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);   /* añadir */
    transition: all 0.3s ease;                    /* añadir */
    margin-bottom: 1rem;
}

#rounder:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(10, 132, 255, 0.2);
    border-color: rgba(10, 132, 255, 0.959);
}


#profile {
    aspect-ratio: 1;
    height: 16rem;
    object-fit: contain;
    object-position: center top; /* desplaza hacia arriba */
}



/* ===========================
   TEXTOS PRINCIPALES
=========================== */
#name {
    margin: 0.5rem;
}

#PACHECO {
    line-height: 0.9em;
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#job {
    margin: 0.5rem;
}



/* ===========================
   LOCATION
=========================== */
#location {
    display: flex;
    align-items: center;
    height: 2rem;
    max-width: max-content;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    
}

#location,
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;

}


#location p,
.status-text {

    text-align: center;
    width: auto;
}

#location img {
    height: 1.5rem;
    margin-right: 0.5rem;
}

#location p {

    padding: 0 !important;
    margin: 0;
    flex: 0 0 auto;   /* <-- evita que se estire */
    width: auto;      /* <-- asegura tamaño ajustado al texto */
    text-align: center;
    margin: 0;
    text-align: center;
    
    max-width: 2p;
}



/* ===========================
   BOTÓN EMAIL
=========================== */
.boton {
    background-color: #797983;
    width: max-content;
    height: 2rem;
    display: flex;
    place-items: center;
    padding: 1.3rem;
    border-radius: 30px;
}

#mail {
    height: 1.1rem;
}

.boton a {
    color: white;
    text-decoration: none;
    padding-left: 0.8rem;
    font-size: 1.2rem;
}

.boton img {
    height: 1.4rem;
    object-fit: contain;
}



/* ===========================
   BIO
=========================== */
#bio {
    width: 35vw;
    margin-bottom: 2rem;
    padding: 0;
}



/* ===========================
   SOCIAL MEDIA
=========================== */
#socialmedia {
    display: grid;
    width: 600px;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    margin-bottom: 10rem;
}

#socialmedia img {
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

.elementomedia {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7.5rem;
    height: 7.5rem;
}

.mediaLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 100%;
    max-width: 5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.mediaLink:hover {
    transform: scale(1.3);
}

.mediaLink img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
}

.mediaInfo {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
}

/* ===== HOME SECTION STYLES - MOBILE OPTIMIZED ===== */

/* Base styles (Mobile First) */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.25rem 3rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.home-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.home-content {
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.home-greeting {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0066cc;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.home-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.home-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 400;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.home-description {
    font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
    color: #666;
    line-height: 1.7;
    max-width: 100%;
    margin: 0 auto 2rem;
}

.home-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.btn-primary {
    background: #0066cc;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-secondary:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
}

.home-image {
    width: 100%;
    max-width: 280px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Small tablets and large phones (landscape) */
@media (min-width: 481px) {
    .home-section {
        padding: 6rem 2rem 4rem;
    }

    .home-container {
        gap: 3rem;
    }

    .home-cta {
        flex-direction: row;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 160px;
    }

    .home-image {
        max-width: 320px;
    }
}

/* Tablets */
@media (min-width: 769px) {
    .home-section {
        padding: 8rem 3rem 5rem;
    }

    .home-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
    }

    .home-content {
        flex: 1;
        text-align: left;
        max-width: 600px;
    }

    .home-description {
        margin: 0 0 2rem 0;
    }

    .home-cta {
        justify-content: flex-start;
    }

    .home-image {
        flex-shrink: 0;
        max-width: 360px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .home-section {
        padding: 10rem 4rem 6rem;
    }

    .home-container {
        gap: 5rem;
    }

    .home-content {
        max-width: 700px;
    }

    .home-image {
        max-width: 420px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1.125rem 2.5rem;
        font-size: 1.0625rem;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .home-container {
        gap: 6rem;
    }

    .home-image {
        max-width: 480px;
    }
}

/* ===========================
   MOBILE (≤540pxx)
=========================== */
@media (max-width: 768px) {

    /* Sección HOME más compacta */
    .homesection {
        padding-top: 1rem;
        height: auto;
        min-height: 100vh;
    }

    #contentmysection {
        padding-top: 0rem;
        gap: 0.5rem;
    }
    #myContainer{
        padding-top: 0rem;
        gap: 0.5rem;
    }

    /* Imagen de perfil más pequeña */
    #rounder {
        width: 10rem;
        height: 10rem;
        border-width: 3px;
    }

    #profile {
        height: 10rem;
    }

    /* Nombres más pequeños */
    h1#name {
        font-size: 2.2rem;
        text-align: center;
        line-height: 1.1;
        margin-top: 0.5rem;
    }

    #FRANCISCO {
        font-size: 0.55em;
        font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    #PACHECO {
        font-size: 1em;
        font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    /* Job title / Developer + Data Engineer */
    #job {
        font-size: 1rem;
        margin: 0.3rem 0;
        padding: 0 1rem;
        text-align: center;
    }

    /* Ubicación centrada */
    #location {
        margin-top: 0.5rem;
        justify-content: center;
    }

    #location img {
        height: 1.2rem;
    }

    #location p {
        font-size: 0.9rem;
    }

    /* Botón de email más pequeño */
    #mail {
        padding: 0.8rem 1rem;
        height: auto;
        border-radius: 25px;
    }

    #mail img {
        height: 1.1rem;
    }

    #mail a {
        font-size: 1rem;
    }

    /* BIO más estrecho */
    #bio {
        width: 85vw;
        margin-top: 1rem;
        font-size: 0.95rem;
    }

    /* Social Media grid más pequeño y centrado */
    #socialmedia {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 4rem;
        gap: 0.3rem;
    }

    .elementomedia {
        width: 5rem;
        height: 5rem;
    }

    .mediaLink img {
        width: 2.8rem;
        height: 2.8rem;
    }

    .mediaInfo {
        font-size: 0.75rem;
    }

   

}
#contentmysection {
 
    
    background:
        radial-gradient(circle at center,
            rgba(4, 4, 15, 0.95) 20%,     /* Muy oscuro en el centro */
            rgba(255, 0, 0, 0) 45%      /* Transparente hacia los bordes */
        );
        
    
  
}

