/* /assets/forms.css v1.0 - Estilos compartidos para todos los formularios del sitio */

/* ==================== Page wrapper ==================== */
.form-page-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.form-page-wrap.wide { max-width: 920px; }

/* ==================== Form card ==================== */
.form-card {
    background: white;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 30px;
}
.form-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark, #0f172a);
    margin-bottom: 8px;
}
.form-card p.lead {
    color: var(--gray, #64748b);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ==================== Form fields ==================== */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }

.form-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-dark, #334155);
    margin-bottom: 6px;
}
.form-label .req { color: #dc2626; margin-left: 2px; }
.form-label .opt { color: var(--gray-light, #94a3b8); font-weight: 400; font-size: 12px; margin-left: 4px; }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark, #0f172a);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary, #0085C3);
    box-shadow: 0 0 0 3px rgba(0, 133, 195, 0.12);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form-help { font-size: 12px; color: var(--gray, #64748b); margin-top: 4px; }

/* File input */
.form-file {
    display: block;
    width: 100%;
    padding: 16px;
    border: 2px dashed var(--border, #e2e8f0);
    border-radius: 6px;
    background: var(--bg, #f8fafc);
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-dark, #334155);
    transition: border-color 0.15s, background 0.15s;
}
.form-file:hover {
    border-color: var(--primary, #0085C3);
    background: #eff8fd;
}
.form-file input[type="file"] { display: none; }
.form-file-name { display: block; font-weight: 600; margin-top: 6px; color: var(--primary, #0085C3); }

/* Honeypot - oculto pero accesible para bots */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ==================== Submit button ==================== */
.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary, #0085C3);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.form-submit:hover { background: #006ba8; transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-submit-secondary {
    background: white;
    color: var(--gray-dark, #334155);
    border: 1px solid var(--border, #e2e8f0);
}
.form-submit-secondary:hover { background: var(--bg, #f8fafc); }

/* ==================== Alerts ==================== */
.form-alert {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.form-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ==================== Static content (texto del sitio) ==================== */
.static-content { font-family: 'Inter', sans-serif; line-height: 1.7; color: var(--gray-dark, #334155); }
.static-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--dark, #0f172a);
    line-height: 1.2;
    margin-bottom: 16px;
}
.static-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark, #0f172a);
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.static-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue, #1F4558);
    margin-top: 24px;
    margin-bottom: 10px;
}
.static-content p { margin-bottom: 16px; font-size: 16px; }
.static-content ul, .static-content ol { padding-left: 24px; margin-bottom: 16px; }
.static-content li { margin-bottom: 6px; font-size: 15px; }
.static-content a { color: var(--primary, #0085C3); text-decoration: underline; }
.static-content a:hover { color: #006ba8; }
.static-content strong { color: var(--dark, #0f172a); font-weight: 700; }

/* ==================== Pricing tables (Anuncie con Nosotros) ==================== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border, #e2e8f0);
    margin-bottom: 24px;
    font-size: 14px;
}
.pricing-table th {
    background: var(--dark-blue, #1F4558);
    color: white;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing-table td {
    padding: 11px 16px;
    border-top: 1px solid var(--border, #e2e8f0);
    color: var(--gray-dark, #334155);
}
.pricing-table tr:nth-child(even) { background: var(--bg, #f8fafc); }
.pricing-table tr:hover { background: #f1f5f9; }
.pricing-table .price-col { text-align: right; font-weight: 600; color: var(--primary, #0085C3); font-variant-numeric: tabular-nums; }

.pricing-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.pricing-card {
    background: white;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
}
.pricing-card-header {
    background: var(--dark-blue, #1F4558);
    color: white;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}
.pricing-card-body { padding: 8px; }
.pricing-card-body .row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bg, #f8fafc);
    font-size: 14px;
}
.pricing-card-body .row:last-child { border-bottom: none; }
.pricing-card-body .row .label { color: var(--gray-dark, #334155); }
.pricing-card-body .row .price { color: var(--primary, #0085C3); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==================== Info boxes ==================== */
.info-box {
    background: #eff8fd;
    border-left: 4px solid var(--primary, #0085C3);
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
}
.info-box.warning { background: #fffbeb; border-color: #f59e0b; }
.info-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--dark, #0f172a); }
.info-box p { font-size: 14px; margin: 0; color: var(--gray-dark, #334155); }

/* ==================== Action buttons row (e.g. clasificado / advertise CTA) ==================== */
.action-buttons-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.action-btn {
    flex: 1;
    min-width: 220px;
    padding: 18px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    cursor: pointer;
}
.action-btn-primary { background: var(--primary, #0085C3); color: white; }
.action-btn-primary:hover { background: #006ba8; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 133, 195, 0.3); }
.action-btn-outline { background: white; color: var(--primary, #0085C3); border-color: var(--primary, #0085C3); }
.action-btn-outline:hover { background: var(--primary, #0085C3); color: white; transform: translateY(-2px); }

/* ==================== Specs accordion ==================== */
.specs-accordion {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: white;
    margin-bottom: 24px;
    overflow: hidden;
}
.specs-accordion summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark, #0f172a);
    background: var(--bg, #f8fafc);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.specs-accordion summary::-webkit-details-marker { display: none; }
.specs-accordion summary:hover { background: #eff8fd; }
.specs-accordion summary::after { content: '▼'; font-size: 11px; color: var(--gray, #64748b); transition: transform 0.2s; }
.specs-accordion[open] summary::after { transform: rotate(180deg); }
.specs-accordion-content { padding: 20px; border-top: 1px solid var(--border, #e2e8f0); }

/* ==================== Contact info block ==================== */
.contact-info-block {
    background: var(--bg, #f8fafc);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.contact-info-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary, #0085C3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.contact-info-row .content .label {
    font-size: 11px;
    color: var(--gray, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}
.contact-info-row .content .value { font-size: 15px; color: var(--dark, #0f172a); font-weight: 500; }
.contact-info-row .content .value a { color: var(--primary, #0085C3); }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .form-card { padding: 24px 20px; }
    .form-row, .form-row.three { grid-template-columns: 1fr; gap: 0; }
    .form-row .form-group { margin-bottom: 18px; }
    .pricing-cards-row { grid-template-columns: 1fr; }
    .static-content h1 { font-size: 28px; }
    .static-content h2 { font-size: 22px; }
    .action-btn { min-width: 100%; }
}
