/* =========================================================
   estaticas.css — Páginas estáticas del portal
   (vende tu inmueble + contacto)
   ========================================================= */

/* ── Hero ──────────────────────────────────────────────── */
.portal-static-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portal-static-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(184, 144, 42, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.portal-static-hero .portal-static-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}

.portal-static-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Layout ─────────────────────────────────────────────── */
.portal-static-section {
    padding: 4rem 0;
}

.portal-static-section--alt {
    background: var(--pt-color-bg-alt, #f8f7f4);
}

.portal-static-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pt-color-text, #1a1a2e);
    margin-bottom: 0.5rem;
}

.portal-static-section__subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* ── Tarjetas "por qué elegirnos" ───────────────────────── */
.portal-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.portal-why-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.portal-why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.portal-why-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(184, 144, 42, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--pt-color-primary, #b8902a);
    margin-bottom: 1rem;
}

.portal-why-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pt-color-text, #1a1a2e);
    margin-bottom: 0.5rem;
}

.portal-why-card__text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ── Formulario estático ─────────────────────────────────── */
.portal-static-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.portal-static-form-wrap__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pt-color-text, #1a1a2e);
    margin-bottom: 1.5rem;
}

.portal-static-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.portal-static-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

@media (max-width: 600px) {
    .portal-static-form__grid {
        grid-template-columns: 1fr;
    }
}

.portal-static-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.portal-static-form__field--full {
    grid-column: 1 / -1;
}

.portal-static-form__field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pt-color-text, #1a1a2e);
}

.portal-static-form__field input,
.portal-static-form__field select,
.portal-static-form__field textarea {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    color: var(--pt-color-text, #1a1a2e);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    width: 100%;
}

.portal-static-form__field input:focus,
.portal-static-form__field select:focus,
.portal-static-form__field textarea:focus {
    outline: none;
    border-color: var(--pt-color-primary, #b8902a);
    box-shadow: 0 0 0 3px rgba(184, 144, 42, 0.12);
    background: #fff;
}

.portal-static-form__field textarea {
    resize: vertical;
    min-height: 110px;
}

.portal-static-form__field input.is-invalid,
.portal-static-form__field select.is-invalid,
.portal-static-form__field textarea.is-invalid {
    border-color: #e53e3e;
    background: #fff5f5;
}

.portal-static-form__field input.is-invalid:focus,
.portal-static-form__field select.is-invalid:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.portal-static-form__field input.is-valid {
    border-color: #38a169;
}

.portal-static-form__hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: #9ca3af;
    min-height: 1.1em;
}

.portal-static-form__hint--error {
    color: #e53e3e;
}

.portal-static-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: #6b7280;
    cursor: pointer;
}

.portal-static-form__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--pt-color-primary, #b8902a);
    cursor: pointer;
}

/* ── Pasos numerados ─────────────────────────────────────── */
.portal-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.portal-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 160px;
    max-width: 220px;
    padding: 0 1rem;
}

.portal-steps__number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--pt-color-primary, #b8902a);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 14px rgba(184, 144, 42, 0.35);
}

.portal-steps__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pt-color-text, #1a1a2e);
    margin: 0;
}

.portal-steps__connector {
    flex: 1;
    min-width: 40px;
    max-width: 80px;
    height: 2px;
    background: #d1d5db;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .portal-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    .portal-steps__connector {
        width: 2px;
        min-width: 2px;
        max-width: 2px;
        height: 32px;
        margin-bottom: 0;
    }
}

/* ── Layout contacto (dos columnas) ─────────────────────── */
.portal-contacto-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .portal-contacto-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Bloque info de contacto ─────────────────────────────── */
.portal-contact-info {
    background: var(--pt-color-text, #1a1a2e);
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
}

.portal-contact-info__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pt-color-primary, #b8902a);
}

.portal-contact-info__list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-contact-info__item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.portal-contact-info__icon {
    width: 36px;
    height: 36px;
    background: rgba(184, 144, 42, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--pt-color-primary, #b8902a);
    flex-shrink: 0;
}

.portal-contact-info__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.15rem;
}

.portal-contact-info__value {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.4;
}

/* ── Alerts flash ─────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
