/* ══════════════════════════════════════
   Contacto
══════════════════════════════════════ */

/* Main layout */
.ct-main {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 80px 80px;
    align-items: start;
}

/* Info side */
.ct-info { display: flex; flex-direction: column; gap: 28px; }
.ct-info__item {
    display: flex; align-items: flex-start; gap: 18px;
    background: white; border-radius: 14px; padding: 22px 24px;
    box-shadow: 0 2px 12px rgba(7,25,61,.06);
    border-left: 4px solid #dca84d;
}
.ct-info__icon {
    flex-shrink: 0; width: 42px; height: 42px;
    background: linear-gradient(135deg, #dca84d, #ffd76d);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #0a1f45;
}
.ct-info__item h4 { font-size: .85rem; font-weight: 700; color: #07193d; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.ct-info__item p  { font-size: .9rem; color: #4a5568; }

/* Form */
.ct-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 28px rgba(7,25,61,.08);
    display: flex; flex-direction: column; gap: 22px;
}
.ct-form__group { display: flex; flex-direction: column; gap: 7px; }
.ct-form__group label { font-size: .85rem; font-weight: 600; color: #07193d; }
.ct-form__group input,
.ct-form__group textarea {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    color: #374151;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    resize: vertical;
}
.ct-form__group input:focus,
.ct-form__group textarea:focus {
    border-color: #dca84d;
    box-shadow: 0 0 0 3px rgba(220,168,77,.15);
    background: white;
}
.ct-form__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border: none; border-radius: 30px;
    background: linear-gradient(135deg, #dca84d, #ffd76d);
    color: #0a1f45; font-weight: 700; font-size: .95rem; cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}
.ct-form__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,168,77,.4); }

@media (max-width: 900px) {
    .ct-main { padding-left: 24px; padding-right: 24px; }
    .ct-main { grid-template-columns: 1fr; }
}

/* ── Contact modal ────────────────────────────────────────────── */
.ct-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 25, 61, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ct-modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.ct-modal {
    background: white;
    border-radius: 24px;
    padding: 48px 40px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 72px rgba(7, 25, 61, 0.22);
    transform: translateY(28px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ct-modal-overlay.is-open .ct-modal {
    transform: translateY(0) scale(1);
}

.ct-modal__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.ct-modal__icon svg { width: 32px; height: 32px; stroke-width: 2; }

.ct-modal--success .ct-modal__icon {
    background: linear-gradient(135deg, #2d7a3f, #3da854);
    color: white;
    box-shadow: 0 8px 24px rgba(45, 122, 63, 0.3);
}
.ct-modal--error .ct-modal__icon {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.3);
}

.ct-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #07193d;
    margin-bottom: 10px;
}
.ct-modal__text {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 32px;
}

.ct-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #dca84d, #ffd76d);
    color: #0a1f45;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}
.ct-modal__close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 168, 77, 0.45);
}

.ct-form__btn--loading {
    opacity: 0.8;
    cursor: not-allowed;
}
.ct-form__btn--loading svg {
    animation: ct-spin 0.9s linear infinite;
}
@keyframes ct-spin {
    to { transform: rotate(360deg); }
}
