:root {
  --grey: #e5eced;
  --orange: #ff8400;
  --orange-light: #ffc65c;
  --orange-dark: #e67300;
}

/* ==================== TIPOGRAFÍA GLOBAL ==================== */
body {
    font-family: 'Segoe UI', sans-serif;
    color: var(--grey);
    font-size: clamp(14px, 1.2vw, 18px); /* nunca menos de 14px, escala con ancho, máx 18px */
    line-height: 1.6;
}

/* Encabezado superior */
header {
    font-size: clamp(16px, 1.8vw, 28px); /* se adapta entre mobile y desktop */
    padding-left: 7%;
    font-family: monospace;
}

/* Menú navegación */
nav {
    font-size: clamp(14px, 1vw, 18px);
}

.material-symbols-outlined {
    font-size: clamp(14px, 1.2vw, 18px);
}

/* CV section */
.my_headers {
    text-transform: uppercase;
    font-size: clamp(18px, 1.6vw, 26px);
    margin-bottom: 5%;
    font-weight: 600;
}

.about_me ul li strong {
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 600;
}

.about_me ul li span {
    font-size: clamp(14px, 1.1vw, 18px);
}

/* Skills labels */
.skill span {
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 500;
}

/* Contact form */
.contact_glass_light input,
.contact_glass_light textarea,
.contact_glass_dark input,
.contact_glass_dark textarea {
    font-size: clamp(14px, 1vw, 16px);
}

.contact_glass_light button,
.contact_glass_dark button {
    font-size: clamp(14px, 1vw, 18px);
}

/* Footer */
footer {
    font-size: clamp(12px, 0.9vw, 16px);
}


/* ===================== BODY ===================== */
body {
    font-family: 'Segoe UI', sans-serif;
    color: var(--grey);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    margin: 0;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Backgrounds dark/light mode */
.body_bg {
     background-image: url(../media/backgrounds/pexels-idan-canfi-779084-4752708.jpg);
}
.body_bg_light {
    background-image: url(../media/backgrounds/pexels-josh-hild-1270765-15706251.jpg);
}


/* ==================== HEADER ==================== */
header {
    background: rgba(0, 0, 0, 0.75); /* frosted dark */
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    color: rgb(220, 220, 220);
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== NAV ==================== */
nav {
    background: rgba(255, 255, 255, 0.15); /* frosted light */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 6px 30px rgba(0,0,0,0.25);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== CV ==================== */
#cv {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4), inset 0 0 15px rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.cv_glass_light { 
    background: rgba(255, 255, 255, 0.25); 
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 12px 36px rgba(0,0,0,0.3), inset 0 0 20px rgba(255,255,255,0.1);
}

.cv_glass { 
    background: rgba(0, 0, 0, 0.55); 
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 12px 36px rgba(0,0,0,0.35), inset 0 0 15px rgba(255,255,255,0.08);
}

/* ==================== CONTACT ==================== */
.contact_glass_light {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 0 20px rgba(255,255,255,0.08);
}

.contact_glass_dark {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 0 15px rgba(255,255,255,0.05);
}

/* ===================== WHOAMI ===================== */
#whoami {
    width: 80%;
    max-width: 900px;
    margin: 40px auto 3%; /* más espacio arriba y abajo */
    padding: 50px;
    border-radius: 18px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.12); /* frosted semi-transparent */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.whoami_glass_dark {
    background: rgba(117, 169, 167, 0.556);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 45px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.whoami_glass_dark:hover {
    box-shadow: 0 18px 50px rgba(0,0,0,0.5);
    transform: translateY(-5px);
}

.whoami_glass_light {
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 12px 45px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.whoami_glass_light:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    transform: translateY(-5px);
}

#whoami_inner_glass {
    background: rgba(175, 234, 244, 0.349);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.3);
    padding: 20px;
    transition: all 0.3s ease;
    color: rgb(255, 255, 255);
    padding: 5%;
}

/* ===================== WHOAMI TEXT SPACING ===================== */
#whoami p, 
#whoami li {
    margin-bottom: 1.2em; /* más espacio entre párrafos y elementos de lista */
    line-height: 1.7;
}
/* Márgenes y estilo base para whoami */
#whoami h3, #whoami p, #whoami ul, #whoami li {
    margin: 0.5em 0;
    transition: all 0.3s ease;
}

/* Opcional: estilo hover "global" para todos los elementos de la misma clase */
.whoami_hovered {
    color: rgb(20, 20, 70); /* color al hacer hover */
}


#whoami h2 {
    margin-bottom: 1.5em;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 600;
    text-transform: uppercase;
}

#hr_ul {
    width: 75%;
}

/* ===================== RESPONSIVE WHOAMI ===================== */
@media (max-width: 1024px) {
    #whoami { width: 95%; padding: 35px; margin: 30px auto; }
}

@media (max-width: 600px) {
    #whoami { padding: 25px; margin: 20px auto; }
    #whoami h2 { font-size: 20px; }
    #hr_ul { width: 90%; }
}


/* ==================== FOOTER ==================== */
footer {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    color: #ddd;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== TEXT COLOR MODES ==================== */
body.light-mode header,
body.light-mode nav,
body.light-mode #cv,
body.light-mode .cv_glass_light,
body.light-mode .contact_glass_light,
body.light-mode footer {
    color: #111;
}

body.dark-mode header,
body.dark-mode nav,
body.dark-mode #cv,
body.dark-mode .cv_glass,
body.dark-mode .contact_glass_dark,
body.dark-mode footer {
    color: #fff;
}

/* ==================== BOTONES, LINKS Y HOVER ==================== */
#cv:hover, .contact_glass_light:hover, .contact_glass_dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.45), inset 0 0 20px rgba(255,255,255,0.1);
}

#buttons_container a:hover, .lang:hover, #color_mode:hover {
    color: var(--orange);
    text-shadow: 0 0 6px rgba(255, 132, 0, 0.6);
}




/* ====================== LOGIN ===================== */
#Login_form {
    background: rgba(255, 255, 255, 0.10); /* más transparente */
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.4);

    /* borde frosted con gradiente */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.6);

    display: flex;
    flex-direction: column;
    width: 340px;
    transition: all 0.35s ease;

    /* efecto fade + slide al cargar */
    animation: fadeSlideIn 0.6s ease forwards;
}

@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

#login_form label {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#login_form input {
    padding: 0.9rem;
    border-radius: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#login_form input:focus {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 12px var(--orange);
    transform: scale(1.02);
}

#login_form button {
    margin-top: 1.8rem;
    padding: 0.9rem;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

#login_form button:hover {
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

#status {
    margin-top: 1.2rem;
    color: #ffdddd;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 0 0 6px rgba(0,0,0,0.4);
}


/* ===================== HEADER ===================== */
header {
    width: 100%;
    height: 10vh;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.975);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    font-size: 1.75vw;
    padding-left: 7%;
    font-family: monospace;
    color: rgb(96, 156, 140);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ===================== NAV ===================== */
nav {
    position: fixed;
    top: 10vh;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(99, 181, 195, 0.4);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
    color: #000;
    text-transform: uppercase;
    font-size: 1.1rem;
    z-index: 999;
    transition: all 0.3s ease;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.material-symbols-outlined {
    font-size: 1rem;
}
#lang_menu {
    width: 80vw;
    display: flex;
    justify-content: space-between;
}
#langs_container {
    display: flex;
    width: 50%;
    justify-content: flex-end;
}
#buttons_container {
    display: flex;
    width: 50%;
    justify-content: flex-start;
}
#buttons_container a, .lang, #color_mode {
    text-decoration: none;
    color: #000;
    margin-right: 5%;
    transition: all 0.3s ease;
}

#buttons_container a:hover, .lang:hover, #color_mode:hover { color: var(--orange); cursor: pointer;}
.lang { margin-left: 5%; }
#buttons_menu a { text-decoration: none; color: #000; }

/* Hamburguesa */
#hamburger { display: none; flex-direction: column; justify-content: space-between; width: 25px; height: 20px; cursor: pointer; }
#hamburger span {
    display: block;
    height: 3px;
    background: var(--grey);
    border-radius: 2px;
    transition: all 0.3s ease;
}
#hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#hamburger.active span:nth-child(2) { opacity: 0; }
#hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Dark/Light switch */
#dark_light {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}
#dark_light:hover .material-symbols-outlined { color: white; }

/* Login/Logout button */
#logout_btn {display: flex; justify-content: center; align-items: center; height: 100%; background: none; border: none; cursor: pointer; border-radius: 8px; transition: background 0.2s; }
#logout_btn:hover { background: rgba(0,0,0,0.1); }

/* ===================== MAIN ===================== */
main {
    margin-top: calc(10vh + 50px);
    padding: 20px;
    width: 100%;
    min-height: calc(100vh - 10vh - 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* ===================== CV ===================== */
#cv {
    width: 80%;
    border-radius: 18px;
    padding: 50px;
    margin-bottom: 3%;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.10);/* semi-transparent for frosted look */
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

/* ===================== DARK CV GLASS ===================== */
.cv_glass {
    background: rgba(117, 169, 167, 0.556);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

.cv_glass:hover {
    box-shadow: 0 18px 50px rgba(0,0,0,0.5);
    transform: translateY(-5px);
}

/* ===================== LIGHT CV GLASS ===================== */
.cv_glass_light {
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-radius: 20px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cv_glass_light:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    transform: translateY(-5px);
    
}

/* ===================== TEXT AND HEADERS ===================== */


/* ===================== IMAGE ===================== */
.me {
    border-radius: 18px;
    width: 25%;
    transition: all 0.4s ease;
    filter: grayscale(0%);
}

.me:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ===================== SKILLS ===================== */
.skill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: inherit;
}

.skill:hover {
    background: rgba(255,255,255,0.1);
    color: var(--orange);
}

.bar {
    flex: 1;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.15);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}

.bar div {
    height: 100%;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
}


#cv:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.45); }

#cv_top { width: 100%; display: flex; gap: 2%; margin-bottom: 3%; border-top-left-radius: 18px; border-top-right-radius: 18px;}
.me { border-radius: 18px; width: 25%; height: auto; filter: grayscale(0%); transition: all 0.4s ease; }
.me:hover { transform: scale(1.05); }

.about_me { width: 73%; display: flex; flex-direction: column; justify-content: space-between; transition: color 0.3s ease; }
.about_me:hover { color: rgb(20, 20, 70) }

.about_me_upper { height: 80%; width: 100%; display: flex; padding-top: 2%; }
.about_me_upper ul { width: 50%; height: 100%; }

.social {
  width: 50%;
  height: 100%;
  padding-right: 5%;
  display: flex;
  justify-content: flex-end;
  align-items: top; /* Alinea verticalmente los íconos */
}

.social a > img {
  height: 2em;           /* Controla altura igual para todos */
  width: auto;           /* Mantiene proporciones originales */
  margin-left: 1.5em;
  box-shadow: none;      /* Sin sombra */
  background: none;      /* Sin fondo transparente */
  opacity: 1;            /* Sin transparencia */
  transition: transform 0.3s ease; /* Solo escala al pasar el ratón */
}

.social a > img:hover {
  transform: scale(1.15);
}


.my_headers { text-transform: uppercase; font-size: larger; margin-bottom: 5%; }
.my_addr { padding-left: 40px; height: 20%; width: 100%; display: flex; align-items: center; }

ul { height: 80%; width: 50%; list-style-type: none; }

#work_edu { display: flex; gap: 3%; padding: 3%; margin-bottom: 3%; }
#edu, #work {
    flex: 1;
    background: rgba(255, 255, 255, 0.154);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.3);
    padding: 20px;
    transition: all 0.3s ease;
    color: rgb(255, 255, 255);
}
.degree, .work_exp {
    margin-bottom: 3%;
}
.degree:hover, .work_exp:hover { color: rgb(20, 20, 70); transform: translateY(-3px); }
.degree_light:hover, .work_exp_light:hover { color: #296088; }

.skills-container { border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; backdrop-filter: blur(18px); box-shadow: 0 10px 32px rgba(0,0,0,0.3); padding: 4%; color: var(--grey); transition: all 0.3s ease; }
.skills { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.skill { flex: 1 1 calc(50% - 12px); display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 32px rgba(0,0,0,0.25); padding: 5px 10px; border-radius: 12px; transition: all 0.3s ease; }
.skill span { width: 35%; font-weight: 500; }
.skill span:hover { color: var(--orange); }
.bar { flex: 1; height: 10px; background: rgba(255,255,255,0.35); border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 6px rgba(0,0,0,0.25); }
.bar div { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-light)); border-radius: 10px 0 0 10px; }

/* ===================== CONTACT ===================== */
#contact_form {
    width: 80%;
    margin-bottom: 3%;
    position: relative;
    z-index: 1;
}

.contact_glass_light,
.contact_glass_dark {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    border-radius: 18px;
    backdrop-filter: blur(20px);       /* más frosted */
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.4s ease;
}

.contact_glass_light {
    background: rgba(175, 234, 244, 0.349); /* más transparente y elegante */
    color: #ffffff;
}

.contact_glass_dark {
    background: rgba(117, 169, 167, 0.556);       /* más suave que antes */
    color: #fff;
}

.contact_glass_light input,
.contact_glass_light textarea,
.contact_glass_dark input,
.contact_glass_dark textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15); /* más sutil */
    color: inherit;
    font-size: 1rem;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.contact_glass_dark input,
.contact_glass_dark textarea {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.contact_glass_light input::placeholder,
.contact_glass_light textarea::placeholder {

    color: rgba(115, 115, 115, 0.869);  /* más suave */
}
.contact_glass_dark input::placeholder,
.contact_glass_dark textarea::placeholder {
    color: rgba(210, 207, 207, 0.743); 
}

.contact_glass_light input:focus,
.contact_glass_light textarea:focus,
.contact_glass_dark input:focus,
.contact_glass_dark textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.35); /* ligero efecto de foco */
    box-shadow: 0 0 10px rgba(255, 132, 0, 0.4);
}

.contact_glass_light button,
.contact_glass_dark button {
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 132, 0, 0.85); /* un poco más translúcido */
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.contact_glass_light button:hover,
.contact_glass_dark button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.contact_glass_light h2,
.contact_glass_dark h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: inherit;
}

#form_status {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}


/* ===================== FOOTER ===================== */
footer {
    width: 100vw;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgb(0, 0, 0);
}


/* =================== RESPONSIVE =================== */
/* Mantengo tus media queries originales y agrego #whoami */

@media (max-width: 1024px) {
    #cv { width: 100%; padding: 30px; }
    #cv_top { flex-direction: column; gap: 1.5em; }
    .me { width: 40%; margin: 0 auto; }
    .about_me { width: 100%; display: flex; justify-content: center; align-items: center;}
    .about_me_upper {flex-direction: column; align-items: center; justify-content: center;}
    .about_me_upper ul { width: 100%; text-align: center; justify-content: center; padding: 0%;}
    .social { justify-content: center; width: 100%; padding: 0; margin-top: 1em; margin-bottom: 2em; }
    #work_edu { flex-direction: column; gap: 2em; }
    #edu, #work { width: 100%; }
    .skills { flex-direction: column; }
    .my_addr { justify-content: center; padding-left: 0; text-align: center; }

    /* whoami */
    #whoami {
        width: 95%;
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {
    #lang_menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        height: 60vh;
        background: rgba(0, 0, 0, 0.6); /* frosted glass */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    #lang_menu.show { 
        display: flex; 
    }

    #buttons_container { 
        display: flex; 
        flex-direction: column; 
        justify-content: space-around; 
        height: 85%; 
        width: 100%; 
        align-items: center;
	background: #35e6d4;
        background: linear-gradient(180deg, rgba(53, 230, 212, 0.9) 0%, rgba(43, 43, 43, 0.92) 100%); 
    }

    #buttons_container a { 
        display: block; 
        width: 90%; 
        padding: 0.8em 0; 
        text-align: center; 
        border-radius: 12px; 
        background-color: rgba(255, 255, 255, 0.15); /* neutro, no naranja */
        color: #fff; 
        font-weight: 600; 
        text-decoration: none; 
        transition: all 0.3s ease, background 0.3s ease; 
    }

    #buttons_container a:hover { 
        color: var(--orange);
	background-color: none; 
    }

    #langs_container { 
        display: flex; 
        justify-content: space-around; 
        align-items: center; 
        height: 15%; 
        width: 100%; 
        border-top: 1px solid rgba(255,255,255,0.2);
	background: #35e6d4;
        background: linear-gradient(180deg, rgba(53, 230, 212, 0.9) 0%, rgba(43, 43, 43, 0.92) 100%); 
    }

    #langs_container .lang { 
        text-align: center;
        padding-top: 2%;
        width: 15%; 
        height: 70%;
        border-radius: 12px; 
        background-color: rgba(255,255,255,0.15); /* frosted estilo neutro */
        color: #fff; 
        font-weight: 600; 
        cursor: pointer; 
        transition: all 0.3s ease, background 0.3s ease; 
    }

    #langs_container .lang:hover {  
        color: var(--orange); 
    }

    #hamburger { 
        display: flex; 
    }

    /* whoami */
    #whoami {
        width: 95%;
        padding: 1.8rem 1.8rem;
    }
    #whoami h2 {
        font-size: 6vw;
    }
    #whoami p {
        font-size: 15px;
    }
    .skill span { width: 50%; font-weight: 500; }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    header { font-size: 4vw; padding-left: 5%; }
    main { padding: 0%; }
    nav { font-size: medium; }
    #cv { padding: 20px; }
    .me { width: 70%; }
    .about_me_upper ul { width: 100%; }
    #work_edu { padding: 2%; }
    .skills { gap: 8px; }
    .skill { flex: 1 1 100%; }
    .skill span { width: 50%; font-weight: 500; }
    .social { flex-wrap: wrap; justify-content: center; margin-top: 1em; }
    .social a > img { margin-left: 0.5em; margin-right: 0.5em; }
    #cv, #contact_form { width: 95%; padding-top: 20px; margin-top: 20px;}

    /* whoami */
    #whoami {
        width: 95%;
        padding: 1.5rem 1.5rem;
    }
    #whoami h2 {
        font-size: 5vw;
    }
    #whoami p {
        font-size: 14px;
    }
}
