/* HIM Tickets Styles */

:root {
    --him-purple: #8068ee;
    --him-purple-dark: #6650d0;
    --him-purple-light: #a594f9;
    --him-green: #00dea6;
    --him-green-dark: #00c28e;
    --him-dark: #1a1132;
    --him-dark-2: #241844;
    --him-light: #fafafa;
    --him-white: #ffffff;
    --him-text: #1d1d1f;
    --him-text-light: #f5f5f7;
    --him-text-muted: #6e6e73;
    --him-border: #e5e5ea;
    --him-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --him-radius: 12px;
    --him-radius-sm: 8px;
    --him-shadow: 0 4px 24px rgba(0,0,0,0.08);
    --him-shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --him-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.him-page {
    font-family: var(--him-font);
    color: var(--him-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.him-page *,
.him-page *::before,
.him-page *::after {
    box-sizing: border-box;
}

.him-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.him-hero,
.him-section--dark {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.him-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.him-section {
    padding: 80px 0;
}

.him-section--dark {
    background: var(--him-dark);
    color: var(--him-text-light);
}

.him-section__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--him-purple);
    margin-bottom: 12px;
}

.him-section__label--light {
    color: var(--him-green);
}

.him-section__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 24px;
    color: var(--him-text);
}

.him-section__title--light {
    color: var(--him-text-light);
}

.him-section__text {
    font-size: 17px;
    color: var(--him-text-muted);
    max-width: 680px;
    line-height: 1.7;
}

.him-hero {
    position: relative;
    min-height: 480px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.him-hero--evento {
    background: var(--him-dark) url('') right center/cover no-repeat;
}

.him-hero--livro {
    background: linear-gradient(135deg, var(--him-dark) 0%, var(--him-dark-2) 100%);
    min-height: 70vh;
    max-height: none;
}

.him-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,17,50,0.85) 0%, rgba(26,17,50,0.5) 50%, rgba(26,17,50,0.15) 100%);
    z-index: 1;
}

.him-hero--livro .him-hero__overlay {
    background: linear-gradient(135deg, rgba(26,17,50,0.8) 0%, rgba(36,24,68,0.7) 100%);
}

.him-hero__content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    max-width: 800px;
}

.him-hero__logo {
    width: 120px;
    margin: 0 auto 32px;
}

.him-hero__title {
    font-size: 56px;
    font-weight: 800;
    color: var(--him-white);
    margin: 0 0 12px;
    line-height: 1.1;
}

.him-hero__subtitle {
    font-size: 20px;
    color: var(--him-text-light);
    opacity: 0.85;
    margin: 0 0 24px;
    font-weight: 400;
}

.him-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    color: var(--him-text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.him-hero__sep {
    opacity: 0.4;
}

.him-hero__venue {
    font-size: 15px;
    color: var(--him-text-light);
    opacity: 0.7;
    margin: 0 0 32px;
}

.him-hero__author {
    font-size: 18px;
    color: var(--him-green);
    font-weight: 600;
    margin: 0 0 32px;
}

.him-hero__content--livro {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
    max-width: 1000px;
}

.him-hero-livro__cover {
    flex: 0 0 280px;
}

.him-hero-livro__cover img {
    border-radius: var(--him-radius);
    box-shadow: var(--him-shadow-lg);
    transition: transform var(--him-transition);
}

.him-hero-livro__cover img:hover {
    transform: translateY(-8px);
}

.him-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--him-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--him-transition);
}

.him-btn--accent {
    background: var(--him-green);
    color: var(--him-dark);
}

.him-btn--accent:hover {
    background: var(--him-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,222,166,0.3);
}

.him-btn--full {
    width: 100%;
    text-align: center;
}

.him-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.him-speakers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.him-speaker-card {
    background: var(--him-dark-2);
    border-radius: var(--him-radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all var(--him-transition);
}

.him-speaker-card:hover {
    transform: translateY(-4px);
    border-color: var(--him-purple);
    box-shadow: 0 12px 32px rgba(128,104,238,0.15);
}

.him-speaker-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--him-purple);
}

.him-speaker-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.him-speaker-card__name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--him-white);
}

.him-speaker-card__role {
    font-size: 13px;
    color: var(--him-green);
    margin: 0 0 12px;
    font-weight: 600;
}

.him-speaker-card__talk {
    font-size: 14px;
    color: var(--him-text-light);
    opacity: 0.7;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

.him-moderator {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
    color: var(--him-text-light);
    opacity: 0.8;
}

.him-timeline {
    position: relative;
    padding: 32px 0;
    margin-top: 40px;
}

.him-timeline::before {
    content: '';
    position: absolute;
    left: 110px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--him-purple) 0%, var(--him-green) 100%);
}

.him-timeline__item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 16px 0;
    position: relative;
}

.him-timeline__item::after {
    content: '';
    position: absolute;
    left: 104px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--him-white);
    border: 3px solid var(--him-purple);
}

.him-timeline__item--talk::after {
    background: var(--him-purple);
    border-color: var(--him-purple);
}

.him-timeline__item--break::after {
    background: var(--him-green);
    border-color: var(--him-green);
}

.him-timeline__time {
    flex: 0 0 90px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: var(--him-purple);
    padding-top: 2px;
}

.him-timeline__content {
    flex: 1;
    padding-left: 24px;
}

.him-timeline__content h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--him-text);
}

.him-timeline__content p {
    margin: 0;
    font-size: 14px;
    color: var(--him-text-muted);
}

.him-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.him-tier-card {
    cursor: pointer;
    display: block;
}

.him-tier-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.him-tier-card__inner {
    background: var(--him-dark-2);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: var(--him-radius);
    padding: 28px 24px;
    transition: all var(--him-transition);
    text-align: center;
}

.him-tier-card--selected .him-tier-card__inner {
    border-color: var(--him-green);
    background: rgba(0,222,166,0.08);
    box-shadow: 0 0 0 1px var(--him-green), 0 8px 32px rgba(0,222,166,0.12);
}

.him-tier-card:hover .him-tier-card__inner {
    border-color: var(--him-purple-light);
}

.him-tier-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--him-white);
    margin: 0 0 8px;
}

.him-tier-card__desc {
    font-size: 13px;
    color: var(--him-text-light);
    opacity: 0.7;
    margin: 0 0 16px;
}

.him-tier-card__price {
    margin: 0;
}

.him-price-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--him-green);
}

.him-price-currency {
    font-size: 14px;
    color: var(--him-text-light);
    opacity: 0.5;
    font-weight: 600;
}

.him-checkout-form {
    max-width: 600px;
    margin: 0 auto;
}

.him-tickets-section .him-checkout-form,
.him-purchase-section .him-checkout-form {
    max-width: 100%;
}

.him-form-row {
    margin-bottom: 20px;
}

.him-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--him-text-light);
    letter-spacing: 0.5px;
}

.him-purchase-section .him-label {
    color: var(--him-text);
}

.him-input,
.him-select,
.him-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--him-font);
    font-size: 15px;
    border: 2px solid var(--him-border);
    border-radius: var(--him-radius-sm);
    background: var(--him-white);
    color: var(--him-text);
    transition: border-color var(--him-transition);
    outline: none;
}

.him-section--dark .him-input,
.him-section--dark .him-select {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: var(--him-white);
}

.him-input:focus,
.him-select:focus,
.him-textarea:focus {
    border-color: var(--him-purple);
}

.him-section--dark .him-input:focus,
.him-section--dark .him-select:focus {
    border-color: var(--him-green);
}

.him-input.him-input--error {
    border-color: #e74c3c;
}

.him-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236e6e73'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.him-addon-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 16px 20px;
    background: var(--him-dark-2);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: var(--him-radius-sm);
    transition: all var(--him-transition);
}

.him-addon-checkbox:hover {
    border-color: var(--him-purple-light);
}

.him-addon-checkbox input {
    position: absolute;
    opacity: 0;
}

.him-addon-checkbox__box {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--him-transition);
}

.him-addon-checkbox input:checked ~ .him-addon-checkbox__box {
    background: var(--him-green);
    border-color: var(--him-green);
}

.him-addon-checkbox input:checked ~ .him-addon-checkbox__box::after {
    content: '\2713';
    color: var(--him-dark);
    font-weight: 700;
    font-size: 14px;
}

.him-addon-checkbox__text {
    font-size: 14px;
    color: var(--him-text-light);
}

.him-newsletter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.him-newsletter-checkbox input {
    accent-color: var(--him-green);
}

.him-section--dark .him-newsletter-checkbox span {
    color: var(--him-text-light);
    opacity: 0.8;
}

.him-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 18px;
    color: var(--him-text-light);
}

.him-total strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--him-green);
}

.him-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 0 0 24px;
}

.him-form-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: var(--him-radius-sm);
    color: #e74c3c;
    font-size: 14px;
}

.him-form-loading {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--him-text-light);
    opacity: 0.7;
}

.him-form-row--submit {
    margin-top: 8px;
}

.him-message {
    text-align: center;
    padding: 48px 32px;
    border-radius: var(--him-radius);
    max-width: 560px;
    margin: 0 auto;
}

.him-message--success {
    background: rgba(0,222,166,0.08);
    border: 1px solid rgba(0,222,166,0.2);
}

.him-message--success .him-message__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--him-green);
    color: var(--him-dark);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
}

.him-message--success h3 {
    color: var(--him-white);
    font-size: 22px;
    margin: 0 0 8px;
}

.him-message--success p {
    color: var(--him-text-light);
    opacity: 0.8;
    margin: 0;
}

.him-message--cancelled {
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.2);
}

.him-message--cancelled p {
    color: #e74c3c;
    margin: 0;
}

.him-venue__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.him-venue__image img {
    border-radius: var(--him-radius);
    box-shadow: var(--him-shadow);
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--him-border);
}

.him-venue__date {
    margin-top: 16px;
    font-size: 15px;
}

.him-about-book__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.him-about-book__text p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--him-text-muted);
    margin: 0 0 16px;
}

.him-about-book__themes h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--him-purple);
    margin: 0 0 12px;
}

.him-about-book__themes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.him-about-book__themes li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 14px;
    color: var(--him-text);
    border-bottom: 1px solid var(--him-border);
}

.him-about-book__themes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--him-green);
}

.him-author__grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}

.him-author__photo img {
    border-radius: var(--him-radius);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--him-dark-2);
}

.him-author__bio p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--him-text-light);
    opacity: 0.85;
    margin: 0 0 16px;
}

.him-purchase-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}

.him-purchase-card {
    background: var(--him-white);
    border: 1px solid var(--him-border);
    border-radius: var(--him-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--him-shadow);
    position: sticky;
    top: 120px;
}

.him-purchase-card__img {
    width: 100%;
    border-radius: var(--him-radius-sm);
    margin-bottom: 16px;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--him-border);
}

.him-purchase-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.him-purchase-card p {
    font-size: 14px;
    color: var(--him-text-muted);
    margin: 0 0 12px;
}

.him-purchase-card__price {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--him-purple) !important;
    margin: 12px 0 4px !important;
}

.him-purchase-card__price span {
    font-size: 14px;
    font-weight: 600;
    color: var(--him-text-muted);
}

.him-purchase-card__shipping {
    font-size: 12px !important;
    color: var(--him-green) !important;
    font-weight: 600 !important;
}

.him-attendee-names .him-form-row {
    animation: himSlideDown 0.3s ease-out;
}

.him-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.him-animate.him-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes himSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .him-speakers__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .him-tiers { grid-template-columns: 1fr; }
    .him-venue__grid { grid-template-columns: 1fr; gap: 24px; }
    .him-about-book__grid { grid-template-columns: 1fr; gap: 32px; }
    .him-author__grid { grid-template-columns: 1fr; gap: 24px; }
    .him-author__photo { max-width: 200px; }
    .him-purchase-layout { grid-template-columns: 1fr; gap: 32px; }
    .him-purchase-card { position: static; max-width: 300px; margin: 0 auto; }
    .him-hero__content--livro { flex-direction: column; text-align: center; gap: 32px; }
    .him-hero-livro__cover { flex: none; width: 200px; margin: 0 auto; }
    .him-hero-livro__text { text-align: center; }
}

@media (max-width: 600px) {
    .him-hero__title { font-size: 32px; }
    .him-hero__subtitle { font-size: 15px; margin-bottom: 16px; }
    .him-hero__venue { margin-bottom: 20px; }
    .him-section__title { font-size: 26px; }
    .him-section { padding: 56px 0; }
    .him-timeline::before { left: 0; }
    .him-timeline__item::after { left: -6px; }
    .him-timeline__time { flex: 0 0 auto; text-align: left; font-size: 12px; }
    .him-timeline__item { flex-direction: column; gap: 4px; padding-left: 20px; }
    .him-timeline__content { padding-left: 0; }
    .him-total strong { font-size: 22px; }
    .him-price-val { font-size: 24px; }
}

/* ── New Layout Updates ──────────────────────────────────── */

/* Event Hero */
.him-hero__content--left {
    text-align: left;
    margin: 0;
    max-width: 600px;
    margin-right: auto;
    padding-left: 5%;
}

.him-hero--evento {
    background-position: right bottom;
    background-size: contain;
}

.him-hero--evento .him-hero__overlay {
    background: linear-gradient(90deg, rgba(26,17,50,0.88) 0%, rgba(26,17,50,0.45) 45%, rgba(26,17,50,0.05) 100%);
}

.him-hero__content--left .him-hero__meta {
    justify-content: flex-start;
}

/* About Section Two-Column */
.him-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.him-about__image img {
    border-radius: var(--him-radius);
    box-shadow: var(--him-shadow);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Speakers 4-Column */
.him-speakers__grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.him-speaker-card__bio {
    font-size: 13px;
    color: var(--him-text-light);
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

/* Quote Block */
.him-quote-block {
    margin: 40px 0;
    padding: 32px 40px;
    background: var(--him-dark-2);
    border-radius: var(--him-radius);
    text-align: center;
    color: var(--him-white);
    position: relative;
    border-left: 4px solid var(--him-green);
}

.him-quote-block p {
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 16px;
    opacity: 0.9;
}

.him-quote-block cite {
    font-size: 14px;
    color: var(--him-green);
    font-weight: 600;
    font-style: normal;
}

/* Address Fields */
.him-form-row-group {
    background: rgba(0,0,0,0.02);
    padding: 20px;
    border-radius: var(--him-radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--him-border);
}

.him-form-row-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

/* Fix UI disabled look on inputs */
.him-input, .him-select, .him-textarea {
    background: var(--him-white);
    color: var(--him-text);
    opacity: 1;
}

.him-section--dark .him-input, .him-section--dark .him-select {
    background: rgba(255,255,255,0.06);
    color: var(--him-white);
}

/* Fix double dots in Temas Principais */
.him-about-book__themes ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.him-about-book__themes li {
    list-style-type: none !important;
}

/* Venue Facts */
.him-venue__facts {
    background: var(--him-dark-2);
    color: var(--him-white);
    padding: 40px;
    border-radius: var(--him-radius);
}

.him-venue__facts .him-section__label {
    color: var(--him-green);
}

.him-venue__facts .him-section__title {
    color: var(--him-white);
}

.him-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--him-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--him-transition);
}

.him-link:hover {
    color: var(--him-purple-dark);
}

.him-refund-policy {
    font-size: 13px;
    color: var(--him-text-muted);
    text-align: center;
    margin: 16px 0;
}

.him-section--dark .him-refund-policy {
    color: rgba(255,255,255,0.5);
}

.him-hero__author_large {
    font-size: 28px;
    color: var(--him-green);
    font-weight: 600;
    margin: 0 0 24px;
}

.him-hero__subtitle--book {
    font-size: 36px;
    font-weight: 700;
    opacity: 1;
    margin: 0 0 12px;
    color: var(--him-white);
}

@media (max-width: 900px) {
    .him-about__grid {
        grid-template-columns: 1fr;
    }
    .him-speakers__grid--4 {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
    .him-hero__content--left {
        padding-left: 0;
        text-align: center;
    }
    .him-hero__content--left .him-hero__meta {
        justify-content: center;
    }
    .him-hero--evento .him-hero__overlay {
        background: linear-gradient(180deg, rgba(26,17,50,0.5) 0%, rgba(26,17,50,0.75) 100%);
    }
    .him-hero--evento {
        max-height: none;
        min-height: auto;
        background-size: cover;
        background-position: right bottom;
    }
    .him-hero--evento .him-hero__content {
        padding: 40px 24px 32px;
    }
}

@media (max-width: 600px) {
    .him-speakers__grid--4 {
        grid-template-columns: 1fr;
    }
    .him-form-row-split {
        grid-template-columns: 1fr;
    }
}

.him-about-book__inline-img {
    margin-top: 32px;
    border-radius: var(--him-radius);
    box-shadow: var(--him-shadow);
    width: 100%;
    height: auto;
}

/* ── Carousel ────────────────────────────────────────────── */
.him-about__carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--him-radius);
    min-height: 380px;
    box-shadow: var(--him-shadow);
}

.him-carousel__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
    border-radius: var(--him-radius);
}

.him-carousel__img--active {
    opacity: 1;
    z-index: 1;
}

/* ── Speaker Lightbox ────────────────────────────────────── */
.him-speaker-card__more {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    font-family: var(--him-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--him-green);
    background: rgba(0,222,166,0.1);
    border: 1px solid rgba(0,222,166,0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--him-transition);
    letter-spacing: 0.3px;
}

.him-speaker-card__more:hover {
    background: var(--him-green);
    color: var(--him-dark);
    border-color: var(--him-green);
}

.him-speaker-lightbox {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.him-speaker-lightbox--active {
    display: flex !important;
}

.him-speaker-lightbox__close {
    z-index: 10;
}

.him-speaker-lightbox__inner {
    background: var(--him-white);
    border-radius: var(--him-radius);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: var(--him-text);
}

.him-speaker-lightbox__inner img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.him-speaker-lightbox__inner h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}

.him-speaker-lightbox__role {
    color: var(--him-purple);
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 16px !important;
}

.him-speaker-lightbox__inner p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 12px;
    color: var(--him-text-muted);
}

.him-speaker-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--him-light);
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--him-text);
    transition: background var(--him-transition);
}

.him-speaker-lightbox__close:hover {
    background: var(--him-border);
}

/* ── Book Banner (ticket section) ────────────────────────── */
.him-book-banner {
    margin: 24px 0;
}

.him-book-banner__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,222,166,0.08);
    border: 1px solid rgba(0,222,166,0.25);
    border-radius: var(--him-radius);
    padding: 20px 24px;
}

.him-book-banner__cover {
    width: 64px;
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.him-book-banner__tag {
    display: inline-block;
    background: var(--him-green);
    color: var(--him-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.him-book-banner__text h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--him-white);
}

.him-book-banner__text p {
    margin: 0;
    font-size: 13px;
    color: var(--him-text-light);
    opacity: 0.7;
}

/* ── Tier Badge ──────────────────────────────────────────── */

/* ── Compact Tiers ───────────────────────────────────────── */
.him-tiers--compact .him-tier-card__inner {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.him-tiers--compact .him-tier-card__name {
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
}

.him-tiers--compact .him-tier-card__desc {
    font-size: 12px;
    margin: 0;
    opacity: 0.6;
}

.him-tiers--compact .him-tier-card__price {
    margin: 0 0 0 auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.him-tiers--compact .him-price-val {
    font-size: 22px;
}

.him-tier-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    display: inline-block;
    background: var(--him-green);
    color: var(--him-dark);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 2;
}

.him-tiers--compact .him-tier-card {
    position: relative;
}

/* ── Timeline talk subtitle ──────────────────────────────── */
.him-timeline__talk-title {
    font-style: italic;
    color: var(--him-purple);
    font-size: 14px;
    margin-top: 4px;
}

/* ── Venue Map Layout ────────────────────────────────────── */
.him-venue__grid--map {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.him-venue__name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--him-text);
}

.him-venue__address {
    font-size: 15px;
    color: var(--him-text-muted);
    margin: 0 0 24px;
    line-height: 1.6;
}

.him-venue__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--him-light);
    border-radius: var(--him-radius-sm);
}

.him-venue__detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.him-venue__detail strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--him-purple);
}

.him-venue__detail span {
    font-size: 15px;
    color: var(--him-text);
}

.him-venue__map {
    min-height: 360px;
    border-radius: var(--him-radius);
    overflow: hidden;
    box-shadow: var(--him-shadow);
    border: 1px solid var(--him-border);
}

.him-venue__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
}

@media (max-width: 900px) {
    .him-venue__grid--map {
        grid-template-columns: 1fr;
    }
    .him-venue__map {
        min-height: 280px;
    }
    .him-venue__map iframe {
        min-height: 280px;
    }
    .him-book-banner__inner {
        flex-direction: column;
        text-align: center;
    }
    .him-speaker-lightbox__inner {
        padding: 24px;
    }
    .him-about__carousel {
        min-height: 260px;
        height: auto;
    }
    .him-about__carousel .him-carousel__img {
        min-height: 260px;
    }
}

/* ── Venue Image ─────────────────────────────────────────── */
.him-venue__hero-img {
    width: 100%;
    border-radius: var(--him-radius);
    margin-bottom: 20px;
    aspect-ratio: 16/10;
    object-fit: cover;
    box-shadow: var(--him-shadow);
}

.him-venue__map-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--him-purple);
    text-decoration: none;
}

.him-venue__map-link:hover {
    color: var(--him-purple-dark);
}

/* ── Compact tier text wrap ──────────────────────────────── */
.him-tiers--compact .him-tier-card__inner .him-tier-card__info {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .him-tiers--compact .him-tier-card__inner {
        flex-wrap: wrap;
    }
    .him-tiers--compact .him-tier-card__price {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* ── Success message on light backgrounds ────────────────── */
.him-purchase-section .him-message--success {
    background: rgba(0,222,166,0.08);
    border: 1px solid rgba(0,222,166,0.25);
}

.him-purchase-section .him-message--success h3 {
    color: var(--him-dark);
}

.him-purchase-section .him-message--success p {
    color: var(--him-text-muted);
    opacity: 1;
}

/* ── Speaker Pill Badges ─────────────────────────────────── */
.him-speaker-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.him-speaker-pill--orador {
    background: rgba(128,104,238,0.15);
    color: var(--him-purple-light);
    border: 1px solid rgba(128,104,238,0.3);
}

.him-speaker-pill--moderador {
    background: rgba(0,222,166,0.12);
    color: var(--him-green);
    border: 1px solid rgba(0,222,166,0.3);
}

/* ── Moderator card green photo border ────────────────────── */
.him-speaker-pill--moderador + .him-speaker-card__photo {
    border-color: var(--him-green);
}

/* ── Speaker Card Equal Height ───────────────────────────── */
.him-speakers__grid--4 .him-speaker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.him-speakers__grid--4 .him-speaker-card__more {
    margin-top: auto;
}

/* ── About Section Text & Image ──────────────────────────── */
.him-about__content .him-section__text {
    text-align: justify;
    max-width: none;
}

.him-about__grid {
    align-items: stretch;
}

.him-about__carousel {
    min-height: 0;
    height: 100%;
    display: flex;
}

.him-about__carousel .him-carousel__img {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.him-about__carousel .him-carousel__img:not(.him-carousel__img--active) {
    position: absolute;
    top: 0;
    left: 0;
}

/* ── Speaker Lightbox Justified Text ─────────────────────── */
.him-speaker-lightbox__bio {
    text-align: justify;
}

.him-speaker-lightbox__bio p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 12px;
    color: var(--him-text-muted);
}

/* Pill inside lightbox - sits as a small tag above the role */
.him-speaker-lightbox__inner .him-speaker-pill {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 4px;
}

/* ── Speaker Social Links ────────────────────────────────── */
.him-speaker-lightbox__links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--him-border);
}

.him-speaker-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--him-light);
    color: var(--him-text-muted);
    transition: all var(--him-transition);
    text-decoration: none;
}

.him-speaker-social:hover {
    background: var(--him-purple);
    color: var(--him-white);
}

/* ── Book Page Text Justify ──────────────────────────────── */
.him-about-book__text p {
    text-align: justify;
}

.him-author__bio p {
    text-align: justify;
}

/* ── Delivery Method Toggle ──────────────────────────────── */
.him-delivery-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.him-delivery-option {
    cursor: pointer;
    display: block;
}

.him-delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.him-delivery-option__inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border: 2px solid var(--him-border);
    border-radius: var(--him-radius-sm);
    transition: all var(--him-transition);
    text-align: center;
}

.him-delivery-option__inner strong {
    font-size: 14px;
    color: var(--him-text);
}

.him-delivery-option__inner small {
    font-size: 12px;
    color: var(--him-text-muted);
}

.him-delivery-option--selected .him-delivery-option__inner {
    border-color: var(--him-purple);
    background: rgba(128,104,238,0.06);
}

.him-delivery-option:hover .him-delivery-option__inner {
    border-color: var(--him-purple-light);
}

@media (max-width: 600px) {
    .him-delivery-toggle {
        grid-template-columns: 1fr;
    }
    .him-hero__subtitle--book {
        font-size: 26px;
    }
}
