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

/* VARIABLES */
:root {
    --font-title: "Stack Sans Notch", Helvetica, Arial, sans-serif;
    --font-body: "Questrial", Helvetica, Arial, sans-serif;

    --bg: #f7f7fb;
    --blue: #0b3bdc;
    --text: #0b3bdc;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    cursor: url("imagenes/estrella-cursor.png") 12 12, auto;
    font-size: 17px;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
}

h1, h2 {
    letter-spacing: -0.02em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-btn {
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}



::-webkit-scrollbar-track {
    background: black;
}

::-webkit-scrollbar-thumb {
    background: #DB1C33;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b41f29;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #DB1C33 black;
}

/* CURSORS PERSONALIZADOS */
body.modo-oscuro {
    cursor: url("imagenes/estrella-cursor-oscuro.png") 12 12, auto;
    background: white;
}

a,
button,
.btn,
input,
textarea,
select,
img[role="button"] {
    cursor: url("imagenes/circulo-amarillo.png") 12 12, pointer !important;
}

/* OVERLAY */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: #DB1C33;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.menu-overlay.active {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 26px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.menu-list {
    list-style: none;
    text-align: center;
}

.menu-list li {
    margin: 18px 0;
}

.menu-list a,
.submenu-toggle {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 2px;
    background: none;
    border: none;
    cursor: pointer;
}

/* SUBMENÚ */
.submenu {
    list-style: none;
    margin-top: 10px;
    display: none;
}

.submenu li {
    margin: 10px 0;
}

.submenu a {
    font-size: 14px;
    opacity: 0.85;
}

/*   NAVBAR */
.navbar {
    background: white !important;
    padding: .8rem 0;
}

.navbar .nav-link {
    color: #DB1C33 !important;
    padding: .35rem 1.1rem;
    border-radius: 30px;
    border: 2px solid transparent;
    transition: .22s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    border-color: #DB1C33;
}

/* hamburger color */
.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23DB1C33' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/*ICONO SUPERIOR */
.iconocolmillo {
    display: flex;
    justify-content: flex-end;
    padding: .6rem 2rem;
    background: white;
}

.iconocolmillo-img {
    width: 45px;
    height: auto;
}

/*   FOOTER */
footer {
    background: #DB1C33;
    color: white;
    padding: 16px 0;
}

.footer-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icono-email,
.icono-footer {
    width: 28px;
    height: auto;
}

.correo-footer {
    color: white;
    text-decoration: none;
}

.correo-footer:hover {
    text-decoration: underline;
}

.case-cta {
    background: #DB1C33;
    color: #fff;
    padding: 160px 6vw 120px;
    margin: 0;
    margin-bottom: 28px;

}


.case-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    margin-bottom: 12px;
}

.case-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* IZQUIERDA */
.cta-title {
    font-size: clamp(48px, 6vw, 96px);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 40px;
}

.cta-link {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-decoration: underline;
    color: white;
}

/* DERECHA */
.cta-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.cta-small-text {
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.cta-icon {
    width: 80px;
    height: auto;
    opacity: 0.75;
}

.iconocolmillo {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.iconocolmillo.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}



/* BASE */
.submenu {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0;
}

/* =========================
   ESCRITORIO (hover)
   ========================= */
@media (min-width: 992px) {

    .navbar .has-submenu {
        position: relative;
    }

    .navbar .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: transparent;
        border: 1px solid #3951ea;
        min-width: 200px;
        z-index: 200;
    }

    .navbar .has-submenu:hover>.submenu {
        display: block;
    }

    .navbar .submenu li a {
        display: inline-flex;
        padding: 10px 16px;
        color: white;
        text-decoration: none;
    }

    .navbar .submenu li a:hover {
        background: #DB1C33;
        color: white;
    }

    .cta-link {
        padding: 12px 24px;
        font-size: 13px;
        letter-spacing: 0.12em;
        border: 2px solid white;
        border-radius: 18px;
        background: transparent;
        color: white;
        font-size: 13px;
    }

    .cta-link:hover {
        background-color: #DB1C33;
        color: #fff;
    }

    .cta-left {
        align-items: flex-start;
    }
}

.hero {
    padding: 6rem 6rem 4rem;
}


/* =========================
   MÓVIL / OVERLAY (click)
   ========================= */
@media (max-width: 991px) {
    .menu-overlay .submenu {
        display: none;
        margin-top: 12px;
    }

    .menu-overlay .submenu li a {
        font-size: 14px;
        opacity: 0.9;
    }

    .project {
        grid-template-columns: 1fr;
    }

    .project-image,
    .project-info {
        grid-column: auto;
    }

    .project-info h2 {
        font-size: 2.2rem;
    }
}


/* ===============================
   SUBMENU DESKTOP
   =============================== */

.has-submenu-desktop {
    position: relative;
}

.submenu-desktop {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 16px 0;
    margin: 0;
    min-width: 220px;
    display: none;
    z-index: 999;
}

.submenu-desktop li a {
    display: block;
    padding: 8px 24px;
    text-decoration: none;
    color: #DB1C33;
    white-space: nowrap;
}

.submenu-desktop li a:hover {
    background-color: #f5e0e2
}

/* Mostrar submenu en hover */
.has-submenu-desktop:hover .submenu-desktop {
    display: block;
}

/* Flecha desktop */
.arrow-desktop {
    font-size: 12px;
    margin-left: 6px;
}

.no-break {
    white-space: nowrap;
}

/*bienvenida*/
.hero {
    width: 100%;
    padding: 4rem 1.5rem 3rem;
    display: flex;
    align-items: flex-start;
}

.hero-copy {
    width: 72%;
    margin-left: 2rem;
    display: grid;
    row-gap: .15rem;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.02;
    color: #DB1C33;
}

.hero-copy p {
    margin: 0;
}

.hero-copy .spacer {
    height: 1.8rem;
}

.about-title {
    font-size: 12vw;
}

.about-left,
.about-right {
    white-space: normal;
}

.about-line {
    min-width: 0;
}

html,
body {
    max-width: 100%;
}

.page-wrapper {
    overflow-x: hidden;
}




.project-title {
    font-size: 140px;
}

.work-showcase {
    padding: 80px 40px;
}



.work-image-large img {
    max-width: 760px;
}

.agm-images-grid {
    grid-template-columns: repeat(3, 1fr);
}

.diffusion-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.diffusion-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* PANTALLA INICIAL — SPLASH SCREEN */

#pantalla-inicio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #DB1C33;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 1;
    transition: opacity 1.2s ease;
}

#pantalla-inicio.ocultar {
    opacity: 0;
    pointer-events: none;
}

.logo-splash {
    width: 160px;
    opacity: 0;
    transform: scale(0.8);
    animation: splashIn 1.2s ease forwards;
}

@keyframes splashIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*   HERO SECTION  */


.hero {
    padding: 120px 5vw;
    background-color: white;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 80px;
}

/* TEXTO */
.hero-text h1 {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 400;
    color: #DB1C33;
}

.hero-text span {
    font-weight: 700;
}

/* GRÁFICO */
.hero-graphic {
    position: relative;
    width: 140px;
    height: 140px;
}



/* Texto */
.editorial-text {
    max-width: 420px;
    color: #DB1C33;
}

.editorial-text .year {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 1rem;
}

.editorial-text h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.editorial-text p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Proyecto base */
.project {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 2rem;
}

/* Izquierda */
.project-left .project-image {
    grid-column: 1 / 7;
}

.project-left .project-info {
    grid-column: 7 / 12;
}

/* Derecha */
.project-right .project-image {
    grid-column: 7 / 13;
}

.project-right .project-info {
    grid-column: 2 / 7;
}

/* Imagen */
.project-image {
    width: 100%;
    height: 620px;
    overflow: hidden;
    border-radius: 4px;
}

.project-image img {
    width: 100%;
    height: 100%;

    display: block;
}


/* Texto */
.project-info {
    color: #0b36f0;
}

.project-year {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 1rem;
}

.project-info h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.project-info p {
    max-width: 360px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-hero {
    padding-top: 10px;
    padding-bottom: 100px;
}

.about-container {
    max-width: 1300px;
}

/* Título gigante */
.about-title {
    font-size: 9vw;
    font-weight: 700;
    color: #DB1C33;
    display: flex;
    align-items: center;
    gap: 2vw;
    flex-wrap: wrap;
    margin-bottom: 60px;
    line-height: 1;
}

.about-left,
.about-right {
    white-space: nowrap;
    color: #DB1C33
}

.about-line {
    flex-grow: 1;
    height: 4px;
    background: #DB1C33;
    min-width: 100px;
}

/* FOTO + TEXTO */
.about-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-photo img {
    width: 350px;
    border-radius: 10px;
}

.about-text {
    max-width: 450px;
    font-size: 1.05rem;
    line-height: 1.7;
    
}
.about-text,
.about-text p {
    color: #DB1C33;
    
}

/* =========================
   CVALFRED – CV SECTIONS
   ========================= */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Sección general */
.cv-section {
    position: relative;
    padding: 3.5rem 0;

}

/* línea superior */
.cv-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #DB1C33;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease;
}

.cv-section.is-visible::before {
    transform: scaleX(1);
}


/* Fila del CV */
.cv-row {
    display: grid;
    grid-template-columns: 220px 1fr 160px;
    gap: 2rem;
    align-items: start;
    padding: 1.2rem 0;
}

/* Título de sección (Experiencia, Educación, etc.) */
.cv-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #DB1C33;
}

/* Contenido central */
.cv-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Rol */
.cv-role {
    font-size: 0.85rem;
    color: #DB1C33;
    margin: 0;
}

/* Empresa / Carrera */
.cv-company {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
    color: #DB1C33;
}

/* Fecha */
.cv-date {
    font-size: 0.85rem;
    color: #DB1C33;
    text-align: right;
    white-space: nowrap;
}

/* =========================
   DISCIPLINAS (lista)
   ========================= */

.cv-section:last-child .cv-row {
    align-items: start;
}

.cv-section:last-child .cv-content {
    gap: 0.6rem;
}

/* =========================
   ANIMACIÓN FADE (opcional)
   ========================= */

.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*AGM*/

.case-section {
    padding: 80px 64px;
    background: #f7f7fb;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* HEADER */
.case-header {
    max-width: 1100px;

}

.case-title {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 64px;
    font-weight: 700;
    color: #1e4dff;
    margin-bottom: 16px;
}

.case-line {
    flex: 1;
    height: 3px;
    background: #1e4dff;
}

.case-description {
    max-width: 520px;
    font-size: 24px;
    line-height: 1.6;
    color: #1e4dff;
    margin-top: 24px;
}

/* IMAGEN */
.case-image {
    width: 100%;
}

.case-image img {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.case-editorial {
    background: #f6f6fb;
    padding: 120px 0;
}

.case-editorial .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.editorial-meta {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #1a3cff;
    margin-bottom: 32px;
}

.editorial-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    color: #1a3cff;
    margin-bottom: 32px;
}

.editorial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #1a3cff;
    max-width: 680px;
    margin-bottom: 32px;
}

.editorial-link {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #1a3cff;
    text-decoration: underline;
}

.editorial-credits h3 {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    color: #1a3cff;
}

.editorial-credits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.editorial-credits li {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #1a3cff;
    margin-bottom: 12px;
}

/* PILLS – BASE (desktop incluido) */
.editorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.editorial-meta span {
    font-size: 0.7rem;
    padding: 6px 14px;
    border: 1px solid #1a3cff;
    border-radius: 999px;
    letter-spacing: 0.08em;
    color: #1a3cff;
    white-space: nowrap;
}

/*nuevo producto*/

.case-media {
    background: #f6f6fb;
    padding: 120px 0;
}

.case-media-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

/* IMAGEN CUADRADA */
.case-media-main {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
}

.case-media-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CARRUSEL */
.case-media-carousel {
    overflow: hidden;
}

/* CARRUSEL */
.case-media-carousel {
    width: 100%;
    overflow: hidden;
}

/* Track */
.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
}

/* Ocultar scrollbar */
.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Item */
.carousel-item {
    min-width: 260px;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    flex: 0 0 auto;
    background: #000;
}


/* Imagen */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.carousel-track::-webkit-scrollbar {
    display: none;
}


.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}


.case-media-carousel {
    width: 100%;
    min-height: 420px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
}

.carousel-item {
    flex: 0 0 auto;
    min-width: 260px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

/* empaque*/
/* ---------- HERO ---------- */

.hero-case {
    padding: 80px 5vw;
}

.hero-header h1 {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 500;
    color: var(--blue);
}

.hero-header .line {
    flex: 1;
    height: 2px;
    background: var(--blue);
}

.hero-subtitle {
    margin-top: 20px;
    max-width: 420px;
    font-size: 14px;
}

.hero-image {
    margin-top: 60px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* ---------- CASE INFO ---------- */

.case-info {
    padding: 100px 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tags span {
    border: 1px solid var(--blue);
    color: var(--blue);
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 20px;
}

.case-text h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.case-text p {
    font-size: 14px;
    max-width: 460px;
}

.case-images {
    display: grid;
    gap: 20px;
}

.case-images img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.case-gallery {
    padding: 100px 5vw;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Imagen grande */
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Columna derecha */
.gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    margin-top: 95px;
}

.gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.case-editorial {
    width: 100%;
    padding: 4rem 1rem;
    background: #fff;
}

.editorial-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
        "main side"
        "main text"
        "bottom bottom";
    gap: 2rem;
}

.editorial-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Asignación de áreas */
.img-main {
    grid-area: main;
}

.img-side {
    grid-area: side;
}

.img-bottom {
    grid-area: bottom;
}

.editorial-text {
    grid-area: text;
}

.editorial-text p {
    color: #DB1C33;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 460px;
}


/*escaparates*/

.portfolio-section {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 1rem;
}

.portfolio-block {
    margin-bottom: 5rem;
}

/* GRID SUPERIOR */
.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.7fr;
    gap: 1.2rem;
}

.side-column {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.2rem;
}

/* GRID INFERIOR */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.portfolio-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-title {
    text-align: center;
    color: #DB1C33;
    font-size: .75rem;
    letter-spacing: 2px;
    margin-top: 1.8rem;
}

/* LIFESTYLE */

/* ===== LIFESTYLE DESKTOP ===== */

.lifestyle-section {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 1rem;
}

/* FILA SUPERIOR */
.top-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

/* BLOQUE INFERIOR */
.bottom-content {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

/* TEXTO IZQUIERDA */
.lifestyle-text {
    max-width: 420px;
}

/* MOSAICO DERECHA */
.side-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 1rem;
}

.side-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.top-images img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ===============================
   EDITORIAL — BASE (desktop)
================================ */

.editorial-section {
    padding: 10rem 0;
}

.editorial-wrap {
    max-width: 1800px;
    margin: 0 auto 14rem;
    padding: 0 6vw;

    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(360px, 460px);
    gap: 8rem;
    align-items: center;
}


/* REVERSE */
.editorial-wrap.reverse {
    direction: rtl;
}

.editorial-wrap.reverse>* {
    direction: ltr;
}

/* IMAGEN */
.editorial-image {
    width: 100%;
    aspect-ratio: 4 / 5;
}

.editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TEXTO */
.editorial-text {
    max-width: 460px;
    color: #DB1C33;
}

.editorial-text h2 {
    font-size: clamp(3rem, 4vw, 4.8rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    word-break: keep-all;
}

.editorial-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.editorial-image {
    aspect-ratio: 3 / 4;
}

.manifesto-item {
    max-width: 420px;
    white-space: normal;
}




/* CONTACT SECTION */

.contact-section {
    padding: 10rem 6vw;
    background: #f6f6fb;
}

.contact-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* TÍTULO */
.contact-title {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 500;
    color: #DB1C33;
    margin-bottom: 6rem;
}

.contact-line {
    flex: 1;
    height: 2px;
    background: currentColor;
}

/* FORM */
.contact-form {
    max-width: 900px;
}

/* FILA */
.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    color: #DB1C33;
}

.form-field input,
.form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid #DB1C33;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #DB1C33;
    outline: none;
}

.form-field textarea {
    resize: none;
    min-height: 180px;
    margin-top: 2rem;
}

.form-field.full {
    grid-column: 1 / -1;
}

/* BOTÓN */
.submit-btn {
    margin-top: 3rem;
    background: transparent;
    border: none;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-decoration: underline;
    cursor: pointer;
    color: #DB1C33;
}



.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #DB1C33;
    padding: 0.5rem 1.5rem 0.5rem 0;
    font-size: 1rem;
    color: #DB1C33;
    cursor: pointer;
}

.select-wrapper select:focus {
    outline: none;
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    pointer-events: none;
    color: #DB1C33;
}












































/*medias*/
@media (max-width: 480px) {

    .project-header {
        padding: 80px 40px 50px;
    }

    .case-study {
        padding: 64px 40px 80px;
    }

    .project-title {
        font-size: clamp(72px, 18vw, 120px);
    }

    .top-row {
        flex-direction: column;
        gap: 24px;
    }

    .credits {
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .description {
        font-size: 13px;
        margin-bottom: 40px;
    }

    .project-title {
        font-size: 64px;
    }

    .project-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .project-line {
        width: 100%;
    }

    /*AGM*/

    .case-section {
        padding: 40px 20px;
    }

    /* TÍTULO EN VERTICAL */
    .case-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 36px;
    }

    /* LÍNEA CORTA */
    .case-line {
        width: 48px;
        flex: none;
    }

    /* TEXTO */
    .case-description {
        max-width: 300px;
        font-size: 14px;
        line-height: 1.6;
    }

    /* IMAGEN */
    .case-image img {
        max-width: 400px;
        margin-top: 24px;

    }

    .case-title {
        align-items: center;
        text-align: center;
    }

    .case-line {
        margin: 0 auto;
    }

    body {
        background: #eef1f7;
    }

    .case-editorial {
        padding: 48px 16px;
    }

    .case-editorial .container {
        display: block;
        max-width: 420px;
        margin: 0 auto;
        background: #f6f6fb;
        padding: 32px 24px;
        border-radius: 16px;
    }

    /* TAGS */
    .editorial-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 24px;
    }

    .editorial-meta span {
        font-size: 0.65rem;
        padding: 6px 10px;
        border: 1px solid #1a3cff;
        border-radius: 999px;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    /* TÍTULO */
    .editorial-title {
        font-size: 1.8rem;
        line-height: 1.25;
        margin-bottom: 20px;
    }

    /* TEXTO */
    .editorial-text {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    /* CREDITS */
    .editorial-credits {
        margin-top: 32px;
    }

    .editorial-credits h3 {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        margin-bottom: 16px;
    }

    .editorial-credits li {
        font-size: 0.7rem;
        line-height: 1.6;
    }

    .editorial-meta {
        gap: 8px;
        margin-bottom: 24px;
    }

    .editorial-meta span {
        font-size: 0.65rem;
        padding: 6px 10px;
    }

    /*nuevo producto*/
    .case-media {
        padding: 64px 16px;
    }

    .case-media-container {
        padding: 0;
    }

    .case-media-main {
        max-width: 420px;
        margin: 0 auto;
        border-radius: 24px;
    }

    .case-media-carousel {
        padding-left: 16px;
    }

    .carousel-item {
        min-width: 240px;
        border-radius: 20px;
    }

    .hero-header h1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero-header .line {
        width: 60px;
    }

    .case-info {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-editorial {
        padding: 2rem 1rem;
    }

    .editorial-text p {
        font-size: 0.9rem;
    }

    .editorial-left,
    .editorial-right {
        grid-template-columns: 1fr;
    }

    .editorial-grid.bottom {
        grid-template-columns: 1fr;
    }

    .editorial-caption {
        font-size: .65rem;
    }

    .side-column {
        grid-template-columns: 1fr;
    }

    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .top-images {
        grid-template-columns: 1fr 1fr;
    }

    .side-images {
        grid-template-columns: 1fr;
    }

    .portfolio-title {
        font-size: .65rem;
    }

    .top-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .footer {
        margin: 0;
    }

    .footer-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.75rem 1.25rem;
        flex-direction: column;
        text-align: center;
    }

    .footer-item {
        width: 100%;
        justify-content: center;
    }

    .footer-email {
        flex-direction: column;
        gap: 8px;
    }

    .correo-footer {
        word-break: break-word;
    }

    .case-cta-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    /* LADO IZQUIERDO ARRIBA */
    .cta-left {
        order: 1;
    }

    .hero-heading {
        font-size: clamp(32px, 8vw, 44px);
        max-width: 100%;
    }

    /* BOTÓN */
    .cta-link {
        margin-top: 16px;
        display: inline-block;
        padding: 14px 28px;
        border: 2px solid white;
        color: white;
        text-decoration: none;
        font-weight: 700;
        letter-spacing: 0.08em;
        font-size: 14px;
        transition: all 0.25s ease;
        border-radius: 20px;
    }

    /* Hover desktop */
    .cta-link:hover {
        background-color: rgb(105, 70, 165);
        color: #fff;
    }

    /* Tap móvil */
    .cta-link:active {
        transform: scale(0.97);
    }

    /* LADO DERECHO ABAJO */
    .cta-right {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .cta-icon {
        width: 80px;
    }

    .cta-title {
        line-height: 1.1;
    }

    .cta-link {
        padding: 16px 32px;
        font-size: 15px;
    }

    .case-cta {
        margin: 1.25rem;
    }

    .editorial-section {
        padding: 0;
    }

    .editorial-wrap {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding: 4.5rem 1.75rem;
    }

    /* Imagen */
    .editorial-image {
        width: 100%;
        aspect-ratio: 3 / 4;
    }



    /* Texto */
    .editorial-text {
        font-size: 2.4rem;
        line-height: 1.05;
        font-weight: 500;
        margin-bottom: 1.8rem;
        text-align: left;
    }

    .editorial-text p {
        font-size: 0.95rem;
        line-height: 1.65;
        max-width: 30ch;
        text-align: left;
    }

    /* ===============================
     MANIFIESTO
  =============================== */
    .manifesto-item {
        font-size: 0.95rem;
        line-height: 1.6;
        list-style: none;
        margin-bottom: 0.45rem;
    }

    /* REVERSE (neutral) */
    .editorial-wrap.reverse {
        flex-direction: column;
    }

    .cv-row {
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
    }

    .cv-date {
        text-align: left;
    }

    .cv-title {
        margin-bottom: 0.5rem;
    }

    .project-title-row {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .project-line {
        flex: 1;
        margin-top: .6em;
    }

    .top-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .credits {
        text-align: right;
        max-width: 220px;
    }

    .top-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .credits {
        text-align: right;
        max-width: 220px;
    }

    .work-showcase {
        flex-direction: row;
        align-items: center;
        gap: 48px;
    }

    .work-image-large,
    .left-carousel {
        flex: 1;
    }

    /*AGM*/

    .case-title {
        font-size: 40px;
        gap: 16px;
    }

    .case-description {
        max-width: 420px;
    }

    /*nuevo producto*/

    .case-media {
        padding: 80px 0;
    }

    .case-media-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }



    .case-media-carousel {
        min-height: 340px;
    }

    .carousel-item {
        height: 320px;
    }

    .hero-case {
        padding: 60px 6vw;
    }

    .case-info {
        padding: 80px 6vw;
    }

    .gallery-side {
        margin-top: 0;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "side"
            "bottom"
            "text";
    }

    .editorial-text p {
        max-width: 100%;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .editorial-left {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-grid.bottom {
        grid-template-columns: 1fr 1fr;
    }

    .top-grid {
        grid-template-columns: 1fr;
    }

    .side-column {
        grid-template-columns: 1fr 1fr;
    }

    .bottom-grid {
        grid-template-columns: 1fr 1fr;
    }

    .top-images {
        grid-template-columns: repeat(3, 1fr);
    }

    .bottom-content {
        grid-template-columns: 1fr;
    }

    .side-images {
        grid-template-columns: 1fr 1fr;
    }

    .project-image {
        max-width: 100%;
    }

    .editorial-image {
        transform: none !important;
    }

    .contact-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .contact-line {
        width: 60px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 6rem 1.5rem;
    }
}

@media (min-width: 1024px) {

    .project-header {
        padding: 120px 80px 60px;
    }

    .case-study {
        padding: 80px 80px 100px;
    }

    .project-title {
        font-size: clamp(120px, 14vw, 180px);
    }

    .description {
        font-size: 14px;
    }

    .case-study {
        padding: 80px 80px 100px;
    }

    .description {
        font-size: 14px;
    }

    .work-showcase {
        padding: 80px 80px 100px;
        gap: 64px;
    }

    .work-image-large img,
    .carousel-track img {
        border-radius: 20px;
    }

    .case-image-full {
        padding: 96px 0 120px;
    }

    .agm-images-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 64px;
    }

    /*AGM*/
    .case-title {
        font-size: 48px;
    }

    .case-title {
        font-size: 72px;
    }

    /*nuevoi producto*/

    .case-media-container {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .carousel-item {
        min-width: 280px;
    }

    .editorial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-text p {
        font-size: 0.95rem;
    }

    .editorial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-left {
        grid-template-columns: 1fr;
    }

    .top-grid {
        grid-template-columns: 1fr 1fr;
    }

    .side-column {
        grid-column: span 2;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }

    .bottom-content {
        grid-template-columns: 1fr 1fr;
    }



    .bottom-content {
        grid-template-columns: 1fr;
    }

    .side-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .editorial-wrap:nth-child(odd) .editorial-image {
        margin-left: 2vw;
    }

    .editorial-wrap:nth-child(even) .editorial-image {
        margin-right: 2vw;
    }

    .editorial-section {
        padding: 0;
    }

    .editorial-wrap {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding: 4.5rem 1.75rem;
        margin-bottom: 6rem;
    }

    .editorial-image {
        aspect-ratio: 3 / 4;
    }

    .editorial-wrap.reverse {
        direction: ltr;
    }
}


@media (min-width: 1200px) {

    .project-header,
    .case-study {
        max-width: 1400px;
        margin: 0 auto;
    }

    .project-subtitle {
        max-width: 480px;
    }

    .editorial-section {
        padding: 10rem 0;
    }

    .editorial-wrap {
        max-width: 1400px;
        margin: 0 auto 14rem;
        padding: 0 8vw;

        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
        gap: 8rem;
    }


    .editorial-wrap.reverse {
        direction: rtl;
    }

    .editorial-wrap.reverse>* {
        direction: ltr;
    }

    /* IMAGEN */
    .editorial-image {
        max-width: none;
        width: 100%;
        aspect-ratio: 4 / 5;
        justify-self: center;
    }



    /* TEXTO */
    .editorial-text h2 {
        font-size: clamp(3.2rem, 4vw, 4.8rem);
        line-height: 1.05;
        font-weight: 500;
        margin-bottom: 2.5rem;
    }

    .editorial-text p {
        font-size: 1rem;
        max-width: 420px;
        line-height: 1.6;
    }

    .editorial-text .year {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
        display: block;
    }

    .case-title {
        font-size: 96px;
        gap: 32px;
    }

    .case-line {
        height: 3px;
    }

    .editorial-meta span {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .case-title {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        font-size: 120px;
        letter-spacing: -2px;
        line-height: 1;
        margin-bottom: 24px;
    }

    .case-title span {
        font-weight: 700;
    }

    .case-line {
        flex: 1;
        height: 4px;
        width: auto;
        margin-top: 22px;
    }

    .case-header {
        max-width: 1200px;
    }

    .case-description {
        font-size: 15px;
        max-width: 520px;
        margin-top: 20px;
    }

    .gallery-side {
        margin-top: 120px;
    }

    .editorial-wrap:nth-child(odd) .editorial-image {
        transform: translateX(2vw);
    }

    .editorial-wrap:nth-child(even) .editorial-image {
        transform: translateX(-2vw);
    }
}


/* ==============================
   FIX REAL IMÁGENES EDITORIAL
================================ */

.editorial-section article {
    max-width: none !important;
}

.editorial-image {
    width: 55vw !important;
    max-width: 720px !important;
}

.editorial-image img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
}

/* ==============================
   FIX POSICIÓN TEXTO EDITORIAL
================================ */

/* Asegura alineación vertical correcta */
.editorial-wrap {
    align-items: center !important;
}

/* Reseteo limpio del texto */
.editorial-text {
    margin: 0 !important;
    padding: 0 !important;

    position: static !important;
    align-self: center !important;
}

/* Evita empujes raros desde títulos o listas */
.editorial-text h2,
.editorial-text p,
.editorial-text li {
    margin-left: 0 !important;
}

/* Manifiesto: orden y altura correctos */
.editorial-text li {
    line-height: 1.6;
}
