/* V2 - Contacto
 * Página contacto (slug: contacto-tecnico-simulacion o legado contacto-v2).
 */

.v2-contacto {
    background: #0b0b0b;
    color: #fafafa;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.v2-contacto-hero {
    padding: 120px 24px 58px;
    background:
        linear-gradient(140deg, rgba(0, 0, 0, 0.86), rgba(9, 9, 9, 0.72)),
        radial-gradient(circle at 78% 20%, rgba(255, 110, 0, 0.2), rgba(0, 0, 0, 0) 44%);
}

.v2-contacto-hero__inner,
.v2-contacto-main__inner,
.v2-contacto-faq__inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.v2-contacto-kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #d6d6d6;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.v2-contacto-hero h1 {
    margin: 0 0 12px;
    max-width: 920px;
    color: #ffffff;
    font-size: clamp(2rem, 4.5vw, 3.7rem);
    line-height: 1.08;
}

.v2-contacto-lead {
    margin: 0;
    max-width: 760px;
    color: #e2e2e2;
}

.v2-contacto-main {
    padding: 62px 24px 40px;
    background: #101010;
}

.v2-contacto-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
}

.v2-panel {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.v2-panel h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.v2-panel p {
    margin: 0 0 14px;
    color: #d9d9d9;
}

.v2-contacto-list {
    margin: 0;
    padding-left: 18px;
    color: #cecece;
}

.v2-contacto-list li + li {
    margin-top: 5px;
}

.v2-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.v2-form-group {
    margin-bottom: 12px;
}

.v2-form-legend {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #b8b8b8;
}

.v2-required-mark {
    color: #ff8f4a;
    font-weight: 700;
    text-decoration: none;
    cursor: help;
    margin: 0 1px;
}

.v2-optional-hint {
    font-weight: 400;
    color: #8a8a8a;
    font-size: 0.82em;
}

.v2-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #f1f1f1;
    font-weight: 600;
    font-size: 0.95rem;
}

.v2-form-group input,
.v2-form-group select,
.v2-form-group textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #f6f6f6;
    border-radius: 10px;
    padding: 11px 12px;
    box-sizing: border-box;
}

/* Sector: con v2-sector-select.js el listado deja de ser popup del SO → opciones estilables. */
.v2-contacto-form select#v2-sector {
    color-scheme: dark;
    background-color: rgba(20, 20, 20, 0.95);
    color: #f2f2f2;
    cursor: pointer;
}

.v2-contacto-form select#v2-sector.v2-sector-select--open {
    border-radius: 10px;
    max-height: min(240px, 45vh);
    overflow-y: auto;
}

.v2-contacto-form select#v2-sector option {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 0.55em 0.65em;
}

.v2-form-group input:focus,
.v2-form-group select:focus,
.v2-form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 110, 0, 0.75);
    box-shadow: 0 0 0 2px rgba(255, 110, 0, 0.25);
}

.v2-form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.v2-form-group--checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.v2-required-mark--checkbox {
    margin-top: 2px;
    flex-shrink: 0;
}

.v2-checkbox-label-text {
    flex: 1;
    min-width: 0;
}

.v2-form-group--checkbox input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    margin: 3px 0 0;
    flex-shrink: 0;
    accent-color: #ff6e00;
    cursor: pointer;
}

.v2-form-group--checkbox .v2-checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cfcfcf;
    cursor: pointer;
    font-weight: 400;
}

.v2-inline-link {
    color: #ff9a4d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.v2-inline-link:hover,
.v2-inline-link:focus {
    color: #ffc48a;
}

.v2-note {
    margin: 6px 0 0;
    color: #bcbcbc;
    font-size: 0.88rem;
}

/* Honeypot: oculto visualmente, fuera del flujo de lectura */
.v2-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
}

.v2-contacto-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.v2-contacto-notice p {
    margin: 0;
}

.v2-contacto-notice--ok {
    border: 1px solid rgba(80, 200, 120, 0.45);
    background: rgba(80, 200, 120, 0.12);
    color: #d8f0df;
}

.v2-contacto-notice--error {
    border: 1px solid rgba(255, 100, 100, 0.45);
    background: rgba(255, 100, 100, 0.1);
    color: #ffd6d6;
}

.v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none !important;
    border: 0;
    cursor: pointer;
}

.v2-btn--primary {
    background: #ff6e00;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(255, 110, 0, 0.35);
}

.v2-contacto-faq {
    padding: 56px 24px 86px;
    background: #0b0b0b;
}

.v2-contacto-faq h2 {
    margin: 0 0 16px;
    color: #ffffff;
}

.v2-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.v2-faq-item {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.v2-faq-item strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.v2-faq-item span {
    color: #d0d0d0;
}

@media (max-width: 980px) {
    .v2-contacto-grid {
        grid-template-columns: 1fr;
    }

    .v2-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .entry-content .v2-contacto,
    .entry-content .v2-contacto-hero,
    .entry-content .v2-contacto-main,
    .entry-content .v2-contacto-faq {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .entry-content .v2-contacto h1,
    .entry-content .v2-contacto h2,
    .entry-content .v2-contacto h3,
    .entry-content .v2-contacto p,
    .entry-content .v2-contacto li,
    .entry-content .v2-contacto label,
    .entry-content .v2-contacto .v2-checkbox-label {
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none;
    }

    .v2-contacto-hero {
        padding: 100px 20px 54px;
    }

    .v2-contacto-main {
        padding: 54px 20px 36px;
    }

    .v2-contacto-faq {
        padding: 44px 20px 66px;
    }

    .v2-form-row {
        grid-template-columns: 1fr;
    }
}
