:root {
    --gold: #c58a16;
    --gold-dark: #aa7009;
    --charcoal: #343539;
    --ink: #292a2e;
    --muted: #62646a;
    --line: #dedede;
    --soft: #f6f6f5;
    --white: #ffffff;
    --container: 1440px;
    --shadow: 0 12px 34px rgba(28, 29, 32, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 20px;
    z-index: 999;
    padding: 10px 16px;
    color: var(--white);
    background: var(--ink);
}

.skip-link:focus {
    top: 20px;
}

/* Encabezado */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eeeeee;
    backdrop-filter: blur(12px);
}

.nav-shell {
    height: 112px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 24px;
}

.official-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.official-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.official-logo-header {
    width: 115px;
}

.main-nav {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-self: center;
    gap: 42px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.main-nav > a,
.nav-dropdown > a {
    position: relative;
    padding: 42px 0 35px;
}

.main-nav > a::after,
.nav-dropdown > a::after {
    position: absolute;
    right: 100%;
    bottom: 24px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--gold);
    transition: right 0.2s ease;
}

.main-nav > a:hover::after,
.main-nav > a.active::after,
.nav-dropdown > a:hover::after,
.nav-dropdown > a.active::after {
    right: 0;
}

.nav-dropdown {
    display: flex;
    align-items: center;
}

.services-menu {
    position: fixed;
    top: 112px;
    left: 50%;
    width: min(calc(100% - 48px), 960px);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr 1fr;
    gap: 0;
    padding: 0;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #e2e2e2;
    box-shadow: 0 22px 45px rgba(30, 30, 32, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    text-transform: none;
}

.nav-dropdown:hover .services-menu,
.nav-dropdown:focus-within .services-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.services-menu > div {
    padding: 28px;
    border-left: 1px solid #ececec;
}

.services-menu > div:first-child {
    border-left: 0;
}

.services-menu span {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.services-menu a {
    display: block;
    padding: 5px 0;
    color: #4b4c51;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.services-menu a:hover {
    color: var(--gold-dark);
}

.services-menu-head {
    color: var(--white);
    background: linear-gradient(145deg, #3e3f43, #292a2e);
}

.services-menu-head strong {
    display: block;
    margin-bottom: 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.25;
}

.services-menu .services-menu-head a {
    color: #edbd5a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-chevron {
    display: inline-block;
    margin-left: 3px;
    font-size: 14px;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    padding: 10px;
    background: transparent;
    border: 0;
}

.menu-toggle > span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px;
    background: var(--ink);
}

/* Portada */
.hero {
    scroll-margin-top: 104px;
    background: linear-gradient(90deg, #ffffff 0%, #f7f7f6 100%);
}

.hero-shell {
    min-height: 520px;
    display: grid;
    grid-template-columns: 40% 60%;
    padding: 0;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 45px 52px 4px;
}

.gold-line {
    width: 38px;
    height: 2px;
    margin-bottom: 18px;
    background: var(--gold);
}

.hero h1 {
    margin: 0;
    color: #3d3e43;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(43px, 3.2vw, 58px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero-copy > p {
    margin: 22px 0 0;
    color: #37383d;
    font-size: 16px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.hero-actions .button {
    min-height: 54px;
    padding: 13px 20px;
    border-radius: 6px;
    letter-spacing: 0.1px;
}

.hero-primary-button {
    min-width: 214px;
    box-shadow: 0 8px 18px rgba(154, 101, 8, 0.16);
}

.hero-secondary-button {
    min-width: 226px;
    background: transparent;
    border-color: #9d9fa3;
}

.button-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-photo {
    min-height: 520px;
    background: url("../images/web/hero_recepcion.png") center center / cover no-repeat;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 23px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 42, 42, 0.10);
}

.button-gold {
    color: var(--white);
    background: linear-gradient(135deg, #d69c25, var(--gold-dark));
}

.button-outline {
    color: #343539;
    background: var(--white);
    border-color: #8f9196;
}

/* Secciones */
.section {
    padding: 54px 0;
}

.center-heading {
    text-align: center;
}

.center-heading > span,
.section-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.center-heading > span i,
.section-kicker i {
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.center-heading h2 {
    margin: 8px 0 24px;
    font-size: 27px;
    font-weight: 600;
}

/* Servicios */
.services.section {
    padding: 38px 0 34px;
}

.services .center-heading h2 {
    margin-bottom: 18px;
}

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

.service-card {
    min-height: 198px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 17px;
    text-align: center;
    background: var(--white);
    border: 1px solid #dadbdd;
    border-radius: 7px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card-centered {
    grid-column: 2;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #d8b873;
    box-shadow: var(--shadow);
}

.service-card svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: #515359;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card:nth-child(1) svg path:first-child,
.service-card:nth-child(2) svg circle {
    stroke: var(--gold);
}

.service-card h3 {
    margin: 12px 0 6px;
    font-size: 15px;
}

.mini-line {
    width: 22px;
    height: 1px;
    display: block;
    margin: 0 auto 10px;
    background: var(--gold);
}

.service-card p {
    margin: 0;
    color: #4f5156;
    font-size: 12.5px;
    line-height: 1.5;
}

.service-card > b {
    margin-top: auto;
    padding-top: 10px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.services-all-link {
    margin-top: 18px;
    text-align: center;
}

.services-all-link a {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 6px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
}

/* Catálogo de servicios */
.services-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 50%, rgba(197, 138, 22, 0.17), transparent 22%),
        linear-gradient(120deg, #3f4044, #292a2e);
}

.services-hero::after {
    position: absolute;
    top: -150px;
    right: 6%;
    width: 360px;
    height: 360px;
    content: "";
    border: 1px solid rgba(231, 181, 78, 0.25);
    border-radius: 50%;
}

.services-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero p {
    max-width: 720px;
    margin-bottom: 0;
}

.services-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 90px;
}

.section-kicker-left {
    justify-content: flex-start;
}

.services-intro h2 {
    max-width: 650px;
    margin: 12px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.2;
}

.services-intro-grid > p {
    margin: 0;
    color: #55575c;
    font-size: 16px;
    line-height: 1.8;
}

.service-catalog {
    padding-top: 10px;
    background: #f7f7f6;
}

.service-group {
    padding: 46px 0;
    scroll-margin-top: 130px;
    border-top: 1px solid #dedede;
}

.service-group:first-child {
    border-top: 0;
}

.service-group-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.service-group-heading > span {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
}

.service-group-heading small {
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-group-heading h2 {
    margin: 2px 0 0;
    font-size: 25px;
}

.service-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.catalog-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 27px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    border-color: #d8b873;
    box-shadow: var(--shadow);
}

.catalog-number {
    color: var(--gold-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.catalog-card h3 {
    margin: 14px 0 10px;
    font-size: 18px;
}

.catalog-card p {
    margin: 0;
    color: #5b5d62;
    font-size: 13px;
    line-height: 1.65;
}

.catalog-card a,
.related-grid a {
    margin-top: auto;
    padding-top: 18px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.services-cta {
    padding: 42px 0;
    color: var(--white);
    background: linear-gradient(110deg, #3f4044, #292a2e);
}

.services-cta-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

.services-cta span {
    color: #e7b54e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.services-cta h2 {
    margin: 5px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 400;
}

.services-cta p {
    margin: 0;
    color: #d3d3d3;
    font-size: 13px;
}

/* Detalle de servicio */
.service-detail-hero {
    padding: 68px 0;
    background: linear-gradient(120deg, #f8f8f7, #eeeeec);
}

.service-detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: center;
    gap: 90px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 34px;
    color: #77797d;
    font-size: 11px;
    text-transform: uppercase;
}

.breadcrumb a:hover {
    color: var(--gold-dark);
}

.service-area {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.service-detail-hero h1 {
    max-width: 850px;
    margin: 10px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.08;
}

.service-detail-hero > .container > div > p {
    max-width: 750px;
    margin: 0;
    color: #55575c;
    font-size: 17px;
    line-height: 1.7;
}

.service-detail-hero aside {
    padding: 30px;
    color: var(--white);
    background: #343539;
    border-top: 3px solid var(--gold);
}

.service-detail-hero aside > span {
    color: #e7b54e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.service-detail-hero aside p {
    margin: 12px 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.5;
}

.service-detail-hero aside .button {
    width: 100%;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 90px;
}

.service-detail h2 {
    max-width: 720px;
    margin: 12px 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 37px;
    font-weight: 400;
    line-height: 1.2;
}

.service-lead {
    max-width: 780px;
    color: #55575c;
    font-size: 16px;
    line-height: 1.8;
}

.service-detail article > h3 {
    margin: 35px 0 18px;
    font-size: 19px;
}

.service-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-checklist li {
    display: flex;
    gap: 11px;
    padding: 13px 0;
    color: #47494e;
    font-size: 13px;
    border-bottom: 1px solid #e1e1e1;
}

.service-checklist li span {
    color: var(--gold-dark);
}

.service-method {
    align-self: start;
    padding: 30px;
    background: #f5f5f4;
    border: 1px solid #e2e2e2;
}

.service-method > span {
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.service-method ol {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.service-method li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 13px;
    padding: 18px 0;
    border-top: 1px solid #dedede;
}

.service-method li b {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.service-method li strong {
    font-size: 14px;
}

.service-method li p {
    margin: 4px 0 0;
    color: #62646a;
    font-size: 12px;
    line-height: 1.55;
}

.related-services {
    background: #f7f7f6;
}

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

.related-grid article {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: var(--white);
    border: 1px solid #dedede;
}

.related-grid h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.related-grid p {
    margin: 0;
    color: #5c5e63;
    font-size: 13px;
    line-height: 1.65;
}

/* Actualidad */
.news-section {
    background: linear-gradient(90deg, #f7f7f7, #ffffff);
}

.news-heading {
    position: relative;
}

.news-heading h2 {
    margin: 6px 0 4px;
    font-size: 28px;
}

.news-heading p {
    margin: 0 0 22px;
    color: #4f5156;
    font-size: 14px;
}

.news-heading > a {
    position: absolute;
    right: 0;
    bottom: 22px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-heading > a b {
    margin-left: 10px;
    font-size: 18px;
}

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

.news-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 7px 22px rgba(40, 40, 40, 0.07);
}

.news-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 8 / 3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.news-sunat {
    background-image: url("../images/web/actualidad_sunat.jpg");
}

.news-laboral {
    background-image: url("../images/web/actualidad_laboral.jpg");
}

.news-contable {
    background-image: url("../images/web/actualidad_contable.jpg");
}

.news-juridica {
    background-image:
        linear-gradient(rgba(37, 38, 42, 0.16), rgba(37, 38, 42, 0.16)),
        url("../images/web/actualidad_sunat.jpg");
}

.news-empresarial {
    background-image:
        linear-gradient(rgba(197, 138, 22, 0.10), rgba(197, 138, 22, 0.10)),
        url("../images/web/actualidad_contable.jpg");
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.news-content > span {
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-content h3 {
    min-height: 52px;
    margin: 9px 0 22px;
    font-size: 18px;
    line-height: 1.4;
}

.news-content h3 a:hover {
    color: var(--gold-dark);
}

.news-content > p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.news-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4e5055;
    font-size: 12px;
    margin-top: auto;
}

.news-bottom > a {
    color: var(--gold-dark);
    font-weight: 600;
}

.news-bottom b {
    margin-left: 8px;
    font-size: 17px;
}

/* Soluciones digitales */
.digital-section {
    padding: 42px 0;
    background: linear-gradient(90deg, #fafafa, #ffffff 48%, #fafafa);
}

.digital-grid {
    display: grid;
    grid-template-columns: 31% 69%;
    align-items: stretch;
}

.digital-grid > header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 42px;
    border-right: 1px solid #d5d5d5;
}

.section-kicker {
    justify-content: flex-start;
}

.digital-grid h2 {
    margin: 12px 0 0;
    font-size: 25px;
    line-height: 1.38;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-left: 34px;
}

.product-card {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px 13px;
    color: #45464b;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dedfe1;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(40, 40, 40, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #d4ad5c;
    box-shadow: 0 9px 22px rgba(40, 40, 40, 0.09);
}

.product-card-link {
    position: relative;
    border-color: #d8b873;
}

.product-access {
    margin-top: 6px;
    color: var(--gold-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.product-grid strong {
    margin-top: 8px;
    color: #28292d;
    font-size: 14px;
    line-height: 1.2;
}

.product-grid small {
    margin-top: 4px;
    color: #77797e;
    font-size: 10px;
    line-height: 1.25;
}

.product-cc {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 37px;
    line-height: 1;
}

.product-cc span {
    color: var(--gold);
}

.product-icon {
    height: 39px;
    font-size: 37px;
    line-height: 1;
}

.product-route-icon {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: #505158;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-route-icon circle {
    fill: var(--gold);
    stroke: var(--gold-dark);
}

.product-chart {
    height: 39px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.product-chart i {
    width: 7px;
    display: block;
    background: #505158;
}

.product-chart i:nth-child(1) { height: 14px; }
.product-chart i:nth-child(2) { height: 23px; }
.product-chart i:nth-child(3) { height: 32px; }

.product-chart b {
    align-self: flex-start;
    margin-left: -3px;
    font-size: 23px;
    line-height: 1;
}

.products-button {
    grid-column: 1 / -1;
    width: min(100%, 420px);
    min-width: 0;
    margin-top: 2px;
    justify-self: center;
    color: var(--gold-dark);
    border-color: var(--gold);
}

.products-button span {
    margin-left: auto;
    font-size: 20px;
}

/* Contacto */
.contact-strip {
    padding: 28px 0;
    background: linear-gradient(115deg, #f2f2f1, #ffffff);
    scroll-margin-top: 110px;
}

.contact-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.contact-question {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-target {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    background: var(--gold);
    border-radius: 50%;
}

.contact-target::before,
.contact-target i {
    position: absolute;
    display: block;
    border: 2px solid var(--white);
    border-radius: 50%;
    content: "";
}

.contact-target::before {
    width: 22px;
    height: 22px;
}

.contact-target i {
    width: 10px;
    height: 10px;
}

.contact-question h2 {
    margin: 0 0 5px;
    font-size: 23px;
    line-height: 1.25;
}

.contact-question p {
    margin: 0;
    color: #5e6065;
    font-size: 14px;
}

.contact-open {
    flex: 0 0 auto;
    min-width: 205px;
    color: #303136;
    background: var(--white);
    border-color: #9c9da1;
}

.contact-open:hover {
    color: var(--white);
    background: #3f4044;
    border-color: #3f4044;
}

.contact-open span {
    margin-right: 8px;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    padding: 24px;
    place-items: center;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(25, 26, 29, 0.72);
    border: 0;
    cursor: default;
    backdrop-filter: blur(3px);
}

.contact-modal-panel {
    position: relative;
    z-index: 1;
    overflow: auto;
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.contact-modal-close {
    position: absolute;
    top: 13px;
    right: 15px;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.contact-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.contact-modal-header {
    padding: 24px 62px 22px 28px;
    color: var(--white);
    background:
        radial-gradient(circle at 8% 5%, rgba(215, 164, 54, 0.25), transparent 35%),
        linear-gradient(135deg, #46474b, #292a2e);
    border-top: 4px solid var(--gold);
}

.contact-modal-header > span {
    color: #e7b44d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-modal-header h2 {
    margin: 5px 0 6px;
    font-size: 25px;
}

.contact-modal-header p {
    max-width: 590px;
    margin: 0;
    color: #dddddd;
    font-size: 12px;
    line-height: 1.55;
}

.contact-form {
    padding: 23px 28px 25px;
}

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

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-field-wide {
    grid-column: 1 / -1;
}

.contact-field > span {
    color: #55575c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    padding: 10px 12px;
    color: #292a2e;
    background: #fbfbfb;
    border: 1px solid #d7d8da;
    border-radius: 5px;
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-field textarea {
    min-height: 74px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    background: var(--white);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 138, 22, 0.12);
}

.contact-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
}

.contact-form-bottom p {
    max-width: 410px;
    margin: 0;
    color: #77797e;
    font-size: 10px;
    line-height: 1.5;
}

.contact-form-bottom .button {
    min-width: 200px;
}

.contact-form-bottom .button span {
    margin-left: 14px;
    font-size: 17px;
}

.contact-form-errors {
    margin-bottom: 13px;
    padding: 9px 12px;
    color: #7c2828;
    background: #fff1f1;
    border-left: 3px solid #b83a3a;
    font-size: 12px;
}

.contact-field .errorlist {
    margin: 0;
    padding: 0;
    color: #a12e2e;
    font-size: 10px;
    list-style: none;
}

body.contact-modal-open {
    overflow: hidden;
}

/* Pie de pagina */
.site-footer {
    padding-top: 38px;
    color: #e3e3e3;
    background: linear-gradient(110deg, #404145, #292a2e);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 1fr 1.15fr;
    gap: 55px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.official-logo-footer {
    width: 150px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #e4b14c;
    font-size: 12px;
    text-transform: uppercase;
}

.footer-grid p,
.footer-grid > div > a {
    display: block;
    margin: 7px 0;
    color: #d2d2d2;
    font-size: 12px;
    line-height: 1.65;
}

.footer-brand > p {
    max-width: 300px;
    margin: 18px 0 0;
    text-align: left;
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-brand .social-row {
    justify-content: flex-start;
}

.social-row a {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 12px;
    border: 1px solid #aaaaaa;
    border-radius: 50%;
}

.footer-contact span {
    display: inline-block;
    width: 18px;
    color: #ffffff;
}

.coming-soon-badge {
    display: inline-flex;
    padding: 6px 10px;
    color: #f1c466;
    background: rgba(231, 180, 77, 0.10);
    border: 1px solid rgba(231, 180, 77, 0.42);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-newsletter small {
    display: block;
    margin-top: 10px;
    color: #999ba0;
    font-size: 10px;
    line-height: 1.5;
}

.footer-bottom {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    color: #bbbbbb;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom i {
    display: inline-block;
    width: 1px;
    height: 12px;
    margin: 0 12px;
    vertical-align: middle;
    background: #8e8e8e;
}

/* Mensajes */
.messages {
    position: fixed;
    top: 118px;
    left: 50%;
    z-index: 150;
    transform: translateX(-50%);
}

.message {
    padding: 13px 18px;
    background: #eef7f0;
    border: 1px solid #bfd4c4;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

/* Paginas de actualidad */
.inner-hero {
    padding: 74px 0;
    color: var(--white);
    background: #3c3d41;
}

.inner-hero span {
    color: #e7b54e;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.inner-hero h1 {
    margin: 8px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    font-weight: 400;
}

.inner-hero p {
    color: #dddddd;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.category-filter a {
    padding: 8px 15px;
    font-size: 13px;
    border: 1px solid #dddddd;
    border-radius: 20px;
}

.category-filter a.active,
.category-filter a:hover {
    color: var(--white);
    background: var(--gold);
    border-color: var(--gold);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 60px;
    text-align: center;
    border: 1px dashed var(--gold);
}

.article-header {
    padding: 70px 0;
    background: #f5f5f4;
}

.article-container {
    max-width: 850px;
}

.article-header a {
    color: var(--gold-dark);
}

.article-header span {
    display: block;
    margin-top: 28px;
    color: var(--gold-dark);
    font-size: 13px;
    text-transform: uppercase;
}

.article-header h1 {
    margin: 12px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
}

.article-header p {
    font-size: 19px;
}

.article-image {
    width: 100%;
    margin-top: 45px;
}

.article-image-fallback {
    height: 360px;
    background-position: center;
    background-size: cover;
}

.article-body {
    padding: 50px 0 80px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.8;
}

.article-body aside {
    margin-top: 35px;
    padding: 18px;
    background: #f5f5f4;
    border-left: 2px solid var(--gold);
}

/* Adaptacion */
@media (max-width: 1220px) {
    .main-nav {
        gap: 24px;
    }

    .official-logo-header {
        width: 105px;
    }

    .service-grid {
        gap: 14px;
    }

    .service-card {
        padding-inline: 15px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .button {
        min-width: 0;
        padding-inline: 14px;
        font-size: 12px;
    }

    .contact-form {
        padding: 26px;
    }
}

@media (max-width: 1020px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-shell {
        grid-template-columns: 44% 56%;
    }

    .hero h1 {
        font-size: 43px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-intro-grid,
    .service-detail-hero-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .service-detail-hero aside,
    .service-method {
        max-width: 620px;
    }

    .service-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .digital-grid > header {
        margin-bottom: 35px;
        padding: 0;
        border: 0;
    }

    .product-grid {
        padding-left: 0;
    }
}

@media (max-width: 850px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .nav-shell {
        height: 88px;
        display: flex;
        justify-content: space-between;
    }

    .official-logo-header {
        width: 84px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 88px 0 auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a,
    .nav-dropdown > a {
        padding: 13px;
    }

    .main-nav > a::after,
    .nav-dropdown > a::after {
        display: none;
    }

    .nav-dropdown {
        display: block;
    }

    .services-menu {
        display: none;
    }

    .hero-shell {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 48px 18px;
    }

    .hero-photo {
        min-height: 390px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-centered {
        grid-column: 1 / -1;
        width: calc(50% - 7px);
        justify-self: center;
    }

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

    .news-heading > a {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-bottom: 0;
    }

    .products-button {
        width: 100%;
        min-width: 0;
    }

    .contact-strip-inner {
        gap: 24px;
    }

    .services-cta-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-cta-grid .button {
        width: 100%;
    }

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

@media (max-width: 520px) {
    .official-logo-footer {
        width: 140px;
    }

    .official-logo-header {
        width: 76px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-copy > p br {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-photo {
        min-height: 300px;
    }

    .service-grid,
    .product-grid,
    .footer-grid,
    .service-catalog-grid,
    .service-checklist {
        grid-template-columns: 1fr;
    }

    .service-card-centered {
        grid-column: auto;
        width: auto;
    }

    .contact-strip {
        padding: 25px 0;
    }

    .contact-strip-inner,
    .contact-question {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-question {
        gap: 14px;
    }

    .contact-target {
        width: 52px;
        height: 52px;
    }

    .contact-question h2 {
        font-size: 21px;
    }

    .contact-open {
        width: 100%;
    }

    .contact-modal {
        align-items: end;
        padding: 0;
    }

    .contact-modal-panel {
        width: 100%;
        max-height: 94vh;
        border-radius: 12px 12px 0 0;
    }

    .contact-modal-header {
        padding: 22px 55px 20px 20px;
    }

    .contact-modal-header h2 {
        font-size: 23px;
    }

    .contact-form {
        padding: 20px;
    }

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

    .contact-field-wide {
        grid-column: auto;
    }

    .contact-form-bottom {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .contact-form-bottom .button {
        width: 100%;
    }

    .services-intro h2,
    .service-detail h2 {
        font-size: 31px;
    }

    .service-detail-hero {
        padding: 45px 0;
    }

    .service-detail-hero h1 {
        font-size: 38px;
    }

    .service-detail-hero aside,
    .service-method,
    .catalog-card {
        padding: 23px;
    }

    .product-card {
        border: 1px solid #dedfe1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 14px 0;
    }

    .article-header h1,
    .inner-hero h1 {
        font-size: 38px;
    }
}
