@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,650&family=Instrument+Serif:ital@0;1&family=Outfit:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    --paper: #faf8f1; --ink: #252127; --accent: #34303b; --on-accent: #fff;
    --line: #d8d4da; --display: 'Outfit', system-ui, sans-serif;
    margin: 0; background: var(--paper); color: var(--ink);
    font: 16px/1.55 'DM Sans', system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid #cc5133; outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.topbar { background: var(--paper); position: relative; z-index: 5; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font: 650 1.4rem/1.1 var(--display); }
.site-brand svg { width: 30px; height: 30px; flex: none; }
.page-links, .language { display: flex; align-items: center; gap: 25px; font-size: .86rem; font-weight: 700; }
.page-links a:hover, .text-link:hover { text-decoration-thickness: 2px; text-decoration-line: underline; }
.language { gap: 4px; border: 1px solid var(--line); padding: 3px; border-radius: 99px; }
.language a { padding: 4px 9px; border-radius: inherit; transition: background .25s, color .25s; }
.language a[aria-current], .language a:hover { background: var(--accent); color: var(--on-accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 6.3vw, 6rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2.3rem, 4.4vw, 4.1rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: 55px; }
.eyebrow { font-size: .77rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 18px; }
.intro { font-size: clamp(1rem, 1.5vw, 1.17rem); max-width: 43ch; margin: 23px 0 29px; }
.hero-photo { overflow: hidden; }
.hero-photo img { width: 100%; height: clamp(310px, 41vw, 520px); object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px;
    background: var(--accent); color: var(--on-accent); border: 1px solid transparent; padding: 10px 19px;
    border-radius: var(--button-radius, 99px); font-weight: 700; transition: transform .24s, box-shadow .24s;
}
.button:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 7px 18px #0002; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.catalog { padding-block: clamp(48px, 7vw, 98px); }
.catalog h2 { margin-bottom: 32px; }
.catalog, .closing { scroll-margin-top: 86px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; }
.card-photo { overflow: hidden; }
.card-photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; transition: transform .65s ease; }
.card:hover .card-photo img { transform: scale(1.05); }
.card-body { padding: 21px; }
.card-body p { margin-top: 8px; }
.detail { font-weight: 700; }
.card-action {
    background: transparent; border: 0; border-top: 1px solid var(--line); padding: 12px 0 0;
    margin-top: 18px; text-align: left; width: 100%; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.closing { padding-block: clamp(44px, 6vw, 84px); }
.closing-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.closing-layout > div { flex: 1; }
.closing-layout > img { width: 45%; aspect-ratio: 1.55; object-fit: cover; }
.closing h2 { max-width: 18ch; }
.closing p { max-width: 48ch; margin: 14px 0 20px; }
.demo-navigation { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.demo-navigation-inner { display: flex; justify-content: end; padding-block: 11px; }
.demo-navigation a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 99px; font-size: .86rem; font-weight: 700; transition: border-color .22s ease; }
.demo-navigation svg { box-sizing: content-box; width: 12px; height: 12px; padding: 4px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); transition: transform .22s ease; }
.demo-navigation a:hover { border-color: currentColor; }
.demo-navigation a:hover svg { transform: translateX(-2px); }
.demo-footer { background: #050b13; color: #aab6c5; position: relative; padding: 28px 84px 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: .8rem; }
.demo-footer .royal-logo img { width: 182px; height: auto; filter: none; }
.footer-credit span { color: #7dd3fc; }
.ant-signature { position: absolute; right: 22px; bottom: 50%; translate: 0 50%; opacity: .58; transition: opacity .2s, transform .2s; }
.ant-signature:hover { opacity: 1; transform: translateY(-2px); }
.ant-signature img { width: 46px; }

.consultorio {
    --paper: #f9fcff; --ink: #112a44; --accent: #1055a4; --line: #c7ddee;
    --button-radius: 10px;
}
.consultorio .topbar { position: sticky; top: 0; border-bottom: 1px solid var(--line); }
.consultorio .card { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 23px; }
.consultorio .card-body { padding: 13px 0 0; }
.service-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e7f3ff; color: #1055a4; font-size: 1.45rem; }
.consultorio .closing { background: #eaf4ff; }
.consultorio .closing img { border-radius: 12px; }
.appointment { display: grid; gap: 11px; max-width: 405px; grid-template-columns: 1fr 1fr; }
.appointment label { font-size: .85rem; font-weight: 700; min-width: 0; }
.appointment input { width: 100%; min-width: 0; display: block; margin-top: 5px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); opacity: 1; }
.appointment .button { grid-column: 1 / -1; justify-self: start; }

.catalog-photo { width: 100%; height: 100%; max-height: 430px; object-fit: cover; }

.abogados {
    --paper: #191a1c; --ink: #f5ecde; --accent: #e7bc7f; --on-accent: #22170b;
    --line: #6d5c46; --display: 'Instrument Serif', Georgia, serif; --button-radius: 0px;
}
.abogados .topbar { border-bottom: 1px solid var(--line); }
.abogados .hero { position: relative; isolation: isolate; overflow: hidden; background: #221d16; }
.abogados .hero-layout { display: flex; align-items: center; min-height: clamp(540px, 70vh, 760px); }
.abogados .hero-copy { z-index: 1; max-width: 690px; }
.abogados h1 { font-weight: 400; }
.abogados .eyebrow { color: #f1cf9d; }
.abogados .hero-photo { position: absolute; inset: 0; z-index: -1; }
.abogados .hero-photo img { height: calc(100% + 85px); margin-top: -85px; object-position: center; }
.abogados .hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #16120df7 0%, #19150ed6 35%, #1a160d66 78%); }
.abogados .catalog .cards { border-top: 1px solid var(--line); gap: 0; }
.abogados .card { border-bottom: 1px solid var(--line); }
.abogados .card + .card { border-left: 1px solid var(--line); }
.abogados .card-body { padding: 24px; }
.abogados .closing { background: #282319; }


@media (prefers-reduced-motion: no-preference) {
    .hero-copy { animation: enter .75s ease both; }
    [data-reveal].pending { opacity: 0; transform: translateY(18px); }
    [data-reveal] { transition: opacity .55s ease, transform .55s ease; }
    .card:nth-child(2) { transition-delay: .08s; }
    .card:nth-child(3) { transition-delay: .16s; }
    @keyframes enter { from { opacity: 0; transform: translateY(14px); } }
    @keyframes fade { from { opacity: 0; } }
}
@media (max-width: 800px) {
    .wrap { width: calc(100% - 40px); }
    .hero-layout { gap: 28px; }
    .page-links { gap: 13px; }
    .cards { gap: 13px; }
    .card-body, .abogados .card-body { padding: 15px; }
    .consultorio .card { padding: 15px; }
}
@media (max-width: 660px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { min-height: 64px; gap: 10px; }
    .page-links { display: none; }
    .cards { grid-template-columns: 1fr; }
    .site-brand { font-size: 1.2rem; }
    .site-brand svg { width: 25px; height: 25px; }
    .hero-layout { grid-template-columns: 1fr; padding-block: 38px; gap: 26px; }
    .hero-photo img { height: clamp(225px, 70vw, 400px); }
    .catalog-photo { max-height: 275px; }
    .closing-layout { flex-direction: column; align-items: stretch; gap: 22px; }
    .closing-layout > img { width: 100%; }
    .abogados .card + .card { border-left: 0; }
    .abogados .hero-layout { min-height: 510px; }
    .abogados .hero-photo::after { background: #17130db5; }
    .demo-footer { padding-right: 64px; }
    .ant-signature { right: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    [data-parallax] { transform: none !important; }
}

button:disabled { opacity: 1; cursor: default; }
