/* =========================================================
   VARIABLES
========================================================= */

:root {
    --color-primary: #075985;
    --color-primary-dark: #0c4a6e;
    --color-primary-deep: #082f49;
    --color-primary-light: #e0f2fe;

    --color-secondary: #f97316;
    --color-secondary-dark: #c2410c;
    --color-secondary-light: #ffedd5;

    --color-whatsapp: #25d366;
    --color-whatsapp-dark: #128c3f;

    --color-dark: #0f172a;
    --color-heading: #172033;
    --color-text: #475569;
    --color-muted: #64748b;

    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #dbe4ee;

    --color-error: #b91c1c;
    --color-success: #15803d;

    --font-primary: Arial, Helvetica, sans-serif;

    --container-width: 1220px;

    --top-bar-height: 38px;
    --header-height: 82px;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 24px;
    --radius-round: 999px;

    --shadow-small:
        0 8px 24px rgba(15, 23, 42, 0.08);

    --shadow-medium:
        0 16px 40px rgba(15, 23, 42, 0.12);

    --shadow-large:
        0 24px 60px rgba(15, 23, 42, 0.18);

    --transition: 0.25s ease;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

    scroll-padding-top:
        calc(
            var(--header-height) +
            20px
        );
}

body {
    margin: 0;

    font-family: var(--font-primary);

    color: var(--color-text);

    background-color:
        var(--color-background);

    line-height: 1.6;

    -webkit-font-smoothing:
        antialiased;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

img,
video,
iframe,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--color-heading);
    line-height: 1.18;
}

h1 {
    margin-bottom: 20px;

    font-size:
        clamp(2.4rem, 8vw, 4.8rem);

    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 18px;

    font-size:
        clamp(2rem, 6vw, 3.3rem);

    letter-spacing: -0.03em;
}

h3 {
    margin-bottom: 12px;

    font-size: 1.35rem;
}

p {
    margin-bottom: 18px;
}

:focus-visible {
    outline:
        3px solid var(--color-secondary);

    outline-offset: 4px;
}


/* =========================================================
   UTILIDADES
========================================================= */

.container {
    width:
        min(
            100% - 32px,
            var(--container-width)
        );

    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

.section-heading {
    max-width: 820px;

    margin:
        0 auto 52px;

    text-align: center;
}

.section-heading p:last-child {
    margin-bottom: 0;
}

.section-label {
    display: inline-flex;

    width: fit-content;

    min-height: 36px;

    margin-bottom: 16px;

    padding:
        8px 15px;

    align-items: center;
    justify-content: center;

    color:
        var(--color-secondary-dark);

    background-color:
        #fff7ed;

    border:
        1px solid
        #fed7aa;

    border-radius:
        var(--radius-round);

    box-shadow:
        0 6px 18px
        rgba(249, 115, 22, 0.08);

    font-size:
        clamp(0.9rem, 1.6vw, 1rem);

    font-weight: 900;

    letter-spacing: 0.08em;

    line-height: 1;

    text-transform: uppercase;
}

.section-actions {
    margin-top: 38px;
    text-align: center;
}


/* =========================================================
   SKIP LINK
========================================================= */

.skip-link {
    position: fixed;

    top: 10px;
    left: 10px;

    z-index: 9999;

    padding: 12px 18px;

    color: #ffffff;

    background-color:
        var(--color-dark);

    border-radius:
        var(--radius-small);

    transform:
        translateY(-150%);

    transition:
        transform var(--transition);
}

.skip-link:focus {
    transform:
        translateY(0);
}


/* =========================================================
   BOTONES
========================================================= */

.button {
    display: inline-flex;

    min-height: 50px;

    padding: 13px 24px;

    align-items: center;
    justify-content: center;

    border:
        2px solid transparent;

    border-radius:
        var(--radius-round);

    font-weight: 800;

    line-height: 1.2;

    text-align: center;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.button:hover {
    transform:
        translateY(-2px);
}

.button--small {
    min-height: 42px;

    padding:
        10px 18px;

    font-size: 0.9rem;
}

.button--primary {
    color: #ffffff;

    background-color:
        var(--color-secondary);

    box-shadow:
        0 10px 24px
        rgba(249, 115, 22, 0.24);
}

.button--primary:hover {
    background-color:
        var(--color-secondary-dark);

    box-shadow:
        0 14px 28px
        rgba(249, 115, 22, 0.3);
}

.button--secondary {
    color:
        var(--color-dark);

    background-color:
        #ffffff;
}

.button--secondary:hover {
    color: #ffffff;

    background-color:
        var(--color-primary);
}

.button--outline {
    color:
        var(--color-primary);

    background-color:
        transparent;

    border-color:
        var(--color-primary);
}

.button--outline:hover {
    color: #ffffff;

    background-color:
        var(--color-primary);
}

.button--whatsapp {
    color: #ffffff;

    background-color:
        var(--color-whatsapp);
}

.button--whatsapp:hover {
    background-color:
        var(--color-whatsapp-dark);
}

.button--full {
    width: 100%;
}


/* =========================================================
   BARRA SUPERIOR
========================================================= */

.top-bar {
    display: none;

    min-height:
        var(--top-bar-height);

    color:
        rgba(255, 255, 255, 0.9);

    background-color:
        var(--color-primary-deep);
}

.top-bar__container {
    display: flex;

    min-height:
        var(--top-bar-height);

    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.top-bar__contact {
    display: flex;

    align-items: center;

    gap: 24px;

    font-size: 0.82rem;
}

.top-bar__contact a:hover {
    color: #ffffff;

    text-decoration: underline;
}

.top-bar__schedule {
    margin: 0;

    font-size: 0.82rem;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: sticky;

    top: 0;

    z-index: 1000;

    min-height:
        var(--header-height);

    background-color:
        rgba(255, 255, 255, 0.97);

    border-bottom:
        1px solid
        rgba(219, 228, 238, 0.9);

    backdrop-filter:
        blur(14px);

    transition:
        box-shadow var(--transition);
}

.header.is-scrolled {
    box-shadow:
        0 8px 26px
        rgba(15, 23, 42, 0.1);
}

.header__container {
    display: flex;

    min-height:
        var(--header-height);

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: inline-flex;

    min-width: 0;

    align-items: center;

    gap: 11px;
}

.logo__image {
    width: 58px;
    height: 58px;

    flex: 0 0 auto;

    object-fit: contain;

    border-radius: 12px;
}

.logo__text {
    display: flex;

    flex-direction: column;

    color:
        var(--color-dark);

    font-size: 0.78rem;
    font-weight: 700;

    line-height: 1.05;

    letter-spacing: 0.03em;
}

.logo__text strong {
    margin-top: 3px;

    color:
        var(--color-primary);

    font-size: 1rem;
}


/* =========================================================
   MENÚ HAMBURGUESA
========================================================= */

.menu-toggle {
    position: relative;

    z-index: 1002;

    display: flex;

    width: 48px;
    height: 48px;

    padding: 0;

    flex: 0 0 auto;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    background-color:
        transparent;

    border: 0;

    border-radius: 50%;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    background-color:
        var(--color-dark);

    border-radius: 10px;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.menu-toggle.is-active
span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}

.menu-toggle.is-active
span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active
span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* =========================================================
   NAVEGACIÓN MÓVIL
========================================================= */

.navigation {
    position: fixed;

    inset:
        var(--header-height)
        0 auto;

    z-index: 1001;

    display: flex;

    max-height:
        calc(
            100vh -
            var(--header-height)
        );

    padding:
        25px 20px 32px;

    flex-direction: column;

    gap: 24px;

    overflow-y: auto;

    background-color:
        #ffffff;

    border-top:
        1px solid
        var(--color-border);

    box-shadow:
        var(--shadow-medium);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-18px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

.navigation.is-open {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.navigation__list {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.navigation__list > li > a,
.navigation__dropdown-button {
    display: flex;

    width: 100%;

    padding:
        13px 10px;

    align-items: center;
    justify-content: space-between;

    color:
        var(--color-dark);

    font-weight: 700;

    text-align: left;

    background-color:
        transparent;

    border: 0;

    border-radius:
        var(--radius-small);
}

.navigation__list > li > a:hover,
.navigation__list > li > a[aria-current="page"],
.navigation__dropdown-button:hover {
    color:
        var(--color-primary);

    background-color:
        var(--color-primary-light);
}

.navigation__dropdown-button span {
    transition:
        transform var(--transition);
}

.navigation__dropdown-button[
    aria-expanded="true"
] span {
    transform:
        rotate(180deg);
}

.navigation__actions {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   MEGAMENÚ
========================================================= */

.navigation__dropdown {
    position: relative;
}

.mega-menu {
    display: none;

    margin-top: 8px;

    padding: 16px;

    background-color:
        var(--color-background);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);
}

.navigation__dropdown.is-open
.mega-menu {
    display: block;
}

.mega-menu__header {
    display: flex;

    margin-bottom: 16px;

    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.mega-menu__header strong {
    display: block;

    color:
        var(--color-heading);

    font-size: 0.95rem;
}

.mega-menu__header
.section-label {
    min-height: 0;

    margin-bottom: 5px;

    padding: 0;

    color:
        var(--color-secondary-dark);

    background-color:
        transparent;

    border: 0;

    border-radius: 0;

    box-shadow: none;

    font-size: 0.72rem;
}

.mega-menu__header > a {
    color:
        var(--color-primary);

    font-size: 0.85rem;
    font-weight: 800;
}

.mega-menu__grid {
    display: grid;

    gap: 12px;
}

.mega-menu__card {
    display: grid;

    grid-template-columns:
        75px 1fr;

    min-height: 72px;

    align-items: center;

    gap: 12px;

    overflow: hidden;

    color:
        var(--color-heading);

    font-weight: 800;

    background-color:
        #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-small);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.mega-menu__card:hover {
    border-color:
        rgba(7, 89, 133, 0.35);

    box-shadow:
        var(--shadow-small);

    transform:
        translateY(-2px);
}

.mega-menu__card img {
    width: 75px;
    height: 72px;

    object-fit: cover;
}

.mega-menu__card span {
    padding-right: 10px;

    font-size: 0.88rem;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    display: flex;

    min-height:
        calc(
            100vh -
            var(--header-height)
        );

    align-items: center;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(5, 35, 54, 0.94) 0%,
            rgba(5, 35, 54, 0.82) 42%,
            rgba(5, 35, 54, 0.56) 72%,
            rgba(5, 35, 54, 0.46) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8, 47, 73, 0.18),
            rgba(8, 47, 73, 0.48)
        ),
        url(
            "../assets/images/grupotrabajo/grupo1.jpeg"
        )
        center 28% / cover no-repeat;
}

.hero::after {
    position: absolute;

    right: -120px;
    bottom: -160px;

    width: 340px;
    height: 340px;

    content: "";

    background-color:
        rgba(249, 115, 22, 0.2);

    border-radius: 50%;

    filter:
        blur(10px);
}

.hero__overlay {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(14, 165, 233, 0.22),
            transparent 38%
        );
}

.hero__content {
    position: relative;

    z-index: 1;

    max-width: 860px;

    padding-top: 85px;
    padding-bottom: 85px;
}

.hero h1 {
    max-width: 840px;

    color: #ffffff;
}

.hero .section-label {
    color: #ffffff;

    background-color:
        rgba(249, 115, 22, 0.94);

    border-color:
        rgba(255, 255, 255, 0.18);

    box-shadow:
        0 10px 24px
        rgba(194, 65, 12, 0.22);
}

.hero__description {
    max-width: 700px;

    margin-bottom: 30px;

    color:
        rgba(255, 255, 255, 0.9);

    font-size:
        clamp(1.05rem, 3vw, 1.3rem);
}

.hero__actions {
    display: flex;

    margin-bottom: 30px;

    flex-direction: column;

    gap: 14px;
}

.hero__benefits {
    display: flex;

    flex-direction: column;

    gap: 10px;

    color:
        rgba(255, 255, 255, 0.95);

    font-weight: 700;
}

.hero__benefits li {
    position: relative;

    padding-left: 25px;
}

.hero__benefits li::before {
    position: absolute;

    top: 1px;
    left: 0;

    color: #fb923c;

    content: "✓";
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    position: relative;

    padding:
        85px 0;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--color-primary-deep),
            var(--color-primary)
        );
}

.page-hero h1 {
    max-width: 850px;

    margin-bottom: 20px;

    color: #ffffff;

    font-size:
        clamp(2.4rem, 7vw, 4rem);
}

.page-hero p:not(.section-label) {
    max-width: 700px;

    margin-bottom: 0;

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 1.1rem;
}

.page-hero .section-label {
    color: #ffffff;

    background-color:
        rgba(249, 115, 22, 0.92);

    border-color:
        rgba(255, 255, 255, 0.16);
}


/* =========================================================
   ACERCA DE
========================================================= */

.about-preview {
    background-color:
        var(--color-surface);
}

.about-preview__container {
    display: grid;

    gap: 42px;

    align-items: center;
}

.about-preview__image {
    position: relative;
}

.about-preview__image img {
    width: 100%;

    min-height: 380px;

    max-height: 560px;

    object-fit: cover;
    object-position: center;

    border:
        1px solid
        rgba(203, 213, 225, 0.9);

    border-radius:
        var(--radius-large);

    box-shadow:
        0 22px 50px
        rgba(15, 23, 42, 0.14);
}

.about-preview__badge {
    position: absolute;

    right: 18px;
    bottom: 18px;

    display: flex;

    min-width: 130px;

    padding: 18px;

    flex-direction: column;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            var(--color-secondary),
            var(--color-secondary-dark)
        );

    border:
        4px solid #ffffff;

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-medium);
}

.about-preview__badge strong {
    font-size: 1.55rem;

    line-height: 1;
}

.about-preview__badge span {
    margin-top: 4px;

    font-size: 0.82rem;
}

.about-preview__content {
    max-width: 650px;
}

.about-preview__features {
    display: grid;

    margin:
        26px 0 30px;

    gap: 12px;
}

.about-preview__features li {
    position: relative;

    padding-left: 27px;

    color:
        var(--color-heading);

    font-weight: 700;
}

.about-preview__features li::before {
    position: absolute;

    left: 0;

    color:
        var(--color-secondary);

    content: "✓";
}


/* =========================================================
   SERVICIOS
========================================================= */

.services {
    background-color:
        var(--color-background);
}

.services__grid {
    display: grid;

    gap: 22px;
}


/* =========================================================
   TARJETA DE SERVICIO
========================================================= */

.service-card {
    position: relative;

    overflow: hidden;

    background-color:
        var(--color-surface);

    border:
        1px solid
        rgba(203, 213, 225, 0.9);

    border-radius: 18px;

    box-shadow:
        0 8px 24px
        rgba(15, 23, 42, 0.06);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.service-card:hover {
    border-color:
        rgba(7, 89, 133, 0.25);

    box-shadow:
        0 20px 42px
        rgba(15, 23, 42, 0.11);

    transform:
        translateY(-7px);
}

.service-card__image {
    width: 100%;

    height: 220px;

    object-fit: cover;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.service-card:hover
.service-card__image {
    transform:
        scale(1.035);

    filter:
        saturate(1.05);
}

.service-card__content {
    padding:
        30px 28px 28px;
}

.service-card h3 {
    margin-bottom: 12px;

    color:
        var(--color-heading);

    font-size: 1.35rem;

    font-weight: 800;

    letter-spacing:
        -0.02em;
}

.service-card p {
    color:
        var(--color-text);
}


/* =========================================================
   TARJETAS DE SERVICIO CLICABLES
========================================================= */

.service-card--link {
    display: block;

    color: inherit;

    text-decoration: none;

    cursor: pointer;
}

.service-card--link:visited {
    color: inherit;
}

.service-card--link:focus-visible {
    outline:
        3px solid var(--color-secondary);

    outline-offset: 4px;
}

.service-card__more {
    display: inline-flex;

    align-items: center;

    color:
        var(--color-primary);

    font-size: 0.95rem;

    font-weight: 800;

    transition:
        color var(--transition);
}

.service-card__more::after {
    margin-left: 8px;

    content: "→";

    transition:
        transform var(--transition);
}

.service-card--link:hover
.service-card__more {
    color:
        var(--color-primary-dark);
}

.service-card--link:hover
.service-card__more::after {
    transform:
        translateX(5px);
}


/* =========================================================
   ICONOS SVG DE SERVICIOS
========================================================= */

.service-card__icon {
    display: grid;

    width: 60px;
    height: 60px;

    margin-bottom: 22px;

    place-items: center;

    color:
        var(--color-primary);

    background:
        linear-gradient(
            145deg,
            #f8fcff,
            var(--color-primary-light)
        );

    border:
        1px solid
        rgba(7, 89, 133, 0.12);

    border-radius: 16px;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.8),
        0 8px 18px
        rgba(15, 23, 42, 0.06);

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
}

.service-card:hover
.service-card__icon {
    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            var(--color-primary),
            var(--color-primary-dark)
        );

    border-color:
        transparent;

    box-shadow:
        0 10px 22px
        rgba(7, 89, 133, 0.22);

    transform:
        translateY(-3px);
}


/* AIRE */

.service-card__icon--air {
    color: #0284c7;

    background:
        linear-gradient(
            145deg,
            #f0f9ff,
            #e0f2fe
        );
}


/* CALDERA */

.service-card__icon--boiler {
    color: #ea580c;

    background:
        linear-gradient(
            145deg,
            #fff7ed,
            #ffedd5
        );
}


/* FONTANERÍA */

.service-card__icon--plumbing {
    color: #0369a1;

    background:
        linear-gradient(
            145deg,
            #f0f9ff,
            #dbeafe
        );
}


/* TERMO */

.service-card__icon--heater {
    color: #d97706;

    background:
        linear-gradient(
            145deg,
            #fffbeb,
            #fef3c7
        );
}


/* =========================================================
   VENTAJAS
========================================================= */

.advantages {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--color-primary-deep),
            var(--color-primary)
        );
}

.advantages .section-label {
    color: #ffffff;

    background-color:
        rgba(249, 115, 22, 0.92);

    border-color:
        rgba(255, 255, 255, 0.16);
}

.advantages .section-heading h2 {
    color: #ffffff;
}

.advantages .section-heading p {
    color:
        rgba(255, 255, 255, 0.8);
}

.advantages__grid {
    display: grid;

    gap: 20px;
}

.advantage-card {
    padding: 28px;

    background-color:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius:
        var(--radius-medium);

    backdrop-filter:
        blur(6px);

    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.advantage-card:hover {
    background-color:
        rgba(255, 255, 255, 0.11);

    border-color:
        rgba(255, 255, 255, 0.23);

    box-shadow:
        0 16px 34px
        rgba(0, 0, 0, 0.12);

    transform:
        translateY(-5px);
}

.advantage-card__icon {
    display: grid;

    width: 56px;
    height: 56px;

    margin-bottom: 22px;

    place-items: center;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.08)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 15px;

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.advantage-card__icon svg {
    width: 28px;
    height: 28px;
}

.advantage-card:hover
.advantage-card__icon {
    background:
        linear-gradient(
            145deg,
            var(--color-secondary),
            var(--color-secondary-dark)
        );

    box-shadow:
        0 10px 22px
        rgba(249, 115, 22, 0.25);

    transform:
        translateY(-3px);
}

.advantage-card h3 {
    color: #ffffff;
}

.advantage-card p {
    margin-bottom: 0;

    color:
        rgba(255, 255, 255, 0.78);
}


/* =========================================================
   GALERÍA
========================================================= */

.gallery {
    background-color:
        var(--color-surface);
}

.gallery__grid {
    display: grid;

    gap: 16px;
}

.gallery__item {
    position: relative;

    min-height: 260px;

    overflow: hidden;

    background-color:
        #dbeafe;

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-small);
}

button.gallery__item {
    width: 100%;

    padding: 0;

    appearance: none;

    border: 0;

    cursor: pointer;
}

.gallery__item::after {
    position: absolute;

    inset: 0;

    content: "";

    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, 0.78),
            rgba(15, 23, 42, 0.02)
            65%
        );

    pointer-events: none;
}

.gallery__item img {
    width: 100%;

    height: 100%;

    min-height: 260px;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.gallery__item:hover img {
    transform:
        scale(1.06);
}

.gallery__caption {
    position: absolute;

    right: 20px;
    bottom: 18px;
    left: 20px;

    z-index: 2;

    color: #ffffff;

    font-size: 1.05rem;

    font-weight: 800;

    pointer-events: none;
}


/* =========================================================
   GALERÍA - VÍDEOS
========================================================= */

.gallery__item--video {
    position: relative;
}

.gallery__item--video video {
    width: 100%;

    height: 100%;

    min-height: 260px;

    object-fit: cover;
}

.gallery__video-icon {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 3;

    display: grid;

    width: 64px;
    height: 64px;

    padding-left: 4px;

    place-items: center;

    color: #ffffff;

    font-size: 1.4rem;

    background-color:
        rgba(15, 23, 42, 0.75);

    border:
        2px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 50%;

    transform:
        translate(-50%, -50%);

    transition:
        background-color var(--transition),
        transform var(--transition);
}

.gallery__item--video:hover
.gallery__video-icon {
    background-color:
        var(--color-secondary);

    transform:
        translate(-50%, -50%)
        scale(1.08);
}


/* =========================================================
   NAVEGACIÓN GALERÍA
========================================================= */

.gallery-navigation {
    position: sticky;

    top:
        var(--header-height);

    z-index: 100;

    padding: 14px 0;

    background-color:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid
        var(--color-border);

    backdrop-filter:
        blur(12px);
}

.gallery-navigation__list {
    display: flex;

    overflow-x: auto;

    gap: 10px;

    scrollbar-width: thin;
}

.gallery-navigation__list a {
    display: inline-flex;

    min-height: 42px;

    padding:
        9px 17px;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    color:
        var(--color-heading);

    font-size: 0.9rem;

    font-weight: 800;

    background-color:
        var(--color-background);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-round);

    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.gallery-navigation__list a:hover {
    color: #ffffff;

    background-color:
        var(--color-primary);

    border-color:
        var(--color-primary);

    transform:
        translateY(-1px);
}


/* =========================================================
   METODOLOGÍA
========================================================= */

.process {
    background-color:
        var(--color-background);
}

.process__grid {
    display: grid;

    gap: 20px;
}

.process-card {
    position: relative;

    padding: 28px;

    background-color:
        #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-small);
}

.process-card__number {
    display: inline-block;

    margin-bottom: 18px;

    color:
        var(--color-secondary);

    font-size: 2rem;

    font-weight: 900;

    line-height: 1;
}

.process-card p {
    margin-bottom: 0;
}



/* =========================================================
   INDEX - ACABADO CORPORATIVO
========================================================= */

/* Cabeceras de sección más claras y con mejor jerarquía */

.services .section-heading,
.gallery .section-heading,
.rates-preview .section-heading {
    max-width: 850px;
}

.services .section-heading h2,
.gallery .section-heading h2,
.rates-preview .section-heading h2,
.about-preview__content h2 {
    color:
        var(--color-dark);

    font-weight: 900;
}

.services .section-heading > p:not(.section-label),
.gallery .section-heading > p:not(.section-label),
.rates-preview .section-heading > p:not(.section-label) {
    max-width: 690px;

    margin-inline: auto;

    color:
        var(--color-muted);

    font-size:
        1.05rem;

    line-height: 1.7;
}


/* La empresa: fotografía real del equipo */

.about-preview__image {
    isolation: isolate;
}

.about-preview__image::before {
    position: absolute;

    top: -14px;
    left: -14px;

    z-index: -1;

    width: 38%;
    height: 42%;

    content: "";

    background:
        linear-gradient(
            145deg,
            var(--color-primary-light),
            rgba(224, 242, 254, 0.2)
        );

    border-radius:
        var(--radius-large);
}

.about-preview__content > .section-label {
    margin-bottom: 18px;
}

.about-preview__content > p:not(.section-label) {
    font-size: 1.02rem;

    line-height: 1.75;
}


/* Hero: mayor presencia del equipo real */

.hero h1 {
    text-shadow:
        0 3px 24px
        rgba(2, 6, 23, 0.22);
}

.hero__description {
    text-shadow:
        0 2px 16px
        rgba(2, 6, 23, 0.18);
}

.hero__benefits li {
    text-shadow:
        0 1px 10px
        rgba(2, 6, 23, 0.16);
}


/* Etiquetas de las secciones centradas */

.section-heading .section-label {
    margin-inline: auto;
}


/* En tarjetas y contenidos alineados a la izquierda conservamos la etiqueta natural */

.about-preview__content .section-label,
.quote__information .section-label,
.coverage-preview__content .section-label {
    margin-inline: 0;
}



/* =========================================================
   TARIFAS
========================================================= */

.rates-preview {
    color:
        var(--color-text);

    background-color:
        var(--color-background);
}

.rates-preview h2 {
    color:
        var(--color-heading);
}

.rates-preview p {
    color:
        var(--color-text);
}


/* =========================================================
   TABLA DE TARIFAS
========================================================= */

.rates-table-wrapper {
    overflow-x: auto;

    background-color:
        #ffffff;

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-small);
}

.rates-table {
    width: 100%;

    border-collapse:
        collapse;
}

.rates-table th,
.rates-table td {
    padding:
        18px 20px;

    text-align: left;

    border-bottom:
        1px solid
        var(--color-border);
}

.rates-table th {
    color: #ffffff;

    background-color:
        var(--color-primary);

    font-size: 0.92rem;

    font-weight: 800;
}

.rates-table td {
    color:
        var(--color-text);

    background-color:
        #ffffff;
}

.rates-table tbody tr:last-child td {
    border-bottom: 0;
}

.rates-table tbody tr {
    transition:
        background-color var(--transition);
}

.rates-table tbody tr:hover td {
    background-color:
        #f0f9ff;
}

.rates-table td:first-child {
    color:
        var(--color-heading);

    font-weight: 800;
}

.rates-table td:last-child {
    color:
        var(--color-secondary-dark);

    font-weight: 900;

    white-space: nowrap;
}

.rates-note {
    margin:
        14px 0 0;

    color:
        var(--color-muted);

    font-size: 0.84rem;
}


/* =========================================================
   PRESUPUESTO
========================================================= */

.quote {
    background:
        linear-gradient(
            135deg,
            #f0f9ff,
            #ffffff 65%
        );
}

.quote__container {
    display: grid;

    gap: 40px;

    align-items: start;
}

.quote__information {
    max-width: 600px;
}

.quote__benefits {
    display: grid;

    margin-top: 28px;

    gap: 12px;
}

.quote__benefits li {
    position: relative;

    padding-left: 27px;

    color:
        var(--color-heading);

    font-weight: 700;
}

.quote__benefits li::before {
    position: absolute;

    left: 0;

    color:
        var(--color-secondary);

    content: "✓";
}


/* =========================================================
   CTA PRESUPUESTO
========================================================= */

.quote-cta {
    background-color:
        var(--color-secondary-light);
}

.quote-cta__container {
    display: grid;

    gap: 30px;

    align-items: center;
}

.quote-cta__content {
    max-width: 760px;
}

.quote-cta__features {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.quote-cta__features li {
    position: relative;

    padding-left: 25px;

    color:
        var(--color-heading);

    font-weight: 700;
}

.quote-cta__features li::before {
    position: absolute;

    left: 0;

    color:
        var(--color-secondary-dark);

    content: "✓";
}


/* =========================================================
   COBERTURA
========================================================= */

.coverage-preview {
    background-color:
        var(--color-surface);
}

.coverage-preview__container {
    display: grid;

    gap: 28px;

    align-items: stretch;
}

.coverage-preview__content {
    padding: 30px;

    background-color:
        var(--color-primary-light);

    border-radius:
        var(--radius-large);
}

.coverage-preview__content ul {
    display: grid;

    margin:
        24px 0 28px;

    gap: 11px;
}

.coverage-preview__content li {
    position: relative;

    padding-left: 24px;

    color:
        var(--color-heading);

    font-weight: 700;
}

.coverage-preview__content li::before {
    position: absolute;

    left: 0;

    color:
        var(--color-primary);

    content: "●";
}

.coverage-preview__map {
    min-height: 380px;

    overflow: hidden;

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-small);
}

.coverage-preview__map iframe {
    width: 100%;

    height: 100%;

    min-height: 380px;

    border: 0;
}


/* =========================================================
   CONTACTO
========================================================= */

.contact {
    color: #ffffff;

    background-color:
        var(--color-dark);
}

.contact__container {
    display: grid;

    gap: 28px;

    align-items: center;
}

.contact h2 {
    color: #ffffff;
}

.contact p:not(.section-label) {
    color:
        rgba(255, 255, 255, 0.75);
}

.contact .section-label {
    color: #ffffff;

    background-color:
        rgba(249, 115, 22, 0.92);

    border-color:
        rgba(255, 255, 255, 0.16);
}

.contact__actions {
    display: flex;

    flex-direction: column;

    gap: 14px;
}


/* =========================================================
   FORMULARIO
========================================================= */

.quote-form {
    padding: 25px;

    color:
        var(--color-text);

    background-color:
        #ffffff;

    border:
        1px solid
        rgba(203, 213, 225, 0.7);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-large);
}

.form-row {
    display: grid;

    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: inline-block;

    margin-bottom: 7px;

    color:
        var(--color-heading);

    font-size: 0.95rem;

    font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding:
        13px 14px;

    color:
        var(--color-dark);

    background-color:
        #ffffff;

    border:
        1px solid
        #cbd5e1;

    border-radius:
        var(--radius-small);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:
        var(--color-primary);

    outline: none;

    box-shadow:
        0 0 0 4px
        rgba(7, 89, 133, 0.12);
}

.form-group textarea {
    min-height: 150px;

    resize: vertical;
}

.form-group--checkbox {
    display: grid;

    grid-template-columns:
        auto 1fr;

    align-items: start;

    gap: 10px;
}

.form-group--checkbox input {
    width: 19px;
    height: 19px;

    margin-top: 3px;
}

.form-group--checkbox label {
    margin: 0;

    color:
        var(--color-text);

    font-weight: 500;
}

.form-group--checkbox a {
    color:
        var(--color-primary);

    font-weight: 800;

    text-decoration: underline;
}

.form-help {
    margin:
        7px 0 0;

    color:
        var(--color-muted);

    font-size: 0.82rem;
}

.form-error {
    display: block;

    min-height: 20px;

    margin-top: 5px;

    color:
        var(--color-error);

    font-size: 0.82rem;

    font-weight: 700;
}

.form-status {
    margin:
        14px 0 0;

    font-weight: 700;

    text-align: center;
}

.form-status.is-success {
    color:
        var(--color-success);
}

.form-status.is-error {
    color:
        var(--color-error);
}


/* =========================================================
   PREVISUALIZACIÓN ARCHIVOS
========================================================= */

.file-preview {
    display: grid;

    margin-top: 14px;

    gap: 10px;
}

.file-preview__item {
    display: flex;

    padding:
        10px 12px;

    align-items: center;

    gap: 12px;

    background-color:
        var(--color-background);

    border:
        1px solid
        var(--color-border);

    border-radius:
        var(--radius-small);
}

.file-preview__information {
    display: flex;

    min-width: 0;

    flex: 1;

    flex-direction: column;

    gap: 3px;
}

.file-preview__information span {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 0.85rem;
}

.file-preview__information strong {
    color:
        var(--color-muted);

    font-size: 0.75rem;
}

.file-preview__image {
    width: 54px;
    height: 54px;

    flex: 0 0 auto;

    object-fit: cover;

    border-radius: 7px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding:
        64px 0 24px;

    color: #cbd5e1;

    background-color:
        #080e1a;
}

.footer__grid {
    display: grid;

    gap: 36px;
}

.footer__company {
    max-width: 360px;
}

.logo--footer {
    margin-bottom: 18px;
}

.logo--footer .logo__text {
    color: #ffffff;
}

.logo--footer .logo__image {
    border:
        2px solid
        rgba(255, 255, 255, 0.12);
}

.footer__title {
    margin-bottom: 18px;

    color: #ffffff;

    font-size: 1.05rem;
}

.footer__links {
    display: grid;

    gap: 10px;
}

.footer__links a {
    color: #cbd5e1;
}

.footer__links a:hover {
    color: #ffffff;
}

.footer__contact {
    display: flex;

    flex-direction: column;

    gap: 10px;

    font-style: normal;
}

.footer__contact a:hover {
    color: #ffffff;
}

.footer__bottom {
    display: flex;

    margin-top: 42px;

    padding-top: 24px;

    flex-direction: column;

    align-items: center;

    gap: 16px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.1);

    text-align: center;
}

.footer__bottom p {
    margin: 0;

    font-size: 0.85rem;
}

.footer__legal {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap:
        10px 20px;

    font-size: 0.85rem;
}

.footer__legal a:hover {
    color: #ffffff;
}


/* =========================================================
   WHATSAPP FLOTANTE
========================================================= */

.whatsapp-floating {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 900;

    display: grid;

    width: 60px;
    height: 60px;

    place-items: center;

    color: #ffffff;

    background-color:
        var(--color-whatsapp);

    border:
        3px solid #ffffff;

    border-radius: 50%;

    box-shadow:
        0 12px 30px
        rgba(37, 211, 102, 0.4);

    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.whatsapp-floating svg {
    width: 30px;
    height: 30px;
}

.whatsapp-floating:hover {
    background-color:
        var(--color-whatsapp-dark);

    transform:
        translateY(-5px)
        scale(1.04);

    box-shadow:
        0 16px 34px
        rgba(37, 211, 102, 0.45);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: grid;

    padding:
        70px 20px 30px;

    place-items: center;

    background-color:
        rgba(2, 6, 23, 0.94);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.lightbox.is-open {
    opacity: 1;

    visibility: visible;
}

.lightbox__content {
    display: grid;

    width:
        min(100%, 1100px);

    max-height:
        calc(
            100vh -
            110px
        );

    place-items: center;
}

.lightbox__content img,
.lightbox__content video {
    max-width: 100%;

    max-height:
        calc(
            100vh -
            110px
        );

    object-fit: contain;

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--shadow-large);
}

.lightbox__close {
    position: absolute;

    top: 18px;
    right: 20px;

    display: grid;

    width: 48px;
    height: 48px;

    place-items: center;

    color: #ffffff;

    font-size: 2rem;

    background-color:
        rgba(255, 255, 255, 0.12);

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    border-radius: 50%;
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 600px) {

    .hero__actions,
    .contact__actions {
        flex-direction: row;

        flex-wrap: wrap;
    }

    .hero__benefits,
    .quote-cta__features {
        flex-direction: row;

        flex-wrap: wrap;

        gap:
            14px 28px;
    }

    .mega-menu__grid,
    .services__grid,
    .gallery__grid,
    .advantages__grid,
    .process__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .about-preview__features {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .form-row {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .footer__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


/* =========================================================
   ESCRITORIO
========================================================= */

@media (min-width: 769px) {

    html {
        scroll-padding-top:
            calc(
                var(--header-height) +
                24px
            );
    }

    .top-bar {
        display: block;
    }

    .header {
        top: 0;
    }

    .menu-toggle {
        display: none;
    }

    .logo__image {
        width: 66px;
        height: 66px;
    }

    .navigation {
        position: static;

        display: flex;

        max-height: none;

        padding: 0;

        flex-direction: row;

        align-items: center;

        gap: 18px;

        overflow: visible;

        background-color:
            transparent;

        border: 0;

        box-shadow: none;

        opacity: 1;

        visibility: visible;

        transform: none;
    }

    .navigation__list {
        flex-direction: row;

        align-items: center;

        gap: 2px;
    }

    .navigation__list > li > a,
    .navigation__dropdown-button {
        padding:
            10px 9px;

        font-size: 0.86rem;

        white-space: nowrap;
    }

    .navigation__actions {
        flex-direction: row;

        gap: 8px;
    }

    .navigation__actions .button {
        padding-inline: 14px;

        font-size: 0.82rem;
    }

    .navigation__dropdown {
        position: static;
    }

    .header__container {
        position: relative;
    }

    .mega-menu {
        position: absolute;

        top:
            calc(100% + 1px);

        left: 50%;

        display: block;

        width:
            min(
                calc(100vw - 32px),
                1040px
            );

        margin-top: 0;

        padding: 24px;

        background-color:
            #ffffff;

        border-radius:
            0 0
            var(--radius-large)
            var(--radius-large);

        box-shadow:
            var(--shadow-large);

        opacity: 0;

        visibility: hidden;

        transform:
            translate(-50%, -10px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .navigation__dropdown:hover
    .mega-menu,
    .navigation__dropdown:focus-within
    .mega-menu,
    .navigation__dropdown.is-open
    .mega-menu {
        opacity: 1;

        visibility: visible;

        transform:
            translate(-50%, 0);
    }

    .mega-menu__grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .mega-menu__card {
        grid-template-columns:
            95px 1fr;

        min-height: 88px;
    }

    .mega-menu__card img {
        width: 95px;
        height: 88px;
    }

    .hero {
        min-height:
            calc(
                100vh -
                var(--header-height)
            );
    }

    .hero__content {
        padding-top: 110px;
        padding-bottom: 110px;
    }

    .about-preview__container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 0.95fr);
    }

    .quote__container {
        grid-template-columns:
            minmax(0, 0.85fr)
            minmax(0, 1.15fr);
    }

    .quote-cta__container {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    .coverage-preview__container {
        grid-template-columns:
            0.85fr
            1.15fr;
    }

    .contact__container {
        grid-template-columns:
            1fr auto;
    }

    .footer__grid {
        grid-template-columns:
            1.3fr
            repeat(3, 1fr);
    }

    .footer__bottom {
        flex-direction: row;

        justify-content:
            space-between;

        text-align: left;
    }

    .gallery-navigation {
        top:
            var(--header-height);
    }

    .gallery-navigation__list {
        justify-content: center;

        overflow: visible;
    }
}


/* =========================================================
   ESCRITORIO MEDIO
========================================================= */

@media (min-width: 1000px) {

    .section {
        padding:
            105px 0;
    }

    .navigation__list > li > a,
    .navigation__dropdown-button {
        padding-inline: 11px;

        font-size: 0.9rem;
    }

    .services__grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

    .advantages__grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

    .gallery__grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

    .process__grid {
        grid-template-columns:
            repeat(
                5,
                minmax(0, 1fr)
            );
    }

    .process-card {
        padding: 24px;
    }

    .quote-form {
        padding: 38px;
    }
}


/* =========================================================
   ESCRITORIO GRANDE
========================================================= */

@media (min-width: 1180px) {

    .navigation {
        gap: 24px;
    }

    .navigation__list {
        gap: 4px;
    }

    .navigation__actions .button {
        padding-inline: 18px;

        font-size: 0.88rem;
    }

    .logo__text {
        font-size: 0.86rem;
    }

    .logo__text strong {
        font-size: 1.08rem;
    }
}


/* =========================================================
   TARIFAS EN MÓVIL
========================================================= */

@media (max-width: 650px) {

    .rates-table-wrapper {
        overflow: visible;

        background-color:
            transparent;

        border: 0;

        box-shadow: none;
    }

    .rates-table,
    .rates-table tbody,
    .rates-table tr,
    .rates-table td {
        display: block;

        width: 100%;
    }

    .rates-table thead {
        display: none;
    }

    .rates-table tr {
        margin-bottom: 16px;

        overflow: hidden;

        background-color:
            #ffffff;

        border:
            1px solid
            var(--color-border);

        border-radius:
            var(--radius-medium);

        box-shadow:
            var(--shadow-small);
    }

    .rates-table td {
        display: grid;

        grid-template-columns:
            110px 1fr;

        gap: 14px;

        padding:
            13px 16px;

        border-bottom:
            1px solid
            var(--color-border);
    }

    .rates-table td:last-child {
        border-bottom: 0;
    }

    .rates-table td::before {
        color:
            var(--color-muted);

        font-size: 0.75rem;

        font-weight: 800;

        text-transform: uppercase;

        content:
            attr(data-label);
    }

    .rates-table tbody tr:hover td {
        background-color:
            #ffffff;
    }
}


/* =========================================================
   PANTALLAS PEQUEÑAS
========================================================= */

@media (max-width: 420px) {

    .container {
        width:
            min(
                100% - 22px,
                var(--container-width)
            );
    }

    .logo__image {
        width: 50px;
        height: 50px;
    }

    .logo__text {
        font-size: 0.69rem;
    }

    .logo__text strong {
        font-size: 0.9rem;
    }

    .hero__actions .button,
    .contact__actions .button {
        width: 100%;
    }

    .service-card__content {
        padding:
            25px 22px;
    }

    .quote-form {
        padding:
            22px 18px;
    }

    .coverage-preview__content {
        padding: 24px;
    }
}



/* =========================================================
   INDEX - AJUSTES RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .section-heading {
        margin-bottom: 38px;
    }

    .section-label {
        min-height: 34px;

        margin-bottom: 14px;

        padding:
            8px 13px;

        font-size: 0.86rem;

        letter-spacing: 0.07em;
    }

    .hero {
        min-height:
            calc(
                100svh -
                var(--header-height)
            );

        background:
            linear-gradient(
                180deg,
                rgba(5, 35, 54, 0.62) 0%,
                rgba(5, 35, 54, 0.78) 48%,
                rgba(5, 35, 54, 0.94) 100%
            ),
            url(
                "../assets/images/grupotrabajo/grupo1.jpeg"
            )
            center top / cover no-repeat;
    }

    .hero__content {
        max-width: 720px;

        padding-top: 72px;
        padding-bottom: 72px;
    }

    .hero h1 {
        font-size:
            clamp(2.35rem, 11vw, 3.65rem);

        line-height: 1.04;
    }

    .hero__description {
        font-size:
            1.05rem;
    }

    .about-preview__image img {
        min-height: 310px;
        max-height: 470px;

        object-position: center;
    }

    .about-preview__image::before {
        top: -9px;
        left: -9px;
    }

    .services .section-heading > p:not(.section-label),
    .gallery .section-heading > p:not(.section-label),
    .rates-preview .section-heading > p:not(.section-label) {
        font-size: 0.98rem;
    }

}


@media (max-width: 420px) {

    .section-label {
        min-height: 32px;

        padding:
            7px 11px;

        font-size: 0.8rem;
    }

    .hero {
        background-position:
            center top;
    }

    .hero__content {
        padding-top: 58px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size:
            clamp(2.15rem, 12vw, 3rem);
    }

    .about-preview__image img {
        min-height: 275px;
    }

    .about-preview__badge {
        right: 12px;
        bottom: 12px;

        min-width: 118px;

        padding: 14px;
    }

}


/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    *,
    *::before,
    *::after {
        scroll-behavior:
            auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}


/* =========================================================
   REDES SOCIALES
========================================================= */

.top-bar__right {
    display: flex;

    align-items: center;

    gap: 18px;
}

.top-bar__social {
    display: flex;

    align-items: center;

    gap: 7px;
}

.top-bar__social a {
    display: grid;

    width: 28px;
    height: 28px;

    place-items: center;

    color:
        rgba(255, 255, 255, 0.88);

    background-color:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 7px;

    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.top-bar__social svg {
    width: 15px;
    height: 15px;
}

.top-bar__social a:hover {
    color: #ffffff;

    background-color:
        rgba(255, 255, 255, 0.15);

    border-color:
        rgba(255, 255, 255, 0.25);

    transform:
        translateY(-1px);
}


/* =========================================================
   REDES SOCIALES FOOTER
========================================================= */

.social-links {
    display: flex;

    margin-top: 22px;

    gap: 11px;
}

.social-link {
    display: grid;

    width: 46px;
    height: 46px;

    place-items: center;

    color: #ffffff;

    background-color:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 13px;

    box-shadow:
        0 6px 16px
        rgba(0, 0, 0, 0.1);

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    color: #ffffff;

    transform:
        translateY(-4px);

    box-shadow:
        0 10px 22px
        rgba(0, 0, 0, 0.2);
}


/* FACEBOOK */

.social-link--facebook:hover {
    background-color:
        #1877f2;

    border-color:
        #1877f2;
}


/* INSTAGRAM */

.social-link--instagram:hover {
    background:
        linear-gradient(
            135deg,
            #833ab4,
            #e1306c,
            #f77737
        );

    border-color:
        #e1306c;
}


/* =========================================================
   AJUSTE REDES EN PANTALLAS MEDIAS
========================================================= */

@media (max-width: 1000px) and (min-width: 769px) {

    .top-bar__contact {
        gap: 14px;
    }

    .top-bar__right {
        gap: 12px;
    }

    .top-bar__schedule {
        font-size: 0.76rem;
    }

    .top-bar__contact {
        font-size: 0.76rem;
    }
}


/* =========================================================
   AJUSTE REDES MÓVIL
========================================================= */

@media (max-width: 768px) {

    .top-bar__social {
        display: none;
    }
}


/* =========================================================
   AVISO DE COOKIES
========================================================= */

.cookie-banner {
    position: fixed;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 3000;

    padding: 16px;

    background-color:
        rgba(15, 23, 42, 0.76);

    backdrop-filter:
        blur(10px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(24px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.cookie-banner.is-visible {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.cookie-banner.is-closing {
    opacity: 0;

    visibility: hidden;

    transform:
        translateY(24px);
}

.cookie-banner__container {
    display: flex;

    width:
        min(
            100%,
            1180px
        );

    margin-inline: auto;

    padding:
        22px 24px;

    flex-direction: column;

    gap: 20px;

    color:
        var(--color-text);

    background-color:
        #ffffff;

    border:
        1px solid
        rgba(203, 213, 225, 0.95);

    border-radius: 18px;

    box-shadow:
        0 24px 70px
        rgba(2, 6, 23, 0.28);
}

.cookie-banner__content {
    display: flex;

    min-width: 0;

    align-items: flex-start;

    gap: 14px;
}

.cookie-banner__icon {
    display: grid;

    width: 46px;
    height: 46px;

    flex:
        0 0 auto;

    place-items: center;

    font-size: 1.45rem;

    background-color:
        var(--color-secondary-light);

    border:
        1px solid
        rgba(249, 115, 22, 0.18);

    border-radius:
        13px;
}

.cookie-banner__title {
    margin-bottom: 8px;

    color:
        var(--color-heading);

    font-size: 1.15rem;

    letter-spacing:
        -0.02em;
}

.cookie-banner__text {
    max-width: 760px;

    margin-bottom: 8px;

    color:
        var(--color-text);

    font-size: 0.92rem;

    line-height: 1.55;
}

.cookie-banner__links {
    display: flex;

    margin: 0;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;

    color:
        var(--color-muted);

    font-size: 0.82rem;
}

.cookie-banner__links a {
    color:
        var(--color-primary);

    font-weight: 800;

    text-decoration: underline;

    text-underline-offset: 2px;
}

.cookie-banner__links a:hover {
    color:
        var(--color-primary-dark);
}

.cookie-banner__actions {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.cookie-banner__button {
    width: 100%;

    min-height: 46px;
}

.cookie-banner__button--reject {
    color:
        var(--color-primary);

    background-color:
        #ffffff;

    border-color:
        var(--color-primary);
}

.cookie-banner__button--reject:hover {
    color:
        #ffffff;

    background-color:
        var(--color-primary);

    border-color:
        var(--color-primary);
}

.cookie-banner__button--accept {
    border-color:
        var(--color-secondary);
}


/* =========================================================
   AVISO DE COOKIES - TABLET Y ESCRITORIO
========================================================= */

@media (min-width: 700px) {

    .cookie-banner {
        padding:
            18px 22px;
    }

    .cookie-banner__container {
        padding:
            22px 26px;

        flex-direction: row;

        align-items: center;

        justify-content: space-between;
    }

    .cookie-banner__content {
        max-width: 820px;
    }

    .cookie-banner__actions {
        min-width: 310px;

        flex-direction: row;

        align-items: center;
    }

    .cookie-banner__button {
        width: auto;

        min-width: 145px;
    }
}


/* =========================================================
   AVISO DE COOKIES - MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 420px) {

    .cookie-banner {
        padding: 10px;
    }

    .cookie-banner__container {
        padding:
            18px 16px;

        border-radius:
            14px;
    }

    .cookie-banner__icon {
        width: 40px;
        height: 40px;

        font-size: 1.2rem;
    }

    .cookie-banner__title {
        font-size: 1.05rem;
    }

    .cookie-banner__text {
        font-size: 0.86rem;
    }

    .cookie-banner__links {
        font-size: 0.78rem;
    }
}

/* =========================================================
   =========================================================
   TARIFAS - DISEÑO PROFESIONAL RESPONSIVE
   =========================================================
   Estas reglas están aisladas mediante .tarifas-page para
   no alterar visualmente el resto de páginas del proyecto.
========================================================= */

/* =========================================================
   BASE DE LA PÁGINA DE TARIFAS
========================================================= */

.tarifas-page {
    background-color: #f4f7fa;
}

.tarifas-page main {
    overflow: clip;
}

.tarifas-page #fontaneria,
.tarifas-page #aire-acondicionado,
.tarifas-page #calderas,
.tarifas-page #termos-electricos,
.tarifas-page #electrodomesticos {
    scroll-margin-top: 135px;
}


/* =========================================================
   HERO DE TARIFAS
========================================================= */

.tarifas-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(70px, 9vw, 120px) 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 88% 25%,
            rgba(249, 115, 22, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 12% 90%,
            rgba(14, 165, 233, 0.18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #082f49 0%,
            #075985 56%,
            #0369a1 100%
        );
}

.tarifas-hero::before {
    position: absolute;
    top: -170px;
    right: -120px;
    z-index: -1;
    width: 430px;
    height: 430px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.tarifas-hero::after {
    position: absolute;
    right: 70px;
    bottom: -230px;
    z-index: -1;
    width: 430px;
    height: 430px;
    content: "";
    background-color: rgba(249, 115, 22, 0.08);
    border-radius: 50%;
}

.tarifas-hero__container {
    position: relative;
    z-index: 1;
}

.tarifas-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 20px;
    padding: 9px 16px;
    align-items: center;
    color: #ffffff;
    background-color: rgba(249, 115, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-round);
    box-shadow: 0 8px 20px rgba(194, 65, 12, 0.2);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.tarifas-hero h1 {
    max-width: 900px;
    margin-bottom: 22px;
    color: #ffffff;
    font-size: clamp(2.45rem, 7vw, 4.6rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.tarifas-hero__description {
    max-width: 780px !important;
    margin-bottom: 30px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: clamp(1.05rem, 2.5vw, 1.22rem) !important;
    line-height: 1.72;
}

.tarifas-hero__info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tarifas-hero__info span {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 15px;
    align-items: center;
    color: rgba(255, 255, 255, 0.96);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-round);
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(7px);
}


/* =========================================================
   NAVEGACIÓN RÁPIDA DE TARIFAS
========================================================= */

.tarifas-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    padding: 13px 0;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(203, 213, 225, 0.88);
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(12px);
}

.tarifas-nav__inner {
    display: flex;
    overflow-x: auto;
    gap: 9px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tarifas-nav__inner::-webkit-scrollbar {
    display: none;
}

.tarifas-nav__inner a {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 17px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #334155;
    background-color: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: var(--radius-round);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.tarifas-nav__inner a:hover,
.tarifas-nav__inner a:focus-visible {
    color: #ffffff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 7px 18px rgba(7, 89, 133, 0.16);
    transform: translateY(-1px);
}


/* =========================================================
   SECCIONES DE TARIFAS
========================================================= */

.tarifas-section {
    padding: clamp(45px, 7vw, 82px) 0;
}

.tarifas-section--alternate {
    background:
        linear-gradient(
            180deg,
            #edf5f9,
            #f8fafc
        );
}


/* =========================================================
   TARJETA PRINCIPAL DE CADA SERVICIO
========================================================= */

.tarifas-card {
    position: relative;
    padding: clamp(26px, 5vw, 52px);
    background-color: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.075);
}

.tarifas-card::before {
    position: absolute;
    top: 0;
    left: 32px;
    width: 92px;
    height: 5px;
    content: "";
    background:
        linear-gradient(
            90deg,
            var(--color-secondary),
            #fb923c
        );
    border-radius: 0 0 8px 8px;
}


/* =========================================================
   CABECERA DE CADA SERVICIO
========================================================= */

.tarifas-card__header {
    display: grid;
    margin-bottom: clamp(28px, 5vw, 42px);
    gap: 16px;
}

.tarifas-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 9px 15px;
    align-items: center;
    color: var(--color-secondary-dark);
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-round);
    font-size: clamp(1rem, 2vw, 1.08rem);
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
}

.tarifas-card__header h2 {
    max-width: 780px;
    margin-bottom: 0;
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.tarifas-card__description {
    max-width: 650px;
    margin: 0;
    color: #64748b;
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    line-height: 1.72;
}


/* =========================================================
   TABLAS PROFESIONALES
========================================================= */

.tarifas-page .rates-table-wrapper {
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.055);
}

.tarifas-page .rates-table {
    width: 100%;
    border-collapse: collapse;
}

.tarifas-page .rates-table th {
    padding: 18px 21px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #075985,
            #0369a1
        );
    border-bottom: 0;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.tarifas-page .rates-table th:last-child {
    width: 210px;
    text-align: right;
}

.tarifas-page .rates-table td {
    padding: 19px 21px;
    color: #475569;
    background-color: #ffffff;
    border-bottom: 1px solid #e5eaf0;
    font-size: 0.98rem;
    line-height: 1.5;
    vertical-align: middle;
}

.tarifas-page .rates-table tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

.tarifas-page .rates-table tbody tr:last-child td {
    border-bottom: 0;
}

.tarifas-page .rates-table tbody tr:hover td {
    background-color: #f0f9ff;
}

.tarifas-page .rates-table td:first-child {
    color: #1e293b;
    font-weight: 750;
}

.tarifas-page .rates-table td:last-child {
    color: #075985;
    font-size: 1.04rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.rates-table__secondary {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}


/* =========================================================
   SUBSECCIONES
========================================================= */

.tarifas-subsection {
    margin-top: clamp(38px, 6vw, 60px);
}

.tarifas-subsection__header {
    margin-bottom: 22px;
}

.tarifas-subsection__label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 8px 13px;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-round);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
}

.tarifas-subsection__header h3 {
    margin-bottom: 9px;
    color: #0f172a;
    font-size: clamp(1.55rem, 4vw, 2.05rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.tarifas-subsection__header > p:last-child:not(.tarifas-subsection__label) {
    max-width: 700px;
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.65;
}


/* =========================================================
   ELEMENTOS INCLUIDOS
========================================================= */

.tarifas-feature-grid {
    display: grid;
    gap: 12px;
}

.tarifas-feature-grid li {
    position: relative;
    min-height: 64px;
    padding: 18px 18px 18px 52px;
    color: #334155;
    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #ffffff
        );
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.55;
}

.tarifas-feature-grid li::before {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #ffffff;
    background-color: #0f766e;
    border-radius: 50%;
    content: "✓";
    font-size: 0.72rem;
    font-weight: 900;
}


/* =========================================================
   CUADRO DE CONDICIONES
========================================================= */

.tarifas-info-box {
    padding: clamp(20px, 4vw, 30px);
    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #f1f5f9
        );
    border: 1px solid #dbe4ee;
    border-radius: 16px;
}


/* =========================================================
   LISTADOS
========================================================= */

.tarifas-info-list {
    display: grid;
    gap: 13px;
}

.tarifas-info-list li {
    position: relative;
    padding-left: 29px;
    color: #475569;
    line-height: 1.6;
}

.tarifas-info-list li::before {
    position: absolute;
    top: 8px;
    left: 3px;
    width: 8px;
    height: 8px;
    content: "";
    background-color: var(--color-primary);
    border-radius: 50%;
}

.tarifas-info-list--check li::before {
    top: 2px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #ffffff;
    background-color: #15803d;
    content: "✓";
    font-size: 0.68rem;
    font-weight: 900;
}


/* =========================================================
   CALDERAS - INCLUYE / NO INCLUYE
========================================================= */

.tarifas-info-grid {
    display: grid;
    margin-top: clamp(36px, 6vw, 52px);
    gap: 20px;
}

.tarifas-info-card {
    padding: clamp(22px, 4vw, 30px);
    border: 1px solid #dbe4ee;
    border-radius: 18px;
}

.tarifas-info-card--included {
    background:
        linear-gradient(
            145deg,
            #f0fdf4,
            #ffffff
        );
    border-color: #bbf7d0;
}

.tarifas-info-card--extra {
    background:
        linear-gradient(
            145deg,
            #fff7ed,
            #ffffff
        );
    border-color: #fed7aa;
}

.tarifas-info-card__header {
    margin-bottom: 22px;
}

.tarifas-info-card__badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: var(--radius-round);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.tarifas-info-card--included .tarifas-info-card__badge {
    color: #166534;
    background-color: #dcfce7;
}

.tarifas-info-card--extra .tarifas-info-card__badge {
    color: #c2410c;
    background-color: #ffedd5;
}

.tarifas-info-card h3 {
    margin-bottom: 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.tarifas-info-card strong {
    display: inline-block;
    margin-left: 5px;
    color: #c2410c;
    font-weight: 900;
}


/* =========================================================
   NOTA IVA
========================================================= */

.tarifas-price-note {
    display: flex;
    margin-top: 26px;
    padding: 16px 18px;
    align-items: center;
    gap: 12px;
    color: #334155;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.tarifas-price-note strong {
    flex: 0 0 auto;
    padding: 5px 10px;
    color: #ffffff;
    background-color: var(--color-primary);
    border-radius: var(--radius-round);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}


/* =========================================================
   INFORMACIÓN GENERAL
========================================================= */

.tarifas-general-info {
    padding: clamp(45px, 7vw, 75px) 0;
    background-color: #eef4f7;
}

.tarifas-general-info__box {
    position: relative;
    display: grid;
    padding: clamp(28px, 5vw, 48px);
    gap: 18px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.tarifas-general-info__box::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    content: "";
    background:
        linear-gradient(
            var(--color-secondary),
            var(--color-primary)
        );
}

.tarifas-general-info h2 {
    max-width: 680px;
    margin-bottom: 0;
    color: #0f172a;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.tarifas-general-info__box > p {
    max-width: 820px;
    margin-bottom: 0;
    color: #64748b;
    line-height: 1.7;
}


/* =========================================================
   CTA FINAL DE TARIFAS
========================================================= */

.tarifas-cta {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 90% 30%,
            rgba(249, 115, 22, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #082f49,
            #075985
        );
}

.tarifas-cta .quote-cta__container {
    position: relative;
    z-index: 2;
}

.tarifas-cta .section-label {
    color: #ffffff;
    background-color: rgba(249, 115, 22, 0.92);
    border-color: rgba(255, 255, 255, 0.16);
    font-size: 0.93rem;
}

.tarifas-cta h2 {
    color: #ffffff;
}

.tarifas-cta .quote-cta__content > p:not(.section-label) {
    color: rgba(255, 255, 255, 0.82);
}

.tarifas-cta .quote-cta__features li {
    color: rgba(255, 255, 255, 0.92);
}

.tarifas-cta .quote-cta__features li::before {
    color: #fdba74;
}


/* =========================================================
   TARIFAS - TABLET
========================================================= */

@media (min-width: 650px) {

    .tarifas-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TARIFAS - ESCRITORIO
========================================================= */

@media (min-width: 769px) {

    .tarifas-card__header {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(280px, 0.7fr);
        align-items: end;
        gap: 40px;
    }

    .tarifas-card__description {
        justify-self: end;
    }

    .tarifas-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .tarifas-general-info__box {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: center;
        column-gap: 50px;
    }

    .tarifas-general-info__box > p:last-child {
        grid-column: 2;
    }

}


/* =========================================================
   TARIFAS - ESCRITORIO GRANDE
========================================================= */

@media (min-width: 1050px) {

    .tarifas-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tarifas-nav__inner {
        justify-content: center;
    }

}


/* =========================================================
   TARIFAS - MÓVIL
========================================================= */

@media (max-width: 650px) {

    .tarifas-page #fontaneria,
    .tarifas-page #aire-acondicionado,
    .tarifas-page #calderas,
    .tarifas-page #termos-electricos,
    .tarifas-page #electrodomesticos {
        scroll-margin-top: 110px;
    }

    .tarifas-hero {
        padding: 58px 0 66px;
    }

    .tarifas-hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.05rem);
        line-height: 1.05;
    }

    .tarifas-hero__description {
        font-size: 1rem !important;
        line-height: 1.65;
    }

    .tarifas-hero__info {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tarifas-hero__info span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .tarifas-nav {
        top: var(--header-height);
        padding: 10px 0;
    }

    .tarifas-nav__inner {
        padding-right: 8px;
    }

    .tarifas-nav__inner a {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .tarifas-section {
        padding: 28px 0;
    }

    .tarifas-card {
        padding: 26px 17px;
        border-radius: 18px;
    }

    .tarifas-card::before {
        left: 20px;
        width: 72px;
    }

    .tarifas-kicker {
        margin-bottom: 12px;
        padding: 8px 12px;
        font-size: 0.88rem;
    }

    .tarifas-card__header {
        margin-bottom: 25px;
    }

    .tarifas-card__header h2 {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .tarifas-card__description {
        font-size: 0.94rem;
    }

    /* Tablas convertidas en tarjetas legibles */

    .tarifas-page .rates-table-wrapper {
        overflow: visible;
        background-color: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .tarifas-page .rates-table,
    .tarifas-page .rates-table tbody,
    .tarifas-page .rates-table tr,
    .tarifas-page .rates-table td {
        display: block;
        width: 100%;
    }

    .tarifas-page .rates-table thead {
        display: none;
    }

    .tarifas-page .rates-table tr {
        margin-bottom: 13px;
        overflow: hidden;
        background-color: #ffffff;
        border: 1px solid #dbe4ee;
        border-radius: 13px;
        box-shadow: 0 7px 20px rgba(15, 23, 42, 0.055);
    }

    .tarifas-page .rates-table td {
        display: grid;
        grid-template-columns:
            minmax(92px, 0.72fr)
            minmax(0, 1.28fr);
        gap: 12px;
        padding: 13px 14px;
        background-color: #ffffff !important;
        border-bottom: 1px solid #e5eaf0;
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .tarifas-page .rates-table td:last-child {
        border-bottom: 0;
        color: #075985;
        font-size: 0.97rem;
        font-weight: 900;
    }

    .tarifas-page .rates-table td::before {
        color: #64748b;
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        line-height: 1.4;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .tarifas-page .rates-table tbody tr:hover td {
        background-color: #ffffff !important;
    }

    .rates-table__secondary {
        margin-top: 6px;
    }

    .tarifas-subsection {
        margin-top: 38px;
    }

    .tarifas-subsection__header h3 {
        font-size: 1.5rem;
    }

    .tarifas-feature-grid {
        grid-template-columns: 1fr;
    }

    .tarifas-feature-grid li {
        min-height: auto;
        padding: 16px 15px 16px 48px;
        font-size: 0.9rem;
    }

    .tarifas-feature-grid li::before {
        top: 16px;
        left: 15px;
    }

    .tarifas-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tarifas-info-card {
        padding: 21px 17px;
    }

    .tarifas-price-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        padding: 15px;
    }

    .tarifas-general-info {
        padding: 30px 0 44px;
    }

    .tarifas-general-info__box {
        padding: 26px 20px 26px 24px;
        border-radius: 16px;
    }

    .tarifas-cta {
        padding: 65px 0;
    }

}


/* =========================================================
   TARIFAS - MÓVILES MUY PEQUEÑOS
========================================================= */

@media (max-width: 390px) {

    .tarifas-card {
        padding: 24px 14px;
    }

    .tarifas-page .rates-table td {
        grid-template-columns:
            82px
            minmax(0, 1fr);
        gap: 9px;
        padding: 12px;
    }

    .tarifas-page .rates-table td::before {
        font-size: 0.66rem;
    }

    .tarifas-kicker {
        font-size: 0.8rem;
    }

    .tarifas-subsection__label {
        font-size: 0.78rem;
    }

}


/* =========================================================
   DISPOSITIVOS SIN HOVER
========================================================= */

@media (hover: none) {

    .tarifas-page .rates-table tbody tr:hover td {
        background-color: inherit;
    }

    .tarifas-nav__inner a:hover {
        color: #334155;
        background-color: #f8fafc;
        border-color: #dbe4ee;
        box-shadow: none;
        transform: none;
    }

}
/* =========================================================
   ACERCA DE - SECCIÓN NUESTRO EQUIPO
========================================================= */

/* Reduce el espacio entre Quiénes somos y Nuestro equipo */

.acerca-page .about-preview {
    padding-bottom: 55px;
}

.acerca-page .about-team {
    padding-top: 55px;
    padding-bottom: 85px;

    background-color: #f8fafc;
}


/* CABECERA */

.acerca-page .about-team__heading {
    max-width: 850px;

    margin:
        0 auto 38px;

    text-align: center;
}

.acerca-page .about-team__heading h2 {
    max-width: 800px;

    margin:
        0 auto 16px;

    font-size:
        clamp(2.1rem, 4.5vw, 3.3rem);

    line-height: 1.08;
}

.acerca-page .about-team__heading > p:last-child {
    max-width: 760px;

    margin:
        0 auto;

    font-size: 1.05rem;

    line-height: 1.7;
}


/* GALERÍA DEL EQUIPO */

.acerca-page .about-team__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* TODAS LAS FOTOS DEL MISMO TAMAÑO */

.acerca-page .about-team__item,
.acerca-page .about-team__item--large {
    position: relative;

    width: 100%;
    height: 300px;

    margin: 0;

    overflow: hidden;

    background-color: #e2e8f0;

    border-radius: 18px;

    box-shadow:
        0 12px 32px
        rgba(15, 23, 42, 0.10);
}


/* Evita que la primera foto sea gigante */

.acerca-page .about-team__item--large {
    grid-column: auto;
    grid-row: auto;
}


.acerca-page .about-team__item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.acerca-page .about-team__item:hover img {
    transform:
        scale(1.035);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .acerca-page .about-preview {
        padding-bottom: 40px;
    }

    .acerca-page .about-team {
        padding-top: 40px;
        padding-bottom: 65px;
    }

    .acerca-page .about-team__heading {
        margin-bottom: 30px;
    }

    .acerca-page .about-team__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .acerca-page .about-team__item,
    .acerca-page .about-team__item--large {
        height: 260px;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .acerca-page .about-preview {
        padding-bottom: 28px;
    }

    .acerca-page .about-team {
        padding-top: 35px;
        padding-bottom: 55px;
    }

    .acerca-page .about-team__heading {
        margin-bottom: 25px;
    }

    .acerca-page .about-team__heading h2 {
        font-size:
            clamp(1.9rem, 9vw, 2.5rem);
    }

    .acerca-page .about-team__heading > p:last-child {
        font-size: 0.96rem;
    }

    .acerca-page .about-team__grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .acerca-page .about-team__item,
    .acerca-page .about-team__item--large {
        height: 230px;

        border-radius: 15px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 390px) {

    .acerca-page .about-team__item,
    .acerca-page .about-team__item--large {
        height: 210px;
    }

}
/* =========================================================
   FORMULARIO DE PRESUPUESTO - DISEÑO PROFESIONAL
========================================================= */

.quote {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eff6ff 52%,
            #f8fafc 100%
        );
}


.quote::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -220px;
    right: -180px;
    border-radius: 50%;
    background: rgba(7, 89, 133, 0.06);
    pointer-events: none;
}


.quote__container {
    position: relative;
    z-index: 1;
    align-items: flex-start;
}


/* =========================================================
   INFORMACIÓN IZQUIERDA
========================================================= */

.quote__information {
    position: relative;
}


.quote__information h2 {
    margin-bottom: 18px;
}


.quote__intro {
    max-width: 580px;
    margin-bottom: 30px;
    color: #475569;
    font-size: 1.04rem;
    line-height: 1.75;
}


.quote__benefits-wrapper {
    margin-top: 30px;
}


.quote__benefits {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}


.quote__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 17px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}


.quote__benefits li::before {
    display: none;
}


.quote__benefits li > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.quote__benefits strong {
    color: #0f172a;
    font-size: 0.96rem;
}


.quote__benefits li span:not(.quote__check) {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}


.quote__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    margin-top: 1px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.82rem;
    font-weight: 800;
}


.quote__contact-note {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #dbe4ec;
}


.quote__contact-note strong {
    color: #334155;
    font-size: 0.91rem;
}


.quote__contact-note a {
    width: fit-content;
    color: #075985;
    font-size: 1.12rem;
    font-weight: 800;
    text-decoration: none;
}


.quote__contact-note a:hover {
    text-decoration: underline;
}


/* =========================================================
   TARJETA DEL FORMULARIO
========================================================= */

.quote-form {
    position: relative;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid #dce6ef;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.08),
        0 4px 14px rgba(15, 23, 42, 0.04);
}


.quote-form__header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8edf2;
}


.quote-form__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #c2410c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.quote-form__header h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.2;
}


.quote-form__header p {
    margin: 0;
    color: #64748b;
    font-size: 0.91rem;
}


/* =========================================================
   SECCIONES DEL FORMULARIO
========================================================= */

.quote-form__section {
    margin-bottom: 30px;
}


.quote-form__section + .quote-form__section {
    padding-top: 27px;
    border-top: 1px solid #edf1f5;
}


.quote-form__section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}


.quote-form__section-heading > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.quote-form__section-heading strong {
    color: #0f172a;
    font-size: 0.96rem;
}


.quote-form__section-heading > div > span {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
}


.quote-form__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.76rem;
    font-weight: 900;
}


/* =========================================================
   CAMPOS
========================================================= */

.quote-form .form-group {
    margin-bottom: 18px;
}


.quote-form .form-row {
    gap: 16px;
}


.quote-form label {
    display: inline-block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 0.89rem;
    font-weight: 700;
}


.quote-form input:not([type="checkbox"]):not([type="file"]),
.quote-form select,
.quote-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


.quote-form input:not([type="checkbox"]):not([type="file"]),
.quote-form select {
    min-height: 50px;
    padding: 0 14px;
}


.quote-form textarea {
    min-height: 135px;
    padding: 13px 14px;
    line-height: 1.55;
    resize: vertical;
}


.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: #94a3b8;
}


.quote-form input:not([type="checkbox"]):not([type="file"]):hover,
.quote-form select:hover,
.quote-form textarea:hover {
    border-color: #94a3b8;
}


.quote-form input:not([type="checkbox"]):not([type="file"]):focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: #075985;
    box-shadow: 0 0 0 4px rgba(7, 89, 133, 0.11);
}


.quote-form [aria-invalid="true"] {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}


/* =========================================================
   SUBIDA DE ARCHIVOS
========================================================= */

.file-upload {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1.5px dashed #94a3b8;
    border-radius: 16px;
    background: #f8fafc;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}


.file-upload:hover {
    border-color: #075985;
    background: #f0f9ff;
}


.file-upload__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #e0f2fe;
    color: #075985;
}


.file-upload__icon svg {
    width: 24px;
    height: 24px;
}


.file-upload__content {
    min-width: 0;
}


.file-upload__content strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 0.92rem;
}


.file-upload__content p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}


.file-upload__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 15px;
    border: 1px solid #075985;
    border-radius: 9px;
    background: #ffffff;
    color: #075985 !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.file-upload__button:hover {
    background: #075985;
    color: #ffffff !important;
}


.file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}


.file-upload__input:focus + * {
    outline: none;
}


.form-help--files {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid #f97316;
    border-radius: 0 8px 8px 0;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 0.79rem;
    line-height: 1.5;
}


/* =========================================================
   PRIVACIDAD
========================================================= */

.quote-form__privacy {
    display: grid !important;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: flex-start;
    margin: 4px 0 20px !important;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}


.quote-form__privacy input {
    margin-top: 3px;
}


.quote-form__privacy label {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.5;
}


.quote-form__privacy label a {
    color: #075985;
    font-weight: 700;
}


.quote-form__privacy .form-error {
    grid-column: 2;
}


/* =========================================================
   BOTÓN FINAL
========================================================= */

.quote-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    border-radius: 12px;
    font-size: 0.96rem;
    font-weight: 800;
}


.quote-form__submit-arrow {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}


.quote-form__submit:hover .quote-form__submit-arrow {
    transform: translateX(4px);
}


.quote-form__submit-help {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}


/* =========================================================
   ERRORES Y ESTADO
========================================================= */

.quote-form .form-error {
    display: block;
    min-height: 0;
    margin-top: 5px;
    color: #b91c1c;
    font-size: 0.77rem;
    line-height: 1.35;
}


.quote-form .form-error:empty {
    display: none;
}


.quote-form .form-status {
    margin-top: 14px;
    margin-bottom: 0;
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1.5;
}


.quote-form .form-status.is-success,
.quote-form .form-status.is-error {
    padding: 11px 13px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .quote-form {
        border-radius: 18px;
    }


    .file-upload {
        grid-template-columns: auto 1fr;
    }


    .file-upload__button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 3px !important;
    }
}


@media (max-width: 480px) {

    .quote-form {
        padding: 21px 17px;
    }


    .quote-form__header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }


    .quote-form__section {
        margin-bottom: 25px;
    }


    .quote-form__section + .quote-form__section {
        padding-top: 23px;
    }


    .file-upload {
        padding: 15px;
    }


    .file-upload__icon {
        width: 42px;
        height: 42px;
    }


    .quote-form__submit {
        min-height: 52px;
        padding-left: 14px;
        padding-right: 14px;
        font-size: 0.9rem;
    }
}
/* =========================================================
   HOME / INDEX - CORRECCIÓN VISUAL FINAL
   Ajustes aislados a .home-page para no alterar el resto
   de páginas del proyecto.
========================================================= */

.home-page {
    --color-heading: #0f172a;
    --color-text: #334155;
    --color-muted: #475569;
}

/* Jerarquía general más equilibrada */

.home-page .section {
    padding: 72px 0;
}

.home-page .section-heading {
    max-width: 780px;
    margin-bottom: 38px;
}

.home-page .section-heading h2,
.home-page .about-preview__content h2,
.home-page .quote__information h2,
.home-page .coverage-preview__content h2 {
    margin-bottom: 15px;
    color: var(--color-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.home-page .section-heading > p:not(.section-label),
.home-page .about-preview__content > p:not(.section-label),
.home-page .quote__intro,
.home-page .coverage-preview__content > p:not(.section-label) {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
}

.home-page .section-label {
    min-height: 32px;
    margin-bottom: 13px;
    padding: 7px 12px;
    color: #9a3412;
    background-color: #fff4e8;
    border-color: #fdba74;
    box-shadow: 0 5px 14px rgba(249, 115, 22, 0.08);
    font-size: 0.82rem;
    letter-spacing: 0.075em;
}

/* =========================================================
   HERO - MÁS LIMPIO, CONTRASTE MÁS VIVO
========================================================= */

.home-page .hero {
    background:
        linear-gradient(
            90deg,
            rgba(4, 34, 53, 0.90) 0%,
            rgba(4, 34, 53, 0.78) 43%,
            rgba(4, 34, 53, 0.50) 73%,
            rgba(4, 34, 53, 0.38) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8, 47, 73, 0.08),
            rgba(8, 47, 73, 0.28)
        ),
        url("../assets/images/grupotrabajo/grupo1.jpeg")
        center 28% / cover no-repeat;
}

.home-page .hero__content {
    max-width: 810px;
}

.home-page .hero h1 {
    max-width: 800px;
    margin-bottom: 18px;
    font-size: clamp(2.35rem, 5.2vw, 4rem);
    line-height: 1.03;
    letter-spacing: -0.042em;
    text-shadow: 0 3px 22px rgba(2, 6, 23, 0.28);
}

.home-page .hero__description {
    max-width: 680px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1.02rem, 1.8vw, 1.2rem);
    line-height: 1.65;
}

.home-page .hero .section-label {
    color: #ffffff;
    background-color: #f97316;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 22px rgba(194, 65, 12, 0.28);
}

.home-page .hero__actions {
    margin-bottom: 26px;
}

.home-page .hero__benefits {
    gap: 9px 24px;
    font-size: 0.95rem;
}

/* =========================================================
   SERVICIOS - TARJETAS PEQUEÑAS Y HORIZONTALES EN ESCRITORIO
========================================================= */

.home-page .services {
    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #f3f7fa 100%
        );
}

.home-page .services__grid {
    align-items: stretch;
    gap: 18px;
}

.home-page .service-card--link {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.home-page .service-card {
    border-color: #d7e1ea;
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.055);
}

.home-page .service-card:hover {
    border-color: rgba(7, 89, 133, 0.36);
    box-shadow: 0 15px 32px rgba(15, 23, 42, 0.11);
    transform: translateY(-5px);
}

.home-page .service-card__image {
    height: 170px;
}

.home-page .service-card__content {
    display: flex;
    min-height: 0;
    padding: 21px 20px 20px;
    flex: 1;
    flex-direction: column;
}

.home-page .service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    border-radius: 13px;
}

.home-page .service-card__icon svg {
    width: 25px;
    height: 25px;
}

.home-page .service-card h3 {
    margin-bottom: 9px;
    color: #0f172a;
    font-size: 1.13rem;
    line-height: 1.2;
}

.home-page .service-card p {
    margin-bottom: 16px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.58;
}

.home-page .service-card__more {
    margin-top: auto;
    font-size: 0.88rem;
}

/* =========================================================
   EMPRESA
========================================================= */

.home-page .about-preview__container {
    gap: 48px;
}

.home-page .about-preview__image img {
    min-height: 330px;
    max-height: 450px;
    border-radius: 20px;
}

.home-page .about-preview__badge {
    right: 15px;
    bottom: 15px;
    min-width: 120px;
    padding: 15px;
    border-width: 3px;
}

.home-page .about-preview__badge strong {
    font-size: 1.35rem;
}

.home-page .about-preview__content {
    max-width: 620px;
}

.home-page .about-preview__features {
    margin: 22px 0 26px;
    gap: 10px 18px;
}

.home-page .about-preview__features li {
    font-size: 0.95rem;
}

/* =========================================================
   VENTAJAS
========================================================= */

.home-page .advantages__grid {
    gap: 16px;
}

.home-page .advantage-card {
    padding: 23px;
    border-radius: 13px;
    background-color: rgba(255, 255, 255, 0.095);
}

.home-page .advantage-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 17px;
}

.home-page .advantage-card__icon svg {
    width: 25px;
    height: 25px;
}

.home-page .advantage-card h3 {
    margin-bottom: 8px;
    font-size: 1.13rem;
}

.home-page .advantage-card p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.91rem;
    line-height: 1.58;
}

/* =========================================================
   GALERÍA
========================================================= */

.home-page .gallery__grid {
    gap: 14px;
}

.home-page .gallery__item {
    min-height: 220px;
    border-radius: 14px;
}

.home-page .gallery__item img {
    min-height: 220px;
}

.home-page .gallery__caption {
    right: 16px;
    bottom: 15px;
    left: 16px;
    font-size: 0.98rem;
}

/* =========================================================
   TARIFAS HOME
========================================================= */

.home-page .rates-table-wrapper {
    border-radius: 13px;
}

.home-page .rates-table th,
.home-page .rates-table td {
    padding: 15px 18px;
}

.home-page .rates-table th {
    font-size: 0.86rem;
}

.home-page .rates-table td {
    font-size: 0.94rem;
}

.home-page .rates-note {
    color: #475569;
}

/* =========================================================
   PRESUPUESTO - MÁS COMPACTO Y LEGIBLE
========================================================= */

.home-page .quote {
    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef6fb 52%,
            #ffffff 100%
        );
}

.home-page .quote__container {
    gap: 46px;
}

.home-page .quote__intro {
    margin-bottom: 24px;
}

.home-page .quote__benefits-wrapper {
    margin-top: 24px;
}

.home-page .quote__benefits {
    gap: 11px;
}

.home-page .quote__benefits li {
    padding: 13px 15px;
    background-color: rgba(255, 255, 255, 0.88);
}

.home-page .quote__check {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
}

.home-page .quote-form {
    padding: 30px;
    border-radius: 20px;
    box-shadow:
        0 20px 46px rgba(15, 23, 42, 0.08),
        0 3px 10px rgba(15, 23, 42, 0.035);
}

.home-page .quote-form__header {
    margin-bottom: 24px;
    padding-bottom: 20px;
}

.home-page .quote-form__section {
    margin-bottom: 25px;
}

.home-page .quote-form__section + .quote-form__section {
    padding-top: 23px;
}

.home-page .quote-form input:not([type="checkbox"]):not([type="file"]),
.home-page .quote-form select {
    min-height: 48px;
}

.home-page .quote-form textarea {
    min-height: 125px;
}

/* El formulario ya no usa subida de archivos.
   Este bloque asegura que cualquier resto antiguo no aparezca. */

.home-page .file-upload,
.home-page .file-preview,
.home-page .form-help--files {
    display: none !important;
}

/* =========================================================
   COBERTURA
========================================================= */

.home-page .coverage-preview__container {
    gap: 24px;
}

.home-page .coverage-preview__content {
    padding: 28px;
    background:
        linear-gradient(
            145deg,
            #e7f5fc,
            #f0f9ff
        );
    border: 1px solid #c8e6f5;
    border-radius: 18px;
}

.home-page .coverage-preview__content ul {
    margin: 20px 0 24px;
}

.home-page .coverage-preview__map,
.home-page .coverage-preview__map iframe {
    min-height: 340px;
}

.home-page .coverage-preview__map {
    border-radius: 18px;
}

/* =========================================================
   FOOTER
========================================================= */

.home-page .footer {
    background-color: #070d18;
}

.home-page .footer__title {
    font-size: 1rem;
}

.home-page .footer__links,
.home-page .footer__contact {
    font-size: 0.93rem;
}

/* =========================================================
   RESPONSIVE HOME
========================================================= */

@media (min-width: 1000px) {

    .home-page .section {
        padding: 88px 0;
    }

    .home-page .services__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

@media (min-width: 600px) and (max-width: 999px) {

    .home-page .services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {

    .home-page .section {
        padding: 62px 0;
    }

    .home-page .section-heading {
        margin-bottom: 32px;
    }

    .home-page .hero {
        background:
            linear-gradient(
                180deg,
                rgba(4, 34, 53, 0.55) 0%,
                rgba(4, 34, 53, 0.74) 48%,
                rgba(4, 34, 53, 0.93) 100%
            ),
            url("../assets/images/grupotrabajo/grupo1.jpeg")
            center top / cover no-repeat;
    }

    .home-page .hero__content {
        padding-top: 66px;
        padding-bottom: 66px;
    }

    .home-page .hero h1 {
        font-size: clamp(2.15rem, 9vw, 3rem);
    }

    .home-page .service-card__image {
        height: 185px;
    }

    .home-page .about-preview__image img {
        min-height: 290px;
        max-height: 420px;
    }

    .home-page .quote-form {
        padding: 24px 20px;
        border-radius: 17px;
    }

}

@media (max-width: 599px) {

    .home-page .services__grid {
        grid-template-columns: 1fr;
    }

    .home-page .service-card__image {
        height: 205px;
    }

}

@media (max-width: 420px) {

    .home-page .section {
        padding: 54px 0;
    }

    .home-page .section-label {
        min-height: 30px;
        padding: 6px 10px;
        font-size: 0.76rem;
    }

    .home-page .section-heading h2,
    .home-page .about-preview__content h2,
    .home-page .quote__information h2,
    .home-page .coverage-preview__content h2 {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
    }

    .home-page .hero__content {
        padding-top: 54px;
        padding-bottom: 56px;
    }

    .home-page .hero h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .home-page .hero__description {
        font-size: 1rem;
    }

    .home-page .service-card__content {
        padding: 20px 18px;
    }

    .home-page .service-card__image {
        height: 190px;
    }

    .home-page .about-preview__image img {
        min-height: 265px;
    }

    .home-page .coverage-preview__content {
        padding: 23px;
    }

}
/* =========================================================
   HOME - CORRECCIÓN BLOQUE "NUESTRO COMPROMISO"
   Mantiene el fondo corporativo y recupera contraste correcto.
========================================================= */

.home-page .advantages .section-heading h2 {
    color: #ffffff;
}

.home-page .advantages .section-label {
    color: #ffffff;
    background-color: #f97316;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 20px rgba(194, 65, 12, 0.24);
}

.home-page .advantages .section-heading > p:not(.section-label) {
    color: rgba(255, 255, 255, 0.88);
}

.home-page .advantages .advantage-card h3 {
    color: #ffffff;
}

.home-page .advantages .advantage-card p {
    color: rgba(255, 255, 255, 0.88);
}

.home-page .advantages .advantage-card {
    background-color: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
}

.home-page .advantages .advantage-card__icon {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.20);
}


/* =========================================================
   BOTÓN TELÉFONO - PRESUPUESTO
========================================================= */

.home-page .quote__contact-note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.home-page .quote__contact-note .quote__phone-button {
    display: inline-flex !important;
    width: fit-content !important;
    min-height: 48px;

    padding: 12px 18px;

    align-items: center;
    justify-content: center;

    gap: 9px;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #f97316,
            #ea580c
        ) !important;

    border: 0;

    border-radius: 12px;

    box-shadow:
        0 10px 24px
        rgba(249, 115, 22, 0.28);

    font-size: 1rem !important;
    font-weight: 900;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.home-page .quote__contact-note .quote__phone-button svg {
    width: 20px !important;
    height: 20px !important;

    flex: 0 0 20px;
}

.home-page .quote__contact-note .quote__phone-button:hover {
    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #ea580c,
            #c2410c
        ) !important;

    box-shadow:
        0 14px 30px
        rgba(194, 65, 12, 0.3);

    transform:
        translateY(-2px);
}

@media (max-width: 420px) {

    .home-page .quote__contact-note .quote__phone-button {
        width: 100% !important;
    }

}