:root {
    --wine: #a0003b;
    --wine-dark: #79002d;
    --blue: #0096c7;
    --navy: #17324d;
    --muted: #5d6d7e;
    --light: #f5f7fa;
    --white: #fff;
    --border: #dfe6ec;
    --shadow: 0 18px 50px rgba(23, 50, 77, .1);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--navy);
    background: var(--white);
    font-family: "Inter", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

button,
input,
textarea,
select {
    font-family: "Inter", Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--wine);
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

address {
    font-style: normal;
}

h1,
h2,
h3 {
    margin: 0 0 .7em;
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.15;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.8rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 700;
}

h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

p {
    margin: 0 0 1.2em;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--wine);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 999;
    padding: 10px 14px;
    color: #fff;
    background: var(--navy);
}

.skip-link:focus {
    left: 10px;
}

.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;
}

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

.narrow,
.container--narrow {
    max-width: 850px;
}

.section {
    padding: 82px 0;
}

.section--light,
.soft-bg,
.services-section {
    background: var(--light);
}

.split-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
}

.split-layout > div:last-child {
    color: var(--muted);
    font-size: 1.08rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: 48px;
}

.section-heading h2 {
    max-width: 700px;
}

.section-heading p {
    max-width: 430px;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.highlight-grid article {
    padding: 38px;
    background: #fff;
    border-right: 1px solid var(--border);
}

.highlight-grid article:last-child {
    border-right: 0;
}

.highlight-grid strong {
    display: block;
    margin-bottom: 24px;
    color: var(--blue);
    font-size: 1.15rem;
}

.highlight-grid h2 {
    font-size: 1.55rem;
}

.highlight-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .95rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(23, 50, 77, .08);
    backdrop-filter: blur(12px);
}

.header-inner {
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: 260px;
    height: auto;
    max-height: none;
    object-fit: contain;
}

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

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 28px;
    height: 2px;
    margin: 6px;
    background: var(--navy);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
    font-family: "Inter", Arial, sans-serif;
}

.main-nav a {
    position: relative;
    color: var(--navy);
    font-size: 17px;
    font-weight: 700;
}

.main-nav a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -9px;
    height: 3px;
    background: var(--blue);
    transition: .2s;
}

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

.main-nav .nav-contact {
    padding: 11px 22px;
    color: #fff;
    background: var(--wine);
    border-radius: 999px;
}

.main-nav .nav-contact:hover {
    background: var(--wine-dark);
}

@media (min-width: 1051px) {
    .main-nav {
        gap: 40px;
    }

    .main-nav a {
        font-size: 18px;
    }

    .main-nav .nav-contact {
        padding: 12px 23px;
    }
}

.button-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
    transition: .2s;
    cursor: pointer;
}

.button--primary {
    color: #fff;
    background: var(--wine);
}

.button--primary:hover {
    color: #fff;
    background: var(--wine-dark);
    transform: translateY(-2px);
}

.button--light {
    color: var(--wine);
    background: #fff;
    white-space: nowrap;
}

.button--ghost-light {
    color: #fff;
    background: rgba(255, 255, 255, .05);
    border-color: #fff;
}

.button--ghost-light:hover {
    color: var(--navy);
    background: #fff;
}

.link-arrow {
    font-weight: 800;
}

.hero,
.page-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    color: #fff;
}

.hero {
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 110px;
    background: linear-gradient(transparent, rgba(8, 27, 42, .18));
    pointer-events: none;
}

.hero__inner,
.page-hero .container {
    position: relative;
    z-index: 1;
}

.hero__inner,
.page-hero .container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero__content {
    width: 100%;
    max-width: 720px;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__title,
.page-hero h1 {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(2.3rem, 3.55vw, 3.4rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .22);
}

.hero__subtitle,
.page-hero p:last-child {
    max-width: 700px;
    margin: 18px 0 0;
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.45;
}

.hero .button-row {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    margin: 28px 0 0;
}

.hero .button {
    min-height: 52px;
    padding: 12px 24px;
    line-height: 1.2;
}

.hero--home {
    background-image: linear-gradient(90deg, rgba(10, 30, 47, .95) 0%, rgba(19, 50, 77, .86) 38%, rgba(19, 50, 77, .48) 62%, rgba(19, 50, 77, .12) 100%), url('../img/hero-inicio.jpg');
    background-position: 62% center;
}

.hero--aficoin {
    background-image: linear-gradient(90deg, rgba(10, 30, 47, .95) 0%, rgba(19, 50, 77, .86) 38%, rgba(19, 50, 77, .48) 62%, rgba(19, 50, 77, .12) 100%), url('../img/hero-aficoin.jpg');
    background-position: center top;
}

.hero--servicios {
    background-image: linear-gradient(90deg, rgba(10, 30, 47, .95) 0%, rgba(19, 50, 77, .86) 38%, rgba(19, 50, 77, .48) 62%, rgba(19, 50, 77, .12) 100%), url('../img/hero-servicios.jpg');
    background-position: center center;
}

.hero--actualidad {
    background-image: linear-gradient(90deg, rgba(10, 30, 47, .95) 0%, rgba(19, 50, 77, .86) 38%, rgba(19, 50, 77, .48) 62%, rgba(19, 50, 77, .12) 100%), url('../img/hero-actualidad.jpg');
    background-position: center center;
}

.hero--contacto {
    background-image: linear-gradient(90deg, rgba(10, 30, 47, .95) 0%, rgba(19, 50, 77, .86) 38%, rgba(19, 50, 77, .48) 62%, rgba(19, 50, 77, .12) 100%), url('../img/hero-contacto.jpg');
    background-position: center center;
}

.hero--aviso-legal {
    background-image: linear-gradient(90deg, rgba(10, 30, 47, .95) 0%, rgba(19, 50, 77, .86) 38%, rgba(19, 50, 77, .48) 62%, rgba(19, 50, 77, .12) 100%), url('../img/hero-aviso-legal.jpg');
    background-position: center center;
}

.hero--politica-privacidad {
    background-image: linear-gradient(90deg, rgba(10, 30, 47, .95) 0%, rgba(19, 50, 77, .86) 38%, rgba(19, 50, 77, .48) 62%, rgba(19, 50, 77, .12) 100%), url('../img/hero-politica-privacidad.jpg');
    background-position: center center;
}

.hero--aficoin .hero__title {
    max-width: 640px;
}

.hero--aficoin .hero__subtitle {
    max-width: 720px;
}

.page-hero {
    background: linear-gradient(125deg, var(--navy), #214b70);
}

.page-hero .eyebrow {
    color: #65cff1;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card__number {
    display: block;
    color: var(--blue);
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
}

.card__title {
    color: var(--navy);
}

.card__text {
    color: var(--muted);
}

.card--accent-left {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 132px;
    padding: 28px 32px 28px 38px;
    overflow: hidden;
    border-color: rgba(223, 230, 236, .96);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(23, 50, 77, .05);
}

.card--accent-left::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 26px;
    bottom: 26px;
    width: 3px;
    background: var(--wine);
    border-radius: 999px;
}

.card--accent-left .card__title {
    margin: 0 0 7px;
    font-size: 1.12rem;
    letter-spacing: -.01em;
}

.card--accent-left .card__text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
}

.card--service {
    display: flex;
    flex-direction: column;
    min-height: 205px;
    padding: 24px 22px 22px;
    border-color: rgba(223, 230, 236, .95);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(23, 50, 77, .052);
    transition: .2s;
}

.card--service:hover {
    border-color: rgba(0, 150, 199, .28);
    box-shadow: 0 13px 30px rgba(23, 50, 77, .065);
    transform: translateY(-2px);
}

.card--service .card__number {
    margin: 0 0 22px;
    color: var(--navy);
    font-size: .92rem;
    line-height: 1.2;
    letter-spacing: .08em;
}

.card--service .card__title {
    min-height: 2.7em;
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.25;
}

.card--service .card__text {
    margin: 0;
    font-size: .93rem;
    line-height: 1.5;
}

.card--value {
    position: relative;
    min-height: 270px;
    padding: 30px;
    overflow: hidden;
    transition: .25s;
}

.card--value::before {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 98px;
    height: 98px;
    background: rgba(160, 0, 59, .08);
    border-radius: 50%;
}

.card--value .card__title {
    margin-bottom: 14px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.card--value .card__text {
    margin-bottom: 0;
    font-size: .95rem;
    line-height: 1.55;
}

.card--stat {
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
}

.card--stat .card__number {
    margin-bottom: 22px;
    font-size: 1.15rem;
}

.card--stat .card__title {
    font-size: 1.45rem;
    line-height: 1.2;
}

.card--stat .card__text {
    margin-bottom: 0;
    font-size: .95rem;
    line-height: 1.55;
}

.intro-warm {
    align-items: center;
}

.intro-warm > div:first-child p:not(.eyebrow) {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.intro-cards {
    display: grid;
    gap: 20px;
    align-self: center;
    padding: 6px 0;
}

.home-services-heading {
    display: block;
    margin-bottom: 34px;
}

.home-services-heading h2 {
    max-width: 100%;
    margin-bottom: 16px;
}

.home-services-heading p {
    max-width: 1040px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.55;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: stretch;
}

.home-services-link {
    display: inline-flex;
    margin-top: 30px;
}

.trust-section {
    padding: 46px 0;
    color: #fff;
    background: var(--navy);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    font-family: "Inter", Arial, sans-serif;
}

.trust-grid div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    padding: 14px 42px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .2);
}

.trust-grid div:last-child {
    border: 0;
}

.trust-grid strong {
    margin-bottom: 8px;
    color: #fff;
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    line-height: 1.15;
}

.trust-grid span {
    max-width: 340px;
    color: #c6d6e4;
    font-size: .96rem;
    font-weight: 400;
    line-height: 1.45;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    padding: 65px;
    color: #fff;
    background: linear-gradient(120deg, var(--wine), #be174f);
    border-radius: 24px;
}

.cta h2 {
    max-width: 750px;
}

.cta p {
    max-width: 720px;
    color: rgba(255, 255, 255, .82);
}

.cta .eyebrow {
    color: #bfeeff;
}

.aficoin-story {
    position: relative;
}

.aficoin-story h2,
.aficoin-section-heading h2 {
    max-width: 760px;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.aficoin-story > div:last-child {
    font-size: 1.08rem;
    line-height: 1.65;
}

.aficoin-section-heading {
    display: block;
}

.aficoin-work-grid {
    align-items: stretch;
}

.aficoin-work-card {
    min-height: 210px;
}

.aficoin-work-card h3 {
    margin-bottom: 14px;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.aficoin-work-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55;
}

.aficoin-highlights {
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.aficoin-commitment article {
    display: flex;
    flex-direction: column;
}

.aficoin-commitment strong {
    margin-bottom: 22px;
}

.aficoin-commitment h2 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.aficoin-commitment p {
    font-size: .95rem;
    line-height: 1.55;
}

.service-guide {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(23, 50, 77, .04);
}

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

.guide-grid > div {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border-right: 1px solid var(--border);
}

.guide-grid > div:last-child {
    border-right: 0;
}

.guide-mark {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--wine);
    border-radius: 12px;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
}

.guide-grid p {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.4;
}

.guide-grid strong {
    display: block;
    color: var(--navy);
    font-size: .95rem;
}

.service-list {
    display: grid;
    gap: 0;
}

.service-list article {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    padding: 42px 0;
    border-bottom: 1px solid var(--border);
}

.service-list article:first-child {
    padding-top: 0;
}

.service-list article > span {
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 800;
}

.service-list h2 {
    font-size: 2.25rem;
}

.service-list p,
.service-list li {
    color: var(--muted);
}

.service-list li {
    font-family: "Inter", Arial, sans-serif;
}

.visual-service-list article {
    position: relative;
    margin-bottom: 18px;
    padding: 38px 42px 38px 34px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: .2s;
}

.visual-service-list article:first-child {
    padding-top: 38px;
}

.visual-service-list article:hover {
    border-color: rgba(0, 150, 199, .42);
    box-shadow: 0 14px 35px rgba(23, 50, 77, .08);
    transform: translateY(-2px);
}

.visual-service-list article > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: #eaf7fb;
    border-radius: 14px;
}

.visual-service-list article::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 24px;
    width: 50px;
    height: 50px;
    border: 12px solid rgba(160, 0, 59, .05);
    border-radius: 50%;
}

.services-heading {
    display: block;
}

.services-heading h2 {
    max-width: 850px;
}

.services-heading p {
    max-width: 760px;
    font-size: 1.08rem;
    line-height: 1.55;
}

.services-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-detail-card {
    min-height: 0;
}

.service-detail-card::before {
    content: none;
}

.service-detail-card--wide {
    grid-column: 1 / -1;
}

.service-detail-card .card__number {
    margin-bottom: 20px;
    font-size: .92rem;
    letter-spacing: .08em;
}

.service-card__icon {
    position: absolute;
    right: 28px;
    top: 28px;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.service-detail-card ul {
    margin: 20px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55;
}

.service-detail-card li + li {
    margin-top: 7px;
}

.services-final-cta {
    margin-top: clamp(42px, 5vw, 70px);
}

.contact-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 80px;
}

.contact-details {
    padding: 35px;
    background: var(--light);
    border-radius: var(--radius);
    font-family: "Inter", Arial, sans-serif;
}

.contact-form {
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-message {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.45;
}

.form-message--success {
    color: #1d5f46;
    background: #eef8f3;
    border-color: #b9dfcd;
}

.form-message--error {
    color: #8a1740;
    background: #fff0f4;
    border-color: #efb8ca;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 20px;
    font-family: "Inter", Arial, sans-serif;
    font-size: .9rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--navy);
    border: 1px solid #bdc9d4;
    border-radius: 6px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(0, 150, 199, .18);
    border-color: var(--blue);
}

.privacy-check {
    grid-template-columns: auto 1fr !important;
    align-items: start;
    font-weight: 400 !important;
}

.privacy-check input {
    width: auto;
    margin-top: 6px;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.optional {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 400;
}

.contact-map {
    grid-column: 1 / -1;
    margin-top: 64px;
}

.contact-map .section-heading {
    margin-bottom: 28px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state {
    padding: 44px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(23, 50, 77, .06);
}

.empty-state h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.empty-state p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
}

.legal-content {
    max-width: 850px;
    font-family: "Inter", Arial, sans-serif;
}

.legal-content h2 {
    margin-top: 1.5em;
    font-size: 1.65rem;
}

.thank-you {
    min-height: 62vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.success-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 25px;
    color: #087b5d;
    background: #e5f7f2;
    border-radius: 50%;
    font-size: 2rem;
}

.site-footer {
    padding-top: 58px;
    color: #b9cad8;
    background: #10263a;
    font-family: "Inter", Arial, sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .7fr;
    gap: 70px;
}

.footer-logo {
    width: 220px;
    height: auto;
    margin-bottom: 18px;
    object-fit: contain;
    background: transparent;
}

.site-footer h2 {
    color: #fff;
    font-family: "Inter", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .05em;
}

.site-footer a {
    display: block;
    color: #d8e4ec;
}

.site-footer a:hover {
    color: #6bd2f2;
}

.site-footer address {
    margin-bottom: 15px;
}

.site-footer p a {
    display: inline;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 42px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .85rem;
}

.footer-credit {
    color: #9fb2c2;
    font-size: .82rem;
}

.footer-credit a {
    display: inline;
    color: #c8d5df;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-credit a:hover {
    color: #6bd2f2;
}

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

    .card--service {
        min-height: 200px;
    }

    .card--service .card__title {
        min-height: 0;
    }
}

@media (max-width: 1050px) {
    .header-inner {
        height: 100px;
    }

    .brand img {
        width: 240px;
    }

    .main-nav {
        gap: 27px;
    }

    .main-nav a {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 68px 0;
    }

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

    .split-layout {
        gap: 50px;
    }

    .hero,
    .page-hero {
        min-height: 560px;
    }

    .hero__inner,
    .page-hero .container {
        width: min(100% - 40px, 1160px);
    }

    .hero__content {
        max-width: 680px;
    }

    .hero--home {
        background-position: 66% center;
    }

    .hero--aficoin {
        background-position: center 35%;
    }

    .hero--servicios {
        background-position: center center;
    }

    .hero--actualidad {
        background-position: center center;
    }

    .hero--contacto {
        background-position: center center;
    }

    .hero--aviso-legal,
    .hero--politica-privacidad {
        background-position: center center;
    }

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

    .highlight-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .highlight-grid article:last-child {
        border-bottom: 0;
    }

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

    .guide-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .guide-grid > div:last-child {
        border-bottom: 0;
    }

    .services-card-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-card--wide {
        grid-column: auto;
    }

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

    .cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 45px;
    }

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(100% - 28px, 1160px);
    }

    .section {
        padding: 56px 0;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-heading {
        display: block;
    }

    .card-grid,
    .card-grid.three {
        grid-template-columns: 1fr;
    }

    .header-inner {
        height: 84px;
    }

    .brand img {
        width: 200px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 84px;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 20px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 15px 25px rgba(23, 50, 77, .1);
    }

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

    .main-nav a {
        padding: 12px;
        font-size: 16px;
    }

    .main-nav a:not(.nav-contact) {
        width: max-content;
        max-width: 100%;
    }

    .main-nav a:not(.nav-contact)::after {
        left: 12px;
        right: auto;
        width: 0;
        bottom: 7px;
    }

    .main-nav a:not(.nav-contact):hover::after,
    .main-nav a:not(.nav-contact).active::after {
        width: calc(100% - 24px);
    }

    .main-nav .nav-contact {
        margin-top: 5px;
        text-align: center;
    }

    .hero,
    .page-hero {
        min-height: 500px;
    }

    .hero__inner,
    .page-hero .container {
        width: calc(100% - 28px);
    }

    .hero__content {
        max-width: 100%;
        padding: 44px 0;
    }

    .hero__title,
    .page-hero h1 {
        font-size: clamp(1.9rem, 7.6vw, 2.42rem);
        line-height: 1.16;
    }

    .hero__subtitle,
    .page-hero p:last-child {
        margin-top: 16px;
        font-size: 1.08rem;
    }

    .hero .button-row {
        width: 100%;
        margin-top: 24px;
    }

    .hero .button {
        min-height: 50px;
    }

    .hero--home {
        background-image: linear-gradient(90deg, rgba(10, 30, 47, .94) 0%, rgba(19, 50, 77, .76) 68%, rgba(19, 50, 77, .48) 100%), url('../img/hero-inicio.jpg');
        background-position: 64% center;
    }

    .hero--aficoin {
        background-image: linear-gradient(90deg, rgba(10, 30, 47, .94) 0%, rgba(19, 50, 77, .76) 68%, rgba(19, 50, 77, .48) 100%), url('../img/hero-aficoin.jpg');
        background-position: center 40%;
    }

    .hero--servicios {
        background-image: linear-gradient(90deg, rgba(10, 30, 47, .94) 0%, rgba(19, 50, 77, .76) 68%, rgba(19, 50, 77, .48) 100%), url('../img/hero-servicios.jpg');
        background-position: center center;
    }

    .hero--actualidad {
        background-image: linear-gradient(90deg, rgba(10, 30, 47, .94) 0%, rgba(19, 50, 77, .76) 68%, rgba(19, 50, 77, .48) 100%), url('../img/hero-actualidad.jpg');
        background-position: center center;
    }

    .hero--contacto {
        background-image: linear-gradient(90deg, rgba(10, 30, 47, .94) 0%, rgba(19, 50, 77, .76) 68%, rgba(19, 50, 77, .48) 100%), url('../img/hero-contacto.jpg');
        background-position: center center;
    }

    .hero--aviso-legal {
        background-image: linear-gradient(90deg, rgba(10, 30, 47, .94) 0%, rgba(19, 50, 77, .76) 68%, rgba(19, 50, 77, .48) 100%), url('../img/hero-aviso-legal.jpg');
        background-position: center center;
    }

    .hero--politica-privacidad {
        background-image: linear-gradient(90deg, rgba(10, 30, 47, .94) 0%, rgba(19, 50, 77, .76) 68%, rgba(19, 50, 77, .48) 100%), url('../img/hero-politica-privacidad.jpg');
        background-position: center center;
    }

    .hero--aficoin .hero__title,
    .hero--aficoin .hero__subtitle {
        max-width: 100%;
    }

    .card--accent-left {
        min-height: 0;
        padding: 24px 22px 24px 34px;
    }

    .card--accent-left::before {
        left: 16px;
        top: 22px;
        bottom: 22px;
    }

    .card--stat {
        padding: 28px;
    }

    .highlight-grid article {
        padding: 28px;
    }

    .intro-cards {
        gap: 16px;
        margin-top: 16px;
        padding: 0;
    }

    .trust-section {
        padding: 36px 0;
    }

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

    .trust-grid div {
        min-height: 0;
        padding: 22px 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .trust-grid strong {
        font-size: 1.55rem;
    }

    .trust-grid span {
        max-width: 360px;
    }

    .cta {
        gap: 20px;
        padding: 30px 24px;
    }

    .cta h2 {
        margin-bottom: .45em;
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

    .cta p {
        margin-bottom: 0;
    }

    .aficoin-story h2,
    .aficoin-section-heading h2 {
        font-size: clamp(1.85rem, 8vw, 2.45rem);
    }

    .aficoin-story > div:last-child {
        font-size: 1rem;
    }

    .aficoin-work-card {
        min-height: 0;
    }

    .service-guide {
        padding: 18px 0;
    }

    .service-list article {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 34px 0;
    }

    .visual-service-list article,
    .visual-service-list article:first-child {
        grid-template-columns: 58px 1fr;
        gap: 16px;
        padding: 28px 22px;
    }

    .visual-service-list article::after {
        display: none;
    }

    .service-card__icon {
        right: 22px;
        top: 24px;
        width: 48px;
        height: 48px;
    }

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

    .contact-form {
        padding: 25px;
    }

    .contact-map {
        margin-top: 48px;
    }

    .contact-map iframe {
        height: 310px;
    }

    .empty-state {
        padding: 30px 24px;
    }

    .site-footer {
        padding-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .footer-logo {
        width: 195px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .footer-credit {
        font-size: .8rem;
    }
}

@media (max-width: 560px) {
    .home-services-heading p {
        font-size: 1rem;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .card--service {
        min-height: 0;
    }

    .card--service .card__number {
        margin-bottom: 18px;
    }

    .card--service .card__title {
        min-height: 0;
    }
}

@media (max-width: 430px) {
    .hero .button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .brand img {
        width: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

@media (min-width: 1051px) {
    .hero--aficoin {
        background-position: center center, center -46px;
    }
}
