:root {
    --azul: #1688c8;
    --azul-oscuro: #116b9e;
    --texto: #2d3032;
    --gris: #f4f6f7;
    --blanco: #ffffff;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    line-height: 1.6;
    background: #fff;
}

a {
    color: var(--azul);
}

img {
    max-width: 100%;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 12px 30px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e5e5e5;
}

.logo img {
    height: 66px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: var(--texto);
    text-decoration: none;
    font-weight: 600;
}

.nav a:hover {
    color: var(--azul);
}

.hero {
    padding: 90px 25px 80px;
    text-align: center;
    background: linear-gradient(180deg, #edf7fc, #fff);
}

.hero-inner {
    max-width: 900px;
    margin: auto;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    margin: 0 0 20px;
}

.hero p {
    font-size: 20px;
    max-width: 760px;
    margin: 0 auto 30px;
}

.button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    background: var(--azul);
    color: white;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.button:hover {
    background: var(--azul-oscuro);
}

.section {
    padding: 70px 25px;
}

.section-alt {
    background: var(--gris);
}

.container {
    max-width: var(--max);
    margin: auto;
}

.section-title {
    text-align: center;
    margin: 0 0 40px;
    font-size: clamp(28px, 4vw, 42px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.content {
    max-width: 900px;
    margin: auto;
    padding: 55px 25px 80px;
}

.content h1 {
    text-align: center;
    margin-bottom: 35px;
}

.content p {
    text-align: justify;
}

.form-box {
    max-width: 760px;
    margin: 35px auto 0;
    border: 1px solid rgba(0,0,0,.22);
    border-radius: 18px;
    padding: 28px;
    background: rgba(255,255,255,.95);
}

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

.form-field {
    margin-bottom: 18px;
}

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

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font: inherit;
}

textarea {
    min-height: 150px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.checkbox input {
    width: auto;
    margin-top: 5px;
}

.footer {
    background: #2d3032;
    color: white;
    padding: 45px 25px 30px;
}

.footer-grid {
    max-width: var(--max);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

.footer a {
    color: white;
}

.footer-bottom {
    max-width: var(--max);
    margin: 35px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: 13px;
    text-align: center;
}

.notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: #edf7fc;
}

@media (max-width: 800px) {
    .header {
        padding: 10px 16px;
    }

    .logo img {
        height: 38px;
    }

    .nav {
        gap: 10px;
        font-size: 14px;
    }

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

    .hero {
        padding-top: 65px;
    }
}

/* =========================================
   HOME SOLUMEDAD
   ========================================= */

.hero-home {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 25px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(0,0,0,.40), rgba(0,0,0,.48)),
        url('/wp-content/uploads/2023/06/solumedad-home1.jpg')
        center center / cover no-repeat;
}

.hero-home .hero-inner {
    max-width: 900px;
}

.hero-home h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.hero-home .lead {
    max-width: 750px;
    margin: 0 auto 30px;
    font-size: clamp(18px, 2.5vw, 23px);
}

.solution-card {
    overflow: hidden;
    padding: 0;
}

.solution-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.solution-card-body {
    padding: 25px 28px 30px;
}

.feature-card {
    text-align: center;
}

.feature-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 18px;
}

.home-cta {
    position: relative;
    padding: 100px 25px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
        url('/wp-content/uploads/2023/06/solumedad-home2.jpg')
        center center / cover no-repeat;
}

.home-cta .container {
    max-width: 850px;
}

.home-cta h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

@media (max-width: 800px) {
    .hero-home {
        min-height: 520px;
        padding: 70px 20px;
    }

    .solution-card img {
        height: 210px;
    }
}

/* Iconos de Cuidamos / Prevenimos / Reparamos */
.feature-card {
    background: var(--azul);
    color: #fff;
    border-color: var(--azul);
}

.feature-card h3 {
    color: #fff;
}

.feature-card p {
    color: #fff;
}

.feature-card img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin-bottom: 18px;
}

/* Campo antispam invisible */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Confirmación de formularios */
.notice-success {
    margin: 25px 0;
    padding: 18px 22px;
    border-left: 5px solid var(--azul);
    background: #f0f8fc;
    font-size: 1.05rem;
    line-height: 1.6;
}

.notice-success strong {
    font-size: 1.15rem;
}

/* ==========================================================
   Formularios de portada
   ========================================================== */

.home-form-section {
    padding: 75px 20px;
}

.home-form-secondary {
    background: #f4f5f6;
}

.home-form-inner {
    max-width: 900px;
    margin: 0 auto;
}

.home-form-heading {
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
}

.home-form-heading h2 {
    margin: 8px 0 12px;
}

.section-kicker {
    display: block;
    color: var(--azul);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .85rem;
}

.form-box {
    max-width: 850px;
    margin: 0 auto;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

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

.form-field label,
.form-label {
    font-weight: 600;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #d4d8dc;
    border-radius: 4px;
    background: #fff;
    font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid var(--azul);
    outline-offset: 1px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
}

.checkbox input {
    margin-top: 4px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
}

.form-submit {
    text-align: center;
    align-items: center;
}

@media (max-width: 700px) {

    .home-form-section {
        padding: 50px 18px;
    }

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

    .form-field.full {
        grid-column: auto;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Accesos directos a formularios desde la portada */
html {
    scroll-behavior: smooth;
}

#diagnostico,
#telefono {
    scroll-margin-top: 100px;
}

.hero-form-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-call-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-call-link:hover {
    text-decoration-thickness: 2px;
}

/* Cloudflare Turnstile */
.turnstile-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0 4px;
}

/* ==========================================================
   Páginas legales
   ========================================================== */

.legal-page {
    max-width: 1000px;
}

.legal-page h1 {
    margin-bottom: 8px;
}

.legal-page h2 {
    margin-top: 38px;
    margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
    line-height: 1.75;
}

.legal-page ul {
    margin: 15px 0 20px 22px;
}

.legal-update {
    margin-bottom: 35px;
    color: #666;
    font-size: .92rem;
}

.legal-page code {
    padding: 2px 6px;
    background: #f2f3f4;
    border-radius: 3px;
}
