/* Contáctanos Page - Specific Styles from helin-components-new.css */

/* Header */
.policies-header {
    text-align: center;
    margin: 20px 0 28px;
}

/* Page Title */
.page-title {
    text-align: center;
    margin: 0 0 70px;
    color: var(--text-dark);
    font-size: var(--text-8xl-lg);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 700;
    position: relative;
}

.page-title:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    width: 76px;
    height: 4px;
    border-radius: 9999px;
    background: var(--helin-primary);
}

/* Contact Layout */
.contact-layout {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 58px;
    align-items: start;
}

/* Info Block */
.info-block {
    padding-top: 42px;
}

.info-block h2 {
    margin: 0 0 18px;
    color: var(--text-darker);
    font-size: var(--text-5xl-lg);
    line-height: 1.05;
    letter-spacing: 0;
}

.info-block p {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.65;
    max-width: 440px;
}

.info-list {
    display: grid;
    gap: 22px;
    margin-bottom: 26px;
}

.info-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    align-items: start;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--helin-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-22px);
    box-shadow: 0 8px 22px rgba(16, 45, 68, 0.055);
}

.info-item h3 {
    margin: 0 0 5px;
    color: var(--text-dark);
    font-size: var(--text-base);
    font-weight: 900;
}

.info-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.55;
}

/* Sedes */
.sedes {
    border-top: 1px solid var(--border-light);
    padding-top: 18px;
    max-width: 440px;
}

.sedes h3 {
    margin: 0 0 14px;
    color: var(--text-dark);
    font-size: calc(var(--text-base) * 0.92);
    font-weight: 900;
}

.sede-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sede-main-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px 14px;
    background: rgba(15, 47, 67, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: calc(var(--text-base) * 0.85);
    font-weight: 600;
    line-height: 1.5;
}

.sede-main-address img {
    margin-top: 2px;
    flex-shrink: 0;
}

.sede-pill {
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-slate);
    font-size: calc(var(--text-sm) * 0.88);
    font-weight: 700;
}

.sede-pill span {
    color: var(--helin-primary);
    font-size: var(--text-16px);
}

/* Form Card */
.form-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(16, 45, 68, 0.08);
    padding: 34px 34px 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
}

.field-full {
    grid-column: 1 / -1;
}

/* Form Elements */
label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-slate-dark);
    font-weight: 700;
    margin-bottom: 9px;
}

label span {
    color: var(--helin-primary);
}

.form-card input, .form-card select, .form-card textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-slate-darker);
    outline: 0;
    transition: 0.2s;
}

.form-card input, .form-card select {
    height: 45px;
    padding: 0 14px;
    font-size: var(--text-sm);
}

.form-card select {
    padding-right: 30px;
}

.form-card .select-wrapper {
    position: relative;
}

.form-card .select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
    width: 100%;
}

.form-card .select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-slate-light);
    display: flex;
    align-items: center;
}

.form-card textarea {
    min-height: 98px;
    padding: 14px;
    resize: vertical;
    line-height: 1.5;
    font-size: var(--text-sm);
}

.form-card input::placeholder, .form-card textarea::placeholder {
    color: var(--text-slate-light);
    font-size: var(--text-sm);
}

.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    border-color: var(--helin-primary);
    box-shadow: 0 0 0 3px rgba(107, 194, 195, 0.10);
}

/* Captcha */
.captcha {
    height: 62px;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    margin-top: 0;
}

.captcha-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark-black);
    font-size: var(--text-sm);
    font-weight: 700;
}

.captcha-left input {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-dark);
    background: var(--white);
    margin: 0;
}

.captcha-right {
    text-align: center;
    color: var(--text-medium-gray);
    font-size: var(--text-9px);
    line-height: 1.2;
}

.captcha-logo {
    width: 28px;
    height: 28px;
    margin: 0 auto 2px;
    background: var(--helin-primary);
    clip-path: polygon(50% 0, 100% 45%, 82% 100%, 18% 100%, 0 45%);
}

/* Submit Button */
.submit {
    grid-column: 1 / -1;
    height: 50px;
    border: 0;
    border-radius: 9999px;
    background: var(--helin-primary);
    color: var(--white);
    font-size: var(--text-base);
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 14px 28px rgba(107, 194, 195, 0.22);
}

/* Privacy Checkbox */
.privacy-check {
    margin-top: 4px;
}

.privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--text-xs);
    color: var(--text-slate);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 0;
}

.privacy-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
    accent-color: var(--helin-primary);
    cursor: pointer;
}

.privacy-label a {
    color: var(--helin-primary);
    text-decoration: underline;
    font-weight: 700;
}

.privacy-label a:hover {
    text-decoration: none;
}

.privacy-label input[type="checkbox"].field-error {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* Secure Message */
.secure {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-gray-blue);
    font-size: calc(var(--text-sm) * 0.9);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: -4px;
}

.secure-icon {
    font-size: 0.81em;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 1120px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .info-block {
        padding-top: 0;
    }
}

@media (max-width: 720px) {
    .policies-header {
        margin: 8px 0 12px;
    }

    .page-title {
        font-size: 2.5rem;
        margin-bottom: 36px;
    }

    .page-title:after {
        bottom: -16px;
        width: 60px;
        height: 3px;
    }

    .contact-layout {
        gap: 24px;
    }

    /* ── Contacto Mobile: encabezado ── */
    .info-block h2 {
        font-size: 1.375rem;
        text-align: center;
        margin-bottom: 29px;
    }

    .info-block > p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
        font-size: 14px;
    }

    /* ── Contacto Mobile: bloques de info ── */
    .info-list {
        gap: 0;
        margin-bottom: 0;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 20px 0;
        border: none;
        border-bottom: 1px solid #DDE5E7;
    }

    .info-item:first-child {
        padding-top: 0;
    }

    .info-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .info-item > div:last-child {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .info-item h3 {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .info-item p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* ── Contacto Mobile: sedes ── */
    .sedes {
        padding-top: 22px;
        margin-top: 0;
        max-width: 100%;
        border-top: none;
    }

    .form-card {
        padding: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full,
    .submit,
    .secure {
        grid-column: auto;
    }
}

/* ── Contact form validation states ─────────────────────────── */
.form-grid input.field-error,
.form-grid select.field-error,
.form-grid textarea.field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
    outline: none;
}

.field-hint {
    display: block;
    font-size: 11px;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 500;
}
