/* OpenSalud – Estilo moderno (capa sobre el tema Creote). Todo va bajo body.os-estilo. */

@font-face { font-family: "OS Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "OS Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "OS Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "OS Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "OS Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "OS Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

body.os-estilo {
    --os-rojo: #eb393e;
    --os-rojo-osc: #c4202b;
    --os-coral: #ff6b5e;
    --os-azul: #1b2b44;
    --os-texto: #4a5568;
    --os-suave: #fff4f3;
    --os-gris: #f5f7fb;
    --os-sombra: 0 10px 30px rgba(27, 43, 68, .08);
    --os-sombra-hover: 0 18px 40px rgba(235, 57, 62, .18);
    --os-radio: 16px;
    --os-sans: "OS Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --os-titulos: "OS Poppins", "OS Inter", "Segoe UI", system-ui, Arial, sans-serif;
}

/* ---------- Tipografía: reemplaza la fuente rota «myri» (Use Any Font usa !important) ---------- */
html body.os-estilo,
html body.os-estilo :is(p, li, a, td, th, label, input, textarea, select, button, blockquote, strong, b, em, small, div, span):not(i):not([class*="fa-"]):not([class^="fa"]):not([class*=" fa"]):not([class*="icon"]):not([class*="flaticon"]):not([class*="dashicons"]) {
    font-family: var(--os-sans) !important;
}
html body.os-estilo :is(h1, h2, h3, h4, h5, h6, .nav-link, .theme-btn, .theme_btn, .entry-title, .widget-title) {
    font-family: var(--os-titulos) !important;
    letter-spacing: -.01em;
}
body.os-estilo { color: var(--os-texto); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.os-estilo .entry-content p { line-height: 1.75; font-size: 15.5px; }
body.os-estilo :is(h1, h2, h3) { color: var(--os-azul) !important; font-weight: 700 !important; line-height: 1.25 !important; }
body.os-estilo .entry-content :is(h1, h2) { font-size: clamp(26px, 3vw, 38px) !important; }
body.os-estilo .entry-content h3 { font-size: clamp(19px, 1.7vw, 22px) !important; }

/* Encabezados de sección: subtítulo rojo y una barra de acento bajo el título. */
body.os-estilo .title_sections h2,
body.os-estilo .entry-content .wpb_wrapper > h1 { position: relative; padding-bottom: 14px; }
body.os-estilo .title_sections h2::after,
body.os-estilo .entry-content .wpb_wrapper > h1::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--os-rojo), var(--os-coral));
}
body.os-estilo .title_sections[class*="center"] h2::after,
body.os-estilo [style*="text-align: center"] > h2::after { left: 50%; transform: translateX(-50%); }

/* ---------- Encabezado y menú ---------- */
body.os-estilo .navbar_outer,
body.os-estilo header.header .navbar_outer {
    background: linear-gradient(100deg, var(--os-rojo-osc) 0%, var(--os-rojo) 55%, var(--os-coral) 100%) !important;
    box-shadow: 0 8px 24px rgba(196, 32, 43, .25);
}
body.os-estilo .navbar_nav > li > a.nav-link { position: relative; font-weight: 600 !important; letter-spacing: .02em; transition: opacity .2s; }
body.os-estilo .navbar_nav > li > a.nav-link::after {
    content: ""; position: absolute; left: 50%; right: 50%; bottom: 18%; height: 2px; border-radius: 2px;
    background: #fff; transition: left .3s ease, right .3s ease;
}
body.os-estilo .navbar_nav > li:is(:hover, .active, .current-menu-item) > a.nav-link::after { left: 14px; right: 14px; }
body.os-estilo .header_right_content a {
    border-radius: 999px !important; background: #fff !important; color: var(--os-rojo-osc) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15); transition: transform .25s, box-shadow .25s;
}
body.os-estilo .header_right_content a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .2); }

/* ---------- Botones ---------- */
body.os-estilo :is(.theme-btn, .theme_btn, .vc_btn3, .wpcf7-submit, .entry-content a.button) {
    background: linear-gradient(100deg, var(--os-rojo-osc), var(--os-rojo) 60%, var(--os-coral)) !important;
    color: #fff !important; border: 0 !important; border-radius: 999px !important;
    padding-left: 30px !important; padding-right: 30px !important; font-weight: 600 !important; letter-spacing: .03em;
    box-shadow: 0 10px 22px rgba(235, 57, 62, .28);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s;
}
body.os-estilo :is(.theme-btn, .theme_btn, .vc_btn3, .wpcf7-submit, .entry-content a.button):hover {
    transform: translateY(-3px); box-shadow: 0 16px 30px rgba(235, 57, 62, .35); filter: saturate(1.1);
}

/* ---------- Tarjetas (las marca estilo.js: bloques con sombra del tema) ---------- */
body.os-estilo .os-card {
    border-radius: var(--os-radio) !important; overflow: hidden; background: #fff;
    box-shadow: var(--os-sombra) !important; border-top: 3px solid transparent;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
body.os-estilo .os-card:hover { transform: translateY(-8px); box-shadow: var(--os-sombra-hover) !important; border-top-color: var(--os-rojo); }
body.os-estilo .os-card img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
body.os-estilo .os-card:hover img { transform: scale(1.06); }

/* Imágenes de contenido con bordes suaves. */
body.os-estilo .entry-content :is(.image_boxes img, .wpb_single_image img, .vc_single_image-img) { border-radius: var(--os-radio); }

/* Íconos de las tarjetas: círculo de color y leve rebote. */
body.os-estilo .os-card :is(.icon, [class*="icon_box"], .icon_box) { transition: transform .4s; }
body.os-estilo .os-card:hover :is(.icon, [class*="icon_box"]) { transform: translateY(-4px) rotate(-4deg); }

/* Bloque «12 Años de Experiencia». */
body.os-estilo .year_of_experience { border-radius: var(--os-radio) !important; box-shadow: var(--os-sombra-hover) !important; }
body.os-estilo .entry-content .year_of_experience h2 { font-size: 17px !important; padding: 0 !important; }

/* «Nuestros Beneficios» sobre foto: capa más oscura y texto blanco legible (A-02). */
body.os-estilo .vc_row.vc_parallax .vc_parallax-inner::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(120deg, rgba(27, 43, 68, .80) 10%, rgba(196, 32, 43, .65));
}
body.os-estilo .vc_row.vc_parallax :is(h1, h2, h3, h4, p, div, span) { color: #fff !important; }
body.os-estilo .vc_row.vc_parallax h1::after { background: #fff; left: 50%; transform: translateX(-50%); }
body.os-estilo .vc_row.vc_parallax img.os-ico-blanco { filter: brightness(0) invert(1); transition: transform .4s; }
body.os-estilo .vc_row.vc_parallax .os-beneficio:hover img.os-ico-blanco { transform: translateY(-6px) scale(1.08); }

/* Textos del carrusel de portada (Slider Revolution 7 pone la fuente «myri» en línea). */
html body.os-estilo :is(sr7-txt, .sr7-layer, rs-layer, .rs-layer) {
    font-family: var(--os-titulos) !important; letter-spacing: -.01em !important; text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

/* ---------- Pie ---------- */
body.os-estilo .footer_area .vc_row { background: linear-gradient(120deg, #141b27, var(--os-azul)) !important; }
body.os-estilo .social_media_v_one a { transition: transform .25s, background .25s; }
body.os-estilo .social_media_v_one a:hover { transform: translateY(-3px); background: var(--os-rojo) !important; }

/* ---------- Animación al aparecer (la activa estilo.js) ---------- */
body.os-estilo .os-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
body.os-estilo .os-reveal.os-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    body.os-estilo *, body.os-estilo *::before, body.os-estilo *::after { transition: none !important; animation: none !important; }
    body.os-estilo .os-reveal { opacity: 1; transform: none; }
}
