.site-header {
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--color-muted);

    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-text);
}

.hero {
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;
}

.hero-eyebrow {
    margin-bottom: 24px;

    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    color: var(--color-muted);
}

.hero h1 {
    max-width: 980px;

    margin: 0;

    font-size: clamp(2.8rem, 4.4vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero-text {
    max-width: 620px;

    margin-block: 32px;

    font-size: 1.25rem;

    color: var(--color-muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding-inline: 28px;

    border: 1px solid var(--color-text);

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    color: var(--color-bg);
    background: var(--color-text);
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    display: block;
    width: 118px;
    height: auto;
}

.hero {
    position: relative;
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.78) 30%,
            rgba(0, 0, 0, 0.28) 65%,
            rgba(0, 0, 0, 0.10) 100%
        ),
        url("../img/home/hero/hero_avatar.webp");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

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

.hero h1,
.hero-text,
.hero-eyebrow {
    max-width: 760px;
}

.hero h1 {
    color: var(--color-heading);
}

.hero-text {
    color: var(--color-text);
}

.services-section {
    background: #2b2b2b;
}

.section-header {
    max-width: 760px;
    margin-bottom: 64px;
}

.section-eyebrow {
    margin: 0 0 16px;

    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--color-brand);
}

.section-header h2 {
    margin: 0;

    font-size: clamp(2rem, 3.5vw, 3.4rem);
    line-height: 1.05;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;

    background: var(--color-border);
}

.service-card {
    min-height: 280px;
    padding: 40px;

    background: var(--color-bg);
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 1.6rem;
    color: var(--color-heading);
}

.service-card p {
    margin: 0;

    max-width: 42ch;

    color: var(--color-text);
}

.approach-section {
    background: var(--color-bg);
}

.approach-section .container {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 80px;
    align-items: start;
}

.approach-section .section-header {
    margin-bottom: 0;
}

.approach-section .section-header p:last-child {
    margin-top: 28px;
    max-width: 58ch;

    color: var(--color-text);
    font-size: 1.1rem;
}

.principles-grid {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.principle {
    padding: 28px 0;

    border-bottom: 1px solid var(--color-border);
}

.principle h3 {
    margin: 0 0 8px;

    font-size: 1.35rem;
    color: var(--color-heading);
}

.principle p {
    margin: 0;

    color: var(--color-muted);
}

.problems-section {
    background: #2b2b2b;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.problem-card {
    position: relative;

    padding: 36px;

    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

.problem-card::before {
    display: block;

    margin-bottom: 24px;

    font-family: "Audiowide", sans-serif;
    font-size: 0.9rem;

    color: var(--color-brand);
}

.problem-card:nth-child(1)::before {
    content: "01";
}

.problem-card:nth-child(2)::before {
    content: "02";
}

.problem-card:nth-child(3)::before {
    content: "03";
}

.problem-card:nth-child(4)::before {
    content: "04";
}

.problem-card h3 {
    margin: 0 0 16px;

    font-size: 1.5rem;
    color: var(--color-heading);
}

.problem-card p {
    margin: 0;

    color: var(--color-text);
}

.problems-closing {
    margin: 56px 0 0;
    max-width: 760px;

    font-size: 1.35rem;
    color: var(--color-muted);
}

.about-section {
    background: var(--color-bg);
}

.about-section .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 80px;
    align-items: center;
}

.about-content {
    max-width: 720px;
}

.about-content h2 {
    margin: 0 0 28px;

    font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.about-content p {
    margin: 0 0 18px;

    font-size: 1.1rem;
    color: var(--color-text);
}

.about-signature {
    margin-top: 36px !important;

    font-family: "Audiowide", sans-serif;
    font-size: 1.35rem !important;

    color: var(--color-brand) !important;
}

.about-visual {
    min-height: 420px;

    border: 1px solid var(--color-border);
    background: #2b2b2b;
}

.cta-section {
    background: #2f6fd6;
}

.cta-content {
    max-width: 900px;
}

.cta-content h2 {
    margin: 0;

    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;

    color: #ffffff;
}

.cta-content p {
    margin: 28px 0;

    max-width: 60ch;

    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
}

.cta-section .button {
    border-color: #ffffff;
    color: #ffffff;
}

.cta-section .button:hover {
    background: #ffffff;
    color: var(--color-brand);
}

.contact-section {
    background: #2b2b2b;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;

    margin-top: 32px;
}

.contact-link {
    color: var(--color-text);
    border-bottom: 1px solid transparent;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.contact-link:hover {
    color: var(--color-brand);
    border-color: var(--color-brand);
}

.site-footer {
    padding-block: 56px;

    border-top: 1px solid var(--color-border);
    background: #242424;
}

.site-footer .container {
    display: block;
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.footer-brand {
    display: inline-flex;
    align-items: flex-start;

    margin: 0;
}

.footer-brand img {
    display: block;

    width: 150px;
    height: auto;
}

.footer-tagline {
    max-width: 24ch;

    margin: 0;

    color: var(--color-muted);

    font-size: 0.95rem;
    line-height: 1.55;
}

.footer-bottom {
    margin-top: 42px;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;

    color: var(--color-muted);

    font-size: 0.82rem;
}


/* ===== Header transparente / sticky ===== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    background: transparent;
    border-bottom: 1px solid transparent;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(36, 36, 36, 0.88);
    border-bottom-color: var(--color-border);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-header .container {
    min-height: 72px;
}

.site-header .main-nav a,
.site-header .site-header.is-scrolled .main-nav a,
/* El Hero sube detrás de la cabecera */
.hero {
    min-height: 100vh;
    padding-top: 72px;
}

.problem-card::before {
    margin-bottom: 20px;

    font-size: 1.25rem;
    letter-spacing: 0.08em;
}

.cta-content h2 {
    max-width: 820px;

    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.12;
}

.cta-content p {
    font-size: 1.25rem;
    line-height: 1.65;
}


.about-visual {
    overflow: hidden;
}

.about-visual img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* ===== About image refinement ===== */

.about-section .container {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    gap: 72px;
}

.about-visual {
    width: 100%;
    max-width: 360px;
    height: 460px;
    min-height: 0;

    justify-self: end;

    background: #2b2b2b;
}

.about-visual img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 38%;
}

/* =========================================================
   Internal pages
   ========================================================= */

.internal-page {
    background: var(--color-bg);
}

.internal-hero {
    min-height: 70vh;

    display: flex;
    align-items: flex-end;

    padding-top: 160px;
    padding-bottom: 100px;

    background:
        linear-gradient(
            135deg,
            #242424 0%,
            #303030 65%,
            #252525 100%
        );
}

.internal-hero .container {
    max-width: 1200px;
}

.internal-hero h1 {
    max-width: 950px;

    margin: 0;

    font-size: clamp(2.6rem, 4.6vw, 4.8rem);
    line-height: 1;
}

.internal-hero-text {
    max-width: 720px;

    margin: 32px 0 0;

    font-size: 1.4rem;
    color: var(--color-heading);
}

.internal-hero-description {
    max-width: 680px;

    margin: 18px 0 0;

    font-size: 1.05rem;
    color: var(--color-text);
}


/* Qué desarrollo */

.web-types-section {
    background: #2b2b2b;
}

.web-types-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;

    background: var(--color-border);
}

.web-type-card {
    min-height: 260px;

    padding: 36px;

    background: #303030;
}

.card-number,
.process-number {
    display: block;

    margin-bottom: 22px;

    font-family: "Audiowide", sans-serif;
    font-size: 1.1rem;
    color: var(--color-brand);
}

.web-type-card h3 {
    margin: 0 0 16px;

    font-size: 1.45rem;
    color: var(--color-heading);
}

.web-type-card p {
    margin: 0;

    max-width: 44ch;

    color: var(--color-text);
}


/* Proceso */

.process-section {
    background: var(--color-bg);
}

.process-list {
    border-top: 1px solid var(--color-border);
}

.process-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;

    padding: 28px 0;

    border-bottom: 1px solid var(--color-border);
}

.process-number {
    margin: 0;
}

.process-step h3 {
    margin: 0 0 6px;

    font-size: 1.35rem;
}

.process-step p {
    margin: 0;

    color: var(--color-muted);
}


/* Incluye */

.included-section {
    background: #2b2b2b;
}

.included-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin: 0;
    padding: 0;

    list-style: none;

    border-top: 1px solid var(--color-border);
}

.included-list li {
    padding: 24px 0;

    border-bottom: 1px solid var(--color-border);

    color: var(--color-heading);
}

.included-list li:nth-child(odd) {
    padding-right: 32px;
}

.included-list li:nth-child(even) {
    padding-left: 32px;
    border-left: 1px solid var(--color-border);
}


/* A medida */

.tailored-section {
    background: var(--color-bg);
}

.tailored-content {
    max-width: 820px;
}

.tailored-content h2 {
    margin: 0 0 30px;

    font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.tailored-content p {
    max-width: 64ch;

    font-size: 1.08rem;
    color: var(--color-text);
}

/* ===== Internal hero visual detail ===== */

.internal-hero {
    position: relative;
    overflow: hidden;
}

.internal-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(59, 130, 246, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.035) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.7) 35%,
            rgba(0, 0, 0, 1) 100%
        );

    pointer-events: none;
}

.internal-hero::after {
    content: "";

    position: absolute;
    top: 10%;
    right: -10%;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(59, 130, 246, 0.16) 0%,
            rgba(59, 130, 246, 0.06) 35%,
            transparent 70%
        );

    filter: blur(10px);

    pointer-events: none;
}

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

/* ===== Desarrollo Web hero image ===== */

.internal-page .internal-hero {
    background:
        linear-gradient(
            90deg,
            rgba(24, 24, 24, 0.98) 0%,
            rgba(24, 24, 24, 0.92) 38%,
            rgba(24, 24, 24, 0.58) 68%,
            rgba(24, 24, 24, 0.35) 100%
        ),
        url("../img/servicios/desarrollo-web/hero-desarrollo-web.webp");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* ===== Internal hero transition ===== */

.internal-page .internal-hero {
    background:
        linear-gradient(
            to bottom,
            transparent 68%,
            rgba(43, 43, 43, 0.35) 84%,
            #2b2b2b 100%
        ),
        linear-gradient(
            90deg,
            rgba(24, 24, 24, 0.98) 0%,
            rgba(24, 24, 24, 0.92) 38%,
            rgba(24, 24, 24, 0.58) 68%,
            rgba(24, 24, 24, 0.35) 100%
        ),
        url("../img/servicios/desarrollo-web/hero-desarrollo-web.webp");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* ===== Internal hero full screen ===== */

.internal-page .internal-hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 110px;
    padding-bottom: 70px;

    background:
        linear-gradient(
            90deg,
            rgba(24, 24, 24, 0.98) 0%,
            rgba(24, 24, 24, 0.92) 38%,
            rgba(24, 24, 24, 0.58) 68%,
            rgba(24, 24, 24, 0.35) 100%
        ),
        url("../img/servicios/desarrollo-web/hero-desarrollo-web.webp");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* ===== Web type cards refinement ===== */

.web-type-card {
    position: relative;
    overflow: hidden;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.web-type-card::after {
    content: "";

    position: absolute;
    inset: auto 0 0 0;

    height: 2px;

    background: var(--color-brand);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.25s ease;
}

.web-type-card:hover {
    background: #343434;
    transform: translateY(-2px);
}

.web-type-card:hover::after {
    transform: scaleX(1);
}

.card-number {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

/* ===== Home approach hover accent ===== */

.principle {
    position: relative;
    overflow: hidden;
}

.principle::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 100%;
    height: 2px;

    background: var(--color-brand);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.25s ease;
}

.principle:hover::after {
    transform: scaleX(1);
}

/* ===== Process timeline ===== */

.process-list {
    position: relative;
}

.process-list::before {
    content: "";

    position: absolute;
    left: 39px;
    top: 0;
    bottom: 0;

    width: 1px;

    background: var(--color-border);
}

.process-step {
    position: relative;

    grid-template-columns: 80px 1fr;
    gap: 28px;

    padding: 32px 0;
}

.process-number {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 80px;

    margin: 0;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    background: var(--color-bg);

    font-size: 1rem;
}

.process-step:hover .process-number {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.process-step h3 {
    margin-top: 8px;
}

/* ===== Included section visual detail ===== */

.included-section {
    position: relative;
    overflow: hidden;
}

.included-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(59, 130, 246, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.035) 1px,
            transparent 1px
        );

    background-size: 44px 44px;

    opacity: 0.7;

    pointer-events: none;
}

.included-section .container {
    position: relative;
    z-index: 1;
}

.included-list li {
    position: relative;
}

.included-list li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--color-brand);

    transform: translateY(-50%);
}

.included-list li {
    padding-left: 22px;
}

.included-list li:nth-child(even) {
    padding-left: 54px;
}

.included-list li:nth-child(even)::before {
    left: 32px;
}

/* ===== Tailored section refinement ===== */

.tailored-section {
    position: relative;
    overflow: hidden;
}

.tailored-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: var(--color-brand);
}

.tailored-content {
    padding-left: 36px;
}

.tailored-content h2 {
    max-width: 760px;
}

.tailored-content p {
    margin-bottom: 18px;
}

.tailored-content p:last-child {
    margin-bottom: 0;
}

/* ===== Tailored section refinement ===== */

.tailored-section {
    position: relative;
    overflow: hidden;
}

.tailored-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: var(--color-brand);
}

.tailored-content {
    padding-left: 36px;
}

.tailored-content h2 {
    max-width: 760px;
}

.tailored-content p {
    margin-bottom: 18px;
}

.tailored-content p:last-child {
    margin-bottom: 0;
}

/* ===== Internal CTA ===== */

.internal-page .cta-section {
    position: relative;
    overflow: hidden;
}

.internal-page .cta-section::after {
    content: "";

    position: absolute;
    top: -120px;
    right: -120px;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    pointer-events: none;
}

.internal-page .cta-section .container {
    position: relative;
    z-index: 1;
}

/* ===== Internal CTA grid variation ===== */

.internal-page .cta-section {
    position: relative;
    overflow: hidden;

    background: var(--color-brand);
}

.internal-page .cta-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.09) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.09) 1px,
            transparent 1px
        );

    background-size: 44px 44px;

    opacity: 0.45;

    pointer-events: none;
}

.internal-page .cta-section::after {
    content: "";

    position: absolute;
    top: -140px;
    right: -120px;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 0, 0, 0.32) 0%,
            rgba(0, 0, 0, 0.16) 38%,
            transparent 72%
        );

    filter: blur(12px);

    pointer-events: none;
}

.internal-page .cta-section .container {
    position: relative;
    z-index: 1;
}

/* ===== Internal CTA grid refinement ===== */

.internal-page .cta-section::before {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.055) 1px,
            transparent 1px
        );

    background-size: 54px 54px;

    opacity: 0.55;

    mask-image:
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.75) 55%,
            transparent 100%
        );

    -webkit-mask-image:
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.75) 55%,
            transparent 100%
        );
}

.internal-page .cta-section::after {
    top: -120px;
    right: -40px;

    width: 520px;
    height: 520px;

    background:
        radial-gradient(
            circle,
            rgba(0, 0, 0, 0.34) 0%,
            rgba(0, 0, 0, 0.18) 36%,
            rgba(0, 0, 0, 0.06) 58%,
            transparent 76%
        );

    filter: blur(18px);
}

/* ===== Internal CTA grid only ===== */

.internal-page .cta-section::after {
    content: none;
}

.internal-page .cta-section::before {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.055) 1px,
            transparent 1px
        );

    background-size: 54px 54px;

    opacity: 0.5;

    mask-image: none;
    -webkit-mask-image: none;
}

/* ===== Tailored section cleanup ===== */

.tailored-section::before {
    content: none;
}

.tailored-content {
    padding-left: 0;
}

/* ===== Tailored section cleanup ===== */

.tailored-section::before {
    content: none;
}

.tailored-content {
    padding-left: 0;
}

/* ===== CTA grid visibility refinement ===== */

.cta-section::before,
.internal-page .cta-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.08) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    opacity: 0.68;

    pointer-events: none;
}

.cta-section .container,
.internal-page .cta-section .container {
    position: relative;
    z-index: 1;
}

/* ===== CTA cleanup ===== */

.cta-section::before,
.internal-page .cta-section::before {
    content: none;
}

.cta-section::after,
.internal-page .cta-section::after {
    content: none;
}

.cta-section,
.internal-page .cta-section {
    background: var(--color-brand);
}

/* ===== Digital solutions ===== */

.digital-tools-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid var(--color-border);
}

.digital-tools-list > div {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 28px 0;

    border-bottom: 1px solid var(--color-border);
}

.digital-tools-list > div:nth-child(odd) {
    padding-right: 32px;
}

.digital-tools-list > div:nth-child(even) {
    padding-left: 32px;
    border-left: 1px solid var(--color-border);
}

.digital-tools-list strong {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-heading);
}

.digital-tools-list span {
    max-width: 46ch;

    color: var(--color-muted);
    line-height: 1.65;
}

/* ===== Soluciones Digitales hero ===== */

.digital-solutions-hero {
    background:
        linear-gradient(
            90deg,
            rgba(24, 24, 24, 0.98) 0%,
            rgba(24, 24, 24, 0.88) 45%,
            rgba(24, 24, 24, 0.72) 100%
        ),
        #242424;
}

/* ===== Soluciones Digitales hero image ===== */

.digital-solutions-hero {
    background:
        linear-gradient(
            90deg,
            rgba(24, 24, 24, 0.98) 0%,
            rgba(24, 24, 24, 0.90) 38%,
            rgba(24, 24, 24, 0.54) 68%,
            rgba(24, 24, 24, 0.28) 100%
        ),
        url("../img/servicios/soluciones-digitales/hero-soluciones-digitales.webp");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* ===== Soluciones Digitales hero override ===== */

.internal-page .digital-solutions-hero {
    background:
        linear-gradient(
            90deg,
            rgba(24, 24, 24, 0.98) 0%,
            rgba(24, 24, 24, 0.90) 38%,
            rgba(24, 24, 24, 0.54) 68%,
            rgba(24, 24, 24, 0.28) 100%
        ),
        url("../img/servicios/soluciones-digitales/hero-soluciones-digitales.webp");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* ===== Eyebrow global refinement ===== */

.section-eyebrow,
.hero-eyebrow {
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    line-height: 1.4;
}

/* ===== SEO hero image ===== */

.internal-page .seo-hero {
    background:
        linear-gradient(
            90deg,
            rgba(24, 24, 24, 0.98) 0%,
            rgba(24, 24, 24, 0.90) 38%,
            rgba(24, 24, 24, 0.52) 68%,
            rgba(24, 24, 24, 0.26) 100%
        ),
        url("../img/servicios/seo/hero-seo.webp");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* ===== Mantenimiento Web hero image ===== */

.internal-page .maintenance-hero {
    background:
        linear-gradient(
            90deg,
            rgba(24, 24, 24, 0.98) 0%,
            rgba(24, 24, 24, 0.90) 38%,
            rgba(24, 24, 24, 0.52) 68%,
            rgba(24, 24, 24, 0.26) 100%
        ),
        url("../img/servicios/mantenimiento-web/hero-mantenimiento-web.webp");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* ===== Contact page ===== */

.contact-page-section {
    background: #2b2b2b;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 80px;
    align-items: start;
}

.contact-page-intro {
    max-width: 520px;
}

.contact-page-intro h1,
.contact-page-intro h2 {
    margin: 0 0 24px;

    font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.contact-page-intro > p {
    color: var(--color-text);
}

.contact-direct {
    margin-top: 40px;
}

.contact-direct-label {
    margin-bottom: 14px;

    color: var(--color-muted);
}

.contact-form {
    display: grid;
    gap: 24px;
}

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

.form-field {
    display: grid;
    gap: 10px;
}

.form-field label,
.form-field legend {
    color: var(--color-heading);
}

.form-field input,
.form-field textarea {
    width: 100%;

    border: 1px solid var(--color-border);

    background: #303030;
    color: var(--color-heading);

    padding: 14px 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-brand);
    background: #343434;
}

.form-field textarea {
    resize: vertical;
}

.contact-preference {
    border: 0;
    padding: 0;
    margin: 0;
}

.contact-preference label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-right: 20px;

    color: var(--color-text);
}

.honeypot-field {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.turnstile-wrapper {
    min-height: 65px;
}

.form-message {
    margin: 0;

    min-height: 1.5em;

    color: #fca5a5;
}

/* ===== Contact page without hero ===== */

.contact-page-section {
    padding-top: 160px;
}

.contact-preference {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
}

.contact-preference legend {
    width: 100%;
    margin-bottom: 4px;
}

.contact-preference label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 0;
}

.contact-preference input[type="radio"] {
    width: auto;
    margin: 0;

    accent-color: var(--color-brand);
}

/* ===== Contact service selector ===== */

.service-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    border: 0;
    padding: 0;
    margin: 0;
}

.service-choice legend {
    grid-column: 1 / -1;

    margin-bottom: 4px;

    color: var(--color-heading);
}

.service-choice label {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 54px;

    padding: 14px 16px;

    border: 1px solid var(--color-border);

    background: #303030;
    color: var(--color-text);

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.service-choice label:hover {
    border-color: var(--color-brand);
}

.service-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-choice label:has(input:checked) {
    border-color: var(--color-brand);
    background: #343434;
    color: var(--color-heading);
}

/* ===== Preferred contact field ===== */

.form-field.is-preferred label {
    color: var(--color-brand);
}

.form-field.is-preferred input {
    border-color: var(--color-brand);
    background: #343434;
}

/* ===== Contact select ===== */

.form-field select {
    width: 100%;

    padding: 14px 44px 14px 16px;

    border: 1px solid var(--color-border);

    background-color: #303030;
    color: var(--color-heading);

    font: inherit;

    cursor: pointer;
    outline: none;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.form-field select:focus {
    border-color: var(--color-brand);
    background-color: #343434;
}

.form-field select option {
    background: #303030;
    color: var(--color-heading);
}

/* ===== Contact method fields ===== */

.form-field input:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    background: #292929;
}

.form-field.is-preferred input {
    opacity: 1;
    border-color: var(--color-brand);
    background: #343434;
}

/* ===== Contact method conditional fields ===== */

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

.form-field.contact-method-field {
    display: none;
}

.form-field.contact-method-field.is-visible {
    display: grid;

    animation: contactFieldIn 0.22s ease;
}

@keyframes contactFieldIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Contact method field width ===== */

.form-field.contact-method-field {
    width: 50%;
}

.form-message.is-success {
    color: #86efac;
}

.contact-form button:disabled {
    opacity: 0.55;
    cursor: wait;
}


/* =========================================================
   MBEW HEADER V2
   ========================================================= */

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site-logo {
    flex: 0 0 auto;
    margin-right: 38px;
}


/* DESKTOP NAV */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.desktop-nav a {
    position: relative;

    color: var(--color-heading);
    text-decoration: none;

    font-size: 0.92rem;
    line-height: 1;

    white-space: nowrap;

    transition: color 0.22s ease;
}

.desktop-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -9px;

    width: 100%;
    height: 2px;

    background: var(--color-brand);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.22s ease;
}

.desktop-nav a:hover {
    color: #ffffff;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.desktop-nav a.is-active {
    color: #ffffff;

    text-transform: uppercase;
    font-size: calc(0.92rem - 2.5px);
    letter-spacing: 0.01em;
}


/* LANGUAGE SWITCHER */

.language-switcher {
    position: relative;

    margin-left: 24px;
}

.language-switcher summary {
    display: flex;
    align-items: center;
    gap: 7px;

    list-style: none;

    color: var(--color-heading);

    font-size: 0.88rem;
    font-weight: 500;

    cursor: pointer;
    user-select: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher summary::after {
    content: "";

    width: 6px;
    height: 6px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg) translateY(-2px);

    transition: transform 0.2s ease;
}

.language-switcher[open] summary::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

.language-switcher-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;

    min-width: 86px;

    padding: 8px;

    background: rgba(36, 36, 36, 0.86);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.language-switcher-menu a {
    display: block;

    padding: 9px 12px;

    color: var(--color-text);
    text-decoration: none;

    font-size: 0.86rem;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.language-switcher-menu a:hover,
.language-switcher-menu a[aria-current="page"] {
    color: #ffffff;

    background: rgba(59, 130, 246, 0.12);
}


/* MOBILE MENU BUTTON */

.mobile-menu-toggle {
    display: none;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;

    width: 22px;
    height: 1.5px;

    margin-left: auto;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        width 0.3s ease;
}

.mobile-menu-toggle span + span {
    width: 16px;

    margin-top: 7px;
}

.mobile-menu-toggle.is-open span:first-child {
    width: 22px;

    transform:
        translateY(4.25px)
        rotate(45deg);
}

.mobile-menu-toggle.is-open span:last-child {
    width: 22px;

    transform:
        translateY(-4.25px)
        rotate(-45deg);
}


/* MOBILE MEGA MENU */

.mobile-mega-menu {
    display: none;
}


/* SEO hero title refinement */

.internal-page .seo-hero h1 {
    font-size: clamp(2.35rem, 4.1vw, 4.35rem);
}

/* =========================================================
   Service pages section rhythm
   ========================================================= */

/* Hero = section 1, mantiene su imagen propia */

.service-page main > section:nth-of-type(2) {
    background: #2b2b2b;
}

.service-page main > section:nth-of-type(3) {
    background: #333333;
}

.service-page main > section:nth-of-type(4) {
    background: #2b2b2b;
}

.service-page main > section:nth-of-type(5) {
    background: #333333;
}

/* La sección 6 es el CTA y conserva el azul de marca */

/* =========================================================
   Service editorial section consistency
   ========================================================= */

.service-page .tailored-content {
    max-width: 760px;
}

.service-page .tailored-content h2 {
    max-width: 720px;
}

.service-page .tailored-content p:not(.section-eyebrow) {
    max-width: 680px;
}


/* =========================================================
   Back to top
   ========================================================= */

.back-to-top {
    position: fixed;

    right: 24px;
    bottom: 24px;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.10);
    background: rgba(36,36,36,.78);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #ffffff;

    font-size: 1.15rem;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(59,130,246,.92);
}


/* =========================================================
   LEGAL PAGES
   ========================================================= */

.legal-content {
    max-width: 900px;
}

.legal-content > h1 {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.legal-update {
    margin: 0 0 56px;
    opacity: 0.7;
}

.legal-block {
    margin-top: 48px;
}

.legal-block h2 {
    margin-bottom: 18px;
}

.legal-block p {
    max-width: 780px;
    line-height: 1.75;
}

.legal-block p + p {
    margin-top: 16px;
}

.legal-block a {
    text-decoration: underline;
    text-underline-offset: 3px;
}


.footer-legal-links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
}

.footer-legal-links a {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
}


/* =========================================================
   COOKIE CONSENT
   ========================================================= */

.cookie-consent {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;

    max-width: 680px;
    margin: 0 auto;

    background: rgba(36, 36, 36, 0.96);
    border: 1px solid var(--border, #4a4a4a);
    border-radius: 14px;
    backdrop-filter: blur(14px);
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent p a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent button {
    padding: 10px 16px;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.cookie-reject {
    background: transparent;
    color: inherit;
}

.cookie-accept {
    background: #f5f5f5;
    color: #242424;
}

@media (max-width: 680px) {
    .cookie-consent {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .cookie-consent-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent button {
        flex: 1;
    }
}


/* Cookie consent — glass effect */

.cookie-consent {
    background: rgba(36, 36, 36, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

