/* ============================================================
   PRENSA SALA DE PRENSA — Styles
   Uses existing CSS variables from site.css
   ============================================================ */

/* --------------------------------
   1) HERO
   -------------------------------- */
.prensa-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prensa-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    filter: blur(2px);
    transition: transform 0.6s ease;
}

.prensa-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 16, 59, 0.82) 0%,
        rgba(28, 92, 255, 0.55) 50%,
        rgba(159, 87, 167, 0.65) 100%
    );
}

.prensa-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    max-width: 56rem;
    margin: 0 auto;
}

.prensa-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.prensa-hero__title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.prensa-hero__subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    max-width: 38rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* --------------------------------
   2) BIOGRAFÍA SINTETIZADA
   -------------------------------- */
.prensa-bio {
    padding: 6rem 0;
    background: #fff;
}

.prensa-bio__container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prensa-bio__header {
    text-align: center;
    margin-bottom: 3rem;
}

.prensa-bio__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #11103B;
    margin-bottom: 0.75rem;
}

.prensa-bio__lead {
    font-size: 1.125rem;
    color: #4E4E54;
}

.prensa-bio__card {
    position: relative;
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(17, 16, 59, 0.08);
    border: 1px solid rgba(236, 236, 243, 0.6);
}

@media (min-width: 768px) {
    .prensa-bio__card {
        padding: 3.5rem;
    }
}

.prensa-bio__accent {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(to bottom, #1C5CFF, #9F57A7);
    border-radius: 0 4px 4px 0;
}

.prensa-bio__text {
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    .prensa-bio__text {
        padding-left: 2.5rem;
    }
}

.prensa-bio__text p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #4E4E54;
    margin-bottom: 1.5rem;
}

.prensa-bio__text p:last-child {
    margin-bottom: 0;
}

.prensa-bio__text strong {
    color: #11103B;
    font-weight: 600;
}

.prensa-bio__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(236, 236, 243, 0.6);
}

.prensa-bio__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.prensa-bio__btn--primary {
    background: #11103B;
    color: #fff;
}

.prensa-bio__btn--primary:hover {
    background: #1C5CFF;
    box-shadow: 0 12px 30px -5px rgba(28, 92, 255, 0.25);
}

.prensa-bio__btn--secondary {
    background: #fff;
    color: #11103B;
    border: 1px solid #ECECF3;
}

.prensa-bio__btn--secondary:hover {
    color: #1C5CFF;
    border-color: #1C5CFF;
}

/* --------------------------------
   3) GALERÍA DE IMÁGENES
   -------------------------------- */
.prensa-galeria {
    padding: 6rem 0;
    background: #F7F7FD;
    border-top: 1px solid rgba(236, 236, 243, 0.6);
}

.prensa-galeria__container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prensa-galeria__header {
    text-align: center;
    margin-bottom: 3rem;
}

.prensa-galeria__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #11103B;
    margin-bottom: 0.75rem;
}

.prensa-galeria__lead {
    font-size: 1.125rem;
    color: #4E4E54;
}

.prensa-galeria__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .prensa-galeria__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .prensa-galeria__grid {
        gap: 2.5rem;
    }
}

/* Gallery Item */
.gallery-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #ECECF3;
    box-shadow: 0 4px 20px -2px rgba(17, 16, 59, 0.04);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 16px 40px -8px rgba(28, 92, 255, 0.14);
}

.gallery-item__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #F7F7FD;
    cursor: pointer;
}

.gallery-item__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-item__img-wrap img {
    transform: scale(1.05);
    filter: grayscale(100%) contrast(115%);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 16, 59, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: #11103B;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-item__view-btn {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item__actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
}

.gallery-item__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.gallery-item__btn--view {
    background: #F7F7FD;
    color: #11103B;
}

.gallery-item__btn--view:hover {
    background: #ECECF3;
}

.gallery-item__btn--download {
    background: #11103B;
    color: #fff;
    box-shadow: 0 2px 8px rgba(17, 16, 59, 0.15);
}

.gallery-item__btn--download:hover {
    background: #1C5CFF;
}

/* --------------------------------
   4) IDENTIDAD VISUAL
   -------------------------------- */
.prensa-identidad {
    padding: 6rem 0;
    background: #fff;
    border-top: 1px solid rgba(236, 236, 243, 0.6);
}

.prensa-identidad__container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.prensa-identidad__header {
    text-align: center;
    margin-bottom: 3rem;
}

.prensa-identidad__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #11103B;
    margin-bottom: 0.75rem;
}

.prensa-identidad__lead {
    font-size: 1.125rem;
    color: #4E4E54;
}

.prensa-identidad__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .prensa-identidad__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .prensa-identidad__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .prensa-identidad__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.logo-card {
    background: #fff;
    border: 1px solid #ECECF3;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.logo-card:hover {
    box-shadow: 0 12px 30px -5px rgba(28, 92, 255, 0.12);
}

.logo-card--special {
    background: #F7F7FD;
    border-color: rgba(28, 92, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.logo-card--special::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 5rem;
    background: rgba(28, 92, 255, 0.08);
    border-radius: 50%;
    filter: blur(20px);
}

.logo-card__preview {
    height: 8rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.logo-card__preview--light {
    background: #fff;
    border: 1px solid rgba(236, 236, 243, 0.6);
}

.logo-card__preview--dark {
    background: #0A0927;
}

.logo-card__preview--mono-light {
    background: rgba(236, 236, 243, 0.3);
}

.logo-card__preview--mono-dark {
    background: #000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-card__preview--special {
    background: #11103B;
    border: 1px solid #11103B;
    position: relative;
    z-index: 1;
}

.logo-card__special-img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
}

.logo-card__wordmark {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-card__subtitle {
    font-size: 0.5625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4E4E54;
    margin-top: 0.5rem;
    font-weight: 500;
}

.logo-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #11103B;
    text-align: center;
    margin-bottom: 1.25rem;
}

.logo-card__note {
    font-size: 0.6875rem;
    color: #4E4E54;
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.logo-card__downloads {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.logo-card__dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F7F7FD;
    color: #11103B;
    border: 1px solid rgba(236, 236, 243, 0.6);
}

.logo-card__dl-btn:hover {
    background: #1C5CFF;
    color: #fff;
    border-color: #1C5CFF;
}

.logo-card__dl-btn--primary {
    background: #1C5CFF;
    color: #fff;
    border-color: #1C5CFF;
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.logo-card__dl-btn--primary:hover {
    background: #11103B;
    border-color: #11103B;
}

/* Grid de 4 columnas para versiones de marca (sin recurso especial) */
.prensa-identidad__grid--quad {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .prensa-identidad__grid--quad {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .prensa-identidad__grid--quad {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Subtítulos de sección dentro de Identidad Visual */
.prensa-identidad__subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: #11103B;
    margin-bottom: 1.5rem;
    text-align: center;
}

.prensa-identidad__subtitle--spaced {
    margin-top: 3.5rem;
}

/* Grid de 2 columnas para logos institucionales */
.prensa-identidad__grid--duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 40rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .prensa-identidad__grid--duo {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Imagen real dentro de preview de logo */
.logo-card__real-img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
}

/* --------------------------------
   5) BLOQUE FINAL DE CONTACTO
   -------------------------------- */
.prensa-cta {
    padding: 7rem 0;
    background: #F7F7FD;
    border-top: 1px solid rgba(236, 236, 243, 0.6);
    position: relative;
    overflow: hidden;
}

.prensa-cta__container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.prensa-cta__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #11103B;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.prensa-cta__text {
    font-size: 1.125rem;
    color: #4E4E54;
    margin-bottom: 3rem;
}

.prensa-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .prensa-cta__actions {
        flex-direction: row;
        justify-content: center;
    }
}

.prensa-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

@media (min-width: 640px) {
    .prensa-cta__btn {
        width: auto;
    }
}

.prensa-cta__btn--whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.prensa-cta__btn--whatsapp:hover {
    background: #128C7E;
    box-shadow: 0 12px 30px rgba(18, 140, 126, 0.3);
}

/* Contact chip: email visible como dato elegante */
.prensa-cta__contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(236, 236, 243, 0.8);
    border-radius: 9999px;
    color: #4E4E54;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.prensa-cta__contact-chip svg {
    color: #9F57A7;
    flex-shrink: 0;
}

.prensa-cta__contact-chip:hover {
    background: #fff;
    color: #11103B;
    border-color: #9F57A7;
    box-shadow: 0 4px 16px rgba(159, 87, 167, 0.1);
}

.prensa-cta__contact-chip:hover svg {
    color: #1C5CFF;
}

/* --------------------------------
   LIGHTBOX
   -------------------------------- */
.prensa-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(17, 16, 59, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prensa-lightbox.is-active {
    display: flex;
    opacity: 1;
}

.prensa-lightbox__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.prensa-lightbox__counter {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.prensa-lightbox__close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.prensa-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #9F57A7;
}

.prensa-lightbox__body {
    position: relative;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .prensa-lightbox__body {
        padding: 0 3rem;
    }
}

.prensa-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, opacity 0.15s ease;
}

.prensa-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.prensa-lightbox__nav:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.prensa-lightbox__nav--prev {
    left: 1rem;
}

.prensa-lightbox__nav--next {
    right: 1rem;
}

@media (min-width: 640px) {
    .prensa-lightbox__nav--prev { left: 0; }
    .prensa-lightbox__nav--next { right: 0; }
}

.prensa-lightbox__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

@media (min-width: 640px) {
    .prensa-lightbox__footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

.prensa-lightbox__info {
    text-align: center;
}

@media (min-width: 640px) {
    .prensa-lightbox__info {
        text-align: left;
    }
}

.prensa-lightbox__title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.prensa-lightbox__filename {
    color: rgba(236, 236, 243, 0.7);
    font-size: 0.8125rem;
    font-family: monospace;
}

.prensa-lightbox__download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #11103B;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.prensa-lightbox__download:hover {
    background: #1C5CFF;
    color: #fff;
}

/* --------------------------------
   TOAST
   -------------------------------- */
.prensa-toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background: #11103B;
    color: #fff;
    text-align: center;
    border-radius: 0.5rem;
    padding: 0.75rem;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: visibility 0.4s, opacity 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.prensa-toast.show {
    visibility: visible;
    opacity: 1;
}
