/**
 * Landing EnMano × GEM — /enviar-ayuda-venezuela
 */

.gem-landing {
    --gem-blue: #0e71b8;
    --gem-navy: #0a1628;
    --gem-red: #cf142b;
    --gem-yellow: #fcbf49;
    --gem-text: #1a2332;
    --gem-muted: #5f6c7b;
    background: #f4f7fb;
    color: var(--gem-text);
}

/* Hero full-bleed — fondo claro para logos EnMano × GEM */
.gem-landing__hero {
    position: relative;
    min-height: calc(100svh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #eef4fb 0%, #ffffff 55%, #faf8f3 100%);
    color: var(--gem-text);
    padding: 4rem 1.5rem 5rem;
    border-bottom: 1px solid rgba(14, 113, 184, 0.12);
}

.gem-landing__hero-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    display: flex;
    height: 6px;
    z-index: 2;
}

.gem-landing__stripe {
    flex: 1;
}

.gem-landing__stripe--yellow { background: var(--gem-yellow); }
.gem-landing__stripe--blue { background: var(--gem-blue); }
.gem-landing__stripe--red { background: var(--gem-red); }

.gem-landing__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
    animation: gemLandingFadeUp 0.8s ease-out both;
}

@keyframes gemLandingFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gem-landing__hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.75rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
    border: 1px solid rgba(14, 113, 184, 0.1);
}

.gem-landing__hero-logos img:first-child {
    filter: none;
}

.gem-landing__hero-logos img:last-child {
    max-height: 52px;
    width: auto;
}

.gem-landing__hero-times {
    font-size: 1.5rem;
    color: var(--gem-muted);
    opacity: 0.75;
}

.gem-landing__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gem-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.gem-landing__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--gem-navy);
}

.gem-landing__lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gem-muted);
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.gem-landing__lead strong {
    color: var(--gem-text);
}

.gem-landing__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Buttons */
.gem-landing__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.gem-landing__btn--primary {
    background: var(--gem-blue);
    color: #fff;
    border-color: var(--gem-blue);
}

.gem-landing__btn--primary:hover {
    background: #0a5a94;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 113, 184, 0.35);
}

.gem-landing__btn--ghost {
    background: #fff;
    color: #128c7e;
    border-color: #25d366;
}

.gem-landing__btn--ghost:hover {
    background: #f0fff4;
    color: #0d7a4d;
    border-color: #1da851;
}

.gem-landing__btn--submit {
    width: 100%;
    max-width: 360px;
    font-size: 1.0625rem;
}

/* Sections */
.gem-landing__section {
    padding: 4.5rem 0;
}

.gem-landing__section--dark {
    background: var(--gem-navy);
    color: #fff;
}

.gem-landing__section--form {
    background: #fff;
}

.gem-landing__section--faq {
    background: #eef2f7;
}

.gem-landing__section--faq .container {
    max-width: 840px;
}

.gem-landing__section--faq .gem-landing__section-title {
    text-align: center;
}

.gem-landing__section--faq .gem-landing__section-intro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gem-landing__section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.gem-landing__section-intro {
    font-size: 1.0625rem;
    color: var(--gem-muted);
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.gem-landing__section--dark .gem-landing__section-intro {
    color: rgba(255, 255, 255, 0.78);
}

/* Steps */
.gem-landing__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .gem-landing__steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gem-landing__step {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid var(--gem-blue);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
    animation: gemLandingFadeUp 0.6s ease-out both;
}

.gem-landing__step:nth-child(2) { animation-delay: 0.1s; }
.gem-landing__step:nth-child(3) { animation-delay: 0.2s; }

.gem-landing__step-num {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gem-blue);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
}

.gem-landing__step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.gem-landing__step p {
    margin: 0;
    color: var(--gem-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Checklist */
.gem-landing__checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .gem-landing__checklist {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gem-landing__checklist li {
    position: relative;
    padding-left: 1.75rem;
    line-height: 1.5;
}

.gem-landing__checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gem-yellow);
    font-weight: 700;
}

/* Categories — masonry-style 2 columns (no row gaps) */
.gem-landing__categories {
    column-gap: 1.5rem;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .gem-landing__categories {
        column-count: 2;
        column-fill: balance;
    }
}

.gem-landing__category {
    display: inline-block;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 1.35rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    border-top: 3px solid var(--gem-blue);
    box-shadow: 0 1px 4px rgba(15, 40, 80, 0.06);
    overflow: visible;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.gem-landing__category-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gem-navy);
}

.gem-landing__category-note {
    font-size: 0.8125rem;
    color: var(--gem-blue);
    font-weight: 600;
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.gem-landing__item-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8edf3;
}

.gem-landing__legend-hint {
    flex: 1 1 100%;
    font-size: 0.75rem;
    color: var(--gem-muted);
    margin: 0.15rem 0 0;
}

@media (min-width: 576px) {
    .gem-landing__legend-hint {
        flex: 1 1 auto;
        margin: 0 0 0 0.25rem;
        text-align: right;
    }
}

.gem-item-badge {
    position: relative;
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    line-height: 1.3;
    white-space: nowrap;
    text-align: center;
    cursor: help;
}

.gem-item-badge[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    transform: translateX(-50%) translateY(4px);
    z-index: 20;
    min-width: 9rem;
    max-width: 14rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.35;
    color: #fff;
    background: var(--gem-navy);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(15, 40, 80, 0.18);
    white-space: normal;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.gem-item-badge[data-tip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.15rem);
    transform: translateX(-50%);
    z-index: 21;
    border: 5px solid transparent;
    border-top-color: var(--gem-navy);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.gem-item-badge[data-tip]:hover::after,
.gem-item-badge[data-tip]:focus-visible::after,
.gem-item-badge[data-tip]:hover::before,
.gem-item-badge[data-tip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.gem-item-badge[data-tip]:hover::after,
.gem-item-badge[data-tip]:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

.gem-item-badge[data-tip]:focus-visible {
    outline: 2px solid var(--gem-blue);
    outline-offset: 2px;
}

.gem-item-badge--new {
    background: rgba(207, 20, 43, 0.1);
    color: #a30f22;
    border: 1px solid rgba(207, 20, 43, 0.25);
}

.gem-item-badge--used {
    background: rgba(14, 113, 184, 0.1);
    color: #0a5a94;
    border: 1px solid rgba(14, 113, 184, 0.25);
}

.gem-item-badge--sealed {
    background: rgba(40, 167, 69, 0.1);
    color: #1e7e34;
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.gem-landing__category-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--gem-muted);
}

.gem-landing__category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4375rem 0;
    border-bottom: 1px solid #eef2f7;
    min-height: 2.125rem;
}

.gem-landing__category-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gem-landing__category-item-label {
    flex: 1;
    min-width: 0;
    color: var(--gem-text);
    font-weight: 500;
    line-height: 1.35;
}

.gem-landing__category-item .gem-item-badge {
    flex-shrink: 0;
    min-width: 3.75rem;
}

.gem-landing__prohibited {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(207, 20, 43, 0.06);
    border-radius: 10px;
    border-left: 4px solid var(--gem-red);
}

.gem-landing__prohibited-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gem-red);
    margin-bottom: 0.5rem;
}

.gem-landing__prohibited-list {
    margin: 0;
    padding-left: 1.125rem;
    font-size: 0.875rem;
    color: var(--gem-muted);
}

/* Form */
.gem-landing__form-container {
    max-width: 800px;
}

.gem-landing__form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
}

.gem-landing__fieldset {
    border: none;
    padding: 0;
    margin: 0 0 2rem;
}

.gem-landing__fieldset legend {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gem-navy);
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gem-blue);
}

.gem-landing__callout {
    padding: 1rem 1.25rem;
    background: rgba(14, 113, 184, 0.08);
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.gem-landing__form-footer {
    text-align: center;
    padding-top: 0.5rem;
}

.gem-landing__updated {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--gem-muted);
    margin-top: 1.5rem;
}

.gem-landing__alert {
    margin-bottom: 1.5rem;
}

/* Validación inline — texto bajo el campo, sin bordes rojos */
.gem-field-hint {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #7a5c28;
}

.gem-field-hint:not(:empty) {
    display: block;
}

.gem-field-hint--form {
    text-align: center;
    margin-bottom: 0.75rem;
}

.gem-file-upload__hint-error {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #7a5c28;
}

.gem-file-upload__hint-error:not(:empty) {
    display: block;
}

.gem-landing__scale-photo[hidden] {
    display: none !important;
}

/* Fotos */
.gem-photos__check {
    margin-bottom: 0.15rem;
}

/* Custom file upload */
.gem-file-upload {
    position: relative;
}

.gem-file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gem-file-upload__trigger {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    min-height: 72px;
    padding: 0.875rem 1rem;
    margin: 0;
    background: #fff;
    border: 2px dashed rgba(14, 113, 184, 0.35);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gem-file-upload__trigger:hover {
    border-color: var(--gem-blue);
    background: rgba(14, 113, 184, 0.04);
}

.gem-file-upload__trigger:focus-within {
    border-color: var(--gem-blue);
    box-shadow: 0 0 0 3px rgba(14, 113, 184, 0.15);
}

.gem-file-upload--has-file .gem-file-upload__trigger {
    border-style: solid;
    border-color: rgba(40, 167, 69, 0.45);
    background: rgba(40, 167, 69, 0.04);
}

.gem-file-upload__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(14, 113, 184, 0.1);
    color: var(--gem-blue);
    font-size: 1.125rem;
}

.gem-file-upload--has-file .gem-file-upload__icon {
    background: rgba(40, 167, 69, 0.12);
    color: #1e7e34;
}

.gem-file-upload__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.gem-file-upload__action {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gem-navy);
}

.gem-file-upload__name {
    font-size: 0.8125rem;
    color: var(--gem-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.gem-file-upload--has-file .gem-file-upload__name {
    color: #1e7e34;
    font-weight: 500;
}

.gem-file-upload__hint {
    display: block;
    margin-top: 0.5rem;
}

/* FAQ */
.gem-landing__faq {
    max-width: 760px;
    margin: 0 auto;
}

.gem-landing__faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 0 1.25rem;
    border: 1px solid #e2e8f0;
}

.gem-landing__faq-item summary {
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.gem-landing__faq-item summary::-webkit-details-marker {
    display: none;
}

.gem-landing__faq-item p {
    padding: 0 0 1rem;
    margin: 0;
    color: var(--gem-muted);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* CTA */
.gem-landing__cta {
    background: linear-gradient(135deg, var(--gem-blue) 0%, #0a5a94 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}

.gem-landing__cta-inner {
    max-width: 560px;
}

.gem-landing__cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.gem-landing__cta p {
    opacity: 0.92;
    margin-bottom: 1.5rem;
}

.gem-landing__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.gem-landing__cta .gem-landing__btn--primary {
    background: #fff;
    color: var(--gem-blue);
    border-color: #fff;
}

.gem-landing__cta .gem-landing__btn--primary:hover {
    background: #f0f8ff;
    color: var(--gem-blue);
}

/* Confirmación */
.gem-confirm {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
}

.gem-confirm__card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 640px;
    margin: 0 auto;
}

.gem-confirm__icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.gem-confirm__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gem-blue);
    letter-spacing: 0.02em;
}

.gem-confirm__whatsapp {
    background: #f0fff4;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.gem-confirm__whatsapp .btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gem-confirm__whatsapp .btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

@media (max-width: 767px) {
    .gem-landing__hero {
        min-height: auto;
        padding: 3rem 1rem 4rem;
    }

    .gem-landing__form {
        padding: 1.25rem;
    }
}
