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

}

:root {
    /* --- COLORES BASE (Paleta) --- */
    --color-black-01: #F8F9FA;
    --color-black-02: #E9ECEF;
    --color-black-04: #CED4DA;
    --color-black-06: #979b9d;
    --color-black-09: #50514F;
    --color-black-11: #0D0F12;
    --color-purple-01: #F2EEFE;
    --color-purple-02: #DFD4FD;
    --color-purple-03: #A78BFA;
    --color-purple-overley: rgba(167, 139, 250, 0.2);
    --color-red-01: #C92A2A;

    /* --- COLORES SEMÁNTICOS (Uso) --- */
    --foreground-primary: var(--color-black-11);
    --foreground-secondary: var(--color-black-01);
    --background-primary: var(--color-black-01);
    --background-secondary: var(--color-black-11);
    --accent-primary: var(--color-purple-03);
    --alert-primary: var(--color-red-01);

    /* --- TIPOGRAFÍA --- */
    --font-family-primary: 'DM Sans', Tahoma, Geneva, Verdana, sans-serif;

    /* --- SHADOW --- */
    --shadow-primary: 0 3px 5px -2px rgba(3, 4, 7, 0.13), 0 7px 14px -5px rgba(3, 4, 7, 0.15);
    --shadow-secondary: 0 -3px 5px -2px rgba(3, 4, 7, 0.03), 0 -7px 14px -5px rgba(3, 4, 7, 0.05);
    --shadow-purple: 0 0 4px 0px rgba(167, 139, 250, 0.25);
    --shadow-red: 0 0 4px 0px rgba(201, 24, 24, 0.25);

    /* --- BORDER --- */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
}

/* --- GLOBAL --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--background-primary);
    color: var(--foreground-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    /* NUEVO: Antialiasing para mejor renderizado */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* NUEVO: Ajuste de texto más legible */
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--foreground-primary);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0px;
}

h1 {
    font-size: clamp(2rem, 1.15rem + 3.7vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 1.1rem + 2.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
}

h5 {
    font-size: 1rem;
}

p {
    color: var(--foreground-primary);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0px;
}


a {
    color: var(--color-purple-03);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

ul {
    list-style: none;
}

strong {
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
}

label {
    font-size: 14px;
    color: var(--foreground-primary);
}

input {
    display: flex;
    padding: 14px 16px;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-black-04);
    background: var(--background-primary);
    outline: none;
}

input:hover {
    border: 1px solid var(--color-purple-02);
    box-shadow: var(--shadow-purple);
}

input:focus {
    outline: 1px solid var(--color-purple-02);
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--color-red-01);
    box-shadow: var(--shadow-red);
}

input:valid {
    background: var(--color-purple-01);
    border: 1px solid var(--color-purple-02);
}

input:-webkit-autofill {
    border: 1px solid var(--color-purple-02);
    -webkit-background-origin: var(--color-purple-01);
}

textarea {
    display: block;
    width: 100%;
    /* Para que cumpla el efecto de 'align-self: stretch' */
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-black-04);
    background: var(--background-primary);
    outline: none;
    font-family: inherit;
    /* Usa la misma letra que la web*/
    box-sizing: border-box;
    resize: vertical;
    line-height: 1.5;
    /* Esto ayuda a que el texto se vea ordenado */
}

textarea:hover {
    border: 1px solid var(--color-purple-02);
    box-shadow: var(--shadow-purple);
}

textarea:focus {
    outline: 1px solid var(--color-purple-02);
}


/* --- SECCIONES --- */

.section__general {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 16px;
    width: 100%;
}

.section__proyect {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    width: 100%;
}

.container__general {
    display: flex;
    max-width: 1200px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex: 1 0 0;
    width: 100%;
}


/* -- HERO -- */

.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    width: 100%;
}

.hero__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16px;
    gap: 32px;
    max-width: 1080px;
    width: 100%;
    /* overflow: hidden; */
    /* Lo comentamos para permitir que el contenido fluya si es necesario, pero vigilando las animaciones */
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0px;
    max-width: 60%;
    /* Ajuste para dar espacio a la imagen */
    margin: 0;
}

@media (max-width: 768px) {
    .hero__content {
        justify-content: flex-start;
        max-width: 100%;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

}


.typing-effect {
    opacity: 0;
    border-right: 3px solid transparent;
    display: inline-block;
    /* Para que el border-right se ajuste al texto */
    width: auto;
}

.typing-active {
    border-color: var(--accent-primary);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-primary);
    }
}

/* ---BOTONES--- */

.buttons__container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .buttons__container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .buttons__container {
        flex-direction: column;
        width: 100%;
    }

    .buttons__container .button {
        width: 100%;
    }
}

.button {
    display: flex;
    padding: 10px 16px;
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--foreground-primary);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--foreground-primary);
    color: var(--foreground-secondary);
}

.btn-primary:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:active {
    color: var(--color-purple-02);
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--foreground-primary);
    border: 1px solid var(--foreground-primary);
}

.btn-secondary:hover {
    background-color: var(--color-purple-01);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--shadow-primary);
}

.btn-secondary:active {
    background-color: var(--color-purple-02);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--shadow-primary);
}

.btn-contact {
    width: 100%;
}

/* ---UTILIDADES--- */

.color__color {
    color: var(--accent-primary);
}

.pulse-circle {
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0px var(--color-purple-overley);
    }

    50% {
        transform: scale(1.4);
        text-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--color-purple-overley);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 0px var(--color-purple-overley);
    }
}

/* Alineación de los títulos de sección con el punto */
.description__contact h3,
.text__container h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulse-circle {
    display: inline-block;
    line-height: 1;
    /* Ayuda a que no herede alturas de línea raras */
}

.color__color-light {
    color: var(--color-purple-02);
}


.subtitle__weight {
    font-weight: 400;
}

.border__buttom {
    text-decoration-line: underline;
    /* text-decoration-style: wavy; */
    text-decoration-skip-ink: auto;
    text-decoration-color: var(--accent-primary);
    text-decoration-thickness: 12.5%;
    text-underline-offset: 18%;
    text-underline-position: from-font;
}

.footer__line {
    border: none;
    /* Quitamos el estilo gris por defecto */
    height: 1px;
    /* Grosor de la línea */
    background-color: var(--accent-primary);
    /* El color que prefieras */
    width: 100%;
    /* Ocupa todo el ancho disponible */
    margin: 0;
    /* Elimina espacios laterales */
}

.hero__image {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    /* Mantiene los bordes siempre perfectos */
}

.hero__photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.hero__photo--primary {
    position: relative;
    z-index: 1;
}

.hero__photo--secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    clip-path: circle(0% at 50% 50%);
    /* Oculto en el centro */
    /* transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1); */
    transition: clip-path 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__image:hover .hero__photo--secondary {
    clip-path: circle(100% at 50% 0%);
    /* Se expande hacia afuera */
}

/* --NAVBAR-- */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background-color: var(--background-primary);
    box-shadow: var(--shadow-primary);
    width: 100%;
    position: relative;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 8px;
}

.header__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toggle__btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav__overlay {
    display: none;
}

.nav__item {
    display: flex;
    padding: 4px;
    align-items: center;
    text-decoration-line: underline;
    /* text-decoration-style: wavy; */
    text-decoration-skip-ink: auto;
    text-decoration-color: transparent;
    text-decoration-thickness: 12%;
    text-underline-offset: 60%;
    text-underline-position: from-font;
    /* border-bottom: 1.5px solid transparent; */
    transition: all 0.3s ease;
}

.nav__item:hover {
    /* border-bottom: 1.5px solid var(--accent-primary); */
    /* background: var(--color-purple-01); */
    text-decoration-line: underline;
    /* text-decoration-style: wavy; */
    text-decoration-skip-ink: auto;
    text-decoration-color: var(--accent-primary);
    text-decoration-thickness: 12%;
    text-underline-offset: 40%;
    text-underline-position: from-font;
}

.nav__link {
    color: var(--accent-primary);
    text-decoration: none;
    padding: 0px;
    font-size: 16px;
    font-weight: 600;
}

.nav__list {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* -------------------MOBILE 768px--------------------- */
@media (max-width: 768px) {
    .nav__list {
        display: flex;
        flex-direction: column;
        position: fixed;
        /* Changed to fixed for better overlay behavior */
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--background-primary);
        padding: 40px 0;
        gap: 24px;
        align-items: center;
        box-shadow: var(--shadow-primary);
        z-index: 1000;
        border-top: 1px solid var(--color-black-02);
        /* Animation: Hidden by default */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav__list.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Background Overlay */
    .nav__overlay {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 15, 18, 0.1);
        /* Low opacity */
        backdrop-filter: blur(4px);
        /* Blur effect */
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .nav__overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .toggle__btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        z-index: 1001;
        /* Above the menu and overlay */
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
    }

    /* Span lines for cross animation */
    .toggle__btn span {
        width: 100%;
        height: 2px;
        background-color: var(--foreground-primary);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    .toggle__btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .toggle__btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .toggle__btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero__container {
        flex-direction: column;
    }

    .hero__content .typing-effect {
        display: block;
        /* Centrado mejor en mobile */
    }

    .hero {
        min-height: 80vh;
        height: auto;
        padding: 0;
        align-items: flex-start;
    }

    .contact__container {
        flex-direction: column;
    }
}

/* ---LOGO--- */
.header__icon {
    color: var(--foreground-primary);
    transition: all 0.3s ease;
}

.header__icon:hover {
    color: var(--accent-primary);
}


/* ---GRID--- */

.grid__general {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 24px;
    align-self: stretch;
    flex-wrap: wrap;
    max-width: 1080px;
}

.grid__general-home {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 24px;
    align-self: center;
    flex-wrap: wrap;
    max-width: 1080px;

}

.text__container {
    display: flex;
    width: 100%;
    text-align: left;
    gap: 8px;
}

.text__container__col {
    flex-direction: column;
}

/* ---CARD--- */

.card__link {
    display: flex;
    flex: 1 1 358px;
    /* Permite que crezca y encoja, con un base de 358px */
    max-width: 588px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}


.card__proyect {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-black-02);
    box-shadow: var(--shadow-primary);
    width: 100%;
    max-width: 588px;
    min-width: 280px;
    align-items: flex-start;
    flex: 1 0 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Esto evita que la imagen se salga de la card al crecer */
}


.card__link:hover .card__proyect {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-primary);
}

.card__link:hover .card__proyect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-purple-overley);
    border-radius: var(--border-radius-md);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}


.card__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: var(--background-secondary);
    color: var(--foreground-secondary);
    gap: 8px;
    padding: 16px 24px 24px 24px;
    border-radius: 0 0 9px 9px;
    width: 100%;
}

.card__title,
.card__description {
    color: var(--foreground-secondary);
}

/* ----- FOOTER ----- */

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    width: 100dvw;
    box-shadow: var(--shadow-secondary);
    background-color: var(--background-primary);
}

.section__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 0px 0px 0px;
    width: 100%;
}

.container__footer {
    display: flex;
    max-width: 1200px;
    padding: 40px 16px;
    flex-direction: column;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    margin: 0 auto;
    gap: 32px;
    text-align: center;
}

.footer__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 40px;
    align-self: stretch;
    flex-wrap: wrap;
    padding: 24px 16px 16px 16px;
}

@media (max-width: 768px) {
    .footer__nav {
        gap: 16px;
        flex-direction: column;
        padding: 0px 16px;
    }
}

.footer__link {
    display: flex;
    padding: 4px;
    align-items: center;
    font-size: 16px;
    color: var(--color-black-11);
    font-weight: 400;
    text-decoration-line: underline;
    /* text-decoration-style: wavy; */
    text-decoration-skip-ink: auto;
    text-decoration-color: transparent;
    text-decoration-thickness: 10%;
    text-underline-offset: 60%;
    text-underline-position: from-font;
    /* border-bottom: 1.5px solid transparent; */
    transition: all 0.3s ease;
}

.footer__link:hover {
    /* border-bottom: 1.5px solid var(--accent-primary); */
    /* background: var(--color-purple-01); */
    text-decoration-line: underline;
    /* text-decoration-style: wavy; */
    text-decoration-skip-ink: auto;
    text-decoration-color: var(--accent-primary);
    text-decoration-thickness: 10%;
    text-underline-offset: 40%;
    text-underline-position: from-font;
}

.container__footer p {
    font-size: 12px;
}

/* ----- CONTACTO ----- */

.column__container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
    width: 100%;
}

@media (max-width: 768px) {
    .column__container {
        flex-direction: column;
    }
}

.description__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    flex: 1;
}

.me__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    flex: 1 0 0;
}

.icon__contact {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.form__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    width: 100%;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
}

.input__form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.title__contact {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black-06);
}

.date__contact p {
    overflow-wrap: break-word;
    word-break: break-word;
}




/* ----- COMO TRABAJO ----- */

.grid__accordion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Ajusta las proporciones a tu gusto */
    gap: 0;
    align-items: flex-start;
    /* Alinea al inicio para que no se estiren raro */
    min-height: 400px;
    /* Altura mínima para que el contenedor no colapse */
}

@media (max-width: 768px) {
    .grid__accordion {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.imag__accordion {
    display: flex;
    justify-content: center;
    align-self: center;
    /* Centra la imagen verticalmente respecto al acordeón */
}

.icon__img {
    max-width: 100%;
    max-width: 320px;
    height: auto;
    align-self: center;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
}

.icon__img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.accordion-container {
    display: flex;
    flex-direction: column;

}

details {
    border-bottom: 2px solid var(--color-purple-02);
    /* La línea gris de tu captura */
    padding: 16px 8px;
}

@keyframes revealContent {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
        max-height: 0;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        max-height: 500px;
        /* Suficiente para el texto */
    }
}

.content {
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.content-inner {
    padding: 10px 26px 10px 0px;
    opacity: 0;
    transform: translateY(-10px);
    animation: smoothReveal 0.5s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.content-inner p {
    padding-bottom: 8px;
}

@keyframes smoothReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-inner p {
    color: var(--color-black-09);
    line-height: 1.7;
    font-size: 0.95rem;
    display: block;
}


/* Quitamos la flechita por defecto del navegador */
summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--foreground-primary);
    padding: 8px 0px;
    transition: color 0.3s ease;
}

summary:hover {
    color: var(--accent-primary);
}

summary::-webkit-details-marker {
    display: none;
}

.title__accordion {
    margin-right: 10px;
}

/* --- EL ICONO DINÁMICO (+ / -) --- */
.icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon::before,
.icon::after {
    content: "";
    position: absolute;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Línea Horizontal */
.icon::before {
    width: 14px;
    height: 2px;
}

/* Línea Vertical */
.icon::after {
    width: 2px;
    height: 14px;
}

details[open] .icon {
    transform: none;
    /* Quitamos la rotación de la cruz */
}

details[open] .icon::after {
    transform: rotate(90deg);
    /* Giramos la línea vertical */
    opacity: 0;
    /* La desvanecemos para dejar solo el - */
}

details[open] .title__accordion {
    color: var(--accent-primary);
}



/* --- ACÁ EMPIEZA LA PAGINA DE LOS PROYECTOS --- */

.header__proyect {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 8px;
}

.portada__proyect {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 16px;
}

.tags__container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
    margin: 0;
}

@media (max-width: 768px) {
    .tags__container {
        justify-content: center;
        margin: 0 auto;
    }
}

.tags__container__skills {
    justify-content: center;
}

.tags {
    display: flex;
    padding: 6px 12px;
    justify-content: center;
    align-items: stretch;
    border-radius: 99px;
    border: 1px solid var(--color-black-02);
    background: var(--background-primary);
    box-shadow: var(--shadow-primary);
    color: var(--color-black-06);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tags:hover {
    transform: translateY(-4px) scale(1.01);
}

.header__photo {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--color-black-02);
}

.secondary__photo {
    position: relative;
    width: 100%;
    padding-top: 8px;
}


.grid__general-proyect {
    display: flex;
    justify-content: center;
    align-items: stretch;
    align-content: center;
    gap: 24px;
    align-self: center;
    flex-wrap: wrap;
    max-width: 1080px;
}

.grid__general-proyect__skills {
    display: flex;
    justify-content: center;
    align-items: stretch;
    align-content: center;
    gap: 24px;
    align-self: center;
    flex-wrap: nowrap;
    max-width: 1080px;
    width: 100%;
}

@media (max-width: 768px) {
    .grid__general-proyect__skills {
        flex-direction: column;
    }
}

.card__conclusion {
    display: flex;
    flex-direction: row;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-black-02);
    box-shadow: var(--shadow-primary);
    width: 100%;
    max-width: 588px;
    min-width: 358px;
    align-items: flex-start;
    flex: 1 0 0;
    transition: all 0.3s ease;
    padding: 24px;
    gap: 16px;
    /* max-alig: 300px; */
    justify-content: space-between;
}

.card__conclusion svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.profesional__card {
    padding: 16px 24px 24px 24px;
}

.description__proyect {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-black-02);
    box-shadow: var(--shadow-primary);
    width: 100%;
    max-width: 588px;
    min-width: 358px;
    align-items: flex-start;
    flex: 1 0 0;
    transition: all 0.3s ease;
    padding: 24px;
    gap: 16px;
}

.description__conclusion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- laptop mockup --- */


.container__left {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 8px;
    max-width: 588px;
}

.laptop-container {
    position: relative;
    width: 100%;
    /* Ajusta según el tamaño de tu imagen de laptop */

    /* CAMBIO AQUÍ */
    /* Permite que se encoja */
    max-width: 600px;
    /* Este es el tamaño FIJO máximo que quieres */
    margin: 0 auto;
    /* Lo mantiene centrado */
}

.laptop-frame {
    width: 100%;
    height: auto;
    /* Mantiene la proporción al encogerse */
    display: block;
}

.screen-content {
    position: absolute;
    /* Estos valores porcentuales dependen de tu imagen de laptop específica */
    /* Tendrás que ajustarlos para que encajen justo en el cristal */
    top: 11%;
    left: 12.5%;
    width: 75%;
    height: 78%;

    overflow-y: scroll;
    /* Aquí ocurre la magia */
    overflow-x: hidden;
    background-color: #000;
}

.screen__content {
    position: absolute;
    /* Estos valores porcentuales dependen de tu imagen de laptop específica */
    /* Tendrás que ajustarlos para que encajen justo en el cristal */
    top: 0%;
    left: 0%;
    width: 0%;
    height: 0%;

    overflow-y: scroll;
    /* Aquí ocurre la magia */
    overflow-x: hidden;
    background-color: #000;
}

/* Para que la imagen web ocupe todo el ancho de la pantalla simulada */
.web-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Opcional: Personalizar el scroll para que se vea más elegante */
.screen-content::-webkit-scrollbar {
    width: 5px;
}

.screen-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}


.central__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 64px;
    padding: 40px 0px;
}

@media (max-width: 768px) {
    .central__container {
        gap: 16px;
    }
}

.container__proyect-colum {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 32px;
    gap: 8px;
}

.section__column-proyect {
    padding: 16px 0px;
}

.txt__cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.img__cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 540px;
}

@media (max-width: 768px) {
    .txt__cell {
        order: -1;
    }
}

.video-as-gif {
    /* 1. Ocupar todo el ancho disponible del contenedor padre */
    width: 100%;

    /* 2. Ocupar todo el alto disponible del contenedor padre */
    height: 100%;

    /* 3. ¡LA CLAVE! Evita que el video se estire o se salga. 
     'cover' hace que el video llene el espacio recortando los bordes si es necesario.
     'contain' hace que el video se vea completo aunque queden franjas negras. */
    object-fit: cover;

    /* 4. Asegura que se comporte como un bloque y no deje espacios extra abajo */
    display: block;

    /* 5. Evita que cualquier borde o padding lo haga crecer más de la cuenta */
    box-sizing: border-box;

    box-shadow: var(--shadow-primary);
}


.center__info {
    align-items: center;
    padding: 24px;
}

.grid__general-otherproyect {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 48px;
    align-self: stretch;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .grid__general-otherproyect {
        justify-content: center;
    }
}


.max__card {
    max-width: 304px;
    /* min-width: 272px; */
}


.title__icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.icon__title {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
}

.grid__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 40px;
    align-self: stretch;
    flex-wrap: wrap;
    padding-top: 32px;
}

.icon__photo {
    width: 228px;
    height: 168px;
    flex-direction: column;
    align-items: center;
}

.card__style {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: flex-start;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-black-02);
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
    padding: 16px 16px 8px 16px;
    gap: 8px;
    width: 240px;
    height: 168px;
}

.card__style p {
    text-align: center;
}

.container__skill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
}

.card__style-skills {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-black-02);
    box-shadow: var(--shadow-primary);
    transition: all 0.3s ease;
    padding: 24px 16px;
    gap: 8px;
    flex-basis: 50%;
    /* max-width: 320px; */
}

.grid__skills {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    gap: 40px;
    align-self: stretch;
    flex-wrap: wrap;
}

/* .skill__habilidades {
    width: 60%;
} */

.skill__herramientas {
    width: 100%;
}

@media (max-width: 768px) {
    .container__skill {
        flex-direction: column;
        gap: 60px;
    }

    .grid__skills {
        flex-direction: column;
        justify-content: center;

    }

    .card__style-skills {
        width: 100%;
    }

    .skill__habilidades {
        width: 100%;
    }

    .skill__herramientas {
        width: 100%;
    }


}

/* Contenedor principal (Bloque) */
.phone {
    position: relative;

    /* Un poco más ancho que la pantalla para incluir los bordes del iPhone */

    position: relative;
    /* CAMBIO AQUÍ */
    width: 100%;
    max-width: 195px;
    /* El tamaño fijo que definimos antes */
    margin: 0 auto;
}

/* La imagen del hardware del teléfono */
.phone__frame {
    width: 100%;
    display: block;
    pointer-events: none;
    height: auto;
    /* Mantiene la proporción al encogerse */
    /* Permite que el scroll funcione aunque toques el borde */
    z-index: 2;
    /* Asegura que el marco esté por encima */
}

/* La pantalla interna (Elemento) */
.phone__content {
    position: absolute;
    /* Ajuste preciso para centrar en el hueco de tu imagen */
    top: 11px;
    left: 10px;

    /* Medidas que pediste */
    width: 175px;
    height: 377px;

    overflow-y: auto;
    /* Activa el scroll vertical */
    overflow-x: hidden;
    background-color: #fff;

    /* Bordes redondeados para que el contenido no se salga del diseño del iPhone */
    border-radius: 26px;
    z-index: 1;

    /* --- LOS CAMBIOS ESTÁN AQUÍ --- */

    /* 1. Fundamental: Evita que el padding aumente el tamaño de la pantalla */
    box-sizing: border-box;

    /* 2. Padding interno: Crea un espacio de respiración alrededor de todo */
    padding: 0px;
    /* Ajusta este valor si quieres más o menos espacio */
}

/* La imagen larga dentro de la pantalla */
.phone__scroll-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Personalización del scroll para que sea minimalista */
.phone__content::-webkit-scrollbar {
    width: 3px;
}

.phone__content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.0);
    border-radius: 10px;
}

/* --- ANIMACIONES DE SCROLL (INTERSECTION OBSERVER) --- */

/* Clase base para ocultar elementos inicialmente */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* 
 * Clase que se añade con JS cuando entra al viewport. 
 * Devuelve el elemento a su posición y opacidad original.
 */
.show {
    opacity: 1;
    transform: translateY(0);
}

/* 
 * Utilidades para retrasar la animación (staggering).
 * Útiles para grids o listas donde los elementos aparecen en secuencia.
 */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-600 {
    transition-delay: 600ms;
}

.delay-700 {
    transition-delay: 700ms;
}

.delay-800 {
    transition-delay: 800ms;
}

.delay-1000 {
    transition-delay: 1000ms;
}

.delay-2000 {
    transition-delay: 2000ms;
}

.delay-3000 {
    transition-delay: 3000ms;
}

.delay-4000 {
    transition-delay: 4000ms;
}

/* Animación diferente: Fade-in simple (sin desplazamiento) */
.hidden-fade {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hidden-fade.show {
    opacity: 1;
}

/* Animación diferente: Desde la izquierda */
.hidden-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.hidden-left.show {
    opacity: 1;
    transform: translateX(0);
}

/* Animación diferente: Desde la derecha */
.hidden-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.hidden-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* --- INDICADOR DE SCROLL (Laptop Investigacion) --- */
/* From Uiverse.io by mrhyddenn - Customized for layout */
.container_mouse {
    position: absolute;
    right: -16px;
    /* Alineado al borde derecho del contenedor (dentro del padding) */
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    /* Ancho reservado */
    display: flex;
    flex-direction: column;
    /* Siempre en columna */
    align-items: center;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
}

.container_mouse span {
    font-size: 9px;
}

.mouse-btn {
    margin: 10px auto;
    width: 20px;
    height: 40px;
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    display: flex;
}

.mouse-scroll {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin: auto;
    animation: scrolling13 1.5s linear infinite;
}

@keyframes scrolling13 {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Responsividad para el indicador */
@media (max-width: 600px) {
    .container_mouse {
        width: 50px;
        font-size: 0.65rem;
        right: -10px;
        /* Un poco más pegado en pantallas muy pequeñas */
    }
}

/* Ajuste específico para el indicador en el teléfono para que no tape la pantalla */
.phone .container_mouse {
    right: -25px;
}

@media (max-width: 480px) {
    .phone .container_mouse {
        right: -10px;
        /* En móviles muy pequeños, lo pegamos más */
    }
}