/**
 * Editorial UI — hero vídeo, redes, bocadillos, tarjetas animadas
 */

/* ── About hero con vídeo ── */
.about-page .about-hero {
    position: relative;
    width: 100%;
    height: clamp(320px, 72vh, 640px);
    margin-top: var(--header-h, 4.5rem);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-page .about-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-page .about-hero__media iframe,
.about-page .about-hero__media img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.about-page .about-hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.72) 100%),
        radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.about-page .about-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem clamp(1.25rem, 5vw, 3rem);
    max-width: 42rem;
    color: #fff;
}

.about-page .about-hero__logo {
    display: block;
    height: clamp(4rem, 14vw, 6.5rem);
    width: auto;
    max-width: min(420px, 85vw);
    margin: 0 auto 1.5rem;
    filter: invert(1);
    opacity: 0.97;
}

.about-page .about-hero__name {
    font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 400;
    letter-spacing: 0.14em;
    margin: 0 0 0.85rem;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.about-page .about-hero__tagline {
    font-size: clamp(0.82rem, 2.2vw, 1rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.65;
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.88);
}

.about-page .about-hero__handle {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.about-page .about-hero__handle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

/* ── About me: foto + texto ── */
.about-page .about-split {
    display: grid;
    grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
    margin-bottom: clamp(3rem, 7vw, 4.5rem);
    padding-left: clamp(1rem, 4vw, 6rem);
    padding-right: clamp(1rem, 4vw, 6rem);
}

@media (min-width: 1200px) {
    .about-page .about-split {
        padding-left: 15rem;
        padding-right: 15rem;
    }
}

.about-page .about-split__photo {
    position: relative;
}

.about-page .about-split__photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    box-shadow:
        0 4px 24px color-mix(in srgb, var(--text) 12%, transparent),
        0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent);
}

.about-page .about-split__photo::after {
    content: "";
    position: absolute;
    inset: 8px -8px -8px 8px;
    border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
    border-radius: 2px;
    z-index: -1;
    pointer-events: none;
}

.about-page .about-split__body .about-section__title {
    text-align: left;
    margin-bottom: 1.25rem;
}

.about-page .about-intro--split {
    gap: 1.15rem;
}

/* ── Social strip ── */
.social-strip {
    margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

.social-strip__grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 520px;
    margin: 0 auto;
}

.social-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--text) 3%, transparent);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.35s ease;
}

.social-pill__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.social-pill--instagram .social-pill__glow {
    background: radial-gradient(circle at 20% 50%, rgba(225, 48, 108, 0.18), transparent 55%);
}

.social-pill--youtube .social-pill__glow {
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.15), transparent 55%);
}

.social-pill--tiktok .social-pill__glow {
    background: radial-gradient(circle at 20% 50%, rgba(0, 242, 234, 0.12), transparent 55%);
}

.social-pill:hover {
    transform: translateX(6px) scale(1.01);
    border-color: color-mix(in srgb, var(--text) 22%, transparent);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--text) 8%, transparent);
}

.social-pill:hover .social-pill__glow {
    opacity: 1;
}

.social-pill__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 6%, transparent);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-pill:hover .social-pill__icon {
    transform: scale(1.08) rotate(-4deg);
}

.social-pill__icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

[data-theme="dark"] .social-pill__icon img {
    filter: brightness(1.1);
}

.social-pill__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.social-pill__label {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.55;
}

.social-pill__row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-pill__count {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.social-pill__meta {
    font-size: 0.78rem;
    opacity: 0.65;
    letter-spacing: 0.03em;
}

.social-pill__chevron {
    flex: 0 0 auto;
    font-size: 1.1rem;
    opacity: 0.35;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-pill:hover .social-pill__chevron {
    transform: translate(3px, -3px);
    opacity: 0.85;
}

/* ── Speech bubbles (testimonios) ── */
.speech-section {
    margin: clamp(3rem, 7vw, 4.5rem) 0;
}

.speech-section__title {
    font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-align: center;
    margin: 0 0 2rem;
    color: var(--text, #141414);
}

.speech-bubbles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 901px) {
    .speech-bubbles--cols-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        max-width: 960px;
    }

    .speech-bubbles--cols-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
        max-width: 1100px;
    }

    .speech-bubbles--cols-2 .speech-bubble,
    .speech-bubbles--cols-3 .speech-bubble {
        max-width: none;
        align-self: stretch;
    }

    .speech-bubbles--cols-2 .speech-bubble__inner,
    .speech-bubbles--cols-3 .speech-bubble__inner {
        height: 100%;
    }

    .speech-bubbles--cols-2 .speech-bubble__tail,
    .speech-bubbles--cols-3 .speech-bubble__tail {
        display: none;
    }
}

.speech-bubble {
    position: relative;
    margin: 0;
    max-width: 88%;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.speech-bubble--left {
    align-self: flex-start;
}

.speech-bubble--right {
    align-self: flex-end;
}

.speech-bubble:hover {
    transform: translateY(-4px);
}

.speech-bubble__inner {
    position: relative;
    padding: 1.35rem 1.5rem;
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--text) 5%, var(--background, #f8f7f4));
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-shadow:
        0 4px 20px color-mix(in srgb, var(--text) 6%, transparent),
        inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent);
}

.speech-bubble__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 36px;
}

.speech-bubble__logo {
    max-height: 34px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

.brand-logo {
    mix-blend-mode: multiply;
}

[data-theme="dark"] .brand-logo {
    mix-blend-mode: normal;
    filter: invert(1);
}

.speech-bubble__stars {
    display: flex;
    gap: 0.15rem;
    margin-left: auto;
}

.speech-bubble__star {
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--text) 18%, transparent);
    line-height: 1;
}

.speech-bubble__star.is-filled {
    color: #e6b422;
    text-shadow: 0 0 8px rgba(230, 180, 34, 0.35);
}

[data-theme="dark"] .speech-bubble__inner {
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.speech-bubble--right .speech-bubble__inner {
    background: color-mix(in srgb, var(--text) 8%, var(--background, #f8f7f4));
}

.speech-bubble__quote {
    margin: 0 0 0.85rem;
    font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
    font-size: clamp(1.05rem, 2.8vw, 1.3rem);
    line-height: 1.55;
    font-style: italic;
    color: var(--text);
}

.speech-bubble__author {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.6;
    color: var(--text);
}

.speech-bubble__tail {
    position: absolute;
    bottom: -1px;
    width: 18px;
    height: 18px;
    background: color-mix(in srgb, var(--text) 5%, var(--background, #f8f7f4));
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

.speech-bubble--left .speech-bubble__tail {
    left: 1.75rem;
}

.speech-bubble--right .speech-bubble__tail {
    right: 1.75rem;
    background: color-mix(in srgb, var(--text) 8%, var(--background, #f8f7f4));
}

/* ── Services: tarjetas editoriales ── */
body.services-page .service-card,
body.services-page .package-card {
    position: relative;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--text) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    box-shadow: 0 4px 18px color-mix(in srgb, var(--text) 5%, transparent);
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

body.services-page .service-card:hover,
body.services-page .package-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--text) 18%, transparent);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 10%, transparent);
}

body.services-page .service-card.reveal,
body.services-page .package-card.reveal,
body.services-page .process-step.reveal {
    transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

body.services-page .process-step {
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
    background: color-mix(in srgb, var(--text) 2%, transparent);
    transition: transform 0.35s ease, border-color 0.3s ease;
}

body.services-page .process-step:hover {
    transform: translateX(6px);
    border-color: color-mix(in srgb, var(--text) 16%, transparent);
}

body.services-page .page-hero.reveal {
    transition-delay: 0ms;
}

@media (max-width: 720px) {
    .about-page .about-split {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-left: 0;
        padding-right: 0;
    }

    .about-page .about-split__photo {
        max-width: min(360px, 88vw);
        margin: 0 auto;
    }

    .about-page .about-split__body .about-section__title {
        text-align: center;
    }

    .speech-bubble {
        max-width: 100%;
    }

    .speech-bubble--right,
    .speech-bubble--left {
        align-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-pill:hover,
    .speech-bubble:hover,
    body.services-page .service-card:hover,
    body.services-page .package-card:hover,
    body.services-page .process-step:hover {
        transform: none;
    }
}
