/* ============================================
   VARIABLES CSS - Colores del sitio
   ============================================ */
:root {
    --color-primary: rgb(10, 37, 64);
    --color-accent: #1b703a;
    --color-text: #475569;
    --color-bg-light: #F1F5F9;
    --color-bg: #FFFFFF;
}

/* ============================================
   ESTILOS GENERALES
   ============================================ */

/* Configuración del body */
body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    overflow: hidden scroll;
}

/* Tipografía base */
h1 {
    color: var(--color-bg-light);
    margin: 0;
}

h2 {
    margin-bottom: 10px;
    color: #0A2540;
    font-weight: 400;
}

b {
    color: #0A2540;
    font-weight: 400;
}

/* Listas */
ul {
    margin: 0;
    padding: 0;
    font-size: 1rem;
}


/* Enlaces generales */
a {
    transition: transform 0.3s ease;
    color: var(--color-accent);
}

a:hover {
    transform: translateY(-5px);
}

/* Líneas divisoras */
hr {
    margin: 20px 0;
    color: rgba(0, 0, 0, 0);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}


.btn-primary {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.25);
    border: none;
}

.btn-visitar {
    display: block;
    margin: 20px 0;
    width: 80%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
    box-shadow: 0 15px 30px rgba(22, 163, 74, 0.35);
    transform: translateY(-3px);
}

/* Títulos generales */
.title {
    color: var(--color-primary);
    font-weight: 400;
    font-size: 42px;
    margin-top: 0;
}

.personal-title {
    color: var(--color-bg-light);
    margin: 0;
}

/* ============================================
   LAYOUT - Contenedor principal
   ============================================ */
.container {
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-top: 32px;
    max-width: 900px;
    width: 80vw;
}

/* Secciones de contenido */
section,
main {
    padding: 20px;
    background: var(--color-bg);
    border-radius: 8px;
    margin-bottom: 60px;
}

.info {
    font-size: 1.2rem;
}

/* ============================================
   HEADER - Cabecera principal
   ============================================ */
header {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-accent) 100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    justify-content: end;
    position: relative;
}

/* Contenido principal del header */

.header-title {
    font-size: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    height: 200px;
    border-radius: 12px;
}

/* Imagen del header */
.header-img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    margin: 20px;
}

/* Enlaces en el header */
.header-links {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header-link {
    margin-right: 12px;
    position: relative;

}



.mindler-logo {
    border-radius: 50%;
}

.tooltip {
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tooltip small {
    display: block;
    font-size: 11px;
    color: #bdbdbd;
    margin-top: 2px;
}

.header-link:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

/* Icono de GitHub con fondo */
.github-icon {
    background-color: var(--color-bg-light);
    border-radius: 50%;
    padding: 0;
}

/* =====================
   SOCIAL LINKS
===================== */
.social-links {
    display: flex;
    gap: 14px;
    margin-top: 0px;
    justify-content: center;
    align-items: end;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
    color: white;
    height: 40px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Instagram */
.social-btn.instagram {
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
}

.social-btn.instagram:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(221, 42, 123, 0.35);
}

/* TikTok */
.social-btn.tiktok {
    background: linear-gradient(135deg, #010101, #333);
}

.social-btn.tiktok:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(221, 42, 123, 0.35);
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.main-nav {
    position: absolute;
    top: 0px;
    right: 40px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 20px;
}

.main-nav a {
    color: var(--color-bg-light);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 400;
    transition: background 0.15s ease, transform 0.12s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* ============================================
   SECCIÓN SOBRE MÍ
   ============================================ */
.aboutme-container {
    background-color: var(--color-bg-light);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    border-radius: 16px;
}

.main-info {
    margin-left: 20px;
    padding-right: 20px;
    max-width: 600px;
}

p.main-info {

    max-width: 400px;
}

.about-img {
    background: var(--color-bg-light);
    border-radius: 5px;
}

/* ============================================
   SECCIÓN PROYECTOS
   ============================================ */
.project-container {
    padding: 10px;
    border-radius: 8px;
    display: grid;
    align-items: center;
    background-color: var(--color-bg-light);
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 40px;
}

.project-container>div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 20px;
    align-items: start;
    height: 90%;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-accent);
    text-decoration: none;
}

a.project-title:hover {
    transform: translateY(2px);
}

.project-image {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    max-height: 300px;
    max-width: 90%;
    margin: 20px;
}

.netsuite-img {
    background-color: rgba(255, 255, 255, 1);
    border-radius: 12px;
}

/* ============================================
   SECCIÓN TECNOLOGÍAS
   ============================================ */
.technologies {
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.techno {
    width: 72px;
    transition: 0.3s;
}

.techno:hover {
    transform: scale(1.2);
}

.img-techno {
    margin: 0;
    padding: 0;
    width: 72px;
    height: 72px;
}

.nombre-tech {
    text-align: center;
    font-size: larger;
    font-weight: 400;
    color: var(--color-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 150px;
    margin-top: 80px;
}

/* ============================================
   CLASES AUXILIARES
   ============================================ */
.right li a {
    color: #22C55E;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.2rem;
}

/* ============================================
   MEDIA QUERIES - Responsividad
   ============================================ */

/* Tablets y móviles - 800px */
@media (max-width: 800px) {
    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-nav {
        position: static;
        margin-bottom: 12px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}

/* Desktop - 800px+ */
@media(min-width: 800px) {
    .header-main {
        padding-right: 12%;
    }
}

/* Móviles - 900px */
@media (max-width: 900px) {
    .project-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-container img {
        margin: 0 auto;
    }
}