:root {
    --white: #FFFFFF;
    --light-grey: #D9D9D9;
    --beaver: #d1cece;
    --black: #141414;
    --eerie-black: #410d0d;
    --jet: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scrollbar-width: thin;
    scrollbar-color: var(--beaver) var(--eerie-black);
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background-color: var(--eerie-black);
}

html::-webkit-scrollbar-thumb {
    background-color: var(--beaver);
}

::selection {
    background-color: #9b3e3e;
}

/* Agrega esto en tu archivo CSS */
.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Cooper Hewitt', sans-serif;
    overflow-x: hidden;
}

/* Header Mobile */
.header {
    background-color: var(--jet);
    padding: .8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: .5s;
}

.header.abajo {
    backdrop-filter: blur(15px);
    background: rgba(41,41,41,.3);
}

.header .logo__header {
    width: 4.5rem;
}

/* Navigation Mobile */
nav.nav_menu {
    position: fixed;
    top: 6.3rem;
    left: 100%;
    width: 100%;
    height: calc(100vh - 6.3rem);
    background-color: var(--eerie-black);
    transition: left 0.4s ease;
    z-index: 999;
}

nav.nav_menu.active {
    left: 0;
}

nav.nav_menu a {
    display: block;
    padding: 2rem;
    font-family: 'Cooper Hewitt';
    letter-spacing: .1rem;
    text-decoration: none;
    color: var(--white);
    font-size: 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav.nav_menu a:hover,
nav.nav_menu a.active {
    color: var(--beaver);
    background-color: var(--black);
    transition: all .4s;
}

/* Flags Mobile */
nav.nav_menu .flags {
    width: 12rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
    padding: 1rem;
}

nav.nav_menu .flags__item {
    margin: 0 .3rem;
    filter: contrast(65%);
    cursor: pointer;
    transition: transform 0.3s ease;
}

nav.nav_menu .flags__item:hover {
    transform: scale(1.1);
}

/* Hamburger Menu */
.btn {
    position: relative;
    width: 3rem;
    height: 2.5rem;
    cursor: pointer;
    z-index: 1001;
}

#button span {
    display: block;
    width: 100%;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    height: .3rem;
    background: var(--beaver);
    transition: all .3s;
    position: absolute;
}

#button span:nth-child(1) {
    top: 0;
}

#button span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

#button span:nth-child(3) {
    bottom: 0;
}

.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.active span:nth-child(2) {
    opacity: 0;
}

.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Home Mobile */
.home {
    background-color: var(--jet);
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem 0;
}

.container_image-home {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.image_home {
    max-width: 65%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.home_info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.home_text-1 {
    font-family: 'Cooper Hewitt';
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.home_text-2 {
    font-family: 'PT Sans';
    color: var(--beaver);
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.home_text-3 {
    font-family: 'Cooper Hewitt';
    color: var(--white);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .2rem;
    margin-bottom: 2rem;
    position: relative;
}

.text-type::after {
    content: '|';
    font-weight: bold;
    position: absolute;
    right: 0;
    color: var(--beaver);
    background-color: var(--jet);
    width: 100%;
    animation: typing 4s steps(28) alternate infinite;
}

@keyframes typing {
    to {
        width: 0%;
    }
}

.container_parrafo-info {
    display: none;
}

.container_button {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.cv_button,
.contact_button {
    padding: 1.2rem 2.5rem;
    border-radius: 3rem;
    font-family: 'Cooper Hewitt';
    font-weight: bold;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cv_button {
    background-color: var(--beaver);
    color: var(--jet);
}

.contact_button {
    background-color: transparent;
    color: var(--beaver);
    border: 2px solid var(--beaver);
}

.cv_button:hover,
.contact_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

.links a {
    transition: transform 0.3s ease;
}

.links a:hover {
    transform: scale(1.1);
}

.links img {
    width: 2.8rem;
}

/* Sections Common Styles */
section {
    padding: 6rem 0;
}

section h1 {
    display: block;
    text-align: center;
    color: var(--white);
    font-family: 'Cooper Hewitt';
    font-size: 2.4rem;
    letter-spacing: .1rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

/* Acerca De Mobile */
.acerdeDe {
    background-color: var(--eerie-black);
}

.container_content-acerdeDe {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
}

.container_texto-acerdeDe {
    padding: 2rem 0;
}

.texto_acerdeDe {
    color: var(--light-grey);
    font-family: 'Cooper Hewitt';
    font-size: 1.5rem;
    letter-spacing: .1rem;
    text-align: justify;
    line-height: 2.2rem;
    display: block;
}

.container_image-acerdeDe {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.image_acerdeDe {
    width: 80%;
    max-width: 400px;
}

/* Competencias Mobile */
.Competencias {
    background-color: var(--jet);
}

.cards_container--Competencias {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.cards--Competencias {
    background-color: var(--eerie-black);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.cards--Competencias:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.cards--Competencias img {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    margin-bottom: 1rem;
}

.cards--Competencias p {
    color: var(--white);
    font-family: 'Cooper Hewitt';
    letter-spacing: .1rem;
    font-size: 1.4rem;
}

/* ===== EXPERIENCIA MOBILE - TARJETAS PERFECTAMENTE ALINEADAS ===== */
.experiencia {
    background-color: var(--eerie-black);
}

.cards_container--experiencia {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 0 2rem;
}

.cards--experiencia {
    background-color: var(--jet);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 350px;
    min-height: 280px;
    transition: all 0.3s ease;
    justify-content: space-between;
}

.cards--experiencia:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* Contenedor de logo con altura fija y alineación perfecta */
.cards--experiencia .logo-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
    position: relative;
}

.cards--experiencia .logo-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Ajustes específicos para mantener consistencia visual */
.cards--experiencia .logo-container img[alt*="Latinoamérica"] {
    max-width: 200px;
    max-height: 80px;
}

.cards--experiencia .logo-container img[alt*="Xtrategic"] {
    max-width: 180px;
    max-height: 70px;
}

.cards--experiencia .logo-container img[alt*="Neuradev"] {
    max-width: 190px;
    max-height: 65px;
}

/* Contenedor de texto con altura fija y alineación consistente */
.container_texto--experiencia {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px; /* Altura mínima para el texto */
}

.container_texto--experiencia .cargo {
    color: var(--beaver);
    font-family: 'Cooper Hewitt';
    letter-spacing: .1rem;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.container_texto--experiencia .tiempo {
    color: var(--light-grey);
    font-family: 'Cooper Hewitt';
    letter-spacing: .1rem;
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

/* ===== PROYECTOS SECTION ===== */
.proyectos {
    background-color: var(--jet);
    padding: 60px 20px;
}

.proyectos h1 {
    text-align: center;
    color: var(--white);
    font-family: 'Cooper Hewitt';
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: bold;
}

.cards_container--proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.cards--proyectos {
    background: var(--eerie-black);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px; 
    max-width: 350px;
    margin: 0;
}

.card-link .cards--proyectos:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.container_imgCard--proyectos {
    width: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 100px;
    background: var(--jet);
    display: block;
    align-items: center;
    justify-content: center;
}

.container_imgCard--proyectos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
    background: var(--jet);
}

.card-link:hover .container_imgCard--proyectos img {
    transform: scale(1.05);
}

.card-link .container_imgCard--proyectos::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(158, 127, 114, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-link .container_imgCard--proyectos .hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-link .container_imgCard--proyectos .hover-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--beaver);
}

.card-link:hover .container_imgCard--proyectos::after {
    opacity: 1;
}

.card-link:hover .container_imgCard--proyectos .hover-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.container_textCard--proyectos {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 15px;
    height: 100%;
}

.container_textCard--proyectos h2 {
    color: var(--white);
    font-family: 'Cooper Hewitt';
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: bold;
    margin: 0;
    flex-shrink: 0;
}

.container_textCard--proyectos p {
    color: #ddd;
    font-family: 'Cooper Hewitt';
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    overflow: hidden;
    display: block;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
}

.tech-tag {
    background: rgba(158, 127, 114, 0.2) !important;
    color: var(--beaver) !important;
    border: 1px solid var(--beaver) !important;
    border-radius: 20px !important;
    font-family: 'Cooper Hewitt' !important;
    font-size: 1rem !important;
    padding: 8px 16px !important;
    white-space: nowrap !important;
}

.tech-tag:hover {
    background: var(--beaver) !important;
    color: var(--eerie-black) !important;
    transform: translateY(-2px);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
}

/* Contacto Mobile */
.contacto {
    background: var(--eerie-black);
    padding: 6rem 2rem;
}

.container_box--contacto {
    max-width: 500px;
    margin: 0 auto;
}

.container--contacto {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.container_text--contacto p {
    font-size: 1.5rem;
    color: #bbbbbb;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Cooper Hewitt', sans-serif;
    line-height: 1.8;
}

.form-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-contact input,
.form-contact textarea {
    font-family: 'Cooper Hewitt', sans-serif;
    background-color: #333333;
    border: 2px solid #444444;
    padding: 1.2rem;
    color: #eaeaea;
    border-radius: 8px;
    font-size: 1.6rem;
    transition: border-color 0.3s;
    width: 100%;
}

.form-contact input:focus,
.form-contact textarea:focus {
    border-color: var(--beaver);
    outline: none;
}

.form-contact input::placeholder,
.form-contact textarea::placeholder {
    color: #999999;
}

.form-contact textarea {
    resize: none;
    height: 150px;
}

.btn_form--contacto {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn_form--contacto button {
    background-color: var(--beaver);
    color: var(--jet);
    border: none;
    font-family: 'Cooper Hewitt', sans-serif;
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn_form--contacto button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.form-submitting {
    opacity: 0.7;
    pointer-events: none;
}

.form-success .btn_form--contacto button {
    background-color: #4CAF50 !important;
}

.form-error .btn_form--contacto button {
    background-color: #f44336 !important;
}


/* Footer Mobile */
footer {
    background-color: var(--jet);
    padding: 3rem 0;
}

.contianer--footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 90%;
    margin: 0 auto;
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.container_redes-footer {
    display: flex;
    gap: 2rem;
}

.container_redes-footer img {
    width: 3rem;
    transition: transform 0.3s ease;
}

.container_redes-footer a:hover img {
    transform: scale(1.1);
}

.container_text--footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.container_text--footer span {
    font-family: 'Cooper Hewitt';
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.container_text--footer span:nth-child(1),
.container_text--footer span:nth-child(2) {
    color: var(--light-grey);
}

.container_text--footer span:nth-child(3) {
    color: var(--beaver);
    letter-spacing: .1rem;
}

/* Go Top Button */
.go-top-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    z-index: 1000;
}

.go-top-button {
    width: 0;
    height: 0;
    background: var(--beaver);
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.go-top-button i {
    color: var(--jet);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.go-top-container.show .go-top-button {
    width: 5rem;
    height: 5rem;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.go-top-container.show .go-top-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Loader */
.container--loader {
    background-color: var(--eerie-black);
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    transition: all 1.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader,
.loader:before,
.loader:after {
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: loader 1.5s infinite ease-in-out;
}

.loader {
    color: var(--beaver);
    font-size: 13px;
    position: relative;
    animation-delay: -0.16s;
}

.loader:before,
.loader:after {
    content: '';
    position: absolute;
    top: 0;
}

.loader:before {
    left: -3.5rem;
    animation-delay: -0.32s;
}

.loader:after {
    left: 3.5rem;
}

@keyframes loader {
    0%,
    80%,
    100% {
        box-shadow: 0 2.5rem 0 -1.3rem;    
    }
    40% {
        box-shadow: 0 2.5rem 0 0;  
    }
}