/* ==========================================================================
   CONTACTO — landing de captación Clínica Ibiza dev
   El hero usa .hero-servicio (heredado de transicion.css). Aquí solo se
   estilan las secciones del cuerpo, formulario, sidebar, mapa y CTAs.
   Paleta: navy (--accent #1D3250) del theme.
   ========================================================================== */

/* Hero — CTAs extra debajo del subtítulo */
.ct-hero-ctas {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 12px; margin-top: 24px;
}
.ct-hero-ctas .btn { padding: 14px 28px; }

/* ==========================================================================
   1. TRUST BAR (caras del equipo + 3 stats)
   ========================================================================== */
.ct-trust-bar {
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 24px 0;
}
.ct-trust-bar__inner {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; flex-wrap: wrap;
}
.ct-trust-bar__faces { display: flex; align-items: center; }
.ct-trust-bar__face {
    width: 56px; height: 56px; border-radius: 50%;
    border: 3px solid var(--white); object-fit: cover;
    margin-left: -16px; box-shadow: 0 2px 8px rgba(12,27,42,0.1);
}
.ct-trust-bar__face:first-child { margin-left: 0; }
.ct-trust-bar__stats {
    display: flex; gap: 32px; flex-wrap: wrap;
}
.ct-trust-bar__stat {
    text-align: center; line-height: 1.3;
}
.ct-trust-bar__stat strong {
    display: block; font-size: 17px; font-weight: 800; color: var(--accent);
}
.ct-trust-bar__stat span {
    font-size: 12px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   2. BENEFITS (4 cards)
   ========================================================================== */
.ct-benefits { padding: 80px 0; }
.ct-benefits__title {
    text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800; color: var(--text-primary); margin: 0 0 8px;
}
.ct-benefits__subtitle {
    text-align: center; font-size: 15px; color: var(--text-muted);
    max-width: 560px; margin: 0 auto 48px; line-height: 1.6;
}
.ct-benefits__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; max-width: 1100px; margin: 0 auto;
}
.ct-benefit {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 22px;
    text-align: center; transition: var(--transition);
}
.ct-benefit:hover {
    transform: translateY(-4px); border-color: var(--accent-20);
    box-shadow: 0 8px 32px rgba(12,27,42,0.06);
}
.ct-benefit__icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent-light); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.ct-benefit h3 {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
    margin: 0 0 8px;
}
.ct-benefit p {
    font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0;
}
@media (max-width: 992px) { .ct-benefits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ct-benefits__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   3. FORM + SIDEBAR
   ========================================================================== */
.ct-form-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-soft) 100%);
    border-top: 1px solid var(--accent-10);
    border-bottom: 1px solid var(--accent-10);
}
.ct-form-layout {
    display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 40px; max-width: 1180px; margin: 0 auto; align-items: start;
}

.ct-form-wrapper {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 40px; box-shadow: 0 8px 30px rgba(12,27,42,0.08);
}
.ct-form-header { margin-bottom: 24px; }
.ct-form-header__badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); background: var(--accent-light);
    padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
}
.ct-form-header__title {
    font-size: 26px; font-weight: 800; color: var(--text-primary);
    margin: 0 0 8px; line-height: 1.2;
}
.ct-form-header__subtitle { font-size: 14px; color: var(--text-muted); margin: 0; }

.ct-form__group { margin-bottom: 16px; }
.ct-form__row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.ct-form__group--half { margin-bottom: 0; }
.ct-form__label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-primary); margin-bottom: 8px;
}

/* Inputs */
.ct-form__input {
    width: 100%; padding: 13px 16px;
    border: 1.5px solid var(--border); border-radius: 12px;
    font-size: 15px; font-family: var(--font);
    color: var(--text-primary); background: var(--bg-soft);
    transition: all 0.25s ease; box-sizing: border-box;
}
.ct-form__input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-10);
}
.ct-form__input::placeholder { color: var(--text-muted); }
.ct-form__textarea { resize: vertical; min-height: 80px; }

/* Motivo chips (5 opciones en una fila) */
.ct-motivo-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.ct-motivo-option { cursor: pointer; }
.ct-motivo-option input[type="radio"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.ct-motivo-option__card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 14px 8px; border: 1.5px solid var(--border);
    border-radius: 10px; background: var(--white);
    transition: all 0.25s ease; color: var(--text-secondary);
    font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2;
    min-height: 76px; justify-content: center;
}
.ct-motivo-option__card svg { width: 22px; height: 22px; color: var(--accent); opacity: 0.7; }
.ct-motivo-option:hover .ct-motivo-option__card {
    border-color: var(--border-hover); background: var(--bg-soft);
}
.ct-motivo-option.is-selected .ct-motivo-option__card,
.ct-motivo-option input:checked + .ct-motivo-option__card {
    border-color: var(--accent); background: var(--accent-light);
    color: var(--accent);
}
.ct-motivo-option.is-selected .ct-motivo-option__card svg,
.ct-motivo-option input:checked + .ct-motivo-option__card svg {
    opacity: 1;
}

@media (max-width: 768px) { .ct-motivo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .ct-motivo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Radios horizontales (sexo) */
.ct-radio-row { display: flex; gap: 8px; }
.ct-radio {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 11px 8px; border: 1.5px solid var(--border);
    border-radius: 10px; cursor: pointer; font-size: 14px;
    color: var(--text-secondary); background: var(--white);
    transition: all 0.2s; font-weight: 500;
}
.ct-radio:hover { border-color: var(--border-hover); background: var(--bg-soft); }
.ct-radio input { position: absolute; opacity: 0; pointer-events: none; }
.ct-radio:has(:checked) {
    border-color: var(--accent); background: var(--accent-light);
    color: var(--accent); font-weight: 600;
}

/* Toggle contacto (WhatsApp / Teléfono) */
.ct-toggle-row { display: flex; gap: 8px; }
.ct-toggle-btn {
    flex: 1; cursor: pointer; position: relative;
}
.ct-toggle-btn input { position: absolute; opacity: 0; pointer-events: none; }
.ct-toggle-btn__label {
    display: flex; align-items: center; justify-content: center;
    padding: 11px 8px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 14px; color: var(--text-secondary); background: var(--white);
    transition: all 0.2s; font-weight: 500;
}
.ct-toggle-btn:hover .ct-toggle-btn__label { border-color: var(--border-hover); background: var(--bg-soft); }
.ct-toggle-btn input:checked + .ct-toggle-btn__label {
    border-color: var(--accent); background: var(--accent-light);
    color: var(--accent); font-weight: 600;
}

/* Privacidad */
.ct-form__privacy { font-size: 13px; }
.ct-checkbox {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; color: var(--text-secondary); line-height: 1.5;
}
.ct-checkbox input { margin-top: 2px; accent-color: var(--accent); }
.ct-checkbox a { color: var(--accent); text-decoration: underline; }

/* Submit */
.ct-form__submit {
    width: 100%; padding: 16px 24px;
    background: var(--accent); color: var(--white);
    border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; font-family: var(--font);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 8px; transition: all 0.25s; margin-top: 8px;
    box-shadow: 0 6px 24px rgba(29,50,80,0.25);
}
.ct-form__submit:hover:not(:disabled) {
    background: var(--accent-hover); transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(29,50,80,0.35);
}
.ct-form__submit:disabled { opacity: 0.7; cursor: wait; }
.ct-form__submit svg { width: 18px; height: 18px; }

/* Feedback */
.ct-form__feedback {
    margin-top: 16px; padding: 0; font-size: 14px; line-height: 1.5;
    min-height: 0; transition: all 0.3s;
}
.ct-form__feedback--ok {
    padding: 12px 16px; background: var(--accent-light);
    border-left: 3px solid var(--accent); border-radius: 8px;
    color: var(--accent);
}
.ct-form__feedback--err {
    padding: 12px 16px; background: #FEF2F2;
    border-left: 3px solid #EF4444; border-radius: 8px; color: #B91C1C;
}

/* ==========================================================================
   3b. SIDEBAR
   ========================================================================== */
.ct-sidebar {
    display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px;
}
.ct-sidebar__card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
}
.ct-sidebar__card-title {
    font-size: 14px; font-weight: 700; color: var(--text-primary);
    margin: 0 0 14px;
}
.ct-sidebar__action {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: 10px; text-decoration: none;
    color: var(--text-primary); transition: background 0.2s; margin-bottom: 8px;
}
.ct-sidebar__action:hover { background: var(--bg-soft); }
.ct-sidebar__action:last-child { margin-bottom: 0; }
.ct-sidebar__action svg {
    width: 22px; height: 22px; flex-shrink: 0;
    padding: 8px; border-radius: 50%; box-sizing: content-box;
}
.ct-sidebar__action--phone svg { color: var(--accent); background: var(--accent-light); }
.ct-sidebar__action--wa svg { color: #25D366; background: rgba(37,211,102,0.1); }
.ct-sidebar__action strong { display: block; font-size: 14px; font-weight: 700; }
.ct-sidebar__action span { font-size: 12px; color: var(--text-muted); }

.ct-sidebar__card--proof { background: var(--accent-light); border-color: var(--accent-20); }
.ct-sidebar__stars {
    color: #FBBF24; font-size: 14px; letter-spacing: 1px;
    margin-bottom: 8px;
}
.ct-sidebar__stars strong { color: var(--text-primary); margin-left: 4px; font-size: 13px; }
.ct-sidebar__review {
    font-size: 13.5px; color: var(--text-secondary); line-height: 1.5;
    font-style: italic; margin: 0 0 8px;
}
.ct-sidebar__reviewer { font-size: 11px; color: var(--text-muted); }

.ct-sidebar__checklist {
    list-style: none; padding: 0; margin: 0;
}
.ct-sidebar__checklist li {
    display: flex; align-items: center; gap: 8px; padding: 6px 0;
    font-size: 13.5px; color: var(--text-secondary);
}
.ct-sidebar__checklist svg { color: var(--accent); flex-shrink: 0; width: 16px; height: 16px; }

.ct-sidebar__card--schedule {
    display: flex; align-items: center; gap: 12px;
}
.ct-sidebar__card--schedule svg {
    color: var(--accent); width: 28px; height: 28px; flex-shrink: 0;
}
.ct-sidebar__card--schedule strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.ct-sidebar__card--schedule span { font-size: 12px; color: var(--text-muted); }

@media (max-width: 992px) {
    .ct-form-layout { grid-template-columns: 1fr; }
    .ct-sidebar { position: static; }
}
@media (max-width: 600px) {
    .ct-form-wrapper { padding: 24px 20px; }
    .ct-form__row { grid-template-columns: 1fr; gap: 0; }
    .ct-form__group--half { margin-bottom: 16px; }
}

/* ==========================================================================
   4. LOCATION / MAP
   ========================================================================== */
.ct-location-section { padding: 80px 0; background: var(--white); }
.ct-location__heading {
    text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800; color: var(--text-primary); margin: 0 0 8px;
}
.ct-location__subheading {
    text-align: center; font-size: 15px; color: var(--text-muted);
    max-width: 560px; margin: 0 auto 40px; line-height: 1.6;
}
.ct-location-grid {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px;
    max-width: 1080px; margin: 0 auto;
}
.ct-map {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); height: 460px;
    box-shadow: 0 4px 16px rgba(12,27,42,0.06);
}
.ct-map iframe { width: 100%; height: 100%; display: block; }

.ct-info {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.ct-info__name { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
.ct-info__address { font-size: 14px; color: var(--text-secondary); margin: 0; }
.ct-info__divider { height: 1px; background: var(--border); margin: 18px 0; }
.ct-info__item {
    display: flex; gap: 10px; align-items: flex-start;
    margin-bottom: 12px; font-size: 13.5px;
}
.ct-info__item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }
.ct-info__item strong { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 2px; }
.ct-info__item span, .ct-info__item a {
    color: var(--text-primary); text-decoration: none;
}
.ct-info__item a:hover { color: var(--accent); }

.ct-transport { margin-bottom: 12px; }
.ct-transport__label {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 700; margin-bottom: 8px;
}
.ct-transport__label svg { color: var(--accent); }
.ct-metro-lines { display: flex; flex-direction: column; gap: 8px; }
.ct-metro-badge {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-primary);
}
.ct-metro-badge__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: 12px; font-weight: 800; color: white;
}
.ct-metro--l9 .ct-metro-badge__num { background: #b3287d; }
.ct-metro--l6 .ct-metro-badge__num { background: #888; }
.ct-metro--l9-num { background: #b3287d !important; margin-left: -4px; }
.ct-metro-badge__walk {
    margin-left: auto; font-size: 11px; color: var(--text-muted);
}

.ct-info__parking {
    font-size: 12.5px; color: var(--text-muted); margin: 8px 0 0;
    display: flex; align-items: center; gap: 6px;
}
.ct-info__parking svg { color: var(--accent); flex-shrink: 0; }

.ct-info__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-info__actions .btn { flex: 1; min-width: 130px; }
.ct-info__actions svg { width: 16px; height: 16px; }

@media (max-width: 992px) {
    .ct-location-grid { grid-template-columns: 1fr; }
    .ct-map { height: 320px; }
}

/* ==========================================================================
   5. CTA FINAL
   ========================================================================== */
.ct-cta-final {
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 50%, var(--accent-hover) 100%);
    padding: 80px 0; text-align: center;
}
.ct-cta-final h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800;
    color: var(--white); margin: 0 0 12px;
}
.ct-cta-final p {
    font-size: 15px; color: rgba(255,255,255,0.75);
    max-width: 580px; margin: 0 auto 32px; line-height: 1.6;
}
.ct-cta-final__actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.ct-cta-final .btn-primary {
    background: var(--white); color: var(--accent);
    border: 2px solid var(--white);
}
.ct-cta-final .btn-primary:hover {
    background: var(--bg-light); transform: translateY(-2px);
}
.ct-cta-final .btn-outline {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.ct-cta-final .btn-outline:hover {
    border-color: var(--white); background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
    .ct-cta-final__actions { flex-direction: column; }
    .ct-cta-final__actions .btn { width: 100%; }
}

/* ==========================================================================
   Botones (utilidades comunes — alineadas con el theme)
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 24px; border-radius: 50px;
    font-size: 14px; font-weight: 600; font-family: var(--font);
    text-decoration: none; cursor: pointer; transition: all 0.25s;
    border: 1.5px solid transparent;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary {
    background: var(--accent); color: var(--white); border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover); border-color: var(--accent-hover);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,50,80,0.3);
}
.btn-outline {
    background: transparent; color: var(--text-primary); border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--accent); color: var(--accent); background: var(--bg-soft);
}
.ct-btn-phone svg, .ct-btn-whatsapp svg { width: 16px; height: 16px; }
.ct-btn-whatsapp svg { fill: #25D366; }
