@charset "utf-8";



/* =================================
   03. PRESENTACIÓN PRINCIPAL
================================= */

.home-hero {
    padding-top: 20px;
    padding-bottom: 80px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;

    min-height: 720px;
}

.home-introduction {
    grid-column: 1 / span 4;
}

.home-greeting {
    margin: 0 0 12px 0;

    color: #9c73bd;

    font-family: "Caveat", cursive;
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
}

.home-title {
    margin: 0;

    color: #24142f;

    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(64px, 5vw, 92px);
    font-weight: 700;
    line-height: 0.95;
}

.home-profession {
    margin: 28px 0 0 0;

    color: #9c73bd;

    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
}

.home-divider {
    display: block;

    width: 64px;
    height: 2px;

    margin-top: 34px;

    background-color: #9c73bd;
}

.home-description {
    max-width: 390px;

    margin: 34px 0 0 0;

    color: #222222;

    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.home-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;

    margin: 30px 0 0 0;
    padding: 0;

    list-style: none;
}

.home-specialties li {
    position: relative;

    padding-left: 15px;

    color: #222222;

    font-size: 16px;
    font-weight: 600;
}

.home-specialties li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background-color: #9c73bd;

    transform: translateY(-50%);
}

/* =================================
   04. PERSONAJE PRINCIPAL
================================= */

.home-character {
    grid-column: 5 / span 3;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    align-self: stretch;

    min-width: 0;
}

.home-character-image {
    display: block;

    width: auto;
    height: 720px;
    max-width: none;

    object-fit: contain;
    object-position: center bottom;
}

/* =================================
   05. PROYECTOS DESTACADOS
================================= */

.featured-projects {
    grid-column: 8 / -1;

    align-self: center;

    min-width: 0;
}

.featured-projects-heading {
    margin-bottom: 24px;
}

.featured-projects-heading h2 {
    margin: 0;

    color: #222222;

    font-family: "Caveat", cursive;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    --card-rotation: 0deg;

    position: relative;

    display: block;
    overflow: visible;

    color: #222222;
    background-color: #ffffff;

    border-radius: 10px;

    text-decoration: none;

    box-shadow: 0 10px 24px rgba(36, 20, 47, 0.12);

    transform: rotate(var(--card-rotation));

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.project-card:hover {
    transform:
        translateY(-6px)
        rotate(var(--card-rotation));

    box-shadow: 0 16px 30px rgba(36, 20, 47, 0.18);
}

.project-card:nth-child(1) {
    --card-rotation: -1.5deg;
}

.project-card:nth-child(2) {
    --card-rotation: 1.5deg;
}

.project-card:nth-child(3) {
    --card-rotation: -1deg;
}

.project-card:nth-child(4) {
    --card-rotation: 1deg;
}



/* CINTAS DECORATIVAS */

.project-card:nth-child(1)::before,
.project-card:nth-child(2)::before,
.project-card:nth-child(4)::before {
    content: "";

    position: absolute;
    z-index: 2;
    top: -9px;

    width: 68px;
    height: 20px;

    opacity: 0.85;

    box-shadow: 0 2px 4px rgba(36, 20, 47, 0.08);
}

.project-card:nth-child(1)::before {
    right: 28px;

    background-color: #c9a8d8;

    transform: rotate(5deg);
}

.project-card:nth-child(2)::before {
    left: 50%;

    background-color: #efc7ce;

    transform:
        translateX(-50%)
        rotate(-3deg);
}

.project-card:nth-child(4)::before {
    left: 42px;

    background-color: #d7c7ed;

    transform: rotate(4deg);
}


/* CLIP DECORATIVO */

.project-card:nth-child(3)::before {
    content: "";

    position: absolute;
    z-index: 2;
    top: -15px;
    left: 25px;

    width: 15px;
    height: 38px;

    border: 3px solid #76587e;
    border-radius: 999px;

    background-color: transparent;

    transform: rotate(-12deg);
}


/* CONTENIDO INTERIOR DE LAS TARJETAS */

.project-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.project-card-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #76587e;
    background-color: #eee7f2;

    font-size: 14px;
    font-weight: 600;
}

.project-card-info {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 18px 18px;
}

.project-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    color: #4b315a;
    background-color: #e8d2ed;

    border-radius: 50%;

    font-family: "Fraunces", Georgia, serif;
    font-size: 15px;
    font-weight: 700;
}

.project-category {
    display: block;

    margin-bottom: 3px;

    color: #9c73bd;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-card h3 {
    margin: 0;

    color: #24142f;

    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.project-card-summary {
    margin: 6px 0 0;
    color: #626262;
    font-size: 12px;
    line-height: 1.45;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.home-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    box-sizing: border-box;
    color: #76587e;
    background-color: transparent;
    border: 2px solid #9c73bd;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-action-button:hover,
.home-action-button:focus-visible {
    color: #ffffff;
    background-color: #76587e;
    transform: translateY(-3px);
}

/* BOTÓN: VER MÁS PROYECTOS */

.all-projects-button {
    display: flex;
    align-items: center;
    gap: 16px;

    width: fit-content;

    margin: 32px auto 0;
    padding: 14px 22px;

    color: #76587e;
    background-color: transparent;

    border: 2px dashed #c9a8d8;
    border-radius: 14px;

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.all-projects-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 44px;
    height: 44px;

    color: #ffffff;
    background-color: #c9a8d8;

    border-radius: 50%;

    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

.all-projects-button small {
    display: block;

    margin-top: 3px;

    color: #9c73bd;

    font-size: 13px;
    font-weight: 500;
}

.all-projects-button:hover {
    color: #4b315a;
    background-color: #f4eef6;
    border-color: #76587e;

    transform: translateY(-3px);
}

/* =================================
   RESPONSIVE TABLET
   900px a 1199px
================================= */

@media (min-width: 900px) and (max-width: 1199px) {
	
.home-hero {
    padding-top: 30px;
    padding-bottom: 60px;
}

.home-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 60px;

    min-height: auto;
}

.home-introduction {
    grid-column: 1 / span 6;
}

.home-character {
    grid-column: 7 / -1;
}

.featured-projects {
    grid-column: 1 / -1;
}

.home-greeting {
    margin-bottom: 12px;

    font-size: 32px;
}

.home-title {
    font-size: 52px;
    line-height: 1;
}

.home-profession {
    margin-top: 24px;

    font-size: 20px;
    line-height: 1.4;
}

.home-divider {
    margin-top: 28px;
}

.home-description {
    margin-top: 28px;

    font-size: 17px;
    line-height: 26px;
}

.home-specialties {
    margin-top: 24px;
}

.home-specialties li {
    font-size: 15px;
}

.home-character-image {
    width: 100%;
    height: 560px;

    object-fit: contain;
    object-position: center bottom;
}
.featured-projects {
    align-self: start;
}

.featured-projects-heading {
    margin-bottom: 30px;
}

.featured-projects-heading h2 {
    font-size: 32px;
    line-height: 1.1;
}

.projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
}

.project-card-image {
    aspect-ratio: 16 / 9;
}

.project-card-info {
    gap: 14px;
    padding: 18px 20px 20px;
}

.project-number {
    width: 42px;
    height: 42px;
}

.project-category {
    font-size: 12px;
}

.project-card h3 {
    font-size: 17px;
}

.all-projects-button {
    margin-top: 40px;
}


}


/* =================================
   RESPONSIVE TABLET COMPACTA
   768px a 899px
================================= */

@media (min-width: 768px) and (max-width: 899px) {

.home-hero {
    padding-top: 25px;
    padding-bottom: 50px;
}

.home-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 50px;

    min-height: auto;
}

.home-introduction {
    grid-column: 1 / span 7;
}

.home-character {
    grid-column: 8 / -1;
}

.featured-projects {
    grid-column: 1 / -1;
    align-self: start;
}

.home-greeting {
    margin-bottom: 10px;

    font-size: 32px;
}

.home-title {
    font-size: 50px;
    line-height: 50px;
}

.home-profession {
    margin-top: 22px;

    font-size: 18px;
    line-height: 26px;
}

.home-divider {
    margin-top: 26px;
}

.home-description {
    margin-top: 26px;

    font-size: 16px;
    line-height: 24px;
}

.home-specialties {
    gap: 12px 20px;

    margin-top: 22px;
}

.home-specialties li {
    font-size: 14px;
}

.home-actions {
    margin-top: 28px;
}

.home-action-button {
    font-size: 14px;
}

.home-character-image {
    width: 100%;
    height: 480px;

    object-fit: contain;
    object-position: center bottom;
}

}

/* =================================
   RESPONSIVE MÓVIL
   Hasta 767px
================================= */

@media (max-width: 767px) {

.home-hero {
    padding-top: 30px;
    padding-bottom: 40px;
}

.home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 30px;

    min-height: auto;
}

.home-introduction,
.home-character,
.featured-projects {
    grid-column: 1 / -1;
}

.home-greeting {
    margin-bottom: 10px;

    font-size: 24px;
    line-height: 1;
}

.home-title {
    font-size: 40px;
    line-height: 40px;
}

.home-profession {
    margin-top: 18px;

    font-size: 18px;
    line-height: 24px;
}

.home-divider {
    width: 50px;

    margin-top: 25px;
}

.home-description {
    max-width: none;

    margin-top: 25px;

    font-size: 14px;
    line-height: 20px;
}

.home-specialties {
    gap: 10px 18px;

    margin-top: 20px;
}

.home-specialties li {
    padding-left: 13px;

    font-size: 13px;
    line-height: 20px;
}

.home-specialties li::before {
    width: 5px;
    height: 5px;
}

.home-actions {
    margin-top: 25px;
}

.home-action-button {
    padding: 10px 18px;

    font-size: 12px;
}

.home-character {
    align-self: auto;
}

.home-character-image {
    width: 100%;
    height: 560px;
    max-width: 100%;

    object-fit: contain;
    object-position: center bottom;
}


.featured-projects-heading {
    margin-bottom: 25px;
}

.featured-projects-heading h2 {
    font-size: 24px;
    line-height: 1.1;
}

.projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
}

.project-card-image {
    aspect-ratio: 16 / 10;
}

.project-card-info {
    gap: 14px;
    padding: 16px 18px 18px;
}

.project-number {
    width: 40px;
    height: 40px;

    font-size: 14px;
}

.project-category {
    font-size: 11px;
}

.project-card h3 {
    font-size: 16px;
    line-height: 20px;
}

.all-projects-button {
    margin-top: 40px;
    padding: 12px 18px;

    font-size: 14px;
}

.all-projects-icon {
    width: 40px;
    height: 40px;

    font-size: 26px;
}

.all-projects-button small {
    font-size: 11px;
}

}

