:root {
    --font-family-heading: "Cal Sans", sans-serif;
    --font-family-base: "Lato", sans-serif;
    font-size: 62.5%;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;

    --primary-color: #2142AB;
    --secondary-color: #e8edff;
    --terciary-color: #dbdbfd;
    --primary-color-transition: #2141ab00;
    --text-color: #333;
    --light-color: #fff;
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.contact-theme {
    --primary-color: #fff;
    --secondary-color: #2142AB;
    --light-color: #2142AB;
    --text-color: #fff;
    --terciary-color: #dbdbfd;
    transition: background-color 0.5s ease, color 0.5s ease;
}

html {
    overflow-y: scroll;
}

body {
    overflow-x: hidden;
    font-size: 1.8rem;
    font-family: var(--font-family-base);
    margin: 0;
    color: var(--text-color);
    background-color: var(--light-color);
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%232142AB" stroke-width="2" d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z"></path></svg>'), auto
}

a,
button,
input,
textarea,
select,
.work-card,
.filter-btn,
[role="button"] {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%232142AB" stroke-width="2" stroke-linejoin="round" d="M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z"></path></svg>'), auto
}

.body-initial {
    width: 100%;
    height: 25dvh;
    justify-content: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    position: fixed;
    bottom: var(--space-6);
    padding: var(--space-1) 0;
    will-change: transform;
    background-color: var(--primary-color);
    z-index: 1000;
    transform: rotate(-1deg);
}

body.contact-theme .ticker-container {
    display: none;
}

.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
    transition:
        opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-active.app-ready .canvas-container {
    opacity: 0.3; /* Mantienes tu estilo sutil */
    transform: scale(1);
    filter: blur(0px);
}
model-viewer {
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
    --poster-color: transparent;
    --progress-bar-height: 0px;
}


body.app-ready model-viewer {
    opacity: 1;
}

.ticker-container::before,
.ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--space-6);
    z-index: 2;
    pointer-events: none;
}



.ticker-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-transition));
}

.ticker-container::after {
    right: 0;
    background: linear-gradient(90deg, var(--primary-color-transition), var(--primary-color));
}

.ticker-track {
    width: 100%;
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
}



.ticker-item {
    font-size: 1.8rem;
    font-family: var(--font-family-base);
    display: inline-block;
    padding: 0 var(--space-2);
    animation: ticker-scroll 4s linear infinite;
    font-style: italic;
}

.ticker-item a {
    text-decoration: none;
    color: var(--light-color);
    transition: 0.2s ease;
}

.ticker-item a:hover {
    color: var(--secondary-color);
}

.navbar {
    position: fixed;
    width: max-content;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100;
}

.navbar-adjust {
    transform: translate(-50%, calc(-50dvh + var(--space-6)));
}

.title {
    color: var(--primary-color);
    font-family: var(--font-family-heading);
    font-style: normal;
    font-size: 9rem;
    font-weight: 100;
    text-align: center;
    padding: var(--space-2);
    margin: 0;
    line-height: 1.1;
    user-select: none;
}

.subtitle {
    color: var(--primary-color);
    font-family: var(--font-family-heading);
    font-style: normal;
    font-size: 4rem;
    font-weight: 100;
    margin: 0 0 20px 0;
    line-height: 1;
}

.navbar-links {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    /* La fuente se ajusta sola entre 1.3rem y 1.8rem */
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    padding: var(--space-2) var(--space-3);
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
    will-change: transform;

    display: inline-flex;
    align-items: center;
    white-space: nowrap;

    /* SOLUCIÓN AL PADDING: */
    flex-shrink: 0;
    /* Evita que el contenedor "coma" espacio del link */
    box-sizing: border-box;
    user-select: none;
}

.nav-link:hover:not(.active) {
    color: var(--primary-color);
}

.nav-link.active:not(.contact-btn) {
    color: var(--primary-color);
}

.nav-link.active:not(.contact-btn)::before {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 0rem;
    top: 50%;
    transform: translateY(-40%);
}

.nav-link:not(.active):not(.contact-btn):hover::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 2.5px;
    background-color: var(--primary-color);
    animation: underline 0.3s ease-out;
    will-change: scale;
}

.contact-btn {
    min-width: max-content;
    /* Asegura que el botón nunca se deforme */
    font-family: var(--font-family-heading);
}

*:focus {
    outline-color: var(--secondary-color);
}

.contact-btn.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 0.5rem;
    font-family: var(--font-family-heading);
    border: var(--primary-color) solid 2.5px;
}

.contact-btn:not(.active) {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 0.5rem;
    font-family: var(--font-family-heading);
    border: var(--primary-color) solid 2.5px;
}

.contact-btn:not(.active):hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

@keyframes underline {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.loadscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 2s ease, visibility 2s;
    pointer-events: all;
}

body.app-ready .loadscreen {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes fadescreen {
    0% {
        opacity: 100;
    }

    50% {
        opacity: 100;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    to {
        opacity: 100;
    }
}

.language-switcher {
    position: fixed;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 1001;
    font-family: var(--font-family-base);
}

.language-btn {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    display: flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    background-color: transparent;
    border: 0;
    border-radius: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: max-content;
    background-color: var(--light-color);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: var(--space-1) var(--space-1);
    margin-top: var(--space-1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1002;
}

.language-switcher:hover .language-dropdown,
.language-switcher:focus-within .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher:hover .language-icon,
.language-switcher:focus-within .language-icon {
    transform: rotate(180deg);
}

.lang-option {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    text-align: left;
    background: none;
    border: none;
    right: 0;
    color: var(--text-color);
    font-size: 1.6rem;
    transition: var(--transition);
    border-radius: 0.5rem;
}

.lang-option:not(.selected):hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.lang-option.selected {
    color: var(--primary-color);
    position: relative;
    padding-left: var(--space-4);
}

.lang-option.selected::before {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.language-btn .current-lang {
    font-weight: 700;
    color: var(--primary-color);
}

body.contact-theme .current-lang{
    font-weight: 600;
    font-family: var(--font-family-base);
}

.page-section {
    padding: 0 2.4rem 10rem;
    display: block;
}

.hidden {
    display: none !important;
}

/* ────────────────────────────────────────────── */
/*  ABOUT                                         */
/* ────────────────────────────────────────────── */
#about {
    position: relative;
    overflow: hidden;
}

.about-skills-fullwidth {
    grid-column: 1 / -1; /* Rompe las 2 columnas del grid */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el título y el wrapper horizontalmente */
}

.about-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    /* Mantenemos las 2 columnas */
    grid-template-columns: 1fr 1fr; 
    /* CAMBIO: Alineamos el contenido al inicio (izquierda) de su celda */
    align-items: start; 
}
.about-skills-container {
    grid-column: 1 / -1; /* Esto hace que vaya de la línea 1 a la última (full width) */
    margin-top: 6rem;
    text-align: center; /* Centra el título "Stack tecnológico" */
}
.about-heading {
    font-family: "Cal Sans", sans-serif;
    font-size: clamp(3.6rem, 5vw, 6rem);
    font-weight: 100;
    color: var(--primary-color);
    line-height: 1.05;
    margin-bottom: 2.4rem;
}

.skills-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center; /* ESTO centra las categorías en la pantalla */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10rem; /* Espacio entre Design, Frontend, etc */
    width: 100%;
}

.about-body {
    font-size: 1.8rem;
    line-height: 1.75;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
}

.stat-num {
    font-family: "Cal Sans", sans-serif;
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: 100;
    line-height: 1;
}

.stat-label {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-top: 0.4rem;
}

.about-visual-col {
    position: relative;
    display: flex;
    /* CAMBIO: Empuja la foto hacia la derecha del contenedor */
    justify-content: flex-end; 
    align-items: flex-start;
}

.about-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Todo el texto pegado a la izquierda */
    text-align: left;
}

.about-photo-frame {
    width: 100%;
    max-width: 250px;
    border-radius: var(--space-3);
    overflow: hidden;
    position: relative;
    animation: slideInLeft 1s cubic-bezier(0.22, 1, 0.36, 1) both;
    pointer-events: none;
    user-select: none;
}

.about-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
}

.skills-title {
    font-family: "Cal Sans", sans-serif;
    font-size: 2.4rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 100;
}

.skills-category {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los iconos bajo su categoría */
}

.category-label {
    display: block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    opacity: 0.7;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.skill-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
}

.skill-icon-item i {
    font-size: 3rem; /* Tamaño del icono */
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-name {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition);
}

.skill-icon-item:hover i {
    color: var(--terciary-color);
    transform: translateY(-5px);
}

.skill-icon-item:hover .skill-name {
    opacity: 1;
    transform: translateY(0);
}

/* Lista de Servicios */
.services-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 300px; /* Igual que el ancho de la foto */
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--terciary-color);
    transition: var(--transition);
}

.service-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-item:hover {
    padding-left: 1rem;
    color: var(--primary-color);
}

/* ────────────────────────────────────────────── */
/*  WORK                                          */
/* ────────────────────────────────────────────── */
#work {
    position: relative;

    &::-webkit-scrollbar {
        display: none;
    }

    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: hidden;
}

.work-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.section-eyebrow {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInLeft 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section-eyebrow::before {
    content: '';
    width: 2.4rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 10rem;
}

.section-title {
    font-family: "Cal Sans", sans-serif;
    font-size: clamp(3.2rem, 4.5vw, 5.2rem);
    font-weight: 100;
    color: var(--primary-color);
    line-height: 1.1;
}

.work-filter {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: "Lato", sans-serif;
    font-size: 1.4rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--space-2);
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--text-color);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.6rem;
}

.work-card {
    background: var(--light-color);
    border-radius: var(--space-3);
    overflow: hidden;
    border: 2px solid var(--secondary-color);
    transition: var(--transition);
    position: relative;
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(33, 66, 171, 0.3);
    box-shadow: 0 16px 48px rgba(33, 66, 171, 0.1);
}

.work-card:nth-child(1) {
    grid-column: span 7;
}

.work-card:nth-child(2) {
    grid-column: span 5;
}

.work-card:nth-child(3) {
    grid-column: span 5;
}

.work-card:nth-child(4) {
    grid-column: span 7;
}

.work-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: var(--terciary-color);
}
.work-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cal Sans", sans-serif;
    font-size: 4rem;
    color: var(--primary-color);
}

.work-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--terciary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cal Sans", sans-serif;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.4;
}

.work-card-body {
    padding: 2rem 2.4rem 2.4rem;
}

.work-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.work-tag {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: var(--secondary-color);
    padding: 0.3rem 1rem;
    border-radius: 10rem;
}

.work-year {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.work-card-title {
    font-family: "Cal Sans", sans-serif;
    font-size: 2.2rem;
    font-weight: 100;
    color: var(--text);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.work-card-desc {
    font-size: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.work-card-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3.6rem;
    height: 3.6rem;
    background: var(--light-color);
    border: 2px solid var(--terciary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(4px, -4px);
    transition: var(--transition);
}

.work-card:hover .work-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.work-card-arrow svg {
    width: 2rem;
    height: 2rem;
    stroke: var(--primary-color);
}

.project-modal {
    box-sizing: border-box;
  position: fixed;
  top: 100%; /* Fuera de la pantalla (abajo) */
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-color);
  z-index: 2000;
  transition: top 0.5s cubic-bezier(0.85, 0, 0.15, 1);
  overflow-y: auto;
  visibility: hidden; /* <--- Agregado: evita que sea interactivo si está oculto */
}

/* Cuando el modal se activa */
.project-modal.active {
  top: 0;
  visibility: visible; /* <--- Agregado: se vuelve interactivo */
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Izquierda texto, derecha imágenes */
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 2px solid var(--primary-color); /* Estilo neubrutalista */
}
/* --- MODAL REFINADO --- */
.project-modal {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    z-index: 2000;
    transition: top 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    overflow-y: auto;
    visibility: hidden;
    padding: 2rem; /* Espacio para el botón de cerrar */
}

.project-modal.active {
    top: 0;
    visibility: visible;
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 6rem;
    max-width: 1100px; /* Alineado con .work-inner */
    margin: 0 auto;
}

/* Columna de Texto */
.modal-info-side {
    position: sticky;
    top: 8rem;
    align-self: start;
}

#modal-title {
    font-family: "Cal Sans", sans-serif;
    font-size: clamp(3rem, 4vw, 4.5rem);
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 2rem;
}

#modal-description {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 3rem;
}

/* Botones del Modal */
.modal-btn {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    padding: 1.2rem 2.4rem;
    font-family: "Cal Sans", sans-serif;
    font-size: 1.4rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    margin-right: 1.5rem;
}

.modal-btn:hover {
    transform: translate(-2px, -2px);
}

.modal-btn:active {
    transform: translate(2px, 2px);
}

/* Columna de Galería */
.gallery-img {
    width: 100%;
    border-radius: 1.2rem;
    margin-bottom: 2rem;
    display: block;
    border: none;
}

/* Botón Cerrar (X) */
.modal-close {
    position: fixed;
    top: 6rem;
    right: 6rem;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    color: var(--primary-color);
    border: none;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2005;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

/* ────────────────────────────────────────────── */
/*  CONTACT                                       */
/* ────────────────────────────────────────────── */
#contact {
    position: relative;
    overflow: hidden;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.contact-top {
    margin-bottom: 6rem;
}

.contact-eyebrow {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInLeft 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-eyebrow::before {
    content: '';
    width: 2.4rem;
    height: 2px;
    border-radius: 10rem;
    background: var(--text-color)
}

.contact-heading {
    font-family: "Cal Sans", sans-serif;
    font-size: clamp(4rem, 7vw, 9rem);
    font-weight: 100;
    line-height: 1;
    letter-spacing: -0.01em;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.contact-heading em {
    font-style: italic;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.contact-platform {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: var(--terciary-color);
}

.contact-handle {
    font-family: "Cal Sans", sans-serif;
    font-size: 2.6rem;
    font-weight: 100;
    color: var(--text-color);
}

.contact-card-icon {
    width: 5.2rem;
    height: 5.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-card:hover .contact-card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.contact-card-icon svg {
    width: 2.4rem;
    height: 2.4rem;
    fill: var(--light-color);
}

.contact-footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-footer-text {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-footer-copy {
    font-family: "Cal Sans", sans-serif;
    font-size: 2rem;
    color: var(--light-color);
    font-weight: 100;
}

/* ────────────────────────────────────────────── */
/* ANIMATIONS                                     */
/* ────────────────────────────────────────────── */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-up {
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.hidden {
    display: none;
}

.no-transition,
.no-transition * {
    transition: none !important;
}
/* --- Media Queries para Móviles --- */
@media (max-width: 768px) {
    .title {
        font-size: 7rem;
    }
    .body-initial{
        height: 20dvh;
    }

    .nav-link {
        text-decoration: none;
        color: var(--text-color);
        font-size: 1.6rem;
        padding: var(--space-2) var(--space-3);
        justify-content: space-between;
        border-radius: 0.5rem;
        transition: var(--transition);
        position: relative;
        will-change: transform;
    }

    .page-section {
        padding: 4rem 2.4rem 10rem;
    }

    /* About */
    #about::before {
        font-size: 30vw;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        display: flex; /* Cambiamos a flex para facilitar el centrado total */
        flex-direction: column;
        align-items: center; 
        text-align: center;
    }

    .about-visual-col { 
        order: -1;
        justify-content: center; 
        align-items: center;
    }

    .about-photo-frame {
        max-width: 100px;
        margin-top: -4dvh;
        margin-bottom: -30%;
    }

    .about-stats {
        gap: 2rem;
    }

    /* Work */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .work-card:nth-child(1),
    .work-card:nth-child(2),
    .work-card:nth-child(3),
    .work-card:nth-child(4) {
        grid-column: span 1;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        max-width: 100%;
        justify-items: center;
    }
    
    .services-list {
        max-width: 100%;
        margin-top: 2rem;
    }

    .about-skills-container {
        text-align: center;
    }
    .skills-wrapper {
    gap: 4rem;
    }
    .modal-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .modal-info-side {
        position: relative;
        top: 0;
    }
    .modal-close{
        right: 3rem;
        top: 3rem;
    }
}