/* ============================================
   DESTRUCREACION - DESMENUZA TU IDEA
   Estilos específicos de /desmenuza/
   ============================================ */

/* ─── HERO ─── */
.desmenuza-hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    background: var(--black);
}

.desmenuza-hero .hero-container {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--yellow);
    border: 1px solid var(--yellow);
    border-radius: 100px;
    padding: 0.4rem 1.1rem;
    margin-bottom: 2rem;
}

.desmenuza-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.desmenuza-hero h1 em {
    color: var(--blue);
    font-style: normal;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--cream-dim);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Deliverables */
.deliverables {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.deliverable-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    text-align: center;
}

.deliverable-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.deliverable-icon img {
    display: block;
}

.deliverable-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.deliverable-text strong {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cream);
}

.deliverable-text span {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--cream-dim);
}

/* ─── FORM TOOL SECTION ─── */
.desmenuza-tool {
    padding: 4rem 2rem 8rem;
    background: var(--dark);
}

.tool-container {
    max-width: 620px;
    margin: 0 auto;
}

/* ─── PROGRESS INDICATOR ─── */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-border);
    border: 2px solid var(--dark-border);
    transition: all 0.3s ease;
}

.progress-step.active .progress-dot {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 12px rgba(42, 174, 223, 0.4);
}

.progress-step.done .progress-dot {
    background: var(--blue);
    border-color: var(--blue);
}

.progress-step span {
    font-family: var(--font-display);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cream-dim);
    transition: color 0.3s ease;
}

.progress-step.active span {
    color: var(--blue);
}

.progress-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: var(--dark-border);
    margin: 0 1rem;
    margin-bottom: 22px;
    transition: background 0.3s ease;
}

.progress-line.done {
    background: var(--blue);
}

/* ─── FORM STEPS ─── */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepIn 0.3s ease;
}

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

/* Step Header */
.step-header {
    margin-bottom: 2.5rem;
}

.step-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.step-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.step-sub {
    font-size: 0.95rem;
    color: var(--cream-dim);
    line-height: 1.6;
}

/* ─── FORM FIELDS ─── */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cream-dim);
}

.field-textarea,
.field-input,
.field-select {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--cream);
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}

.field-textarea {
    resize: vertical;
    min-height: 95px;
    line-height: 1.6;
}

.field-textarea::placeholder,
.field-input::placeholder {
    color: #4a5568;
}

.field-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa3b0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field-select option {
    background: var(--dark-card);
    color: var(--cream);
}

.field-textarea:focus,
.field-input:focus,
.field-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

.field-textarea.error,
.field-input.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-error {
    font-size: 0.75rem;
    color: var(--red);
    min-height: 1rem;
    font-family: var(--font-display);
}

/* Privacy note */
.privacy-note {
    font-size: 0.8rem;
    color: var(--cream-dim);
    opacity: 0.6;
    margin-top: -0.5rem;
}

/* ─── STEP ACTIONS ─── */
.step-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.btn-back {
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cream-dim);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    transition: color 0.2s ease;
    display: inline-block;
}

.btn-back:hover {
    color: var(--cream);
}

/* ─── LOADING STATE ─── */
.loading-state {
    text-align: center;
    padding: 3rem 0 4rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.loading-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    animation: dotBounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
    40%            { transform: scale(1);   opacity: 1; }
}

.loading-state h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 1rem;
}

.loading-ellipsis::after {
    content: '';
    animation: ellipsis 2s steps(4, end) infinite;
}

@keyframes ellipsis {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

.loading-sub {
    font-size: 0.95rem;
    color: var(--cream-dim);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* ─── CONFIRMATION STATE ─── */
.confirm-state {
    text-align: center;
    padding: 2rem 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.12);
    border: 2px solid var(--green);
    color: var(--green);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
}

.confirm-state h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--cream);
    margin: 0;
}

.confirm-sub {
    font-size: 0.95rem;
    color: var(--cream-dim);
    line-height: 1.7;
    max-width: 460px;
    margin: 0;
}

.confirm-sub strong {
    color: var(--cream);
}

.confirm-cta-block {
    margin-top: 1.5rem;
    padding: 1.75rem 2rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    text-align: center;
    max-width: 440px;
    width: 100%;
}

.confirm-cta-text {
    font-size: 0.9rem;
    color: var(--cream-dim);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .desmenuza-hero {
        padding: 8rem 1.5rem 4rem;
    }

    .deliverables {
        flex-direction: column;
    }

    .desmenuza-tool {
        padding: 3rem 1.5rem 6rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .progress-line {
        max-width: 60px;
    }

    .confirm-cta-block {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .desmenuza-hero h1 {
        font-size: 2.2rem;
    }

    .deliverable-item {
        padding: 0.85rem 1rem;
    }
}
