/* =========================
   BASE / VARIABLES
========================= */
:root {
    --bg: #ffffff;
    --bgb: #f6f3ef;
	--tit: rgba(52,105,78,1);
    --text: #111111;
    --muted: rgba(17, 17, 17, .70);
    --line: rgba(17, 17, 17, .18);
    --field: rgba(17, 17, 17, .22);

    --max: 1180px;
    --pad: clamp(18px, 3vw, 48px);

    /* <!--Foto principal-->*/
    --hero-image: url("foto01_3d.jpg");
}

/* Reset mínimo */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

/* IMPORTANTE:
   No definimos font-family para heredar las fuentes del tema (Astra).
   Tampoco definimos tamaños globales agresivos para no pelear con el tema.
*/
h2 {
    font-family: 'Antic Didone', serif !important;
}

/* =========================
   SECCIÓN 1: HERO
========================= */
h1 {
    color: #fff !important;
    font-family: 'Antic Didone', serif !important;
}

.project-hero {
    position: relative;
    width: 100%;
    min-height: clamp(520px, 70vh, 760px);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .75) 0%,
            rgba(0, 0, 0, .55) 35%,
            rgba(0, 0, 0, 0) 70%);
}

.project-hero__content {
    position: absolute;
    left: var(--pad);
    bottom: var(--pad);
    max-width: min(680px, calc(100% - (var(--pad) * 2)));
    color: #fff;
}

.project-hero__meta {
    margin: 0 0 10px 0;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .92;
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-hero__sep {
    opacity: .7;
}

/* Fuerza herencia de fuentes del tema para headers */
.project-hero__title {
    margin: 0 0 10px 0;
    font-weight: 300;
    letter-spacing: .02em;
    line-height: 1.05;
    font-size: clamp(34px, 4.8vw, 64px);
    font-family: inherit;
    /* <- usa la del tema */
}

.project-hero__tagline {
    margin: 0;
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.5;
    color: #ffffff;
    /* <- blanco 100% */
    max-width: 58ch;
}

.project-hero__tagline span {
    font-weight: bolder;
}

/* =========================
   SECCIÓN 2: BRIEF
========================= */
.project-brief {
    width: 100%;
    background: var(--bgb);
    padding: clamp(40px, 6vw, 90px) 0;
    margin-bottom: 70px;
}

.project-brief__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);

    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    column-gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.project-brief__divider {
    width: 1px;
    background: var(--line);
    height: clamp(120px, 18vw, 240px);
    justify-self: center;
}

.project-brief__title {
    margin: 0 0 14px 0;
    font-family: inherit, serif !important;
    /* <- usa la del tema */
}

.project-brief__text {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.9;
    max-width: 60ch;
}

/* RESPONSIVE BRIEF */
@media (max-width: 820px) {
    .project-brief__inner {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .project-brief__divider {
        width: 100%;
        height: 1px;
    }
}

/* =========================
   SECCIÓN: GALERÍA + DETALLES + FOTO FINAL + FORM
========================= */

/* Contenedor general */
.project-section {
    width: 100%;
    background: #fff;
}

/* Aire entre Brief y sección siguiente (sustituye al selector que dependía de .fw-media) */
.project-brief+.project-section {
    padding-top: clamp(36px, 5vw, 72px);
}

/* FULL WIDTH MEDIA 4:3 */
.fw-media {
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f3f3;
    /* fallback mientras carga */
}

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

/* Separación entre 2-col y foto final */
.project-two-col+.fw-media--last {
    margin-top: clamp(36px, 5vw, 72px);
}

/* 2 COLUMN LAYOUT: fotos izquierda, texto derecha */
.project-two-col {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);

    display: grid;
    grid-template-columns: 1fr minmax(260px, 420px);
    gap: clamp(28px, 4.5vw, 70px);
    align-items: start;
}

/* Galería (izquierda) */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.2vw, 34px);
    order: 1;
    /* desktop: primero fotos */
}

.project-gallery__item {
    margin: 0;
    background: #f3f3f3;
    overflow: hidden;
}

.project-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Detalles (derecha) sticky */
.project-details {
    order: 2;
    /* desktop: texto a la derecha */
    position: sticky;
    top: clamp(18px, 3vw, 42px);
    align-self: start;
}

.project-details__title {
    margin: 0 0 14px 0;
    font-family: inherit, serif !important;
}

.project-details__body {
    color: var(--muted);
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.9;
    font-family: inherit;
    max-width: 62ch;
}

.project-details__body p {
    margin: 0 0 18px 0;
}

.project-details__body p:last-child {
    margin-bottom: 0;
}


/* =========================
   CONTACT (right aligned)
========================= */
.project-contact {
    padding: clamp(44px, 6.5vw, 110px) 0;
}

.project-contact__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);

    /* alineación a la derecha */
    display: flex;
    justify-content: flex-end;
}

.project-contact__title {
    margin: 0 0 24px 0 !important;
    font-family: inherit, serif !important;
}

/* bloque del form (ancho controlado) */
.contact-form {
    width: min(420px, 100%);
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.contact-form__field {
    display: block;
    margin: 0 0 14px 0;
}

.contact-form__label {
    display: block;
    font-size: 12px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .55);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--field);
    padding: 10px 2px;
    outline: none;
    background: transparent;
    font: inherit;
    /* hereda Astra */
    color: var(--text);
}

.contact-form textarea {
    border: 1px solid var(--field);
    padding: 10px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(17, 17, 17, .45);
}

.contact-form__consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;

    margin: 14px 0 18px 0;
    color: rgba(17, 17, 17, .70);
    font-size: 12px;
    line-height: 1.5;
}

.contact-form__consent input {
    width: 14px;
    height: 14px;
    margin: 2px 0 0 0;
    /* alinea visualmente con el texto */
}



.contact-form__btn {
    text-transform: uppercase;
}
.bcv-response-msg,
.bcv-response-error{
	margin-top:40px;
	background-color: rgba(133,150,125,.5) !important;
	padding: 10px 20px;
} 

h1,
h2 {
    font-family: inherit, serif !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .project-two-col {
        grid-template-columns: 1fr;
    }

    .project-details {
        position: static;
        /* sticky no tiene sentido en móvil */
        order: 1;
        /* texto arriba */
    }

    .project-gallery {
        order: 2;
        /* fotos abajo */
    }

    .project-details__body {
        max-width: 70ch;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        justify-content: start;
    }

    .contact-form {
        max-width: 520px;
    }
}

/* =========================
   PORTFOLIO GRID (Archive)
========================= */
.bcv-portfolio-archive-wrapper {
    max-width: var(--max);
    margin: 40px auto;
    padding: 0 var(--pad);
}

.bcv-portfolio-header {
    margin-bottom: 40px;
}

h1.bcv-portfolio-title {
	text-align: center !important;
	color: var(--tit) !important;
}

.bcv-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.bcv-portfolio-item {
    position: relative;
    overflow: hidden;
    background: #000;
}

.bcv-portfolio-link {
    display: block;
    text-decoration: none;
}

.bcv-portfolio-thumbnail {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.bcv-portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.bcv-portfolio-item:hover .bcv-portfolio-thumbnail img {
    transform: scale(1.05);
    opacity: 0.7;
}

.bcv-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bcv-portfolio-item:hover .bcv-portfolio-overlay {
    opacity: 1;
}

.bcv-portfolio-info {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bcv-portfolio-item:hover .bcv-portfolio-info {
    transform: translateY(0);
}

.bcv-project-title {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #fff !important;
    font-weight: 300;
}

.bcv-project-client {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bcv-no-thumbnail {
    width: 100%;
    height: 100%;
    background: #333;
}

/* Responsive Grid */
@media (max-width: 600px) {
    .bcv-portfolio-grid {
        grid-template-columns: 1fr;
    }
}