@font-face {
    font-family: "Clash Display";
    src: url("../fonts/ClashDisplay-Variable.ttf") format("truetype");
    font-weight: 200 700;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #F7F8FA;
    color: #1B263C;
    font-family: Arial, sans-serif;
}

.ov-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ov-header {
    background: #fff;
    border-bottom: 1px solid #E5E9EF;
}

.ov-header .ov-container {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ov-logo {
    width: 210px;
}

.ov-logo img {
    display: block;
    width: 100%;
}

.ov-hero {
    padding: 80px 0;
}

.ov-kicker {
    color: #E42323;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

h1, h2 {
    font-family: "Clash Display", Arial, sans-serif;
}

h1 {
    max-width: 800px;
    margin: 16px 0 20px;
    font-size: clamp(45px, 6vw, 76px);
    line-height: 1;
}

.ov-intro {
    max-width: 700px;
    color: #687386;
    font-size: 18px;
}

.ov-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 55px;
}

.ov-card {
    min-height: 320px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E5E9EF;
    border-radius: 20px;
    color: #1B263C;
    text-decoration: none;
}

.ov-card > span {
    color: #E42323;
}

.ov-card h2 {
    margin-top: 35px;
    font-size: 28px;
}

.ov-card p {
    color: #687386;
}

.ov-card strong {
    margin-top: auto;
}

.ov-notice {
    margin-top: 25px;
    padding: 20px;
    background: #1B263C;
    color: #fff;
    border-radius: 15px;
}

.ov-footer {
    padding: 25px 0;
    background: #fff;
    border-top: 1px solid #E5E9EF;
}

.ov-footer .ov-container {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 800px) {
    .ov-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PAGINAS DE FORMULARIOS
   ========================= */

.ov-page {
    padding: 60px 0 90px;
}

.ov-page-container {
    max-width: 880px;
}

.ov-back {
    display: inline-flex;
    margin-bottom: 25px;
    color: #425A77;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ov-back:hover {
    color: #E42323;
}

.ov-page-card {
    padding: 48px;
    background: #FFFFFF;
    border: 1px solid #E5E9EF;
    border-radius: 22px;
}

.ov-page-card > h1 {
    margin: 0 0 42px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1;
    color: #1B263C;
}

/* FORMULARIO */

.ov-page-content label {
    display: block;
    color: #1B263C;
    font-size: 14px;
    font-weight: 600;
}

.ov-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 14px 15px;
    border: 1px solid #DDE2E8;
    border-radius: 10px;
    background: #FFFFFF;
    color: #1B263C;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wpcf7-form select {
    min-height: 52px;
}

.wpcf7-form textarea {
    min-height: 170px;
    resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #659ABA;
    box-shadow: 0 0 0 3px rgba(101,154,186,.14);
}

.ov-priority {
    margin: 25px 0;
    padding: 20px;
    border: 1px solid #E5E9EF;
    border-radius: 14px;
    background: #F7F8FA;
}

.ov-priority legend {
    padding: 0 7px;
    color: #1B263C;
    font-weight: 700;
}

.ov-priority .wpcf7-list-item {
    margin: 0 22px 0 0;
}

.ov-priority small {
    display: block;
    margin-top: 12px;
    color: #687386;
    font-size: 12px;
    line-height: 1.5;
}

.wpcf7-form input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px dashed #CBD3DD;
    border-radius: 10px;
    background: #F7F8FA;
}

.ov-file-help {
    margin: 8px 0 24px;
    color: #687386;
    font-size: 12px;
}

.wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.wpcf7-acceptance a {
    color: #425A77;
}

.wpcf7-form input[type="submit"] {
    margin-top: 30px;
    padding: 15px 28px;
    border: 0;
    border-radius: 10px;
    background: #1B263C;
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: #E42323;
    transform: translateY(-1px);
}

.wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #E42323;
    font-size: 12px;
}

.wpcf7 form .wpcf7-response-output {
    margin: 25px 0 0;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
}

/* MOVIL */

@media (max-width: 700px) {
    .ov-page {
        padding: 35px 0 60px;
    }

    .ov-page-card {
        padding: 27px 21px;
        border-radius: 17px;
    }

    .ov-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }
}

/* =========================
   PESOS TIPOGRAFICOS
   Online Valles
   ========================= */

body,
p,
a,
span,
label,
small,
input,
select,
textarea,
button,
.ov-kicker,
.ov-back,
.ov-card strong,
.ov-priority legend,
.ov-header span,
.ov-footer span {
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.ov-card h2,
.ov-page-card > h1 {
    font-weight: 600;
}

/* =========================
   AJUSTES VISUALES FINALES
   ========================= */

body {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 400;
    color: #1B263C;
    background:
        radial-gradient(circle at top left, rgba(101,154,186,.08), transparent 30%),
        linear-gradient(180deg, #F8FAFC 0%, #F4F6F9 100%);
}

p,
a,
span,
label,
small,
input,
select,
textarea,
button {
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.ov-card h2,
.ov-page-card > h1 {
    font-family: "Clash Display", "Montserrat", sans-serif;
    font-weight: 600;
}

/* Header */
.ov-header {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(27,38,60,.05);
}

/* Hero */
.ov-hero {
    padding: 90px 0 85px;
}

.ov-intro {
    max-width: 760px;
    color: #5F6E82;
    font-size: 18px;
    line-height: 1.75;
}

/* Cards home */
.ov-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(27,38,60,.08);
    box-shadow: 0 14px 40px rgba(27,38,60,.06);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.ov-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1B263C 0%, #659ABA 50%, #E42323 100%);
    opacity: .9;
}

.ov-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 60px rgba(27,38,60,.12);
    border-color: rgba(101,154,186,.35);
}

.ov-card p {
    line-height: 1.75;
}

.ov-notice,
.ov-response-box {
    box-shadow: 0 18px 45px rgba(27,38,60,.18);
}

/* Página interna */
.ov-page-card {
    border: 1px solid rgba(27,38,60,.08);
    box-shadow: 0 18px 48px rgba(27,38,60,.08);
}

/* Formulario */
.ov-page-content label {
    letter-spacing: -.01em;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    background: #FCFDFE;
    border: 1px solid #D8E0E8;
    box-shadow: inset 0 1px 2px rgba(27,38,60,.03);
}

.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form input[type="url"]:hover,
.wpcf7-form input[type="tel"]:hover,
.wpcf7-form select:hover,
.wpcf7-form textarea:hover {
    border-color: #B9C8D8;
}

.wpcf7-form textarea {
    min-height: 120px;
    height: 120px;
    line-height: 1.6;
    resize: vertical;
}

.ov-priority {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.wpcf7-form input[type="file"] {
    min-height: 54px;
}

.wpcf7-form input[type="submit"] {
    box-shadow: 0 14px 30px rgba(27,38,60,.16);
}

.wpcf7-form input[type="submit"]:hover {
    box-shadow: 0 18px 36px rgba(228,35,35,.22);
}

.wpcf7 form .wpcf7-response-output {
    border: 1px solid rgba(27,38,60,.08);
    background: #F8FAFC;
}

@media (max-width: 700px) {
    .ov-hero {
        padding: 58px 0 55px;
    }

    .ov-intro {
        font-size: 16px;
        line-height: 1.65;
    }

    .wpcf7-form textarea {
        min-height: 110px;
        height: 110px;
    }
}

/* Microinteracciones premium */

.ov-card strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ov-card strong {
    transition: transform .22s ease;
}

.ov-card:hover strong {
    transform: translateX(4px);
}

@keyframes ovCardEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ov-card {
    opacity: 0;
    animation: ovCardEnter .55s ease forwards;
}

.ov-card:nth-child(1) {
    animation-delay: .05s;
}

.ov-card:nth-child(2) {
    animation-delay: .12s;
}

.ov-card:nth-child(3) {
    animation-delay: .19s;
}

@media (prefers-reduced-motion: reduce) {
    .ov-card {
        opacity: 1;
        animation: none;
    }

    .ov-card,
    .ov-card strong {
        transition: none;
    }
}

/* Ultimos detalles formularios */

/* Boton de seleccionar archivo */
.wpcf7-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 13px;
    border: 0;
    border-radius: 7px;
    background: #1B263C;
    color: #FFFFFF;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: background .2s ease;
}

.wpcf7-form input[type="file"]::file-selector-button:hover {
    background: #E42323;
}

/* Movimiento sutil del boton */
.wpcf7-form input[type="submit"] {
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
}

/* Checkbox ligeramente mas limpio */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    accent-color: #1B263C;
}

.ov-form-full {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .ov-form-full {
        grid-column: auto;
    }
}
