/* ==========================================================
   Acomodador de Imágenes - Estilos
   Diseño limpio, amigable, por pasos.
   Usa --color-primario / --color-menu / --color-boton de $dist
   ========================================================== */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 240, 245, 0.6), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(254, 243, 199, 0.5), transparent 50%),
        #faf7f2;
    min-height: 100vh;
    color: #1f2937;
}

/* ===== Navbar ===== */
.hojas-navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ===== Hero ===== */
.hojas-hero { padding: 1.5rem 0 1rem; }

.hojas-badge {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 2px 2px 0 var(--color-borde, #1f2937);
}

.hojas-title {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #111827;
    margin: 0 0 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hojas-subtitle {
    color: #4b5563;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    max-width: 620px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.hojas-pills {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hojas-pill {
    display: inline-block;
    background: #fff;
    color: #111827;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid #111827;
    box-shadow: 2px 2px 0 #111827;
}

/* ===== Card base ===== */
.hojas-card {
    background: #fff;
    border-radius: 22px;
    padding: 1.5rem;
    border: 2px solid #111827;
    box-shadow: 4px 4px 0 #111827;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hojas-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 6px 0 #111827;
}

.hojas-card-final {
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
}

/* ===== Step header ===== */
.hojas-step-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.hojas-step-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.15rem;
    line-height: 1.2;
}

.hojas-step-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.hojas-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--color-primario);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 2px solid #111827;
    box-shadow: 2px 2px 0 #111827;
}

/* ===== Dropzone ===== */
.hojas-dropzone {
    border: 3px dashed #d1d5db;
    border-radius: 18px;
    padding: 2.5rem 1rem;
    text-align: center;
    background: #fcfaf7;
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
}

.hojas-dropzone:hover,
.hojas-dropzone:focus,
.hojas-dropzone.dragover {
    border-color: var(--color-primario);
    background: #fff;
    transform: scale(1.005);
}

.hojas-dropzone-icon {
    font-size: 3.5rem;
    color: var(--color-primario);
    display: block;
    margin-bottom: 0.5rem;
}

.hojas-dropzone-title {
    font-weight: 700;
    color: #111827;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.hojas-dropzone-sub {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.hojas-dropzone-info {
    color: #9ca3af;
    font-size: 0.78rem;
    margin: 1rem 0 0;
}

/* ===== Botones ===== */
.hojas-btn-primary,
.hojas-btn-secondary,
.hojas-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 12px;
    padding: 0.6rem 1.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid #111827;
}

.hojas-btn-primary {
    background: var(--color-primario);
    color: #fff;
    box-shadow: 2px 2px 0 #111827;
}

.hojas-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 3px 4px 0 #111827;
    color: #fff;
}

.hojas-btn-secondary {
    background: #fff;
    color: #111827;
    box-shadow: 2px 2px 0 #111827;
}

.hojas-btn-secondary:hover {
    background: #fef3c7;
    transform: translateY(-2px);
    box-shadow: 3px 4px 0 #111827;
}

.hojas-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    box-shadow: none;
}

.hojas-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Layout 50/50 sección upload ===== */
.hojas-upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.hojas-upload-col {
    display: flex;
    flex-direction: column;
    min-width: 0; /* permite que el grid se contraiga */
}

.hojas-files-panel {
    background: #fcfaf7;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    padding: 1rem;
    min-height: 280px;
}

.hojas-files-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-align: center;
    padding: 1rem;
}

.hojas-files-empty i {
    font-size: 2.75rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 0.5rem;
}

.hojas-files-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== Files bar ===== */
.hojas-files-bar {
    background: var(--color-primario);
    color: #fff;
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    border: 2px solid #111827;
    box-shadow: 2px 2px 0 #111827;
    margin: 0 0 0.85rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ===== Files grid (thumbnails) ===== */
.hojas-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
    margin-top: 0;
}

.hojas-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #111827;
    background: #f3f4f6;
    box-shadow: 2px 2px 0 #111827;
}

.hojas-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hojas-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.hojas-thumb-remove:hover {
    background: #dc2626;
}

/* ===== Layouts grid ===== */
.hojas-layouts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hojas-layout-option {
    background: #fcfaf7;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.hojas-layout-option:hover {
    border-color: var(--color-primario);
    background: #fff;
    transform: translateY(-1px);
}

.hojas-layout-option.active {
    border-color: #111827;
    background: #fef3c7;
    box-shadow: 2px 2px 0 #111827;
    transform: translateY(-1px);
}

.hojas-layout-option-badge {
    display: inline-block;
    background: var(--color-primario);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hojas-layout-option-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.2rem;
    line-height: 1;
}

.hojas-layout-option-info {
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

.hojas-layout-preview {
    display: grid;
    gap: 2px;
    width: 42px;
    height: 54px;
    background: #111827;
    padding: 3px;
    border-radius: 5px;
    flex-shrink: 0;
}

.hojas-layout-preview-cell {
    background: var(--color-primario);
    border-radius: 1px;
    opacity: 0.85;
}

/* ===== Custom layout ===== */
.hojas-custom-layout {
    padding-top: 0.75rem;
    border-top: 2px dashed #e5e7eb;
}

.hojas-custom-layout .form-label {
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hojas-input-num {
    width: 70px;
    text-align: center;
    font-weight: 700;
}

/* ===== Orientation buttons ===== */
.hojas-orient-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.hojas-orient-btn {
    text-align: center;
    padding: 0.6rem 0.4rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0;
}

.hojas-orient-btn i {
    font-size: 1.4rem;
    color: #6b7280;
}

.hojas-orient-btn:hover {
    border-color: var(--color-primario);
    color: #111827;
}

.btn-check:checked + .hojas-orient-btn {
    border-color: #111827;
    background: var(--color-primario);
    color: #fff;
    box-shadow: 2px 2px 0 #111827;
    transform: translateY(-1px);
}

.btn-check:checked + .hojas-orient-btn i { color: #fff; }

/* ===== Form controls ===== */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.06);
}

.form-check-input {
    border: 2px solid #d1d5db;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

.form-check-label { cursor: pointer; }

/* ===== Summary ===== */
.hojas-summary {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 2px dashed #e5e7eb;
    color: #4b5563;
}

.hojas-summary.has-data {
    border-style: solid;
    border-color: #111827;
    background: #fff;
    color: #111827;
}

/* ===== Botón descargar ===== */
.hojas-btn-download {
    background: var(--color-boton);
    color: #fff;
    border: 2px solid #111827;
    border-radius: 16px;
    padding: 0.9rem 2.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 3px 3px 0 #111827;
    transition: all 0.15s ease;
    font-family: inherit;
}

.hojas-btn-download:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 3px 5px 0 #111827;
}

.hojas-btn-download:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 2px 2px 0 #111827;
}

.hojas-btn-download:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: 2px 2px 0 #9ca3af;
    border-color: #9ca3af;
}

/* ===== Progress ===== */
.hojas-progress {
    max-width: 360px;
    margin: 1rem auto 0;
}

.hojas-progress .progress {
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #111827;
}

.hojas-progress .progress-bar {
    background: var(--color-primario);
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .hojas-upload-row {
        grid-template-columns: 1fr;
    }
    .hojas-files-panel {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .hojas-card {
        padding: 1.15rem;
        border-radius: 18px;
        box-shadow: 3px 3px 0 #111827;
    }
    .hojas-layouts {
        grid-template-columns: 1fr;
    }
    .hojas-btn-download {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    .hojas-dropzone {
        padding: 1.75rem 0.75rem;
    }
}

@media (max-width: 991px) {
    .hojas-title {
        font-size: 2rem;
    }
}

/* ===== Animaciones ===== */
@keyframes hojasFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hojas-thumb {
    animation: hojasFadeIn 0.25s ease both;
}

/* =====================================================
   SECCIONES SEO (Cómo funciona, Beneficios, FAQ, Uso)
   ===================================================== */
.hojas-seo-section {
    background: #fff;
    border-radius: 22px;
    border: 2px solid #111827;
    box-shadow: 4px 4px 0 #111827;
    padding: 2rem 1.75rem;
    margin-top: 1.75rem;
}

.hojas-seo-title {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hojas-seo-lead {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ----- Cómo funciona ----- */
.hojas-howto-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.hojas-howto-step {
    display: flex;
    gap: 1rem;
    background: #fcfaf7;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    transition: all 0.15s ease;
}

.hojas-howto-step:hover {
    border-color: var(--color-primario);
    background: #fff;
}

.hojas-howto-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: var(--color-primario);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid #111827;
}

.hojas-howto-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
}

.hojas-howto-step h3 i {
    color: var(--color-primario);
    margin-right: 0.35rem;
}

.hojas-howto-step p {
    color: #4b5563;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

/* ----- Beneficios ----- */
.hojas-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.hojas-benefit {
    background: #fcfaf7;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.1rem;
    transition: all 0.15s ease;
}

.hojas-benefit:hover {
    border-color: var(--color-primario);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 2px 2px 0 #111827;
}

.hojas-benefit i {
    font-size: 1.8rem;
    color: var(--color-primario);
    display: block;
    margin-bottom: 0.4rem;
}

.hojas-benefit h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.4rem;
}

.hojas-benefit p {
    font-size: 0.88rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ----- Casos de uso ----- */
.hojas-usecases {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.hojas-usecases li {
    background: #fcfaf7;
    border-left: 4px solid var(--color-primario);
    padding: 0.75rem 1rem;
    border-radius: 0 10px 10px 0;
    color: #374151;
    line-height: 1.55;
    font-size: 0.95rem;
}

.hojas-usecases li strong {
    color: #111827;
}

/* ----- FAQ accordion ----- */
.hojas-faq .accordion-item {
    background: #fcfaf7;
    border: 2px solid #e5e7eb;
    border-radius: 12px !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
}

.hojas-faq .accordion-button {
    background: #fcfaf7;
    font-weight: 600;
    color: #111827;
    font-size: 0.98rem;
    padding: 0.95rem 1.1rem;
}

.hojas-faq .accordion-button:not(.collapsed) {
    background: var(--color-primario);
    color: #fff;
    box-shadow: none;
}

.hojas-faq .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.hojas-faq .accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-primario);
}

.hojas-faq .accordion-body {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 1rem 1.1rem;
    background: #fff;
}

@media (max-width: 575px) {
    .hojas-seo-section {
        padding: 1.5rem 1.15rem;
        border-radius: 18px;
        box-shadow: 3px 3px 0 #111827;
    }
}
