/* ══════════════════════════════════════════════════════════════
   CONTACTO — estilo ExpoCasa3D
   ══════════════════════════════════════════════════════════════ */

.contacto-page {
    background: var(--bg);
    padding: 0 !important;
    overflow-x: hidden;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.contacto-page * { box-sizing: border-box; }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.ct-hero {
    position: relative;
    height: 320px;
    margin: 18px 24px 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
}

.ct-hero__bg {
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) saturate(0.9);
    animation: ctHeroZoom 14s ease forwards;
}
@keyframes ctHeroZoom {
    from { transform: scale(1.10); }
    to   { transform: scale(1); }
}

.ct-hero__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(8,8,8,0.85) 0%,
        rgba(8,8,8,0.55) 45%,
        rgba(8,8,8,0.20) 100%);
}

.ct-hero__content {
    position: relative;
    height: 100%;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 660px;
}

.ct-hero__eyebrow {
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.ct-hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.05;
    color: var(--text);
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
}

.ct-hero__lead {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.78);
    margin: 0;
    line-height: 1.5;
}

/* ════════════════════════════════════════
   BODY (sidebar + form)
   ════════════════════════════════════════ */
.ct-body {
    padding: 36px 24px 60px;
}

.ct-body__inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
}

/* ── Sidebar ── */
.ct-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    transition: border-color 0.18s ease;
}

.ct-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.ct-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}
.ct-row:last-child { border-bottom: none; padding-bottom: 0; }
.ct-row:first-of-type { padding-top: 0; }
.ct-row:hover { opacity: 0.85; }
.ct-row:hover .ct-row__value { color: var(--gold); }

.ct-row__icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(200, 169, 110, 0.08);
    border: 1px solid rgba(200, 169, 110, 0.18);
    display: grid;
    place-items: center;
    color: var(--gold);
    flex-shrink: 0;
}
.ct-row__icon .mud-icon-root { font-size: 18px !important; }

.ct-row__label {
    font-family: var(--font-display);
    font-size: 0.68rem;
    color: var(--text-2);
    letter-spacing: 0.10em;
    margin-bottom: 2px;
    font-weight: 700;
}

.ct-row__value {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    transition: color 0.15s ease;
    word-break: break-word;
}

/* Hours */
.ct-hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-hours__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-2);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.ct-hours__row:last-child { border-bottom: none; padding-bottom: 0; }
.ct-hours__row strong {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
}
.ct-hours__closed { color: rgba(255, 100, 100, 0.85) !important; }

/* Card accent (respuesta rápida) */
.ct-card--accent {
    background: linear-gradient(135deg, rgba(200, 169, 110, 0.10) 0%, rgba(200, 169, 110, 0.02) 100%);
    border-color: rgba(200, 169, 110, 0.25);
    text-align: center;
}

.ct-card__icon-lg {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--gold);
    color: #0a0a0a;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
}
.ct-card__icon-lg .mud-icon-root { font-size: 28px !important; }

.ct-card__text {
    font-family: var(--font-body);
    color: var(--text-2);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* ════════════════════════════════════════
   FORM
   ════════════════════════════════════════ */
.ct-form-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 36px 36px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ct-form__head {
    margin-bottom: 22px;
}

.ct-form__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.ct-form__subtitle {
    font-family: var(--font-body);
    color: var(--text-2);
    font-size: 0.9rem;
    margin: 0;
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ct-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ct-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ct-field__label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-2);
    letter-spacing: 0.02em;
}

.ct-field__input,
.ct-field__select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.ct-field__input::placeholder { color: rgba(255,255,255,0.3); }

.ct-field__input:focus,
.ct-field__select:focus {
    border-color: var(--gold);
    background: rgba(200, 169, 110, 0.04);
}

.ct-field__textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-body);
}

.ct-field__select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23A89F91' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Botones */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.18s ease;
    background: transparent;
    color: var(--text);
    white-space: nowrap;
}

.ct-btn--gold {
    background: var(--gold);
    color: #0a0a0a;
    border-color: var(--gold);
}
.ct-btn--gold:hover:not(:disabled) {
    background: var(--gold-light, #d8b97e);
    border-color: var(--gold-light, #d8b97e);
    transform: translateY(-1px);
}
.ct-btn--gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ct-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    color: var(--text);
}
.ct-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
}

.ct-btn--full { width: 100%; }

.ct-form__legal {
    font-family: var(--font-body);
    font-size: 0.74rem;
    color: var(--text-2);
    text-align: center;
    margin: 6px 0 0;
}
.ct-form__legal a {
    color: var(--gold);
    text-decoration: none;
}
.ct-form__legal a:hover { text-decoration: underline; }

/* ════════════════════════════════════════
   ESTADO DE ÉXITO
   ════════════════════════════════════════ */
.ct-success {
    text-align: center;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: ctSuccessIn 0.4s ease;
}

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

.ct-success__icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--gold);
    color: #0a0a0a;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 28px rgba(200, 169, 110, 0.35);
    animation: ctSuccessPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

@keyframes ctSuccessPop {
    0%   { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

.ct-success__icon .mud-icon-root { font-size: 36px !important; }

.ct-success__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text);
    margin: 4px 0 4px;
}

.ct-success__text {
    font-family: var(--font-body);
    color: var(--text-2);
    font-size: 0.95rem;
    margin: 0 0 12px;
    max-width: 420px;
    line-height: 1.5;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1000px) {
    .ct-body__inner {
        grid-template-columns: 1fr;
    }
    .ct-side {
        order: 2;
    }
    .ct-form-wrap {
        order: 1;
    }
}

@media (max-width: 700px) {
    .ct-hero            { height: auto; min-height: 220px; margin: 14px 12px 0; }
    .ct-hero__content   { padding: 32px 24px; }
    .ct-hero__title     { font-size: 1.6rem; }
    .ct-body            { padding: 24px 12px 40px; }
    .ct-body__inner     { gap: 16px; }
    .ct-form-wrap       { padding: 24px 22px; min-height: 0; }
    .ct-form__title     { font-size: 1.3rem; }
    .ct-form__row       { grid-template-columns: 1fr; gap: 14px; }
    .ct-card            { padding: 18px; }
}
