/* =====================================================================
   refresh.css — Capa de tema no invasiva (2025) para Pathsline
   Se carga DESPUÉS de los CSS originales y los sobrescribe sin tocar
   la estructura HTML ni los plugins. Quitar el <link> revierte todo.
   Marca: rojo #f10202 conservado.
   ===================================================================== */

:root {
    --brand: #f10202;
    --brand-dark: #c40000;
    --brand-soft: rgba(241, 2, 2, .08);

    --ink: #2b3245;          /* títulos */
    --text: #4a5468;         /* cuerpo */
    --muted: #8a93a6;        /* secundario */

    --bg: #ffffff;
    --bg-soft: #f7f8fa;      /* secciones suaves */
    --bg-softer: #fbfbfd;
    --border: #e8eaf0;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(20, 28, 48, .06);
    --shadow: 0 10px 30px rgba(20, 28, 48, .08);
    --shadow-lg: 0 18px 50px rgba(20, 28, 48, .12);

    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-head: 'Poppins', var(--font-body);

    --transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------ Base ------------------------------
   Tipografía suave: solo cambia la familia y mejora un poco el
   interlineado. NO se reescriben colores ni tamaños de cada heading
   (los maneja el CSS original) para no alterar el texto del sitio. */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
}

a:hover, a:focus { text-decoration: none; }

img { max-width: 100%; }

/* CAUSA RAÍZ de los textos rotos: mixitup.min.css trae una regla global
   `p { width: 500px }` que fija el ancho de TODOS los párrafos (los hace
   desbordar columnas angostas y ocupar media pantalla en las anchas).
   refresh.css carga después, así que esto lo neutraliza en todo el sitio. */
p { width: auto; }

/* Encabezados de sección centrados con acento (solo feature-head) */
.feature-head h1,
.gray-box .feature-head h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.feature-head h1::after,
.gray-box .feature-head h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--brand);
}

/* ------------------------------ Navbar ------------------------------ */
.head-section {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.head-section .navbar { min-height: 72px; }
.head-section .navbar-nav > li { padding-top: 22px; padding-bottom: 22px; }
.navbar-brand { margin-top: 8px; }
.navbar-brand > img { width: 230px; max-width: 60vw; }

.head-section .nav li a {
    font-family: var(--font-head);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}
.head-section .navbar-nav > li > a { padding: 8px 14px; }

/* Subrayado animado de marca (en lugar de fondo rojo macizo) */
.head-section .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.head-section .nav li a:hover,
.head-section .nav li a:focus,
.head-section .nav li.active > a {
    color: var(--brand);
    background: transparent;
}
.head-section .navbar-nav > li > a:hover::after,
.head-section .navbar-nav > li.active > a::after { transform: scaleX(1); }

.navbar-toggle {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 18px;
}
.navbar-toggle .icon-bar { background: var(--ink); }

/* ------------------------------ Botones ------------------------------ */
a.btn-purchase,
.btn-info,
.btn-purchase {
    background: var(--brand);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 6px 16px rgba(241, 2, 2, .25);
    transition: var(--transition);
}
a.btn-purchase:hover, a.btn-purchase:focus,
.btn-info:hover, .btn-info:focus,
.btn-purchase:hover, .btn-purchase:focus {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(241, 2, 2, .32);
}

/* ------------------------- Features (bienvenida) -------------------------
   Las 3 columnas del original no están dentro de un .row y sus párrafos se
   solapan (bug previo del template). Se contiene con flex sin tocar el HTML. */
.feature-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.feature-box > div {
    float: none;
    flex: 1 1 0;
    min-width: 0;        /* permite que el texto envuelva en la columna */
}
.feature-box-heading img { transition: var(--transition); }
.feature-box-heading h4 { margin-top: 14px; }

@media (max-width: 767px) {
    .feature-box > div { flex: 1 1 100%; }
}

/* Principios (home-services) — solo cosmético; el layout y el padding
   de los hijos los maneja el CSS original */
.h-service {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.h-service:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.icon-wrap.ico-bg {
    background: var(--brand) !important;
    color: #fff;
    box-shadow: 0 8px 20px rgba(241, 2, 2, .25);
}
.icon-wrap.round-fifty, .icon-wrap.round-five { border-radius: 50%; }

/* --------------------------- Secciones / fondos --------------------------- */
.property {
    background: var(--bg-soft);
    padding: 40px 0;
    margin-bottom: 50px;
}
.bg-lg { background: var(--bg-soft); padding: 60px 0; }
.gray-box { background: var(--bg-soft); padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.property hr { border-color: var(--border); }
.property i { color: var(--brand); }

.property > .container > .row > .text-center img,
.property .col-lg-7 img,
.recent .item img { border-radius: var(--radius); }

/* Separador decorativo (.hr) */
.hr { margin: 10px 0; }
.hr .hr-inner { background: var(--border); }

/* ------------------------------ Tabs ------------------------------ */
.tab { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tab .panel-heading { padding: 0; }
.tab .nav-tabs { border: none; background: var(--bg-soft); }
.tab .nav-tabs > li > a {
    border: none;
    border-radius: 0;
    color: var(--muted);
    font-family: var(--font-head);
    font-weight: 600;
    padding: 16px;
}
.tab .nav-tabs > li.active > a,
.tab .nav-tabs > li.active > a:hover,
.tab .nav-tabs > li.active > a:focus {
    color: var(--brand);
    background: #fff;
    border: none;
    box-shadow: inset 0 -3px 0 var(--brand);
}
.tab .panel-body { padding: 8px 18px; }
.tab .media { padding: 14px 0; }
.tab .media-body.b-btm { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.tab .p-head { color: var(--ink); font-weight: 700; font-family: var(--font-head); }

/* --------------------------- Testimonios ---------------------------
   Se respeta el layout/medidas originales (imagen flotante 100x100,
   caja .about-testimonial-content). Solo se refresca color y bordes. */
.about-testimonial.boxed-style .about-testimonial-content {
    border-color: var(--border);
    border-radius: var(--radius-sm);
}
.about-testimonial-author { color: var(--ink); font-weight: 700; font-family: var(--font-head); }
.about-testimonial-company { color: var(--muted); }
.about-testimonial-content p { color: var(--text); }

/* ------------------------------ Breadcrumbs ------------------------------ */
.breadcrumbs {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.breadcrumbs h1 { margin: 0; font-size: 26px; }
.breadcrumb { background: transparent; margin: 0; }
.breadcrumb > li + li::before { color: var(--muted); }
.breadcrumb > .active { color: var(--brand); }

/* --------------------------- Clientes / works --------------------------- */
.our-clients .clients-list img { border-radius: var(--radius-sm); }
.recent .item { padding: 6px; }
.recent .item img { box-shadow: var(--shadow-sm); transition: var(--transition); }
.recent .item:hover img { box-shadow: var(--shadow); transform: translateY(-3px); }

/* ------------------------------ Formularios ------------------------------ */
.contact-form .form-control,
.form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 12px 14px;
    height: auto;
    color: var(--text);
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.contact-form label,
.address h4, .address h4.title { color: var(--ink); font-family: var(--font-head); }

/* ------------------------------ Footer ------------------------------ */
.footer {
    background: #1c2230;
    color: #c4cad7;
    padding: 56px 0 36px;
}
.footer h1 {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 14px;
}
.footer h1::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 44px; height: 3px;
    border-radius: 3px;
    background: var(--brand);
}
.footer p, .footer address { color: #aeb6c6; }
.footer i { color: var(--brand); }
.footer address a { color: #fff !important; font-weight: 600; font-size: inherit !important; }
.footer address a:hover { color: var(--brand) !important; }
.page-footer-list li { padding: 4px 0; }
.page-footer-list a { color: #aeb6c6; }
.page-footer-list a:hover { color: #fff; padding-left: 4px; }
.page-footer-list i { color: var(--brand); margin-right: 8px; }

.footer-small {
    background: #161b27;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-small .copyright p { color: #8993a6; margin: 6px 0; }
.social-link-footer li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: var(--transition);
}
.social-link-footer li a:hover { background: var(--brand); transform: translateY(-3px); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 991px) {
    .head-section { position: static; }
    .head-section .navbar-nav > li { padding-top: 0; padding-bottom: 0; }
    .head-section .navbar-nav > li > a::after { display: none; }
    .head-section .nav li a:hover,
    .head-section .nav li.active > a { background: var(--brand-soft); border-radius: var(--radius-sm); }
}
@media (max-width: 768px) {
    body { font-size: 14px; }
    .property, .bg-lg, .gray-box { padding: 36px 0; }
    .breadcrumb.pull-right { float: left !important; }
    .breadcrumbs h1 { font-size: 22px; }
    .h-service, .feature-box > div { margin-bottom: 16px; }
}
