@charset "utf-8";

/* =================================
   01. PRESENTACIÓN DE PROYECTOS
================================= */

.projects-hero {
    position: relative;

    overflow: hidden;

    padding-top: 40px;
    padding-bottom: 70px;
}

.projects-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.95fr)
        minmax(300px, 1fr)
        minmax(280px, 0.85fr);

    align-items: flex-start;

    gap: clamp(32px, 4vw, 72px);
}


/* =================================
   02. INTRODUCCIÓN
================================= */

.projects-introduction {
    min-width: 0;
}

.projects-greeting {
    margin: 0 0 12px;

    color: #76587e;

    font-family: "Caveat", cursive;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
}

.projects-title {
    margin: 0;

    color: #3e274c;

    font-family: "Fraunces", serif;
    font-size: clamp(52px, 5vw, 78px);
    font-weight: 700;
    line-height: 0.96;
}

.projects-description {
    max-width: 430px;

    margin-top: 24px;
    margin-bottom: 0;

    color: #4a4a4a;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
}

.projects-divider {
    display: block;

    width: 58px;
    height: 3px;

    margin-top: 24px;

    background-color: #b790c1;

    border-radius: 999px;

    transform: rotate(-2deg);
}


/* =================================
   03. ILUSTRACIÓN CENTRAL
================================= */

.projects-hero-visual {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.projects-handwritten {
    position: absolute;
    top: 0px;
    left: 7%;
    z-index: 2;

    width: 62%;
    max-width: 215px;

    margin: 0;

    color: #3e274c;

    font-family: "Caveat", cursive;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;

    transform: rotate(-7deg);
transform-origin: left center;
}

.projects-handwritten::after {
    content: "";

    display: block;

    width: 100%;
    height: 16px;

    margin: 2px auto 0;

    background-image:
        url("assets/trazos/sobremi.svg");

    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.projects-hero-image {
    display: block;

    width: 100%;
    max-width: 420px;
    height: auto;

    object-fit: contain;
	
}


/* =================================
   04. NOTA LATERAL
================================= */

.projects-note {
    position: relative;

    padding: 42px 38px 92px;

    background:
        linear-gradient(
            145deg,
            #f3edf7 0%,
            #eee4f4 100%
        );

    border: 1px solid rgba(118, 88, 126, 0.12);
    border-radius: 4px;

    box-shadow:
        0 16px 35px rgba(62, 39, 76, 0.10);

    transform:
		rotate(1deg)
		translateY(30px);
	
}

.projects-note::before {
    content: "";

    position: absolute;
    top: -13px;
    left: 50%;

    width: 78px;
    height: 25px;

    background-color: rgba(183, 144, 193, 0.70);

    transform: translateX(-50%) rotate(3deg);
}

.projects-note h2 {
    margin: 0 0 25px;

    color: #76587e;

    font-family: "Caveat", cursive;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.1;
}

.projects-note ul {
    display: grid;

    gap: 18px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.projects-note li {
    position: relative;

    padding-left: 25px;

    color: #3e274c;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.projects-note li::before {
    content: "";

    position: absolute;
    top: 5px;
    left: 2px;

    width: 9px;
    height: 9px;

    border: 2px solid #b790c1;

    transform: rotate(45deg);
}


.projects-note li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 14px;

    padding-left: 0;
}

.projects-note li::before {
    content: none;
}

.projects-note li img {
    display: block;

    width: 42px;
    height: 42px;

    object-fit: contain;
}

.projects-note li span {
    min-width: 0;
}

/* =================================
   05. GALERÍA DE PROYECTOS
================================= */

.projects-gallery {
    padding-top: 70px;
    padding-bottom: 90px;

    background-color: #f8f4fa;

    border-top: 1px solid rgba(118, 88, 126, 0.12);
}

.projects-gallery-heading {
    max-width: 650px;

    margin-bottom: 38px;
}

.projects-gallery-heading p {
    margin: 0 0 5px;

    color: #76587e;

    font-family: "Caveat", cursive;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.1;
}

.projects-gallery-heading h2 {
    margin: 0;

    color: #3e274c;

    font-family: "Fraunces", serif;
    font-size: clamp(34px, 3vw, 46px);
    font-weight: 700;
    line-height: 1.1;
}

.projects-gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;
}


/* =================================
   06. TARJETAS
================================= */

.portfolio-card {
    min-width: 0;
}

.portfolio-card-link {
    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    color: inherit;
    background-color: #ffffff;

    border: 1px solid rgba(62, 39, 76, 0.10);
    border-radius: 16px;

    box-shadow:
        0 12px 28px rgba(62, 39, 76, 0.08);

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.portfolio-card-link:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 38px rgba(62, 39, 76, 0.14);
}


/* =================================
   07. IMAGEN DE LA TARJETA
================================= */

.portfolio-card-media {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    padding: 8px 8px 0;
    overflow: hidden;
    box-sizing: border-box;
}

.portfolio-card[data-priority="1"] { order: 1; }
.portfolio-card[data-priority="2"] { order: 2; }
.portfolio-card[data-priority="3"] { order: 3; }
.portfolio-card[data-priority="4"] { order: 4; }
.portfolio-card[data-priority="5"] { order: 5; }

.portfolio-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 16 / 10;

    color: #76587e;
    background:
        linear-gradient(
            145deg,
            #eee4f4 0%,
            #f8eef3 100%
        );

    border-radius: 11px;

    font-family: "Caveat", cursive;
    font-size: 24px;
    text-align: center;
}

.portfolio-card-cover {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
}


/* =================================
   08. INFORMACIÓN DE LA TARJETA
================================= */

.portfolio-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 22px 24px 25px;
}

.portfolio-card-meta {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 15px;
}

.portfolio-card-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 44px;
    height: 44px;

    color: #3e274c;
    background-color: #e7d5ee;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 700;
}

.portfolio-card-category {
    color: #76587e;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.portfolio-card-content h3 {
    margin: 0 0 10px;

    color: #3e274c;

    font-family: "Fraunces", serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.15;
}

.portfolio-card-description {
    margin: 0 0 22px;

    color: #4d4d52;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.portfolio-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: auto;
    padding-top: 16px;

    color: #76587e;

    border-top: 1px solid rgba(118, 88, 126, 0.15);

    font-size: 14px;
    font-weight: 700;
}

.portfolio-card-action span {
    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.25s ease;
}

.portfolio-card-link:hover .portfolio-card-action span {
    transform: translateX(5px);
}

/* =================================
   09. COLORES POR CATEGORÍA
================================= */

/* IDENTIDAD VISUAL */

.portfolio-card[data-category="identidad"]
.portfolio-card-number {
    background-color: #e7d5ee;
}

.portfolio-card[data-category="identidad"]
.portfolio-card-category {
    color: #76587e;
}


/* CONTENIDO PARA REDES SOCIALES */

.portfolio-card[data-category="social-media"]
.portfolio-card-number {
    background-color: #f5dadd;
}

.portfolio-card[data-category="social-media"]
.portfolio-card-category {
    color: #a35f6c;
}


/* COMUNICACIÓN PUBLICITARIA */

.portfolio-card[data-category="publicidad"]
.portfolio-card-number {
    background-color: #dfead6;
}

.portfolio-card[data-category="publicidad"]
.portfolio-card-category {
    color: #657a57;
}


/* =================================
   10. FRANJA FINAL
================================= */

.projects-cta {
    padding-top: 0;
    padding-bottom: 75px;

    background-color: #f8f4fa;
}

.projects-cta-box {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 28px;

    padding: 30px 36px;

    background-color: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(118, 88, 126, 0.20);
    border-radius: 18px;

    box-shadow:
        0 12px 30px rgba(62, 39, 76, 0.07);
}


/* ICONO */

.projects-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 80px;

    background-color: #e7d5ee;

    border-radius: 50%;
}

.projects-cta-icon img {
    display: block;

    width: 65px;
    height: 65px;

    object-fit: contain;
}


/* TEXTO */

.projects-cta-content p {
    margin: 0 0 2px;

    color: #76587e;

    font-family: "Caveat", cursive;
    font-size:34px;
    font-weight: 400;
    line-height: 1.1;
}

.projects-cta-content h2 {
    margin: 0;

    color: #3e274c;

    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}


/* BOTÓN */

.projects-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    padding: 14px 22px;

    color: #76587e;
    background-color: #ffffff;

    border: 2px solid #b790c1;
    border-radius: 999px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.projects-cta-button span {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.25s ease;
}

.projects-cta-button:hover {
    color: #ffffff;
    background-color: #76587e;

    transform: translateY(-3px);
}

.projects-cta-button:hover span {
    transform: translateX(5px);
}



/* =================================
   10. TABLET HORIZONTAL
   900 PX A 1199 PX
================================= */

@media (min-width: 900px) and (max-width: 1199px) {

    /* PRESENTACIÓN */

.projects-hero {
    padding-top: 25px;
    padding-bottom: 55px;
}

.projects-hero-grid {
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(320px, 1.1fr);

    align-items: center;

    column-gap: 50px;
    row-gap: 30px;
}

.projects-introduction {
    grid-column: 1;
    grid-row: 1;
}

.projects-hero-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.projects-note {
    grid-column: 1;
    grid-row: 2;

    width: 100%;

    padding: 34px 30px 50px;

    transform: rotate(0.5deg);
    }

.projects-hero-image {
    max-width: 480px;
}

.projects-handwritten {
    font-size: 26px;
}

.projects-note h2 {
    margin-bottom: 20px;

    font-size: 27px;
}

.projects-note ul {
    gap: 14px;
}


    /* GALERÍA */

.projects-gallery {
    padding-top: 60px;
    padding-bottom: 75px;
 }

.projects-gallery-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}
}

/* =================================
   11. TABLET COMPACTA
   768 PX A 899 PX
================================= */

@media (min-width: 768px) and (max-width: 899px) {

    /* PRESENTACIÓN */

.projects-hero {
    padding-top: 20px;
    padding-bottom: 50px;
}

.projects-hero-grid {
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(280px, 1.05fr);

    align-items: center;

    column-gap: 32px;
    row-gap: 26px;
}

.projects-introduction {
    grid-column: 1;
    grid-row: 1;
}

.projects-hero-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.projects-note {
    grid-column: 1;
    grid-row: 2;

    width: 100%;

    padding: 30px 24px;

    transform: rotate(0.5deg);
}

.projects-greeting {
    font-size: 25px;
}

.projects-title {
    font-size: 44px;
    line-height: 0.98;
}

.projects-description {
    margin-top: 20px;

    font-size: 15px;
    line-height: 1.55;
}

.projects-divider {
    margin-top: 20px;
}

.projects-hero-image {
    max-width: 460px;
}

.projects-handwritten {
    max-width: 220px;

    font-size: 24px;
}

.projects-note h2 {
    margin-bottom: 18px;

    font-size: 26px;
}

.projects-note ul {
    gap: 13px;
}

.projects-note li {
    padding-left: 22px;

    font-size: 14px;
}


    /* GALERÍA */

.projects-gallery {
    padding-top: 55px;
    padding-bottom: 70px;
}

.projects-gallery-heading {
    margin-bottom: 32px;
}

.projects-gallery-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.portfolio-card-content {
    padding: 20px 20px 23px;
}

.portfolio-card-content h3 {
    font-size: 24px;
}

.portfolio-card-description {
    font-size: 14px;
}

.portfolio-card-category {
    font-size: 11px;
}

}

/* =================================
   12. MÓVIL
   HASTA 767 PX
================================= */

@media (max-width: 767px) {

    /* PRESENTACIÓN */

.projects-hero {
    padding-top: 40px;
    padding-bottom: 45px;
 }

.projects-hero-grid {
    grid-template-columns: minmax(0, 1fr);

    gap: 30px;
}

.projects-introduction {
    grid-column: 1;
    grid-row: 1;
}

 .projects-hero-visual {
    grid-column: 1;
    grid-row: 2;
}

.projects-note {
    grid-column: 1;
    grid-row: 3;

    width: min(100%, 460px);

    justify-self: center;

    padding: 32px 26px 62px;

    transform: rotate(0.5deg);
}

.projects-greeting {
    margin-bottom: 10px;

    font-size: 25px;
}

.projects-title {
    font-size: clamp(40px, 10vw, 52px);
    line-height: 0.98;
    }

.projects-description {
    max-width: none;

    margin-top: 20px;

    font-size: 15px;
    line-height: 1.6;
}

.projects-divider {
    margin-top: 20px;
}

.projects-handwritten {
    max-width: 260px;

    margin-bottom: -5px;

    font-size: 26px;
}

.projects-hero-image {
    width: 100%;
    max-width: 420px;
}

.projects-note h2 {
    margin-bottom: 20px;

    font-size: 28px;
 }

.projects-note ul {
    gap: 15px;
}

.projects-note li {
    font-size: 14px;
}


    /* GALERÍA */

.projects-gallery {
    padding-top: 50px;
    padding-bottom: 65px;
}

.projects-gallery-heading {
    margin-bottom: 30px;
}

.projects-gallery-heading p {
    font-size: 25px;
}

.projects-gallery-heading h2 {
    font-size: clamp(32px, 8vw, 40px);
}

.projects-gallery-grid {
    grid-template-columns: minmax(0, 1fr);

    max-width: 520px;

    margin-left: auto;
    margin-right: auto;

    gap: 25px;
}

.portfolio-card-content {
    padding: 21px 21px 24px;
}

.portfolio-card-content h3 {
    font-size: 25px;
}

.portfolio-card-description {
    font-size: 14px;
    line-height: 1.55;
}

.portfolio-card-category {
    font-size: 11px;
}

/* FRANJA FINAL */

.projects-cta-box {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 16px;

    padding: 30px 24px;

    text-align: center;
}

.projects-cta-icon {
    flex-shrink: 0;
}

.projects-cta-content {
    width: 100%;
    max-width: 430px;
}

.projects-cta-content p {
    margin-bottom: 5px;

    font-size: clamp(28px, 5vw, 34px);
    line-height: 1;
}

.projects-cta-content h2 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.projects-cta-button {
    width: min(100%, 270px);

    justify-content: center;

    margin-top: 4px;

    white-space: nowrap;
}

}

/* =================================
   13. MÓVIL GRANDE
   680 PX A 767 PX
================================= */

@media (min-width: 680px) and (max-width: 767px) {

/* PRESENTACIÓN */

.projects-hero {
    padding-bottom: 70px;
}

.projects-hero-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 30px;
    row-gap: 100px;

    align-items: start;
}


/* INTRODUCCIÓN A LA IZQUIERDA */

.projects-introduction {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    max-width: none;
}


/* NOTA A LA DERECHA */

.projects-note {
    grid-column: 2;
    grid-row: 1;

    width: 100%;

    align-self: start;
    justify-self: stretch;

    margin-top: 20px;
    padding: 30px 24px 42px;

    transform: rotate(1deg);
}

.projects-note h2 {
    margin-bottom: 17px;

    font-size: 25px;
}

.projects-note ul {
    gap: 12px;
}

.projects-note li {
    padding-left: 20px;

    font-size: 12px;
}


/* ILUSTRACIÓN DEBAJO DE AMBOS */

.projects-hero-visual {
    grid-column: 1 / -1;
    grid-row: 2;

    width: min(80vw, 620px);

    justify-self: center;

    margin: 0;
}

.projects-hero-image {
    width: 100%;
    max-width: none;
}


/* GALERÍA EN DOS COLUMNAS */

.projects-gallery-grid {
    grid-template-columns:
         repeat(2, minmax(0, 1fr));

    max-width: none;

    gap: 22px;
}

.portfolio-card-content {
    padding: 19px 19px 22px;
}

.portfolio-card-content h3 {
    font-size: 22px;
}

.portfolio-card-description {
    font-size: 13px;
}

.portfolio-card-category {
    font-size: 10px;
}

.portfolio-card-number {
    width: 40px;
    height: 40px;
}
	


}


/* =================================
   ICONOS DE CATEGORÍAS
================================= */

.projects-note li {
    padding-left: 0;
}

@media (max-width: 899px) {
    .projects-note li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .projects-note li img {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 767px) {
    .projects-note li {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .projects-note li img {
        width: 34px;
        height: 34px;
    }
}
