/* ═════════════════════════════════════════════════════════════════
   Dunes Theme · Letters · Form Front (Premium · Editorial)
   ═════════════════════════════════════════════════════════════════ */
:root {
    --etl-ink:        #0A0A0A;
    --etl-ink-2:      #1F2937;
    --etl-ink-3:      #4B5563;
    --etl-ink-4:      #6B7280;
    --etl-ink-5:      #9CA3AF;
    --etl-paper:      #FFFFFF;
    --etl-surface-1:  #FAFBFC;
    --etl-surface-2:  #F4F4F6;
    --etl-hair:       #E5E7EB;
    --etl-hair-strong:#D1D5DB;
    --etl-blue:       #33519F;
    --etl-blue-hover: #2A4485;
    --etl-blue-deep:  #1E2F5C;
    --etl-blue-wash:  #F0F4FB;
    --etl-blue-hair:  #C9D4EA;
    --etl-blue-ring:  rgba(51,81,159,.20);
    --etl-green:      #15803D;
    --etl-green-wash: #DCFCE7;
    --etl-amber:      #B45309;
    --etl-red:        #B91C1C;
    --etl-red-wash:   #FEE2E2;
    --etl-shadow-1:   0 1px 0 rgba(10,10,10,.04);
    --etl-shadow-2:   0 1px 2px rgba(10,10,10,.04), 0 1px 1px rgba(10,10,10,.02);
    --etl-shadow-3:   0 4px 12px -4px rgba(10,10,10,.08), 0 1px 2px rgba(10,10,10,.04);
}

/* Página completa */
.etl-page {
    background: var(--etl-surface-1);
    min-height: 70vh;
    padding: 64px 24px 96px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.etl-page__inner {
    max-width: 760px;
    margin: 0 auto;
}

/* Wrap principal */
.etl-form-wrap {
    background: var(--etl-paper);
    border: 1px solid var(--etl-hair);
    border-radius: 16px;
    padding: 48px 56px;
    box-shadow: var(--etl-shadow-2);
}
@media (max-width: 720px) {
    .etl-page { padding: 32px 16px 64px; }
    .etl-form-wrap { padding: 32px 24px; border-radius: 12px; }
}

/* ── Header tipográfico ─────────────────────────────── */
.etl-form-head {
    text-align: center;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--etl-hair);
}
.etl-form-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--etl-blue);
    margin-bottom: 12px;
}
.etl-form-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--etl-ink);
    margin: 0 0 12px;
    line-height: 1.1;
    text-wrap: balance;
}
.etl-form-sub {
    font-size: 15px;
    color: var(--etl-ink-3);
    line-height: 1.55;
    max-width: 520px;
    margin: 0 auto;
}
@media (max-width: 720px) {
    .etl-form-title { font-size: 32px; }
}

/* ── Formulario ─────────────────────────────────────── */
.etl-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.etl-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 600px) { .etl-grid-2 { grid-template-columns: 1fr; } }

/* Field */
.etl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.etl-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--etl-ink);
    letter-spacing: -0.1px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.etl-opt {
    font-weight: 400;
    font-size: 11.5px;
    color: var(--etl-ink-4);
    letter-spacing: 0;
}
.etl-counter {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 11px;
    color: var(--etl-ink-4);
    font-weight: 500;
}

/* Inputs */
.etl-form input[type="text"],
.etl-form input[type="email"],
.etl-form input[type="tel"],
.etl-form input[type="url"],
.etl-form textarea {
    width: 100%;
    background: var(--etl-paper);
    border: 1px solid var(--etl-hair-strong);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--etl-ink);
    line-height: 1.5;
    transition: border-color .15s, box-shadow .15s, background .15s;
    outline: 0;
}
.etl-form textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}
.etl-form input:hover,
.etl-form textarea:hover {
    border-color: var(--etl-ink-4);
}
.etl-form input:focus,
.etl-form textarea:focus {
    border-color: var(--etl-blue);
    box-shadow: 0 0 0 3px var(--etl-blue-ring);
}
.etl-form input::placeholder,
.etl-form textarea::placeholder {
    color: var(--etl-ink-5);
}
.etl-hint {
    font-size: 11.5px;
    color: var(--etl-ink-4);
    line-height: 1.5;
}

/* Honeypot · oculto */
.etl-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: -9999px !important;
}

/* ── Dropzone de imágenes ───────────────────────────── */
.etl-dropzone {
    border: 2px dashed var(--etl-hair-strong);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    background: var(--etl-surface-1);
    transition: all .2s;
    cursor: pointer;
}
.etl-dropzone:hover,
.etl-dropzone.is-drag {
    border-color: var(--etl-blue);
    background: var(--etl-blue-wash);
}
.etl-dropzone__visual { color: var(--etl-ink-4); }
.etl-dropzone__visual svg { margin-bottom: 8px; }
.etl-dropzone__visual p {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--etl-ink-2);
}
.etl-dropzone__visual strong { color: var(--etl-ink); }
.etl-link-btn {
    background: transparent;
    border: 0;
    color: var(--etl-blue);
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.etl-link-btn:hover { color: var(--etl-blue-deep); }

/* Lista de uploads */
.etl-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.etl-uploads:empty { display: none; }
.etl-upload {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--etl-hair);
    background: var(--etl-surface-2);
}
.etl-upload img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.etl-upload__progress {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--etl-ink-3);
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}
.etl-upload__remove {
    position: absolute;
    top: 6px; right: 6px;
    width: 24px; height: 24px;
    background: rgba(10,10,10,.7);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.etl-upload__remove:hover { background: var(--etl-red); }

/* Video preview */
.etl-video-preview {
    margin-top: 10px;
}
.etl-video-preview:empty { display: none; }
.etl-video-preview iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid var(--etl-hair);
    border-radius: 10px;
}

/* ── Consents ────────────────────────────────────────── */
.etl-consents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}
.etl-check {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--etl-ink-2);
    line-height: 1.55;
    cursor: pointer;
}
.etl-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 1.5px solid var(--etl-hair-strong);
    border-radius: 4px;
    background: var(--etl-paper);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all .15s;
    position: relative;
}
.etl-check input:hover { border-color: var(--etl-blue); }
.etl-check input:checked {
    background: var(--etl-blue);
    border-color: var(--etl-blue);
}
.etl-check input:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 6px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.etl-check a {
    color: var(--etl-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.etl-check a:hover { color: var(--etl-blue-deep); }

/* ── Acciones ────────────────────────────────────────── */
.etl-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--etl-hair);
    margin-top: 8px;
}
.etl-submit {
    background: var(--etl-blue);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 14px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: -0.1px;
    transition: all .15s;
    box-shadow: 0 6px 16px -6px rgba(51,81,159,.30);
    min-width: 220px;
    position: relative;
}
.etl-submit:hover {
    background: var(--etl-blue-hover);
    box-shadow: 0 8px 20px -6px rgba(51,81,159,.42);
    transform: translateY(-1px);
}
.etl-submit:active { transform: translateY(0); }
.etl-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
.etl-submit__spinner {
    display: none;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: etlSpin .8s linear infinite;
    position: absolute;
    top: 50%; right: 22px;
    transform: translateY(-50%);
}
.etl-submit.is-loading .etl-submit__spinner { display: inline-block; }
.etl-submit.is-loading .etl-submit__text { opacity: .5; }
@keyframes etlSpin { to { transform: translateY(-50%) rotate(360deg); } }
.etl-tos {
    margin: 0;
    font-size: 11.5px;
    color: var(--etl-ink-4);
}

/* Status messages */
.etl-status:empty { display: none; }
.etl-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}
.etl-status.is-error {
    background: var(--etl-red-wash);
    color: var(--etl-red);
    border: 1px solid #FECACA;
}
.etl-status.is-ok {
    background: var(--etl-green-wash);
    color: var(--etl-green);
    border: 1px solid #BBF7D0;
}

/* ── Success state ───────────────────────────────────── */
.etl-success {
    text-align: center;
    padding: 48px 24px;
    animation: etlFadeIn .4s ease-out;
}
.etl-success__icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    background: var(--etl-green-wash);
    color: var(--etl-green);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.etl-success h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--etl-ink);
    margin: 0 0 8px;
}
.etl-success p {
    color: var(--etl-ink-3);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 auto 24px;
    max-width: 420px;
}
@keyframes etlFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
