/* =========================================================
   Peralta Rojas Abogados — Regularización Extraordinaria
   Estética basada en el sitio Wix actual:
   - Rojo #E63946 como color principal
   - Negro #111 para secciones de contraste
   - Serif (Playfair Display) para títulos
   - Sans-serif (Inter) para cuerpo
   ========================================================= */

:root {
    --brand-red:        #c01010;
    --brand-red-dark:   #8f0c0c;
    --brand-black:      #111111;
    --brand-ink:        #1a1a1a;
    --brand-muted:      #6b6b6b;
    --brand-cream:      #f7f4ef;
    --brand-border:     #e5e5e5;

    --font-serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* -------- Base -------- */
html, body {
    font-family: var(--font-sans);
    color: var(--brand-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .serif {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--brand-ink);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.25; }

p  { line-height: 1.7; }

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--brand-red-dark); }

/* -------- Utilidades de marca -------- */
.text-brand-red  { color: var(--brand-red) !important; }
.bg-brand-red    { background: var(--brand-red) !important; color: #fff; }
.bg-brand-black  { background: var(--brand-black) !important; color: #fff; }
.bg-brand-cream  { background: var(--brand-cream) !important; }

.section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.section-dark {
    background: var(--brand-black);
    color: #f4f4f4;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #fff; border-bottom: 1px solid var(--brand-red); }

/* Acento rojo bajo título */
.title-underline {
    display: inline-block;
    position: relative;
    padding-bottom: .5rem;
}
.title-underline::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 80px; height: 3px;
    background: var(--brand-red);
}

/* Etiqueta pequeña (eyebrow) */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    color: var(--brand-red);
    font-weight: 600;
}

/* -------- Botones -------- */
.btn {
    border-radius: 999px;
    padding: .75rem 1.6rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: all .18s ease;
}
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }

.btn-red, .btn-primary {
    background: var(--brand-red);
    border: 2px solid var(--brand-red);
    color: #fff;
}
.btn-red:hover, .btn-primary:hover {
    background: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
    color: #fff;
}

.btn-black {
    background: var(--brand-black);
    border: 2px solid var(--brand-black);
    color: #fff;
}
.btn-black:hover {
    background: #000;
    color: #fff;
}

.btn-outline-red {
    background: transparent;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
}
.btn-outline-red:hover {
    background: var(--brand-red);
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--brand-black); }

/* Botón flotante "Ponerse en contacto" */
.floating-cta {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    background: var(--brand-red);
    color: #fff;
    border-radius: 999px;
    padding: .85rem 1.4rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(192, 16, 16, .35);
}
.floating-cta:hover { background: var(--brand-red-dark); color: #fff; }

/* -------- Navbar -------- */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--brand-border);
    padding: .75rem 0;
}
.site-nav .navbar-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--brand-ink) !important;
    letter-spacing: -0.01em;
}
.site-nav .navbar-brand .brand-accent {
    color: var(--brand-red);
}
.site-nav .navbar-brand .brand-sub {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: .7rem;
    color: var(--brand-muted);
    letter-spacing: .02em;
    margin-top: 2px;
}
.site-nav .nav-link {
    color: var(--brand-ink) !important;
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem 1rem !important;
    position: relative;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--brand-red) !important;
}
.site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: 0;
    height: 2px;
    background: var(--brand-red);
}

/* -------- Hero -------- */
.hero {
    padding: clamp(3rem, 7vw, 6rem) 0;
    background: var(--brand-cream);
}
.hero h1 {
    margin-bottom: 1.25rem;
}
.hero .lead {
    font-size: 1.1rem;
    color: var(--brand-muted);
    margin-bottom: 1.75rem;
    max-width: 540px;
}
.hero-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.hero-image img { width: 100%; height: auto; display: block; }

/* -------- Cards (blog/pasos/precios) -------- */
.card-clean {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}
.card-clean:hover {
    box-shadow: 0 14px 32px rgba(0,0,0,.06);
    transform: translateY(-2px);
}
.card-clean .step-num {
    color: var(--brand-red);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: .75rem;
}

/* Blog card */
.blog-card { height: 100%; }
.blog-card .blog-card-img {
    aspect-ratio: 16 / 10;
    background: #eee center/cover no-repeat;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.blog-card .blog-meta {
    color: var(--brand-muted);
    font-size: .85rem;
    letter-spacing: .04em;
    margin-bottom: .5rem;
}
.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: .5rem;
}
.blog-card h3 a { color: var(--brand-ink); }
.blog-card h3 a:hover { color: var(--brand-red); }
.blog-card p { color: var(--brand-muted); font-size: .95rem; }

/* -------- Pricing -------- */
.price-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.price-card .price-banner {
    background: var(--brand-red);
    color: #fff;
    text-align: center;
    padding: .75rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .85rem;
}
.price-card .price-body {
    padding: 2.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.price-card h3 {
    font-size: 1.4rem;
    margin-bottom: .5rem;
}
.price-card .price-amount {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-ink);
    line-height: 1;
    margin: 1rem 0 .25rem;
}
.price-card .price-note {
    color: var(--brand-muted);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.price-card ul li {
    padding: .5rem 0;
    border-bottom: 1px solid var(--brand-border);
    font-size: .95rem;
}
.price-card ul li:last-child { border-bottom: none; }
.price-card .price-cta { margin-top: auto; }

/* -------- Banner rojo eslogan -------- */
.slogan-banner {
    background: var(--brand-red);
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}
.slogan-banner h2 {
    color: #fff;
    font-style: italic;
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

/* -------- Footer -------- */
.site-footer {
    background: var(--brand-black);
    color: #d0d0d0;
    padding: 3.5rem 0 2rem;
}
.site-footer h5 {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.site-footer a { color: #d0d0d0; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}
.site-footer .footer-brand .brand-accent { color: var(--brand-red); }
.site-footer .footer-bottom {
    border-top: 1px solid #2a2a2a;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: .85rem;
    color: #888;
}

/* -------- Blog list -------- */
.blog-list-header .eyebrow { margin-bottom: 1rem; }
.blog-list-header h1 {
    max-width: 900px;
    margin-bottom: 2.5rem;
}

/* Artículo blog */
.blog-body h2 { margin-top: 2.2rem; }
.blog-body h3 { margin-top: 1.6rem; }
.blog-body img { max-width: 100%; height: auto; border-radius: 6px; }
.blog-body p  { line-height: 1.75; margin-bottom: 1.1rem; }
.blog-body ul, .blog-body ol { margin-bottom: 1.2rem; }
.blog-body li { margin-bottom: .35rem; }
.blog-body blockquote {
    border-left: 3px solid var(--brand-red);
    padding: .5rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--brand-muted);
    font-style: italic;
}

/* -------- Formularios -------- */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--brand-border);
    padding: .7rem .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(192, 16, 16, .15);
}
.form-label { font-weight: 500; font-size: .92rem; }

/* -------- Responsive -------- */
@media (max-width: 767.98px) {
    .floating-cta { right: .75rem; bottom: .75rem; padding: .7rem 1.1rem; font-size: .9rem; }
    .hero { text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
}
