/* ===== Contact Page — contacto.css ===== */
/* TKT design system. Left sidebar + right content. */

body { background: var(--bg-dark); }

/* ===== Main layout ===== */
.ct-main {
    min-height: 100vh;
    padding-top: 72px; /* nav height */
}

.ct-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: calc(100vh - 72px);
}

/* ===== Left Sidebar ===== */
.ct-sidebar {
    background: var(--bg-dark-2);
    border-right: 1px solid var(--border-dark);
    padding: 0;
}

.ct-sidebar-inner {
    position: sticky;
    top: 72px;
    padding: 56px 40px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

.ct-sidebar-brand {
    margin-bottom: 40px;
}

.ct-sidebar-title {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 700; line-height: 1.2;
    letter-spacing: -0.025em; color: var(--text-white);
    margin-bottom: 16px;
}

.ct-sidebar-desc {
    font-size: 15px; line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin-bottom: 40px;
}

/* Contact details */
.ct-contact-details {
    display: flex; flex-direction: column; gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-dark);
}

.ct-detail {
    display: flex; align-items: flex-start; gap: 12px;
}

.ct-detail-icon {
    width: 32px; height: 32px; min-width: 32px;
    background: rgba(4,109,237,0.1); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-blue); margin-top: 1px;
}

.ct-detail-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: rgba(255,255,255,0.35);
    margin-bottom: 4px;
}

.ct-detail-value {
    font-size: 14px; color: rgba(255,255,255,0.7);
    line-height: 1.5; display: block;
}

a.ct-detail-value:hover { color: var(--text-white); }

/* Trust stats */
.ct-sidebar-trust {
    display: flex; gap: 0;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-dark);
}

.ct-trust-stat {
    flex: 1; text-align: center; padding: 0 8px;
    border-right: 1px solid var(--border-dark);
}
.ct-trust-stat:last-child { border-right: none; }
.ct-trust-stat:first-child { padding-left: 0; }

.ct-trust-num {
    display: block;
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    color: var(--accent-yellow); letter-spacing: -0.03em; margin-bottom: 4px;
}

.ct-trust-label {
    display: block; font-size: 11px; color: rgba(255,255,255,0.4);
    line-height: 1.4;
}

/* Client logos */
.ct-clients-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: rgba(255,255,255,0.3);
    margin-bottom: 12px;
}

.ct-clients-list {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
}

.ct-clients-list span {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.25);
    letter-spacing: 0.01em;
}

/* ===== Right content ===== */
.ct-content {
    padding: 56px 64px;
    display: flex; flex-direction: column; gap: 40px;
}

/* ===== Two main cards ===== */
.ct-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.ct-card {
    background: var(--bg-dark-2); border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg); padding: 32px;
    display: flex; flex-direction: column; gap: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.ct-card:hover { border-color: rgba(4,109,237,0.3); background: rgba(255,255,255,0.02); }
.ct-card--active { border-color: var(--accent-blue) !important; background: rgba(4,109,237,0.05) !important; }

.ct-card-header {
    display: flex; align-items: center; gap: 12px;
}

.ct-card-icon {
    width: 36px; height: 36px; background: rgba(4,109,237,0.1);
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; color: var(--accent-blue); flex-shrink: 0;
}

.ct-card--support .ct-card-icon {
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5);
}

.ct-card h2 {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    color: var(--text-white); letter-spacing: -0.015em;
}

.ct-card > p {
    font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.55);
    flex: 1;
}

.ct-card-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 20px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer; border: none;
    background: var(--accent-blue); color: white;
    transition: opacity 0.2s; align-self: flex-start;
    box-shadow: 0 4px 16px rgba(4,109,237,0.3);
}
.ct-card-btn:hover { opacity: 0.9; }

.ct-card-btn--ghost {
    background: rgba(255,255,255,0.07); color: var(--text-white);
    border: 1px solid var(--border-dark); box-shadow: none;
}
.ct-card-btn--ghost:hover { background: rgba(255,255,255,0.1); opacity: 1; }

/* ===== Form area ===== */
.ct-form-area {
    background: var(--bg-dark-2); border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg); overflow: hidden;
}

.ct-form-panel { padding: 40px; }

.ct-form-panel-header { margin-bottom: 36px; }

.ct-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5);
    background: none; border: none; cursor: pointer;
    padding: 0; margin-bottom: 20px; transition: color 0.2s;
}
.ct-back-btn:hover { color: var(--text-white); }

.ct-form-panel-header h3 {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    color: var(--text-white); margin-bottom: 8px; letter-spacing: -0.02em;
}

.ct-form-panel-header p {
    font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6;
}

/* HubSpot iframe */
.ct-hubspot-wrap {
    width: 100%; min-height: 600px;
    background: white; border-radius: var(--radius-md); overflow: hidden;
}

.ct-hubspot-frame {
    width: 100%; min-height: 600px; border: none; display: block;
}

/* Support form */
.ct-support-form { display: flex; flex-direction: column; gap: 20px; }

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

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

.ct-field label {
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7);
}

.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%; padding: 11px 14px;
    font-size: 14px; font-family: var(--font-body);
    color: var(--text-white); background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
    outline: none; transition: border-color 0.2s;
    appearance: none; -webkit-appearance: none;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder { color: rgba(255,255,255,0.25); }

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(4,109,237,0.15);
}

.ct-field select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px; cursor: pointer;
}

.ct-field select option { background: #1a2035; color: white; }

.ct-field textarea { resize: vertical; min-height: 120px; }

.ct-submit-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 28px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; cursor: pointer; border: none;
    background: var(--accent-blue); color: white;
    transition: opacity 0.2s, transform 0.15s; align-self: flex-start;
    box-shadow: 0 4px 20px rgba(4,109,237,0.35);
}
.ct-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.ct-form-note {
    font-size: 12px; color: rgba(255,255,255,0.35); margin-top: -8px;
}

/* Success state */
.ct-success {
    text-align: center; padding: 48px 32px;
}
.ct-success-icon {
    width: 56px; height: 56px; background: rgba(4,109,237,0.1);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 20px; color: var(--accent-blue);
}
.ct-success h4 {
    font-family: var(--font-display); font-size: 20px; font-weight: 700;
    color: var(--text-white); margin-bottom: 10px;
}
.ct-success p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ===== Secondary blocks ===== */
.ct-secondary {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg); overflow: hidden;
}

.ct-secondary-block {
    background: var(--bg-dark-2); padding: 28px 24px;
    transition: background 0.2s;
}
.ct-secondary-block:hover { background: rgba(255,255,255,0.02); }

.ct-secondary-block h4 {
    font-size: 14px; font-weight: 600; color: var(--text-white);
    margin-bottom: 8px; letter-spacing: -0.01em;
}

.ct-secondary-block p {
    font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.45);
    margin-bottom: 14px;
}

.ct-secondary-link {
    font-size: 13px; font-weight: 500; color: var(--accent-blue);
    transition: opacity 0.2s;
}
.ct-secondary-link:hover { opacity: 0.8; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .ct-grid { grid-template-columns: 1fr; }
    .ct-sidebar { border-right: none; border-bottom: 1px solid var(--border-dark); }
    .ct-sidebar-inner { position: static; max-height: none; }
    .ct-content { padding: 40px 32px; }
    .ct-secondary { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ct-cards { grid-template-columns: 1fr; }
    .ct-content { padding: 32px 20px; }
    .ct-field-row { grid-template-columns: 1fr; }
    .ct-sidebar-inner { padding: 40px 24px; }
    .ct-sidebar-trust { flex-direction: column; gap: 16px; }
    .ct-trust-stat { border-right: none; border-bottom: 1px solid var(--border-dark); padding: 0 0 16px; text-align: left; }
    .ct-trust-stat:last-child { border-bottom: none; padding-bottom: 0; }
}
