:root {
    --navy-950: #071a2a;
    --navy-900: #0a2236;
    --navy-800: #10334e;
    --blue-700: #0e5292;
    --blue-600: #1769aa;
    --aqua-500: #27bbd3;
    --aqua-100: #e7f8fb;
    --green-500: #69bd2a;
    --white: #ffffff;
    --surface: #f5f7f9;
    --surface-2: #eef3f6;
    --line: #dce4e9;
    --text: #172b38;
    --muted: #627480;
    --muted-light: #9badb8;
    --shadow: 0 18px 45px rgba(7, 26, 42, 0.09);
    --shadow-small: 0 10px 28px rgba(7, 26, 42, 0.07);
    --radius: 6px;
    --radius-lg: 10px;
    --container: 1360px;
    --header-height: 78px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--white);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

h1,
h2,
h3,
h4,
p,
ul {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--navy-950);
    font-family: "Manrope", "Inter", Arial, sans-serif;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.65rem, 5vw, 4.75rem);
}

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

h3 {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

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

::selection {
    color: var(--navy-950);
    background: var(--aqua-100);
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 14px;
    color: var(--white);
    background: var(--navy-950);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Encabezado corporativo */
.topbar {
    color: #dce8ef;
    background: var(--navy-950);
    font-size: 0.77rem;
}

.topbar__inner {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar p {
    margin: 0;
    color: #c7d7df;
}

.topbar__items {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.topbar__item i {
    color: var(--aqua-500);
    font-size: 0.7rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(220, 228, 233, 0.95);
    transition: height var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    height: 66px;
    box-shadow: 0 8px 28px rgba(7, 26, 42, 0.08);
}

.site-header__inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    position: relative;
    display: block;
    width: 214px;
    height: 50px;
    flex: 0 0 auto;
}

.brand img {
    position: absolute;
    top: 50%;
    left: 0;
    width: auto;
    max-width: 100%;
    height: 48px;
    transform: translateY(-50%);
    transition: opacity var(--transition), transform var(--transition);
}

.brand__scroll {
    opacity: 0;
    transform: translateY(-50%) scale(0.96) !important;
}

.site-header.is-scrolled .brand__full {
    opacity: 0;
    transform: translateY(-50%) scale(0.96);
}

.site-header.is-scrolled .brand__scroll {
    opacity: 1;
    transform: translateY(-50%) scale(1) !important;
}

.main-nav {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
    align-items: center;
    color: #3d5160;
    font-size: 0.82rem;
    font-weight: 700;
}

.main-nav a::after {
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    content: "";
    background: var(--blue-700);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--blue-700);
}

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

.header-action {
    display: inline-flex;
    min-height: 42px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--white);
    background: var(--blue-700);
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 800;
    transition: background var(--transition), transform var(--transition);
}

.header-action:hover {
    background: var(--navy-900);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 3px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--navy-950);
    transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: calc(36px + 66px);
    right: 0;
    left: 0;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 18px 35px rgba(7, 26, 42, 0.13);
    transition: max-height 300ms ease;
}

.mobile-menu.is-open {
    max-height: 520px;
}

.mobile-menu__inner {
    display: grid;
    padding: 18px 0 24px;
}

.mobile-menu a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
    color: var(--navy-900);
    font-weight: 700;
}

.mobile-menu .header-action {
    margin-top: 14px;
    border-bottom: 0;
    color: var(--white);
}

/* Elementos comunes */
.section {
    padding: 92px 0;
}

.section--soft {
    background: var(--surface);
}

.section--compact {
    padding: 70px 0;
}

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

.section-header__copy {
    max-width: 700px;
}

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

.section-header p {
    max-width: 430px;
    margin-bottom: 4px;
}

.kicker {
    display: inline-flex;
    margin-bottom: 12px;
    align-items: center;
    gap: 10px;
    color: var(--blue-700);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kicker::before {
    width: 26px;
    height: 2px;
    content: "";
    background: var(--green-500);
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 0.84rem;
    font-weight: 800;
    transition: all var(--transition);
}

.button--primary {
    color: var(--white);
    background: var(--blue-700);
}

.button--primary:hover {
    background: var(--navy-900);
}

.button--outline {
    color: var(--navy-900);
    background: transparent;
    border-color: #afc0ca;
}

.button--outline:hover {
    color: var(--white);
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue-700);
    font-size: 0.84rem;
    font-weight: 800;
}

.text-link i {
    transition: transform var(--transition);
}

.text-link:hover i {
    transform: translateX(4px);
}

.tag {
    display: inline-flex;
    padding: 6px 10px;
    color: var(--blue-700);
    background: var(--aqua-100);
    border-radius: 2px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Inicio */
.home-hero {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    background: #edf3f6;
}

.home-hero__grid {
    display: grid;
    min-height: 590px;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
}

.home-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    padding: 78px 70px 92px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.home-hero__content::after {
    position: absolute;
    top: 0;
    right: -88px;
    bottom: 0;
    z-index: -1;
    width: 170px;
    content: "";
    background: #edf3f6;
    clip-path: polygon(0 0, 52% 0, 100% 100%, 0 100%);
}

.home-hero h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(2.75rem, 4.7vw, 4.85rem);
}

.home-hero__lead {
    max-width: 610px;
    margin-bottom: 32px;
    color: #536a79;
    font-size: 1.05rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero__note {
    display: flex;
    margin-top: 30px;
    padding-top: 22px;
    align-items: center;
    gap: 22px;
    border-top: 1px solid #cdd9df;
    color: #556b79;
    font-size: 0.78rem;
}

.home-hero__note span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home-hero__note i {
    color: var(--green-500);
}

.home-hero__visual {
    position: relative;
    min-width: 0;
}

.home-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(7, 26, 42, 0.03), rgba(7, 26, 42, 0.19));
}

.hero-caption {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    width: min(320px, calc(100% - 56px));
    padding: 18px 20px;
    color: var(--white);
    background: rgba(7, 26, 42, 0.88);
    border-left: 3px solid var(--aqua-500);
}

.hero-caption strong,
.hero-caption span {
    display: block;
}

.hero-caption strong {
    margin-bottom: 4px;
    font-family: "Manrope", sans-serif;
    font-size: 0.94rem;
}

.hero-caption span {
    color: #c6d6df;
    font-size: 0.74rem;
}

.assurance-wrap {
    position: relative;
    z-index: 5;
    margin-top: -48px;
}

.assurance-panel {
    display: grid;
    padding: 0;
    overflow: hidden;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    box-shadow: var(--shadow);
}

.assurance-item {
    position: relative;
    min-height: 138px;
    padding: 28px 26px;
    border-right: 1px solid var(--line);
}

.assurance-item:last-child {
    border-right: 0;
}

.assurance-item i {
    margin-bottom: 15px;
    color: var(--green-500);
    font-size: 1.35rem;
}

.assurance-item h3 {
    margin-bottom: 7px;
    font-size: 1rem;
}

.assurance-item p {
    margin-bottom: 0;
    font-size: 0.78rem;
}

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

.service-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-small);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card__image {
    height: 225px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.service-card:hover img {
    transform: scale(1.035);
}

.service-card__body {
    padding: 28px;
}

.service-card__icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-top: -50px;
    margin-bottom: 22px;
    place-items: center;
    color: var(--white);
    background: var(--blue-700);
    border: 4px solid var(--white);
    box-sizing: content-box;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    min-height: 78px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.about-preview {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.about-preview__image {
    position: relative;
}

.about-preview__image img {
    width: 100%;
    min-height: 470px;
    object-fit: cover;
}

.about-preview__badge {
    position: absolute;
    right: -20px;
    bottom: 28px;
    max-width: 235px;
    padding: 22px;
    color: var(--white);
    background: var(--navy-900);
    border-left: 4px solid var(--green-500);
}

.about-preview__badge strong,
.about-preview__badge span {
    display: block;
}

.about-preview__badge strong {
    margin-bottom: 6px;
}

.about-preview__badge span {
    color: #c9d7df;
    font-size: 0.78rem;
}

.about-preview__content h2 {
    margin-bottom: 22px;
}

.about-preview__content > p {
    margin-bottom: 28px;
}

.check-list {
    display: grid;
    margin: 0 0 28px;
    padding: 0;
    gap: 13px;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #38505e;
    font-size: 0.9rem;
}

.check-list i {
    margin-top: 5px;
    color: var(--green-500);
}

.project-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-template-rows: 225px 225px;
    gap: 16px;
}

.project-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: var(--navy-900);
}

.project-card:first-child {
    grid-row: 1 / 3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.project-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(7, 26, 42, 0.82), transparent 60%);
}

.project-card:hover img {
    transform: scale(1.035);
}

.project-card__caption {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    z-index: 2;
    color: var(--white);
}

.project-card__caption span {
    display: block;
    margin-bottom: 5px;
    color: #9feaf4;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-card__caption strong {
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
}

.maintenance-band {
    color: var(--white);
    background: var(--navy-900);
}

.maintenance-band__grid {
    display: grid;
    min-height: 300px;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
}

.maintenance-band__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maintenance-band__content {
    display: flex;
    padding: 54px 0 54px 64px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.maintenance-band h2,
.maintenance-band p {
    color: var(--white);
}

.maintenance-band h2 {
    max-width: 650px;
    margin-bottom: 16px;
}

.maintenance-band p {
    max-width: 640px;
    margin-bottom: 24px;
    color: #becdd5;
}

.maintenance-band .button--outline {
    color: var(--white);
    border-color: #8195a2;
}

.cta-strip {
    padding: 34px 0;
    color: var(--white);
    background: var(--blue-700);
}

.cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-strip h2 {
    margin-bottom: 5px;
    color: var(--white);
    font-size: clamp(1.4rem, 2.4vw, 2.15rem);
}

.cta-strip p {
    margin-bottom: 0;
    color: #d7eaf5;
}

.cta-strip .button {
    flex: 0 0 auto;
    color: var(--navy-900);
    background: var(--white);
}

/* Páginas internas */
.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-900);
}

.page-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(7, 26, 42, 0.95) 0%, rgba(7, 26, 42, 0.83) 48%, rgba(7, 26, 42, 0.55) 100%),
        var(--page-image, none) center / cover no-repeat;
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 355px;
    padding: 68px 0 74px;
    flex-direction: column;
    justify-content: center;
}

.breadcrumb {
    display: flex;
    margin-bottom: 22px;
    align-items: center;
    gap: 9px;
    color: #bcd0dc;
    font-size: 0.72rem;
    font-weight: 700;
}

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

.page-hero h1 {
    max-width: 850px;
    margin-bottom: 18px;
    color: var(--white);
    font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.page-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: #d1dde4;
    font-size: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 70px;
    align-items: start;
}

.content-copy h2 {
    margin-bottom: 22px;
}

.content-copy h3 {
    margin: 34px 0 14px;
}

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

.sidebar-card {
    padding: 30px;
    background: var(--surface);
    border-top: 3px solid var(--blue-700);
}

.sidebar-card h3 {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.sidebar-card ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 11px;
    list-style: none;
}

.sidebar-card li {
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
    color: #425a68;
    font-size: 0.86rem;
}

.sidebar-card li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-card i {
    width: 20px;
    color: var(--green-500);
}

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

.feature-box {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
}

.feature-box i {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    place-items: center;
    color: var(--blue-700);
    background: var(--aqua-100);
}

.feature-box h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.feature-box p {
    margin-bottom: 0;
    font-size: 0.84rem;
}

.process-list {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    list-style: none;
    border: 1px solid var(--line);
}

.process-list li {
    min-height: 205px;
    padding: 29px 25px;
    background: var(--white);
}

.process-list__number {
    display: block;
    margin-bottom: 30px;
    color: var(--aqua-500);
    font-size: 0.78rem;
    font-weight: 800;
}

.process-list h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.process-list p {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.service-detail-list {
    display: grid;
    gap: 22px;
}

.service-detail {
    display: grid;
    min-height: 210px;
    overflow: hidden;
    grid-template-columns: 330px 1fr;
    background: var(--white);
    border: 1px solid var(--line);
}

.service-detail:nth-child(even) {
    grid-template-columns: 1fr 330px;
}

.service-detail:nth-child(even) .service-detail__image {
    order: 2;
}

.service-detail__image img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}

.service-detail__body {
    padding: 32px 36px;
}

.service-detail__body h2 {
    margin-bottom: 11px;
    font-size: 1.5rem;
}

.service-detail__body p {
    margin-bottom: 18px;
    font-size: 0.88rem;
}

.portfolio-filter {
    display: flex;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-filter button {
    min-height: 40px;
    padding: 0 17px;
    color: #536977;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 0.76rem;
    font-weight: 800;
}

.portfolio-filter button.is-active,
.portfolio-filter button:hover {
    color: var(--white);
    background: var(--blue-700);
    border-color: var(--blue-700);
}

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

.portfolio-item {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    background: var(--navy-900);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    min-height: 290px;
    object-fit: cover;
    transition: transform 500ms ease;
}

.portfolio-item::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(7, 26, 42, 0.84), transparent 55%);
}

.portfolio-item:hover img {
    transform: scale(1.04);
}

.portfolio-item__caption {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    z-index: 2;
    color: var(--white);
}

.portfolio-item__caption strong,
.portfolio-item__caption span {
    display: block;
}

.portfolio-item__caption strong {
    margin-bottom: 4px;
    font-family: "Manrope", sans-serif;
}

.portfolio-item__caption span {
    color: #c7d7df;
    font-size: 0.74rem;
}

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

.value-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
}

.value-card span {
    display: block;
    margin-bottom: 24px;
    color: var(--aqua-500);
    font-size: 0.72rem;
    font-weight: 800;
}

.value-card h3 {
    margin-bottom: 10px;
}

.value-card p {
    margin-bottom: 0;
    font-size: 0.86rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 58px;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 20px;
}

.contact-list {
    display: grid;
    margin: 32px 0 0;
    padding: 0;
    gap: 20px;
    list-style: none;
}

.contact-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
}

.contact-list i {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--blue-700);
    background: var(--aqua-100);
}

.contact-list strong,
.contact-list span {
    display: block;
}

.contact-list strong {
    margin-bottom: 3px;
    color: var(--navy-950);
    font-size: 0.86rem;
}

.contact-list span,
.contact-list a {
    color: var(--muted);
    font-size: 0.83rem;
}

.contact-form {
    padding: 38px;
    background: var(--surface);
    border-top: 3px solid var(--blue-700);
}

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

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #344d5b;
    font-size: 0.76rem;
    font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--text);
    background: var(--white);
    border: 1px solid #cdd9df;
    border-radius: 2px;
    outline: none;
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue-700);
    box-shadow: 0 0 0 3px rgba(14, 82, 146, 0.08);
}

.form-note {
    margin: 14px 0 0;
    font-size: 0.72rem;
}

.faq-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    display: flex;
    width: 100%;
    min-height: 68px;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--navy-950);
    background: transparent;
    border: 0;
    text-align: left;
    font-weight: 800;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease;
}

.faq-answer p {
    max-width: 820px;
    padding-bottom: 22px;
    margin-bottom: 0;
}

.faq-item.is-open .faq-answer {
    max-height: 260px;
}

.faq-question i {
    transition: transform var(--transition);
}

.faq-item.is-open .faq-question i {
    transform: rotate(45deg);
}

/* Pie de página */
.site-footer {
    color: #b9c9d2;
    background: var(--navy-950);
}

.footer-main {
    display: grid;
    padding: 66px 0 54px;
    grid-template-columns: 1.3fr 0.7fr 0.8fr 0.9fr;
    gap: 54px;
}

.footer-brand img {
    width: 205px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 330px;
    color: #9eb0ba;
    font-size: 0.82rem;
}

.footer-social {
    display: flex;
    gap: 9px;
}

.footer-social a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #c4d2da;
    border: 1px solid #294051;
    transition: all var(--transition);
}

.footer-social a:hover {
    color: var(--white);
    background: var(--blue-700);
    border-color: var(--blue-700);
}

.footer-column h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 0.95rem;
}

.footer-column ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.footer-column a,
.footer-column li,
.footer-column p {
    color: #9eb0ba;
    font-size: 0.79rem;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    gap: 9px;
}

.footer-contact i {
    margin-top: 4px;
    color: var(--aqua-500);
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid #21394a;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #7f949f;
    font-size: 0.7rem;
}

/* Animación discreta */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
    .main-nav,
    .header-action--desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .home-hero__content {
        padding-right: 42px;
    }

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

    .assurance-item:nth-child(2) {
        border-right: 0;
    }

    .assurance-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .about-preview {
        gap: 45px;
    }

    .footer-main {
        grid-template-columns: 1.2fr 0.8fr 0.8fr;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .topbar__inner {
        justify-content: center;
    }

    .topbar__inner > p,
    .topbar__item:nth-child(2) {
        display: none;
    }

    .topbar__items {
        width: 100%;
        justify-content: space-between;
    }

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

    .home-hero__content {
        min-height: 510px;
        padding: 62px 0 82px;
    }

    .home-hero__content::after {
        display: none;
    }

    .home-hero__visual {
        min-height: 390px;
    }

    .service-grid,
    .feature-list,
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:last-child,
    .feature-box:last-child,
    .value-card:last-child {
        grid-column: 1 / -1;
    }

    .about-preview,
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .project-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 340px 230px 230px;
    }

    .project-card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .maintenance-band__grid {
        grid-template-columns: 1fr;
    }

    .maintenance-band__image {
        height: 320px;
    }

    .maintenance-band__content {
        padding: 48px 0;
    }

    .process-list {
        grid-template-columns: 1fr 1fr;
    }

    .service-detail,
    .service-detail:nth-child(even) {
        grid-template-columns: 260px 1fr;
    }

    .service-detail:nth-child(even) .service-detail__image {
        order: initial;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr 1fr;
    }

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

    .footer-column:last-child {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 70px;
    }

    .site-container {
        width: min(calc(100% - 30px), var(--container));
    }

    .topbar__item:last-child {
        display: none;
    }

    .brand {
        width: 184px;
    }

    .brand img {
        height: 42px;
    }

    .mobile-menu {
        top: calc(36px + 66px);
    }

    .section,
    .section--compact {
        padding: 68px 0;
    }

    .section-header {
        margin-bottom: 32px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .home-hero__content {
        min-height: 480px;
        padding: 50px 0 70px;
    }

    .home-hero h1 {
        font-size: clamp(2.4rem, 12vw, 3.7rem);
    }

    .home-hero__actions,
    .home-hero__actions .button {
        width: 100%;
    }

    .home-hero__note {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .home-hero__visual {
        min-height: 310px;
    }

    .hero-caption {
        right: 16px;
        bottom: 16px;
        width: calc(100% - 32px);
    }

    .assurance-wrap {
        margin-top: 0;
    }

    .assurance-panel,
    .service-grid,
    .feature-list,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .assurance-item,
    .assurance-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .assurance-item:last-child {
        border-bottom: 0;
    }

    .service-card:last-child,
    .feature-box:last-child,
    .value-card:last-child {
        grid-column: auto;
    }

    .about-preview__image img {
        min-height: 340px;
    }

    .about-preview__badge {
        right: 12px;
        bottom: 12px;
    }

    .project-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 260px);
    }

    .project-card:first-child {
        grid-column: auto;
    }

    .maintenance-band__image {
        height: 260px;
    }

    .cta-strip__inner,
    .footer-bottom__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-strip .button {
        width: 100%;
    }

    .page-hero__inner {
        min-height: 310px;
        padding: 56px 0 60px;
    }

    .page-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.5rem);
    }

    .process-list {
        grid-template-columns: 1fr;
    }

    .service-detail,
    .service-detail:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .service-detail__image img {
        height: 230px;
        min-height: 230px;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

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

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

    .form-field--full {
        grid-column: auto;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

.site-header.is-scrolled + .mobile-menu {
    top: 66px;
}


/* =========================================================
   INICIO CORPORATIVO V2 · Minimalista, amplio y progresivo
   ========================================================= */
.progressive-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 850px;
}

.home2-section {
    padding: 88px 0;
}

.home2-section--soft {
    background: #f5f8fa;
}

.home2-section--navy {
    color: var(--white);
    background: var(--navy-950);
}

.home2-heading {
    display: grid;
    margin-bottom: 40px;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
    gap: 80px;
    align-items: end;
}

.home2-heading h2,
.home2-brands__intro h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 3.3vw, 3.15rem);
}

.home2-heading > p {
    margin: 0 0 4px;
    font-size: .95rem;
}

.home2-heading--center {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
}

.home2-heading--center .kicker {
    justify-content: center;
}

.home2-heading--light h2,
.home2-heading--light h3 {
    color: var(--white);
}

.home2-heading--light > p {
    color: #aac0cd;
}

.home2-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    align-items: center;
    gap: 10px;
    color: #bdebf2;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home2-eyebrow::before {
    width: 30px;
    height: 2px;
    content: "";
    background: var(--aqua-500);
}

.home2-hero {
    position: relative;
    min-height: min(760px, calc(100vh - 114px));
    overflow: hidden;
    color: var(--white);
    background: var(--navy-950);
}

.home2-hero__media,
.home2-hero__media img,
.home2-hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home2-hero__media img {
    object-fit: cover;
    object-position: center 58%;
}

.home2-hero__overlay {
    background:
        linear-gradient(90deg, rgba(5, 22, 35, .91) 0%, rgba(5, 22, 35, .75) 44%, rgba(5, 22, 35, .23) 78%, rgba(5, 22, 35, .2) 100%),
        linear-gradient(0deg, rgba(5, 22, 35, .52) 0%, transparent 46%);
}

.home2-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: min(760px, calc(100vh - 114px));
    padding-top: 84px;
    padding-bottom: 132px;
    align-items: center;
}

.home2-hero__content {
    max-width: 790px;
}

.home2-hero h1 {
    max-width: 780px;
    margin-bottom: 22px;
    color: var(--white);
    font-size: clamp(2.75rem, 5vw, 4.85rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.home2-hero__content > p {
    max-width: 650px;
    margin-bottom: 32px;
    color: #d4e1e8;
    font-size: clamp(.98rem, 1.35vw, 1.12rem);
    line-height: 1.7;
}

.home2-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button--glass {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .5);
    backdrop-filter: blur(10px);
}

.button--glass:hover {
    color: var(--navy-950);
    background: var(--white);
    border-color: var(--white);
}

.home2-hero__facts {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    background: rgba(6, 28, 44, .9);
    border-top: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
}

.home2-facts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.home2-facts__grid > div {
    min-height: 96px;
    padding: 22px 32px;
    border-right: 1px solid rgba(255,255,255,.14);
}

.home2-facts__grid > div:first-child {
    padding-left: 0;
}

.home2-facts__grid > div:last-child {
    border-right: 0;
}

.home2-facts__grid strong,
.home2-facts__grid span {
    display: block;
}

.home2-facts__grid strong {
    margin-bottom: 4px;
    color: var(--white);
    font-family: "Manrope", sans-serif;
    font-size: .9rem;
}

.home2-facts__grid span {
    color: #aac0cd;
    font-size: .76rem;
}

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

.home2-service {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(7, 26, 42, .055);
    transition: transform var(--transition), box-shadow var(--transition);
}

.home2-service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-small);
}

.home2-service > img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.home2-service > div {
    padding: 27px 28px 29px;
}

.home2-service > div > span {
    color: var(--blue-700);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.home2-service h3 {
    margin: 7px 0 11px;
    font-size: 1.35rem;
}

.home2-service p {
    min-height: 72px;
    margin-bottom: 20px;
    font-size: .88rem;
}

.home2-service a {
    color: var(--blue-700);
    font-size: .8rem;
    font-weight: 800;
}

.home2-service a i {
    margin-left: 6px;
}

.home2-about {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    gap: 78px;
    align-items: center;
}

.home2-about__visual {
    position: relative;
}

.home2-about__visual > img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

.home2-about__note {
    position: absolute;
    right: -20px;
    bottom: 26px;
    max-width: 270px;
    padding: 20px 22px;
    color: var(--white);
    background: var(--navy-950);
    border-left: 3px solid var(--aqua-500);
}

.home2-about__note strong,
.home2-about__note span {
    display: block;
}

.home2-about__note strong {
    margin-bottom: 4px;
    font-size: .9rem;
}

.home2-about__note span {
    color: #b9cbd5;
    font-size: .73rem;
}

.home2-about__content h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.home2-about__content > p {
    margin-bottom: 28px;
}

.home2-mini-grid {
    display: grid;
    margin-bottom: 28px;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.home2-mini-grid > div {
    min-height: 145px;
    padding: 22px;
    background: var(--white);
}

.home2-mini-grid i {
    margin-bottom: 14px;
    color: var(--blue-700);
}

.home2-mini-grid strong,
.home2-mini-grid span {
    display: block;
}

.home2-mini-grid strong {
    margin-bottom: 5px;
    color: var(--navy-950);
    font-size: .86rem;
}

.home2-mini-grid span {
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.55;
}

.home2-process {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    list-style: none;
}

.home2-process li {
    position: relative;
    min-height: 225px;
    padding: 26px 24px;
    background: var(--white);
    border: 1px solid var(--line);
}

.home2-process li > span {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #c7d5dc;
    font-size: .72rem;
    font-weight: 800;
}

.home2-process i {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 36px;
    place-items: center;
    color: var(--blue-700);
    background: var(--aqua-100);
    border-radius: 50%;
}

.home2-process h3 {
    margin-bottom: 9px;
    font-size: 1.05rem;
}

.home2-process p {
    margin: 0;
    font-size: .79rem;
}

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

.home2-person {
    background: #0e2b40;
    border: 1px solid rgba(255,255,255,.1);
}

.home2-person img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    object-position: center top;
    filter: saturate(.82);
}

.home2-person > div {
    padding: 22px;
}

.home2-person h3 {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 1.08rem;
}

.home2-person p {
    margin-bottom: 10px;
    color: #65d1e3;
    font-size: .75rem;
    font-weight: 700;
}

.home2-person span {
    display: block;
    color: #9fb4c0;
    font-size: .74rem;
}

.home2-brands {
    padding: 60px 0;
    border-bottom: 1px solid var(--line);
}

.home2-brands > .site-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 70px;
    align-items: center;
}

.home2-brands__intro h2 {
    font-size: 1.5rem;
}

.home2-brand-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.home2-brand-list span {
    display: grid;
    min-height: 64px;
    place-items: center;
    color: #71848f;
    background: #f7f9fa;
    border: 1px solid var(--line);
    font-family: "Manrope", sans-serif;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .08em;
}

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

.home2-review {
    margin: 0;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
}

.home2-review__stars {
    margin-bottom: 18px;
    color: #e7a52d;
    letter-spacing: .08em;
}

.home2-review blockquote {
    min-height: 145px;
    margin: 0 0 24px;
    color: #3e5563;
    font-size: .9rem;
    line-height: 1.72;
}

.home2-review footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home2-review footer > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--white);
    background: var(--blue-700);
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 800;
}

.home2-review footer strong,
.home2-review footer small {
    display: block;
}

.home2-review footer strong {
    color: var(--navy-950);
    font-size: .8rem;
}

.home2-review footer small {
    color: var(--muted);
    font-size: .68rem;
}

.home2-quote {
    padding: 88px 0;
    color: var(--white);
    background: linear-gradient(110deg, #071a2a, #0b3048);
}

.home2-quote__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(560px, 1.15fr);
    gap: 80px;
    align-items: center;
}

.home2-quote__intro h2 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: clamp(2rem, 3vw, 3.15rem);
}

.home2-quote__intro > p {
    color: #b3c6d1;
}

.home2-quote__intro ul {
    display: grid;
    margin: 26px 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.home2-quote__intro li {
    display: flex;
    gap: 10px;
    color: #d4e0e6;
    font-size: .83rem;
}

.home2-quote__intro li i {
    margin-top: 5px;
    color: var(--aqua-500);
}

.home2-quote__contact {
    display: grid;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.15);
    gap: 3px;
}

.home2-quote__contact span {
    color: #92aab7;
    font-size: .7rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home2-quote__contact strong {
    color: var(--white);
    font-size: 1.3rem;
}

.home2-quote__contact a {
    color: #8dddea;
    font-size: .82rem;
}

.home2-form {
    padding: 34px;
    color: var(--text);
    background: var(--white);
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.home2-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.home2-form label {
    display: grid;
    gap: 7px;
    color: var(--navy-950);
    font-size: .74rem;
    font-weight: 700;
}

.home2-form input,
.home2-form select,
.home2-form textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--text);
    background: #fbfcfd;
    border: 1px solid #cfdae0;
    border-radius: 2px;
    outline: none;
}

.home2-form input:focus,
.home2-form select:focus,
.home2-form textarea:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(23,105,170,.1);
}

.home2-form textarea {
    resize: vertical;
}

.home2-form__full {
    grid-column: 1 / -1;
}

.home2-consent {
    display: flex !important;
    margin: 18px 0;
    align-items: flex-start;
    grid-template-columns: auto 1fr;
    gap: 9px !important;
    color: var(--muted) !important;
    font-weight: 500 !important;
}

.home2-consent input {
    width: auto;
    margin-top: 3px;
}

.home2-form__note {
    margin: 14px 0 0;
    font-size: .68rem;
}

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

.home2-faq__layout {
    display: grid;
    grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr);
    gap: 80px;
    align-items: start;
}

.home2-faq__intro {
    position: sticky;
    top: 105px;
}

.home2-faq__intro h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.home2-faq__intro p {
    margin-bottom: 24px;
}

.home2-faq__layout .faq-item {
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.home2-faq__layout .faq-item:last-child {
    border-bottom: 1px solid var(--line);
}

.home2-faq__layout .faq-question {
    min-height: 78px;
    padding: 18px 0;
    background: transparent;
}

.home2-faq__layout .faq-answer p {
    padding-right: 50px;
}

@media (max-width: 1120px) {
    .home2-heading,
    .home2-about,
    .home2-quote__grid,
    .home2-faq__layout {
        gap: 48px;
    }

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

    .home2-quote__grid {
        grid-template-columns: .8fr 1.2fr;
    }
}

@media (max-width: 860px) {
    .home2-section,
    .home2-quote {
        padding: 72px 0;
    }

    .home2-heading,
    .home2-about,
    .home2-brands > .site-container,
    .home2-quote__grid,
    .home2-faq__layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home2-hero,
    .home2-hero__inner {
        min-height: 650px;
    }

    .home2-hero__inner {
        padding-top: 68px;
        padding-bottom: 168px;
    }

    .home2-hero__overlay {
        background: linear-gradient(90deg, rgba(5,22,35,.91), rgba(5,22,35,.58)), linear-gradient(0deg, rgba(5,22,35,.68), transparent 55%);
    }

    .home2-services,
    .home2-reviews {
        grid-template-columns: 1fr;
    }

    .home2-service {
        display: grid;
        grid-template-columns: 260px 1fr;
    }

    .home2-service > img {
        height: 100%;
        min-height: 260px;
    }

    .home2-service p {
        min-height: 0;
    }

    .home2-about__visual > img {
        height: 460px;
    }

    .home2-process {
        grid-template-columns: 1fr 1fr;
    }

    .home2-brand-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .home2-review blockquote {
        min-height: 0;
    }

    .home2-quote__grid {
        max-width: 760px;
    }

    .home2-faq__intro {
        position: static;
    }
}

@media (max-width: 640px) {
    .home2-section,
    .home2-quote {
        padding: 58px 0;
    }

    .home2-heading {
        margin-bottom: 28px;
    }

    .home2-heading h2,
    .home2-brands__intro h2 {
        font-size: clamp(1.8rem, 9vw, 2.45rem);
    }

    .home2-hero,
    .home2-hero__inner {
        min-height: 660px;
    }

    .home2-hero__inner {
        padding-top: 54px;
        padding-bottom: 210px;
        align-items: flex-start;
    }

    .home2-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }

    .home2-hero__actions,
    .home2-hero__actions .button {
        width: 100%;
    }

    .home2-facts__grid {
        grid-template-columns: 1fr;
    }

    .home2-facts__grid > div {
        min-height: auto;
        padding: 12px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.13);
    }

    .home2-facts__grid > div:last-child {
        border-bottom: 0;
    }

    .home2-facts__grid span {
        display: none;
    }

    .home2-service {
        display: block;
    }

    .home2-service > img {
        height: 220px;
        min-height: 0;
    }

    .home2-about__visual > img {
        height: 350px;
    }

    .home2-about__note {
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }

    .home2-mini-grid,
    .home2-process,
    .home2-team,
    .home2-brand-list,
    .home2-form__grid {
        grid-template-columns: 1fr;
    }

    .home2-process li {
        min-height: 190px;
    }

    .home2-person {
        display: grid;
        grid-template-columns: 118px 1fr;
    }

    .home2-person img {
        height: 100%;
        aspect-ratio: auto;
    }

    .home2-brand-list {
        grid-template-columns: 1fr 1fr;
    }

    .home2-form {
        padding: 24px 18px;
    }

    .home2-form__full {
        grid-column: auto;
    }
}


/* =========================================================
   AJUSTES V5 · Refinamiento solicitado por Hydrotech
   ========================================================= */
body { font-size: 16.5px; }
.site-container { width: min(calc(100% - 56px), 1400px); }

/* Logos reales */
.brand { width: 246px; height: 58px; }
.brand img { width: auto; height: 54px; object-fit: contain; }
.brand__scroll { left: 2px !important; height: 48px !important; }
.site-header.is-scrolled .brand { width: 62px; }
.footer-brand img { width: min(100%, 300px); height: auto; }

/* Hero más contenido y legible */
.home2-hero,
.home2-hero__inner { min-height: clamp(535px, 63vh, 625px); }
.home2-hero__inner { padding-top: 62px; padding-bottom: 112px; }
.home2-hero__content { max-width: 690px; }
.home2-hero h1 { max-width: 680px; margin-bottom: 18px; font-size: clamp(2.35rem, 3.85vw, 3.75rem); line-height: 1.1; letter-spacing: -.035em; }
.home2-hero__content > p { max-width: 610px; font-size: clamp(1rem, 1.18vw, 1.08rem); line-height: 1.72; }
.home2-facts__grid > div { min-height: 84px; padding-top: 18px; padding-bottom: 18px; }

/* Lectura ligeramente mayor */
.home2-heading > p,
.home2-about__content > p,
.home2-service p,
.home2-review blockquote,
.home2-faq__intro p,
.home2-faq__layout .faq-answer p,
.home2-quote__intro > p { font-size: .98rem; }
.home2-service p { min-height: 78px; }
.home2-person span { font-size: .82rem; line-height: 1.58; }
.home2-review footer strong { font-size: .86rem; }
.home2-review footer small { font-size: .74rem; }
.footer-column a, .footer-column li, .footer-column p { font-size: .84rem; }

/* Efecto limpio en imágenes dentro de tarjetas */
.home2-service > img,
.home2-person img,
.service-card__image img,
.project-card img,
.portfolio-item img,
.service-detail__image img { transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease, opacity .4s ease; }
.home2-service:hover > img,
.home2-person:hover img,
.service-card:hover .service-card__image img,
.project-card:hover img,
.portfolio-item:hover img,
.service-detail:hover .service-detail__image img { transform: scale(1.055); filter: saturate(1.08) contrast(1.02); }
.home2-service { isolation: isolate; }
.home2-service > img { transform-origin: center; }
.home2-person { overflow: hidden; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.home2-person:hover { transform: translateY(-5px); border-color: rgba(101,209,227,.42); box-shadow: 0 18px 38px rgba(0,0,0,.2); }

/* Sección corporativa restaurada con franja de capacidades */
.home2-about--clean { padding-bottom: 36px; }
.home2-about__checks { display:grid; grid-template-columns:1fr 1fr; gap:11px 22px; margin:24px 0 28px; padding:0; list-style:none; }
.home2-about__checks li { display:flex; gap:9px; align-items:flex-start; color:#455d6b; font-size:.9rem; }
.home2-about__checks i { margin-top:5px; color:var(--green-500); font-size:.75rem; }
.home2-capabilities { display:grid; grid-template-columns:repeat(4,1fr); background:var(--white); border:1px solid var(--line); box-shadow:0 18px 42px rgba(7,26,42,.075); }
.home2-capabilities article { min-height:196px; padding:30px 31px; border-right:1px solid var(--line); background:var(--white); }
.home2-capabilities article:last-child { border-right:0; }
.home2-capabilities i { margin-bottom:18px; color:var(--green-500); font-size:1.65rem; }
.home2-capabilities h3 { margin-bottom:9px; font-size:1.08rem; }
.home2-capabilities p { margin:0; font-size:.9rem; line-height:1.6; }

/* Proceso: iconos más grandes y centrados */
.home2-process li { min-height:238px; padding:30px 25px 26px; text-align:center; }
.home2-process li > span { top:17px; right:19px; }
.home2-process i { width:66px; height:66px; margin:10px auto 24px; font-size:1.45rem; box-shadow:inset 0 0 0 1px rgba(23,105,170,.08); }
.home2-process h3 { font-size:1.08rem; }
.home2-process p { font-size:.86rem; line-height:1.6; }

/* Marcas: logos centrados, monocromáticos y con color al pasar */
.home2-brands { padding:72px 0; }
.home2-brands > .site-container { grid-template-columns:minmax(280px, 390px) 1fr; }
.home2-brands__intro p { margin:14px 0 0; font-size:.86rem; }
.home2-brand-list { grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
.home2-brand-list .brand-logo { display:grid; min-height:96px; padding:15px; place-items:center; overflow:hidden; background:#fff; border:1px solid var(--line); transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.home2-brand-list img { width:100%; max-width:190px; height:66px; object-fit:contain; filter:grayscale(1); opacity:.62; transition:filter .35s ease, opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.home2-brand-list .brand-logo:hover { transform:translateY(-3px); border-color:#bfd5e2; box-shadow:0 12px 28px rgba(7,26,42,.08); }
.home2-brand-list .brand-logo:hover img { filter:grayscale(0); opacity:1; transform:scale(1.09); }

/* Contacto en cotización */
.home2-quote__contact strong a { color:inherit; }
.home2-quote__social { display:flex; flex-wrap:wrap; gap:14px; margin-top:10px; }
.home2-quote__social a { display:inline-flex; gap:7px; align-items:center; color:#c4d5de; font-size:.76rem; }
.home2-quote__social a:hover { color:var(--white); }

/* Footer enriquecido */
.site-footer { padding-top:0; background:#061724; }
.footer-callout { background:linear-gradient(100deg,#0e5292,#1769aa); }
.footer-callout__inner { display:flex; min-height:154px; align-items:center; justify-content:space-between; gap:34px; }
.footer-callout span { color:#bfeaf1; font-size:.72rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.footer-callout h2 { max-width:690px; margin:6px 0 0; color:#fff; font-size:clamp(1.55rem,2.5vw,2.3rem); }
.footer-callout__actions { display:flex; flex-wrap:wrap; gap:10px; }
.button--outline-light { color:#fff; background:transparent; border-color:rgba(255,255,255,.55); }
.button--outline-light:hover { color:var(--navy-950); background:#fff; border-color:#fff; }
.footer-main--enhanced { grid-template-columns:minmax(260px,1.35fr) .7fr 1fr 1.25fr; gap:54px; padding-top:68px; padding-bottom:56px; }
.footer-brand p { max-width:360px; color:#9fb2be; font-size:.88rem; }
.footer-column h3 { color:#fff; font-size:.9rem; letter-spacing:.02em; }
.footer-column--contact { min-width:250px; }
.footer-contact li { align-items:flex-start; gap:12px; }
.footer-contact li > i { display:grid; width:33px; height:33px; margin-top:1px; place-items:center; color:#7ed4e2; background:rgba(255,255,255,.055); border-radius:50%; }
.footer-contact div { display:grid; gap:1px; }
.footer-contact strong, .footer-contact a { color:#e8f0f4; font-size:.83rem; }
.footer-contact span { color:#8299a7; font-size:.72rem; }
.footer-bottom { background:#04121d; border-top:1px solid rgba(255,255,255,.07); }
.footer-legal { display:flex; align-items:center; gap:10px; color:#78909d; font-size:.72rem; }
.footer-legal a:hover { color:#fff; }
.floating-whatsapp { position:fixed; right:22px; bottom:22px; z-index:900; display:flex; min-height:48px; padding:0 17px; align-items:center; gap:8px; color:#fff; background:#1da851; border-radius:999px; box-shadow:0 12px 30px rgba(0,0,0,.22); font-size:.78rem; font-weight:800; transition:transform .25s ease, box-shadow .25s ease; }
.floating-whatsapp i { font-size:1.15rem; }
.floating-whatsapp:hover { transform:translateY(-3px); box-shadow:0 16px 35px rgba(0,0,0,.28); }

/* La carga progresiva se apoya en loading=lazy, decoding=async, content-visibility e IntersectionObserver. */

@media (max-width:1120px) {
  .footer-main--enhanced { grid-template-columns:1.25fr .75fr 1fr; }
  .footer-column--contact { grid-column:2 / 4; }
  .home2-capabilities { grid-template-columns:1fr 1fr; }
  .home2-capabilities article:nth-child(2) { border-right:0; }
  .home2-capabilities article:nth-child(-n+2) { border-bottom:1px solid var(--line); }
}
@media (max-width:860px) {
  .site-container { width:min(calc(100% - 36px), 1400px); }
  .brand { width:218px; }
  .home2-hero, .home2-hero__inner { min-height:590px; }
  .home2-hero__inner { padding-top:58px; padding-bottom:145px; }
  .home2-about__checks { grid-template-columns:1fr; }
  .home2-brands > .site-container { grid-template-columns:1fr; }
  .footer-callout__inner { padding-top:34px; padding-bottom:34px; align-items:flex-start; flex-direction:column; }
  .footer-main--enhanced { grid-template-columns:1fr 1fr; }
  .footer-column--contact { grid-column:auto; }
}
@media (max-width:640px) {
  body { font-size:16px; }
  .site-container { width:min(calc(100% - 28px), 1400px); }
  .topbar__inner > p { display:none; }
  .topbar__items { width:100%; justify-content:center; gap:14px; }
  .topbar__item:nth-child(2), .topbar__item:nth-child(3) { display:none; }
  .brand { width:195px; height:52px; }
  .brand img { height:47px; }
  .site-header.is-scrolled .brand { width:54px; }
  .home2-hero, .home2-hero__inner { min-height:590px; }
  .home2-hero__inner { padding-top:46px; padding-bottom:180px; }
  .home2-hero h1 { font-size:clamp(2.05rem,9.4vw,2.75rem); }
  .home2-facts__grid > div { padding:10px 0; }
  .home2-capabilities { grid-template-columns:1fr; }
  .home2-capabilities article { min-height:auto; border-right:0; border-bottom:1px solid var(--line) !important; }
  .home2-capabilities article:last-child { border-bottom:0 !important; }
  .home2-process li { min-height:215px; }
  .home2-brand-list { grid-template-columns:1fr 1fr; }
  .home2-brand-list a { min-height:82px; }
  .footer-main--enhanced { grid-template-columns:1fr; gap:34px; }
  .footer-callout__actions, .footer-callout__actions .button { width:100%; }
  .footer-bottom__inner { gap:14px; align-items:flex-start; flex-direction:column; }
  .floating-whatsapp { width:48px; height:48px; padding:0; justify-content:center; border-radius:50%; }
  .floating-whatsapp span { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  .home2-service > img, .home2-person img, .home2-brand-list img, .floating-whatsapp { transition:none !important; }
}

.legal-content { max-width:900px; }
.legal-content h2 { margin:34px 0 12px; font-size:1.45rem; }
.legal-content p { font-size:1rem; }
.legal-content a { color:var(--blue-700); font-weight:700; }
.legal-note { margin-top:36px; padding:18px 20px; background:var(--surface-2); border-left:3px solid var(--blue-700); }


/* =========================================================
   AJUSTES V6 · Responsive, experiencia, equipo y cierre visual
   ========================================================= */

/* Más de 15 años de experiencia */
.home2-about__note--experience {
    max-width: 310px;
    padding: 22px 24px;
    border-left-width: 4px;
    box-shadow: 0 18px 42px rgba(7, 26, 42, .22);
}
.home2-about__note--experience strong {
    margin-bottom: 7px;
    font-size: .92rem;
    line-height: 1.35;
}
.home2-about__note--experience strong b {
    display: block;
    margin-bottom: 2px;
    color: #72d9e8;
    font-family: "Manrope", sans-serif;
    font-size: 1.65rem;
    line-height: 1;
}
.home2-about__note--experience span {
    font-size: .76rem;
    line-height: 1.55;
}

/* Equipo más compacto y equilibrado */
.home2-team {
    grid-template-columns: repeat(4, minmax(0, 260px));
    justify-content: center;
    gap: 24px;
}
.home2-person {
    width: 100%;
    max-width: 260px;
}
.home2-person img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-position: center 18%;
}
.home2-person > div {
    padding: 17px 18px 19px;
}
.home2-person h3 {
    font-size: .98rem;
}
.home2-person p {
    margin-bottom: 7px;
    font-size: .72rem;
}
.home2-person span {
    font-size: .76rem;
    line-height: 1.5;
}

/* Separación visual entre el último CTA y el footer */
.cta-strip {
    position: relative;
    padding: 68px 0;
    color: var(--text);
    background: #f4f7f9;
}
.cta-strip::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
    background: var(--line);
}
.cta-strip__inner {
    min-height: 0;
    padding: 36px 40px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue-600);
    box-shadow: 0 18px 44px rgba(7, 26, 42, .07);
}
.cta-strip h2 {
    color: var(--navy-950);
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}
.cta-strip p {
    color: var(--muted);
}
.cta-strip .button {
    color: var(--white);
    background: var(--blue-700);
    border-color: var(--blue-700);
}
.cta-strip .button:hover {
    color: var(--white);
    background: var(--navy-950);
    border-color: var(--navy-950);
}
.footer-callout {
    border-top: 1px solid rgba(255,255,255,.12);
}

/* Acciones flotantes: llamada y WhatsApp */
.floating-call,
.floating-whatsapp {
    right: max(22px, env(safe-area-inset-right));
}
.floating-call {
    position: fixed;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 900;
    display: flex;
    min-height: 48px;
    padding: 0 17px;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: var(--blue-700);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
    font-size: .78rem;
    font-weight: 800;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.floating-call i {
    font-size: 1rem;
}
.floating-call:hover {
    color: #fff;
    background: var(--navy-950);
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0,0,0,.27);
}
.floating-whatsapp {
    bottom: calc(22px + env(safe-area-inset-bottom));
}

/* Refuerzo responsive general */
@media (max-width: 1180px) {
    .home2-team {
        grid-template-columns: repeat(2, minmax(220px, 280px));
    }
    .home2-person {
        max-width: 280px;
    }
}

@media (max-width: 860px) {
    .cta-strip {
        padding: 52px 0;
    }
    .cta-strip__inner {
        padding: 30px;
    }
    .home2-about__note--experience {
        right: 16px;
        bottom: 16px;
    }
    .footer-callout__inner {
        min-height: auto;
    }
    .home2-form__grid {
        grid-template-columns: 1fr;
    }
    .home2-form__full {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }
    .home2-team {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
    }
    .home2-person {
        display: block;
        max-width: 330px;
    }
    .home2-person img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .home2-person > div {
        padding: 16px 17px 18px;
    }
    .home2-about__note--experience {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 100%;
        margin-top: -1px;
        box-shadow: none;
    }
    .cta-strip {
        padding: 42px 0;
    }
    .cta-strip__inner {
        padding: 26px 22px;
        border-left-width: 3px;
    }
    .cta-strip__inner,
    .cta-strip__inner > div {
        width: 100%;
    }
    .footer-callout h2 {
        font-size: 1.55rem;
    }
    .floating-call,
    .floating-whatsapp {
        right: max(14px, env(safe-area-inset-right));
        width: 50px;
        height: 50px;
        min-height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .floating-call {
        bottom: calc(76px + env(safe-area-inset-bottom));
    }
    .floating-whatsapp {
        bottom: calc(16px + env(safe-area-inset-bottom));
    }
    .floating-call span,
    .floating-whatsapp span {
        display: none;
    }
    .floating-call i,
    .floating-whatsapp i {
        font-size: 1.08rem;
    }
}

@media (max-width: 420px) {
    .site-container {
        width: min(calc(100% - 22px), 1400px);
    }
    .home2-process {
        gap: 12px;
    }
    .home2-process li {
        padding-right: 18px;
        padding-left: 18px;
    }
    .footer-callout__actions {
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-call {
        transition: none !important;
    }
}

/* Prevención de recortes en grids responsivos */
.home2-about > *,
.home2-heading > *,
.home2-quote__grid > *,
.home2-faq__layout > *,
.home2-brands > .site-container > * {
    min-width: 0;
}
.home2-brand-list img {
    width: min(100%, 160px);
    max-width: 100%;
    height: 58px;
}
@media (max-width: 860px) {
    .home2-heading,
    .home2-about,
    .home2-brands > .site-container,
    .home2-quote__grid,
    .home2-faq__layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
.home2-brand-list img {
    width: 160px;
    max-width: calc(100% - 16px);
}
@media (max-width: 640px) {
    .home2-brand-list img {
        width: 130px;
        max-width: calc(100% - 12px);
    }
}

/* Altura controlada de retratos para evitar tarjetas demasiado largas */
.home2-person img {
    height: 180px;
    aspect-ratio: auto;
}
@media (max-width: 1180px) {
    .home2-person img {
        height: 190px;
    }
}
@media (max-width: 640px) {
    .home2-person img {
        height: 210px;
    }
}

/* Ajustes preventivos en páginas internas */
.about-preview > *,
.content-grid > *,
.contact-grid > *,
.service-detail > * {
    min-width: 0;
}
@media (max-width: 860px) {
    .about-preview,
    .content-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .about-preview__badge {
        right: 12px;
    }
}


/* =========================================================
   AJUSTES V7 · Hero móvil, tarjetas enlazables, SEO visual y footer
   ========================================================= */

/* Hero estructurado por etapas: evita deformación y exceso de altura */
.home2-hero {
    min-height: 0;
    overflow: visible;
}
.home2-hero__stage {
    position: relative;
    min-height: clamp(500px, 58vh, 610px);
    overflow: hidden;
    background: var(--navy-950);
}
.home2-hero__stage .home2-hero__inner {
    min-height: clamp(500px, 58vh, 610px);
    padding-top: 58px;
    padding-bottom: 58px;
}
.home2-hero__stage .home2-hero__media img {
    object-position: center 56%;
}
.home2-hero__facts {
    position: relative;
    inset: auto;
}
.home2-hero h1 {
    max-width: 760px;
    font-size: clamp(2.25rem, 4vw, 3.65rem);
    line-height: 1.09;
}
.home2-hero__content > p {
    max-width: 720px;
    font-size: clamp(1rem, 1.15vw, 1.08rem);
}

/* La tarjeta completa funciona como enlace, incluida imagen y título */
.home2-service {
    position: relative;
}
.home2-service__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.home2-service__link > img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.home2-service__link > div {
    padding: 27px 28px 29px;
}
.home2-service__link > div > span:first-child {
    color: var(--blue-700);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.home2-service__link:hover {
    color: inherit;
}
.home2-service__link:hover > img,
.home2-service__link:focus-visible > img {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.02);
}
.home2-service__link:focus-visible {
    outline: 3px solid var(--aqua-500);
    outline-offset: -3px;
}
.home2-service__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue-700);
    font-size: .8rem;
    font-weight: 800;
}
.home2-service__cta i {
    transition: transform .25s ease;
}
.home2-service__link:hover .home2-service__cta i {
    transform: translateX(4px);
}

/* Botones flotantes completamente redondos en todas las pantallas */
.floating-call,
.floating-whatsapp {
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}
.floating-call span,
.floating-whatsapp span {
    display: none;
}
.floating-call i,
.floating-whatsapp i {
    font-size: 1.18rem;
}
.floating-call::after,
.floating-whatsapp::after {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    padding: 8px 11px;
    color: #fff;
    background: rgba(4,18,29,.94);
    border-radius: 5px;
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translate(8px, -50%);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    white-space: nowrap;
}
.floating-call:hover::after,
.floating-call:focus-visible::after,
.floating-whatsapp:hover::after,
.floating-whatsapp:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

/* Ajustes de legibilidad SEO sin saturación visual */
.home2-about__content > p,
.home2-heading > p,
.home2-faq__intro > p,
.home2-brands__intro > p {
    font-size: .98rem;
    line-height: 1.72;
}

@media (max-width: 860px) {
    .home2-hero__stage,
    .home2-hero__stage .home2-hero__inner {
        min-height: 520px;
    }
    .home2-hero__stage .home2-hero__inner {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .home2-hero__stage .home2-hero__overlay {
        background:
            linear-gradient(90deg, rgba(5,22,35,.91) 0%, rgba(5,22,35,.72) 64%, rgba(5,22,35,.44) 100%),
            linear-gradient(0deg, rgba(5,22,35,.38), transparent 60%);
    }
    .home2-hero h1 {
        max-width: 650px;
        font-size: clamp(2.15rem, 6.2vw, 3.15rem);
    }
}

@media (max-width: 640px) {
    /* Hero móvil compacto, centrado y con imagen bien encuadrada */
    .home2-hero__stage,
    .home2-hero__stage .home2-hero__inner {
        min-height: 470px;
    }
    .home2-hero__stage .home2-hero__inner {
        padding-top: 40px;
        padding-bottom: 40px;
        align-items: center;
    }
    .home2-hero__stage .home2-hero__media img {
        object-position: 64% center;
    }
    .home2-hero__stage .home2-hero__overlay {
        background: linear-gradient(90deg, rgba(5,22,35,.93), rgba(5,22,35,.73));
    }
    .home2-hero__content {
        max-width: 100%;
        text-align: center;
    }
    .home2-eyebrow {
        justify-content: center;
        margin-bottom: 15px;
        font-size: .66rem;
        letter-spacing: .12em;
    }
    .home2-hero h1 {
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
        font-size: clamp(2rem, 8.7vw, 2.55rem);
        line-height: 1.11;
    }
    .home2-hero__content > p {
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
        font-size: .97rem;
        line-height: 1.62;
    }
    .home2-hero__actions {
        justify-content: center;
    }
    .home2-hero__actions .button {
        width: auto;
        min-width: 150px;
    }
    .home2-facts__grid {
        display: flex;
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }
    .home2-facts__grid::-webkit-scrollbar {
        display: none;
    }
    .home2-facts__grid > div,
    .home2-facts__grid > div:first-child {
        min-width: min(78vw, 300px);
        min-height: 84px;
        padding: 17px 18px;
        flex: 0 0 auto;
        border-right: 1px solid rgba(255,255,255,.14);
        scroll-snap-align: start;
    }

    /* Centrado consistente en móvil */
    .home2-heading,
    .home2-heading--light,
    .home2-brands__intro,
    .home2-faq__intro,
    .home2-about__content,
    .home2-quote__intro,
    .cta-strip__inner,
    .footer-callout__inner,
    .footer-brand,
    .footer-column,
    .footer-bottom__inner {
        text-align: center;
    }
    .home2-heading > p,
    .home2-brands__intro > p,
    .home2-faq__intro > p,
    .home2-about__content > p,
    .home2-quote__intro > p {
        margin-right: auto;
        margin-left: auto;
    }
    .home2-about__checks li,
    .home2-quote__intro li {
        justify-content: center;
        text-align: left;
    }
    .home2-about__content .text-link,
    .home2-faq__intro .text-link {
        justify-content: center;
    }
    .footer-social,
    .footer-legal {
        justify-content: center;
    }
    .footer-column ul {
        align-items: center;
    }
    .footer-contact li {
        width: min(100%, 320px);
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }
    .footer-bottom__inner {
        align-items: center;
    }
    .footer-legal {
        flex-wrap: wrap;
    }

    .home2-service__link > img {
        height: 215px;
    }
    .home2-service__link > div {
        padding: 23px 22px 25px;
        text-align: center;
    }
    .home2-service p {
        min-height: auto;
    }
    .floating-call,
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        min-height: 50px;
    }
    .floating-call::after,
    .floating-whatsapp::after {
        display: none;
    }
}

@media (max-width: 390px) {
    .home2-hero__stage,
    .home2-hero__stage .home2-hero__inner {
        min-height: 500px;
    }
    .home2-hero__actions {
        display: grid;
        width: min(100%, 280px);
        margin-right: auto;
        margin-left: auto;
    }
    .home2-hero__actions .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home2-service__link > img,
    .home2-service__cta i,
    .floating-call::after,
    .floating-whatsapp::after {
        transition: none !important;
    }
}

/* Afinación final del hero móvil V7 */
@media (max-width: 640px) {
  .home2-hero h1 { font-size: clamp(1.86rem, 7.9vw, 2.3rem); }
  .home2-hero__content > p { font-size: .93rem; line-height: 1.58; }
}
/* En móvil las acciones flotantes se alinean para cubrir menos contenido */
@media (max-width: 640px) {
  .floating-call {
    right: calc(max(14px, env(safe-area-inset-right)) + 60px);
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .floating-whatsapp {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}


/* =========================================================
   V8 SEO · páginas internas, formularios y estructura limpia
   ========================================================= */
.service-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.service-index-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card--linked { overflow: hidden; height: 100%; }
.service-card--linked .service-card__body { height: auto; }
.service-card--linked .text-link { margin-top: auto; }
.service-card--linked:focus-visible { outline: 3px solid var(--aqua-500); outline-offset: 3px; }
.contact-form-v8 { margin-top: 20px; }
.contact-form-v8 small { display: block; margin-top: 7px; color: var(--muted); }
.contact-form-v8 input[type="file"] { padding: 11px; background: #fff; }
.contact-form-v8 .home2-consent a { color: var(--blue-700); text-decoration: underline; }
.form-alert { margin-bottom: 18px; padding: 13px 15px; color: #7f1d1d; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); font-size: .92rem; font-weight: 600; }
.success-panel { max-width: 760px; margin: 0 auto; padding: 56px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-small); }
.success-panel__icon { display: inline-grid; width: 70px; height: 70px; margin-bottom: 22px; place-items: center; color: #fff; background: var(--green-500); border-radius: 50%; font-size: 1.6rem; }
.success-panel h2 { margin-bottom: 12px; }
.success-panel .hero-actions { justify-content: center; margin-top: 26px; }
.error-page { min-height: 62vh; display: grid; place-items: center; padding: 80px 0; background: var(--surface); }
.error-page__inner { text-align: center; }
.error-page__inner > span { display: block; color: var(--blue-700); font-family: "Manrope", sans-serif; font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1; opacity: .16; }
.error-page h1 { margin-top: -20px; }
.error-page .hero-actions { justify-content: center; margin-top: 28px; }
.legal-content a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.portfolio-card p { margin-bottom: 0; }
@media (max-width: 1080px) {
    .service-index-grid, .service-index-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .service-index-grid, .service-index-grid--compact { grid-template-columns: minmax(0, 1fr); }
    .service-card--linked .service-card__body, .feature-box, .sidebar-card { text-align: center; }
    .success-panel { padding: 34px 22px; }
    .page-hero__inner { text-align: center; }
    .breadcrumb { justify-content: center; flex-wrap: wrap; }
}

/* =========================================================
   V8.2 · Proyectos, contacto, galerías y ajustes móviles
   ========================================================= */

/* Proyectos: estas clases estaban presentes en el HTML, pero no tenían estilos. */
.portfolio-filters {
    display: flex;
    margin: 0 0 30px;
    flex-wrap: wrap;
    gap: 10px;
}
.portfolio-filters button {
    min-height: 42px;
    padding: 0 18px;
    color: var(--navy-900);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}
.portfolio-filters button:hover,
.portfolio-filters button.is-active {
    color: var(--white);
    background: var(--blue-700);
    border-color: var(--blue-700);
    transform: translateY(-1px);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.portfolio-card {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 28px rgba(7, 26, 42, .055);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.portfolio-card[hidden] { display: none; }
.portfolio-card:hover {
    border-color: #c4d7e1;
    box-shadow: 0 18px 42px rgba(7, 26, 42, .1);
    transform: translateY(-5px);
}
.portfolio-card__media {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--surface-2);
    border: 0;
    cursor: zoom-in;
}
.portfolio-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.portfolio-card:hover .portfolio-card__media img,
.portfolio-card__media:focus-visible img {
    filter: saturate(1.08) contrast(1.02);
    transform: scale(1.055);
}
.portfolio-card__media:focus-visible {
    outline: 3px solid var(--aqua-500);
    outline-offset: -3px;
}
.portfolio-card__zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: rgba(7, 26, 42, .82);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .25s ease, transform .25s ease;
}
.portfolio-card:hover .portfolio-card__zoom,
.portfolio-card__media:focus-visible .portfolio-card__zoom {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-card > div {
    padding: 24px 24px 27px;
}
.portfolio-card > div > span {
    display: block;
    margin-bottom: 9px;
    color: var(--blue-700);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.portfolio-card h3 {
    margin-bottom: 10px;
    font-size: 1.18rem;
}
.portfolio-card p {
    font-size: .9rem;
    line-height: 1.65;
}

/* Contacto: paneles mejor equilibrados y mapa responsive. */
.contact-section {
    position: relative;
    overflow: hidden;
}
.contact-section::before {
    position: absolute;
    top: -150px;
    right: -120px;
    width: 420px;
    height: 420px;
    content: "";
    background: radial-gradient(circle, rgba(39,187,211,.11), transparent 69%);
    pointer-events: none;
}
.contact-grid--enhanced {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    gap: 34px;
    align-items: stretch;
}
.contact-info--panel,
.contact-form--panel {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-small);
}
.contact-info--panel {
    padding: 42px 38px;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(7,26,42,.97), rgba(14,82,146,.93)),
        radial-gradient(circle at 100% 0, rgba(39,187,211,.24), transparent 42%);
}
.contact-info--panel .kicker { color: #8fe0eb; }
.contact-info--panel .kicker::before { background: #8fe0eb; }
.contact-info--panel h2,
.contact-info--panel strong { color: var(--white); }
.contact-info--panel > p { color: #c6d7df; }
.contact-info--panel .contact-list { gap: 15px; }
.contact-info--panel .contact-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-info--panel .contact-list li:last-child { border-bottom: 0; }
.contact-info--panel .contact-list i {
    color: #8fe0eb;
    background: rgba(255,255,255,.075);
    border-radius: 50%;
}
.contact-info--panel .contact-list a,
.contact-info--panel .contact-list span { color: #b9ced9; }
.contact-info--panel .contact-list a:hover { color: var(--white); }
.contact-form--panel {
    padding: 42px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue-700);
}
.contact-form--panel .form-field input,
.contact-form--panel .form-field select,
.contact-form--panel .form-field textarea {
    border-radius: 5px;
}
.contact-form--panel .button { min-width: 190px; }
.contact-map-heading { margin-bottom: 34px; }
.contact-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-small);
}
.contact-map-frame { min-height: 430px; background: var(--surface-2); }
.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
}
.contact-map-card {
    display: flex;
    padding: 42px 36px;
    flex-direction: column;
    justify-content: center;
    background: var(--navy-950);
}
.contact-map-card__icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    place-items: center;
    color: var(--navy-950);
    background: #8fe0eb;
    border-radius: 50%;
    font-size: 1.25rem;
}
.contact-map-card h3 { color: var(--white); }
.contact-map-card p { color: #b8cbd5; }
.contact-map-card ul {
    display: grid;
    margin: 2px 0 26px;
    padding: 0;
    gap: 10px;
    list-style: none;
}
.contact-map-card li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #d6e4ea;
    font-size: .84rem;
}
.contact-map-card li i { margin-top: 5px; color: #73d8e6; }
.contact-map-card .button { align-self: flex-start; }

/* Tipos de piscina y especialización en uso público. */
.pool-types-grid,
.public-pools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.pool-types-grid article,
.public-pools-grid article {
    position: relative;
    min-width: 0;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.pool-types-grid article:hover,
.public-pools-grid article:hover {
    border-color: #bdd5e1;
    box-shadow: var(--shadow-small);
    transform: translateY(-4px);
}
.pool-types-grid article > i,
.public-pools-grid article > i {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    place-items: center;
    color: var(--blue-700);
    background: var(--aqua-100);
    border-radius: 50%;
    font-size: 1.12rem;
}
.pool-types-grid h3,
.public-pools-grid h3 { margin-bottom: 10px; font-size: 1.12rem; }
.pool-types-grid p,
.public-pools-grid p { margin-bottom: 0; font-size: .88rem; }
.public-pools-section { background: var(--navy-950); }
.public-pools-section .section-header h2 { color: var(--white); }
.public-pools-section .section-header p { color: #adbec8; }
.public-pools-section .kicker { color: #7ed4e2; }
.public-pools-section .kicker::before { background: #7ed4e2; }
.public-pools-grid article {
    color: var(--white);
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.1);
}
.public-pools-grid article:hover { border-color: rgba(126,212,226,.55); box-shadow: 0 20px 44px rgba(0,0,0,.2); }
.public-pools-grid article > span {
    position: absolute;
    top: 20px;
    right: 22px;
    color: rgba(255,255,255,.18);
    font-family: "Manrope", sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
}
.public-pools-grid article > i { color: #7ed4e2; background: rgba(126,212,226,.1); }
.public-pools-grid h3 { color: var(--white); }
.public-pools-grid p { color: #b6c8d1; }

/* Galerías ampliables de cada servicio. */
.service-gallery-section { background: var(--white); }
.service-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.service-gallery__item {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: var(--surface-2);
    border: 0;
    border-radius: var(--radius-lg);
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}
.service-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .52s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.service-gallery__item::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(7,26,42,.72), transparent 56%);
    opacity: .78;
    transition: opacity .3s ease;
}
.service-gallery__overlay {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--white);
    text-align: left;
}
.service-gallery__overlay b {
    font-family: "Manrope", sans-serif;
    font-size: .88rem;
    line-height: 1.35;
}
.service-gallery__overlay i {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
}
.service-gallery__item:hover img,
.service-gallery__item:focus-visible img { transform: scale(1.065); filter: saturate(1.08); }
.service-gallery__item:hover::after,
.service-gallery__item:focus-visible::after { opacity: 1; }
.service-gallery__item:focus-visible { outline: 3px solid var(--aqua-500); outline-offset: 3px; }

/* Lightbox accesible. */
body.lightbox-open { overflow: hidden; }
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    padding: 26px;
    align-items: center;
    justify-content: center;
    background: rgba(2, 12, 20, .94);
}
.image-lightbox.is-open { display: flex; }
.image-lightbox__figure {
    position: relative;
    width: min(1180px, 100%);
    margin: 0;
    text-align: center;
}
.image-lightbox__figure img {
    width: 100%;
    max-height: min(78vh, 820px);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 7px;
    box-shadow: 0 28px 80px rgba(0,0,0,.45);
}
.image-lightbox__caption {
    margin: 14px auto 0;
    color: #d8e4e9;
    font-size: .88rem;
}
.image-lightbox__close,
.image-lightbox__nav {
    position: absolute;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--white);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease;
}
.image-lightbox__close:hover,
.image-lightbox__nav:hover { background: rgba(255,255,255,.2); transform: scale(1.04); }
.image-lightbox__close { top: 18px; right: 18px; }
.image-lightbox__nav { top: 50%; transform: translateY(-50%); }
.image-lightbox__nav:hover { transform: translateY(-50%) scale(1.04); }
.image-lightbox__prev { left: 18px; }
.image-lightbox__next { right: 18px; }
.image-lightbox button:focus-visible { outline: 3px solid #7ed4e2; outline-offset: 3px; }

/* Corrección definitiva: llamada y WhatsApp apilados verticalmente en móvil. */
@media (max-width: 1100px) {
    .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-map-grid { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
}
@media (max-width: 860px) {
    .contact-grid--enhanced,
    .contact-map-grid { grid-template-columns: 1fr; }
    .contact-info--panel,
    .contact-form--panel { padding: 34px 30px; }
    .contact-map-frame,
    .contact-map-frame iframe { min-height: 370px; }
    .pool-types-grid,
    .public-pools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .portfolio-filters { justify-content: center; }
    .portfolio-grid,
    .service-gallery,
    .pool-types-grid,
    .public-pools-grid { grid-template-columns: minmax(0, 1fr); }
    .portfolio-card > div { padding: 21px 20px 24px; text-align: center; }
    .portfolio-card__zoom { opacity: 1; }
    .contact-info--panel,
    .contact-form--panel { padding: 28px 22px; text-align: center; }
    .contact-info--panel .contact-list li {
        width: min(100%, 330px);
        margin-inline: auto;
        text-align: left;
    }
    .contact-form--panel .button { width: 100%; }
    .contact-map-heading { text-align: center; }
    .contact-map-heading p { margin-inline: auto; }
    .contact-map-frame,
    .contact-map-frame iframe { min-height: 330px; }
    .contact-map-card { padding: 32px 24px; text-align: center; }
    .contact-map-card__icon { margin-inline: auto; }
    .contact-map-card li { justify-content: center; text-align: left; }
    .contact-map-card .button { width: 100%; align-self: stretch; }
    .pool-types-grid article,
    .public-pools-grid article { padding: 26px 23px; text-align: center; }
    .pool-types-grid article > i,
    .public-pools-grid article > i { margin-inline: auto; }
    .service-gallery__overlay { right: 15px; bottom: 14px; left: 15px; }
    .image-lightbox { padding: 16px; }
    .image-lightbox__close { top: 12px; right: 12px; }
    .image-lightbox__nav { width: 44px; height: 44px; }
    .image-lightbox__prev { left: 10px; }
    .image-lightbox__next { right: 10px; }
    .floating-call,
    .floating-whatsapp {
        right: max(14px, env(safe-area-inset-right)) !important;
    }
    .floating-call {
        bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    }
    .floating-whatsapp {
        bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }
}
@media (max-width: 390px) {
    .portfolio-filters button { padding-inline: 14px; }
    .contact-info--panel,
    .contact-form--panel { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .portfolio-card,
    .portfolio-card__media img,
    .service-gallery__item img,
    .pool-types-grid article,
    .public-pools-grid article { transition: none !important; }
}
.success-panel__note {
    max-width: 580px;
    margin: 12px auto 0;
    padding: 12px 14px;
    color: #526a78;
    background: var(--aqua-100);
    border-radius: 6px;
    font-size: .84rem;
}


/* =========================================================
   V8.3 FINAL · Ajustes visuales, responsive y primera impresión
   ========================================================= */

/* CTA inferior más sobrio, especialmente cuando el texto es largo. */
.footer-callout h2 {
    max-width: 640px;
    font-size: clamp(1.32rem, 1.85vw, 1.78rem);
    line-height: 1.22;
    letter-spacing: -.02em;
}
.footer-callout__title--long {
    max-width: 680px;
    font-size: clamp(1.22rem, 1.65vw, 1.62rem);
}

/* Proyectos: portada con fotografía local y tarjetas más compactas. */
.projects-page .page-hero::before {
    background:
        linear-gradient(90deg, rgba(7,26,42,.94) 0%, rgba(7,26,42,.78) 52%, rgba(7,26,42,.42) 100%),
        var(--page-image) center 58% / cover no-repeat;
}
.projects-page .portfolio-grid {
    gap: 20px;
}
.projects-page .portfolio-card__media img {
    height: 238px;
    aspect-ratio: auto;
}
.projects-page .portfolio-card > div {
    padding: 21px 22px 24px;
}
.projects-page .portfolio-card h3 {
    font-size: 1.08rem;
}
.projects-page .portfolio-card p {
    font-size: .86rem;
}

/* Nosotros: imagen principal equilibrada y equipo en cuadrícula real. */
.about-page .about-preview {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 56px;
}
.about-page .about-preview__image img {
    height: 430px;
    min-height: 0;
    object-fit: cover;
}
.about-page .team-section {
    display: block;
    padding: 78px 0;
    background: var(--navy-950);
}
.about-page .team-section > .site-container {
    width: min(calc(100% - 48px), var(--container));
}
.about-page .team-section .home2-heading {
    margin-bottom: 34px;
}
.about-page .team-section .home2-team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 230px));
    justify-content: center;
    gap: 22px;
}
.about-page .team-section .home2-person {
    max-width: 230px;
}
.about-page .team-section .home2-person img {
    height: 205px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 18%;
}
.about-page .team-section .home2-person > div {
    min-height: 142px;
}

/* Página de servicios: iconos amplios, centrados y sin recortes. */
.services-page .service-card {
    overflow: visible;
    border-radius: var(--radius-lg);
}
.services-page .service-card__image {
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.services-page .service-card__body {
    display: flex;
    min-height: 290px;
    padding: 0 28px 28px;
    flex-direction: column;
    text-align: center;
}
.services-page .service-card__icon {
    position: relative;
    z-index: 2;
    width: 66px;
    height: 66px;
    margin: -34px auto 20px;
    color: var(--white);
    background: var(--blue-700);
    border: 6px solid var(--white);
    border-radius: 50%;
    box-sizing: border-box;
    font-size: 1.28rem;
    box-shadow: 0 10px 24px rgba(7,26,42,.16);
}
.services-page .service-card h3 {
    font-size: 1.3rem;
}
.services-page .service-card p {
    min-height: 0;
}
.services-page .service-card .text-link {
    justify-content: center;
}

/* Páginas de servicio: galería visible inmediatamente después del hero. */
.service-detail-page .service-gallery-section--featured {
    padding: 54px 0 58px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.service-detail-page .service-gallery-section--featured .section-header {
    margin-bottom: 28px;
}
.service-detail-page .service-gallery-section--featured .section-header h2 {
    max-width: 720px;
    font-size: clamp(1.75rem, 2.6vw, 2.55rem);
}
.service-detail-page .service-gallery {
    gap: 14px;
}
.service-detail-page .service-gallery__item {
    aspect-ratio: 16 / 10;
}

/* Listas "puede incluir": iconos grandes, centrados y lectura rápida. */
.service-detail-page .includes-grid {
    display: grid;
    margin: 22px 0 0;
    padding: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
}
.service-detail-page .includes-grid li {
    display: flex;
    min-height: 154px;
    padding: 22px 18px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 13px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.service-detail-page .includes-grid li i {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0;
    place-items: center;
    color: var(--blue-700);
    background: var(--aqua-100);
    border-radius: 50%;
    font-size: 1.25rem;
}
.service-detail-page .includes-grid li span {
    color: #415968;
    font-size: .84rem;
    line-height: 1.55;
}

/* Contacto: formulario y mapa más compactos sin perder legibilidad. */
.contact-page .contact-section--compact {
    padding-top: 66px;
    padding-bottom: 66px;
}
.contact-page .contact-section--compact > .site-container,
.contact-page .contact-map-section--compact > .site-container {
    width: min(calc(100% - 48px), 1180px);
}
.contact-page .contact-grid--enhanced {
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 26px;
}
.contact-page .contact-info--panel {
    padding: 34px 30px;
}
.contact-page .contact-form--panel {
    padding: 34px 36px;
}
.contact-page .contact-info--panel h2,
.contact-page .contact-form--panel h2 {
    font-size: clamp(1.72rem, 2.3vw, 2.35rem);
}
.contact-page .contact-info--panel .contact-list {
    margin-top: 24px;
    gap: 7px;
}
.contact-page .contact-info--panel .contact-list li {
    padding: 10px 0;
}
.contact-page .contact-form-v8 {
    margin-top: 14px;
}
.contact-page .form-grid {
    gap: 13px 15px;
}
.contact-page .form-field input,
.contact-page .form-field select {
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
}
.contact-page .form-field textarea {
    min-height: 112px;
}
.contact-page .contact-map-section--compact {
    padding-top: 68px;
    padding-bottom: 68px;
}
.contact-page .contact-map-heading {
    margin-bottom: 26px;
}
.contact-page .contact-map-frame,
.contact-page .contact-map-frame iframe {
    min-height: 340px;
}
.contact-page .contact-map-card {
    padding: 32px 28px;
}
.contact-page .contact-map-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 17px;
}

/* Afinación responsive global. */
@media (max-width: 1100px) {
    .about-page .team-section .home2-team__grid {
        grid-template-columns: repeat(2, minmax(0, 250px));
    }
    .about-page .team-section .home2-person {
        max-width: 250px;
    }
    .projects-page .portfolio-card__media img {
        height: 220px;
    }
    .service-detail-page .includes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .about-page .about-preview {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .about-page .about-preview__image {
        width: min(100%, 680px);
        margin-inline: auto;
    }
    .about-page .about-preview__image img {
        height: 390px;
    }
    .contact-page .contact-section--compact > .site-container,
    .contact-page .contact-map-section--compact > .site-container {
        width: min(calc(100% - 36px), 760px);
    }
    .contact-page .contact-grid--enhanced {
        grid-template-columns: 1fr;
    }
    .contact-page .contact-info--panel,
    .contact-page .contact-form--panel {
        padding: 30px 28px;
    }
    .service-detail-page .service-gallery-section--featured {
        padding: 46px 0 50px;
    }
}

@media (max-width: 640px) {
    .footer-callout h2,
    .footer-callout__title--long {
        max-width: 460px;
        margin-inline: auto;
        font-size: 1.28rem;
        line-height: 1.28;
    }
    .projects-page .page-hero::before {
        background:
            linear-gradient(90deg, rgba(7,26,42,.9), rgba(7,26,42,.65)),
            var(--page-image) 58% center / cover no-repeat;
    }
    .projects-page .portfolio-card__media img {
        height: 210px;
    }
    .about-page .about-preview__image img {
        height: 300px;
    }
    .about-page .team-section {
        padding: 58px 0;
    }
    .about-page .team-section > .site-container {
        width: min(calc(100% - 28px), 520px);
    }
    .about-page .team-section .home2-team__grid {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }
    .about-page .team-section .home2-person {
        width: min(100%, 300px);
        max-width: 300px;
    }
    .about-page .team-section .home2-person img {
        height: 230px;
    }
    .services-page .service-card__body {
        min-height: 0;
        padding-right: 22px;
        padding-left: 22px;
    }
    .service-detail-page .service-gallery-section--featured {
        padding: 38px 0 42px;
    }
    .service-detail-page .service-gallery-section--featured .section-header {
        margin-bottom: 22px;
        text-align: center;
    }
    .service-detail-page .service-gallery-section--featured .section-header p {
        margin-inline: auto;
    }
    .service-detail-page .includes-grid {
        grid-template-columns: 1fr;
    }
    .service-detail-page .includes-grid li {
        min-height: 0;
    }
    .contact-page .contact-section--compact,
    .contact-page .contact-map-section--compact {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .contact-page .contact-section--compact > .site-container,
    .contact-page .contact-map-section--compact > .site-container {
        width: min(calc(100% - 28px), 560px);
    }
    .contact-page .contact-info--panel,
    .contact-page .contact-form--panel {
        padding: 26px 21px;
    }
    .contact-page .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-page .form-field--full {
        grid-column: auto;
    }
    .contact-page .contact-map-frame,
    .contact-page .contact-map-frame iframe {
        min-height: 285px;
    }
    .contact-page .contact-map-card {
        padding: 28px 22px;
    }
}

@media (max-width: 390px) {
    .projects-page .portfolio-card__media img {
        height: 190px;
    }
    .about-page .about-preview__image img {
        height: 270px;
    }
    .services-page .service-card__icon {
        width: 60px;
        height: 60px;
        margin-top: -30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-page .service-card,
    .projects-page .portfolio-card,
    .about-page .home2-person {
        transition: none !important;
    }
}

/* Iconografía de las páginas de servicio: mayor tamaño y centrado. */
.service-detail-page .feature-box,
.service-detail-page .pool-types-grid article,
.service-detail-page .public-pools-grid article {
    text-align: center;
}
.service-detail-page .feature-box > i,
.service-detail-page .pool-types-grid article > i,
.service-detail-page .public-pools-grid article > i {
    width: 60px;
    height: 60px;
    margin: 0 auto 19px;
    border-radius: 50%;
    font-size: 1.25rem;
}
.service-detail-page .feature-box {
    border-radius: var(--radius-lg);
}


/* =========================================================
   Ajustes finales: CTA de servicios, contenido incluido y formularios
   ========================================================= */
.services-page .service-card .text-link {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    margin-top: auto;
    margin-inline: auto;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-700), #168db7);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(14,82,146,.2);
    font-size: .82rem;
    font-weight: 800;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.services-page .service-card:hover .text-link,
.services-page .service-card:focus-visible .text-link {
    color: #fff;
    background: linear-gradient(135deg, #0b4278, var(--blue-700));
    box-shadow: 0 14px 28px rgba(14,82,146,.28);
    transform: translateY(-2px);
}
.services-page .service-card .text-link i {
    transition: transform .22s ease;
}
.services-page .service-card:hover .text-link i,
.services-page .service-card:focus-visible .text-link i {
    transform: translateX(4px);
}

.service-detail-page .includes-block {
    width: 100%;
    margin-top: 42px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.service-detail-page .includes-block > h3 {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}
.service-detail-page .includes-block .includes-grid {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.service-detail-page .includes-block .includes-grid li {
    justify-content: center;
}

form[action="/api/enviar-cotizacion.php"] button[type="submit"]:disabled {
    cursor: wait;
    opacity: .78;
    transform: none !important;
}

@media (max-width: 640px) {
    .services-page .service-card .text-link {
        width: min(100%, 220px);
    }
    .service-detail-page .includes-block {
        margin-top: 30px;
        padding-top: 28px;
    }
}


/* =========================================================
   V9 · Navegación desplegable, catálogo SEO e imágenes locales
   ========================================================= */
.brand,
.site-header.is-scrolled .brand {
    width: 246px;
    height: 58px;
}

.brand img,
.site-header.is-scrolled .brand img,
.site-header.is-scrolled .brand__full {
    position: absolute;
    top: 50%;
    left: 0;
    width: auto;
    max-width: 100%;
    height: 54px;
    opacity: 1;
    object-fit: contain;
    transform: translateY(-50%) scale(1);
}

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

.nav-dropdown__trigger {
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
    align-items: center;
    gap: 7px;
    color: #3d5160;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-dropdown__trigger i {
    font-size: .62rem;
    transition: transform .2s ease;
}

.nav-dropdown:hover .nav-dropdown__trigger,
.nav-dropdown:focus-within .nav-dropdown__trigger,
.nav-dropdown.is-open .nav-dropdown__trigger,
.nav-dropdown.is-active .nav-dropdown__trigger {
    color: var(--blue-700);
}

.nav-dropdown:hover .nav-dropdown__trigger i,
.nav-dropdown:focus-within .nav-dropdown__trigger i,
.nav-dropdown.is-open .nav-dropdown__trigger i {
    transform: rotate(180deg);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 14px);
    right: -300px;
    display: grid;
    width: min(920px, calc(100vw - 40px));
    padding: 24px;
    grid-template-columns: 1.05fr 1fr 1fr 1fr;
    gap: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(7, 26, 42, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-dropdown__menu::before {
    position: absolute;
    top: -15px;
    right: 300px;
    left: 0;
    height: 16px;
    content: "";
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__intro {
    padding: 22px;
    color: #fff;
    background: linear-gradient(145deg, var(--navy-950), var(--blue-700));
    border-radius: 8px;
}

.nav-dropdown__intro span,
.nav-dropdown__group > span {
    display: block;
    margin-bottom: 10px;
    color: var(--aqua-500);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-dropdown__intro strong {
    display: block;
    margin-bottom: 18px;
    font-family: var(--font-heading);
    font-size: 1.12rem;
    line-height: 1.25;
}

.nav-dropdown__intro a,
.nav-dropdown__group a {
    display: flex;
    min-height: auto;
    padding: 7px 0;
    align-items: center;
    gap: 8px;
    border: 0;
    font-size: .75rem;
    line-height: 1.35;
}

.nav-dropdown__intro a {
    color: #fff;
    font-weight: 800;
}

.nav-dropdown__group a {
    color: #405665;
    font-weight: 600;
}

.nav-dropdown__menu a::after {
    display: none;
}

.nav-dropdown__group a:hover {
    color: var(--blue-700);
}

.mobile-services {
    border-bottom: 1px solid var(--line);
}

.mobile-services summary {
    display: flex;
    padding: 13px 8px;
    align-items: center;
    justify-content: space-between;
    color: var(--navy-900);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.mobile-services summary::-webkit-details-marker {
    display: none;
}

.mobile-services[open] summary i {
    transform: rotate(180deg);
}

.mobile-services__links {
    display: grid;
    max-height: 290px;
    padding: 4px 10px 14px 20px;
    overflow-y: auto;
    background: var(--surface);
}

.mobile-menu .mobile-services__links a {
    padding: 9px 4px;
    border-bottom: 1px solid rgba(206, 219, 227, .7);
    font-size: .82rem;
}

.mobile-menu .mobile-services__links .mobile-services__all {
    color: var(--blue-700);
    font-weight: 800;
}

.mobile-menu.is-open {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}

.page-hero--local::before {
    background:
        linear-gradient(90deg, rgba(7, 26, 42, .92), rgba(7, 26, 42, .48)),
        var(--page-image) center / cover no-repeat;
}

.page-hero__eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: #82dcef;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.page-hero__actions {
    display: flex;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header--center {
    justify-content: center;
    text-align: center;
}

.section-header--center .section-header__copy {
    max-width: 760px;
}

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

.catalog-service-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(7, 26, 42, .07);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.catalog-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(7, 26, 42, .12);
}

.catalog-service-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.catalog-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.catalog-service-card:hover img {
    transform: scale(1.045);
}

.catalog-service-card__media span {
    position: absolute;
    right: 18px;
    bottom: -25px;
    display: grid;
    width: 52px;
    height: 52px;
    color: #fff;
    background: var(--blue-700);
    border: 4px solid #fff;
    border-radius: 50%;
    place-items: center;
}

.catalog-service-card__body {
    display: flex;
    padding: 28px 24px 24px;
    flex: 1;
    flex-direction: column;
}

.catalog-service-card__body h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.catalog-service-card__body p {
    margin-bottom: 22px;
    color: var(--text-muted);
    font-size: .94rem;
}

.catalog-service-card__body strong {
    margin-top: auto;
    color: var(--blue-700);
    font-size: .82rem;
}

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

.related-service-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-service-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.related-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(7, 26, 42, .11);
}

.related-service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.related-service-card > div {
    display: flex;
    padding: 22px;
    flex: 1;
    flex-direction: column;
}

.related-service-card span {
    margin-bottom: 8px;
    color: var(--blue-700);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.related-service-card h3 {
    margin-bottom: 9px;
    font-size: 1.12rem;
}

.related-service-card p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: .86rem;
}

.related-service-card strong {
    margin-top: auto;
    color: var(--blue-700);
    font-size: .8rem;
}

.seo-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.seo-detail-card {
    padding: 30px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.seo-detail-card__icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    color: var(--blue-700);
    background: #e8f7fb;
    border-radius: 50%;
    font-size: 1.35rem;
    place-items: center;
}

.seo-detail-card h2 {
    margin-bottom: 18px;
    text-align: center;
    font-size: 1.25rem;
}

.seo-detail-card ul {
    display: grid;
    gap: 12px;
}

.seo-detail-card li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 9px;
    color: #4a6170;
    font-size: .9rem;
}

.seo-detail-card li i {
    margin-top: 4px;
    color: var(--green-500);
}

.content-grid--balanced {
    align-items: center;
}

.service-taxonomy-section {
    padding-top: 74px;
    padding-bottom: 74px;
}

.about-page .team-section .home2-person img,
.home2-team .home2-person img {
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
}

.site-credit {
    display: inline-block;
    margin-left: 6px;
    color: #9fc8dc;
}

@media (max-width: 1180px) {
    .nav-dropdown__menu {
        right: -220px;
        width: min(840px, calc(100vw - 36px));
    }
}

@media (max-width: 1080px) {
    .nav-dropdown {
        display: none;
    }
    .catalog-service-grid,
    .related-service-grid,
    .related-service-grid--wide,
    .seo-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .brand,
    .site-header.is-scrolled .brand {
        width: 190px;
        height: 50px;
    }
    .brand img,
    .site-header.is-scrolled .brand img,
    .site-header.is-scrolled .brand__full {
        height: 44px;
    }
    .catalog-service-grid,
    .related-service-grid,
    .related-service-grid--wide,
    .seo-detail-grid {
        grid-template-columns: 1fr;
    }
    .page-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }
    .page-hero__actions .button {
        width: 100%;
    }
    .service-taxonomy-section {
        padding-top: 54px;
        padding-bottom: 54px;
    }
    .footer-bottom__inner {
        align-items: center;
        text-align: center;
    }
    .site-credit {
        display: block;
        margin: 5px 0 0;
    }
}

/* =========================================================
   V9.1 · Tarjetas compactas, CTA visibles y responsive final
   ========================================================= */

/* Portadas internas: misma jerarquía visual que la portada principal. */
.page-hero__inner {
    min-height: 320px;
    padding-top: 58px;
    padding-bottom: 62px;
}

.page-hero h1 {
    max-width: 780px;
    font-size: clamp(2.35rem, 3.85vw, 3.75rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.page-hero p {
    max-width: 680px;
    font-size: clamp(.94rem, 1.18vw, 1.06rem);
    line-height: 1.68;
}

/* Botones dentro de tarjetas y CTA generales. */
.home2-service__cta,
.card-button {
    display: inline-flex;
    width: fit-content;
    min-height: 42px;
    margin-top: auto;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-700), #138bb6);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    box-shadow: 0 9px 20px rgba(14, 82, 146, .2);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.home2-service__link:hover .home2-service__cta,
.home2-service__link:focus-visible .home2-service__cta,
.catalog-service-card:hover .card-button,
.catalog-service-card:focus-visible .card-button,
.related-service-card:hover .card-button,
.related-service-card:focus-visible .card-button {
    color: #fff;
    background: linear-gradient(135deg, #0a4178, var(--blue-700));
    box-shadow: 0 13px 27px rgba(14, 82, 146, .28);
    transform: translateY(-2px);
}

.home2-service__cta i,
.card-button i {
    transition: transform .22s ease;
}

.home2-service__link:hover .home2-service__cta i,
.home2-service__link:focus-visible .home2-service__cta i,
.catalog-service-card:hover .card-button i,
.catalog-service-card:focus-visible .card-button i,
.related-service-card:hover .card-button i,
.related-service-card:focus-visible .card-button i {
    transform: translateX(4px);
}

.section-actions {
    display: flex;
    margin-top: 34px;
    align-items: center;
    gap: 14px;
}

.section-actions--center {
    justify-content: center;
}

.button--services-all {
    min-width: 220px;
    box-shadow: 0 13px 28px rgba(14, 82, 146, .22);
}

/* Inicio: tarjetas con CTA claro y altura uniforme. */
.home2-services {
    align-items: stretch;
}

.home2-service,
.home2-service__link,
.home2-service__link > div {
    height: 100%;
}

.home2-service__link > div {
    display: flex;
    flex-direction: column;
}

.home2-service p {
    min-height: 0;
}

/* Submenú: "Todos los servicios" como botón de alto contraste. */
.nav-dropdown__intro .nav-dropdown__all-button {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 0 16px;
    justify-content: center;
    color: var(--navy-950);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
    font-size: .76rem;
    font-weight: 800;
}

.nav-dropdown__intro .nav-dropdown__all-button:hover,
.nav-dropdown__intro .nav-dropdown__all-button:focus-visible {
    color: #fff;
    background: var(--aqua-500);
}

.mobile-menu .mobile-services__links .mobile-services__all-button {
    display: flex;
    min-height: 43px;
    margin: 9px 0 5px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--blue-700);
    border: 0;
    border-radius: 999px;
    font-weight: 800;
}

/* Todos los servicios: tarjetas más bajas, iguales e iconos visibles. */
.services-page .catalog-service-grid {
    grid-auto-rows: 1fr;
    gap: 18px;
}

.services-page .catalog-service-card {
    height: 100%;
    border-radius: 9px;
}

.services-page .catalog-service-card__media {
    aspect-ratio: 16 / 9;
}

.services-page .catalog-service-card__media span {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, .96);
    box-shadow: 0 8px 20px rgba(7, 26, 42, .22);
    font-size: 1.05rem;
}

.services-page .catalog-service-card__body {
    min-height: 190px;
    padding: 20px 20px 21px;
}

.services-page .catalog-service-card__body h3 {
    display: -webkit-box;
    margin-bottom: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.08rem;
    line-height: 1.28;
}

.services-page .catalog-service-card__body p {
    display: -webkit-box;
    margin-bottom: 17px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.services-page .catalog-service-card .card-button {
    min-height: 39px;
    padding-inline: 15px;
    font-size: .74rem;
}

/* Tarjetas relacionadas de páginas de servicios: proporción horizontal y contenido compacto. */
.related-service-grid {
    align-items: stretch;
    gap: 18px;
}

.related-service-card {
    height: 100%;
    border-radius: 9px;
}

.related-service-card img {
    aspect-ratio: 16 / 9;
    max-height: 225px;
}

.related-service-card > div {
    min-height: 165px;
    padding: 18px 18px 19px;
}

.related-service-card h3 {
    display: -webkit-box;
    margin-bottom: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.03rem;
    line-height: 1.3;
}

.related-service-card p {
    display: -webkit-box;
    margin-bottom: 15px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: .82rem;
    line-height: 1.5;
}

.related-service-card .card-button {
    min-height: 38px;
    padding-inline: 14px;
    font-size: .72rem;
}

.related-service-grid--two {
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
}

/* Galerías de tres imágenes centradas, sin dejar un hueco visual. */
.service-gallery--three {
    grid-template-columns: repeat(3, minmax(0, 350px));
    justify-content: center;
}

.service-gallery--three .service-gallery__item {
    width: 100%;
}

/* Contacto: más ancho y menos alto. */
.contact-page .contact-section--compact {
    padding-top: 52px;
    padding-bottom: 52px;
}

.contact-page .contact-section--compact > .site-container,
.contact-page .contact-map-section--compact > .site-container {
    width: min(calc(100% - 48px), 1280px);
}

.contact-page .contact-grid--enhanced {
    grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
    gap: 20px;
}

.contact-page .contact-info--panel,
.contact-page .contact-form--panel {
    padding: 27px 28px;
}

.contact-page .contact-info--panel h2,
.contact-page .contact-form--panel h2 {
    font-size: clamp(1.55rem, 2vw, 2rem);
}

.contact-page .contact-info--panel > p {
    font-size: .88rem;
    line-height: 1.6;
}

.contact-page .contact-info--panel .contact-list {
    margin-top: 17px;
}

.contact-page .contact-info--panel .contact-list li {
    padding: 7px 0;
}

.contact-page .form-grid {
    gap: 10px 13px;
}

.contact-page .form-field input,
.contact-page .form-field select {
    min-height: 41px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.contact-page .form-field textarea {
    min-height: 92px;
}

.contact-page .contact-map-section--compact {
    padding-top: 50px;
    padding-bottom: 52px;
}

.contact-page .contact-map-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 0;
}

.contact-page .contact-map-frame,
.contact-page .contact-map-frame iframe {
    min-height: 270px;
}

.contact-page .contact-map-card {
    min-height: 270px;
    padding: 25px 25px;
}

/* Responsive final para todas las nuevas variantes. */
@media (max-width: 1080px) {
    .services-page .catalog-service-grid,
    .related-service-grid,
    .related-service-grid--two,
    .service-gallery--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-page .contact-grid--enhanced,
    .contact-page .contact-map-grid {
        grid-template-columns: 1fr;
    }

    .contact-page .contact-info--panel,
    .contact-page .contact-form--panel {
        padding: 28px;
    }
}

@media (max-width: 700px) {
    .page-hero__inner {
        min-height: 285px;
        padding-top: 48px;
        padding-bottom: 52px;
        text-align: center;
    }

    .page-hero h1 {
        max-width: 560px;
        margin-inline: auto;
        font-size: clamp(1.86rem, 7.9vw, 2.3rem);
    }

    .page-hero p {
        margin-inline: auto;
        font-size: .94rem;
    }

    .page-hero__actions {
        width: min(100%, 360px);
        margin-inline: auto;
    }

    .services-page .catalog-service-grid,
    .related-service-grid,
    .related-service-grid--two,
    .service-gallery--three {
        grid-template-columns: 1fr;
    }

    .services-page .catalog-service-card,
    .related-service-card {
        width: min(100%, 520px);
        margin-inline: auto;
    }

    .services-page .catalog-service-card__body,
    .related-service-card > div {
        min-height: 0;
    }

    .services-page .catalog-service-card .card-button,
    .related-service-card .card-button,
    .home2-service__cta {
        width: min(100%, 230px);
        margin-inline: auto;
    }

    .section-actions {
        margin-top: 27px;
    }

    .button--services-all {
        width: min(100%, 280px);
    }

    .contact-page .contact-section--compact,
    .contact-page .contact-map-section--compact {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .contact-page .contact-section--compact > .site-container,
    .contact-page .contact-map-section--compact > .site-container {
        width: min(calc(100% - 28px), 600px);
    }

    .contact-page .contact-info--panel,
    .contact-page .contact-form--panel,
    .contact-page .contact-map-card {
        padding: 24px 20px;
        text-align: center;
    }

    .contact-page .contact-map-frame,
    .contact-page .contact-map-frame iframe,
    .contact-page .contact-map-card {
        min-height: 245px;
    }
}

@media (max-width: 390px) {
    .page-hero__inner {
        min-height: 270px;
    }

    .services-page .catalog-service-card__media,
    .related-service-card img {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home2-service__cta,
    .card-button,
    .nav-dropdown__all-button {
        transition: none !important;
    }
}


/* =========================================================
   V9.2 · Contenido diferenciado, contraste y retención
   ========================================================= */

/* Contraste real de CTA dentro de tarjetas: evita que reglas genéricas de span
   sobrescriban el texto blanco del botón. */
.related-service-card .card-button,
.catalog-service-card .card-button,
.home2-service .home2-service__cta,
.home2-service__link .home2-service__cta {
    color: #fff !important;
    background: #0e5292;
    border: 1px solid #0a4178;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
    box-shadow: 0 10px 22px rgba(14, 82, 146, .24);
}

.related-service-card:hover .card-button,
.related-service-card:focus-visible .card-button,
.catalog-service-card:hover .card-button,
.catalog-service-card:focus-visible .card-button,
.home2-service__link:hover .home2-service__cta,
.home2-service__link:focus-visible .home2-service__cta {
    color: #fff !important;
    background: #082f57;
    border-color: #082f57;
}

.card-button i,
.home2-service__cta i { color: currentColor !important; }

/* Galerías de cuatro imágenes con separación respirable. */
.service-gallery--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-gallery--four .service-gallery__item {
    min-height: 220px;
}

/* Bloques editoriales de valor. */
.service-value-heading {
    max-width: 900px;
    margin-inline: auto;
}

.service-value-heading > p {
    max-width: 760px;
    margin: 15px auto 0;
    text-align: center;
}

.service-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.service-value-card {
    min-width: 0;
    padding: 28px 25px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(7, 26, 42, .055);
}

.section:not(.section--soft) .service-value-card {
    background: var(--surface-2);
}

.service-value-card__icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: var(--blue-700);
    background: #e8f7fb;
    border-radius: 50%;
    place-items: center;
    font-size: 1.18rem;
}

.service-value-card h3 {
    margin-bottom: 10px;
    font-size: 1.04rem;
    line-height: 1.32;
}

.service-value-card p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.65;
}

/* Proceso de construcción ampliado a seis etapas. */
.process-list--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
}

.process-list--six li {
    min-height: 190px;
}

@media (max-width: 1080px) {
    .service-value-grid,
    .process-list--six,
    .service-gallery--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .service-value-grid,
    .process-list--six,
    .service-gallery--four {
        grid-template-columns: 1fr;
    }

    .service-value-card {
        width: min(100%, 520px);
        margin-inline: auto;
        padding: 24px 21px;
        text-align: left;
    }

    .service-value-card__icon {
        margin-inline: auto;
    }

    .service-value-card h3,
    .service-value-card p {
        text-align: center;
    }

    .service-gallery--four .service-gallery__item {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}


/* =========================================================
   V9.3 · Cobertura geográfica y acciones flotantes
   ========================================================= */
.nav-dropdown__coverage-link {
    display: inline-flex;
    margin-top: 10px;
    align-items: center;
    gap: 8px;
    color: var(--blue-700);
    font-size: .78rem;
    font-weight: 800;
}
.nav-dropdown__coverage-link:hover { color: var(--navy-950); }
.mobile-services__coverage {
    color: var(--blue-700) !important;
    background: #eef8fc;
    border: 1px solid #c7e9f2;
    font-weight: 800 !important;
}

.floating-call,
.floating-whatsapp { overflow: visible; }
.floating-call::after,
.floating-whatsapp::after {
    top: 50%;
    right: calc(100% + 12px);
    display: block;
    visibility: hidden;
    transform: translate(8px, -50%);
}
.floating-call:hover::after,
.floating-call:focus-visible::after,
.floating-whatsapp:hover::after,
.floating-whatsapp:focus-visible::after {
    visibility: visible;
    transform: translate(0, -50%);
}

.maintenance-area-note {
    color: #0b3e69;
    background: #eaf7fb;
    border-bottom: 1px solid #c8e9f1;
}
.maintenance-area-note .site-container {
    display: flex;
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.maintenance-area-note p { margin: 0; font-size: .88rem; line-height: 1.5; }
.maintenance-area-note i { color: var(--blue-700); }

.coverage-links-section .section-actions { margin-top: 30px; }
.coverage-city-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.coverage-city-card {
    display: flex;
    min-height: 132px;
    padding: 21px 18px;
    align-items: flex-start;
    gap: 12px;
    color: var(--navy-950);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(7,26,42,.05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.coverage-city-card > i:first-child { color: var(--blue-700); margin-top: 3px; }
.coverage-city-card > i:last-child { margin-left: auto; color: var(--blue-700); }
.coverage-city-card h3 { margin-bottom: 7px; font-size: 1rem; }
.coverage-city-card p { color: var(--text-muted); font-size: .78rem; line-height: 1.5; }
.coverage-city-card:hover { transform: translateY(-4px); border-color: #9fd9e8; box-shadow: 0 15px 32px rgba(7,26,42,.1); }

.coverage-hero .page-hero__eyebrow {
    display: block;
    margin-bottom: 13px;
    color: #8be4f2;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.coverage-intro-grid { align-items: start; }
.coverage-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.coverage-service-card {
    display: flex;
    min-height: 310px;
    padding: 27px 23px;
    flex-direction: column;
    color: var(--navy-950);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(7,26,42,.055);
    transition: transform .24s ease, box-shadow .24s ease;
}
.coverage-service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(7,26,42,.11); }
.coverage-service-card__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 19px;
    place-items: center;
    color: var(--blue-700);
    background: #e5f7fb;
    border-radius: 50%;
}
.coverage-service-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.coverage-service-card p { margin-bottom: 22px; color: var(--text-muted); font-size: .86rem; line-height: 1.62; }
.coverage-service-card .card-button { margin-top: auto; align-self: flex-start; }
.coverage-city-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.coverage-city-chip {
    display: inline-flex;
    padding: 12px 16px;
    align-items: center;
    gap: 9px;
    color: var(--blue-700);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .83rem;
    font-weight: 800;
}
.coverage-city-chip:hover { color: #fff; background: var(--blue-700); border-color: var(--blue-700); }
.coverage-city-chip--all { color: #fff; background: var(--navy-950); border-color: var(--navy-950); }
.coverage-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.coverage-location-card {
    overflow: hidden;
    color: var(--navy-950);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(7,26,42,.06);
}
.coverage-location-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .3s ease; }
.coverage-location-card > div { display: flex; min-height: 270px; padding: 24px; flex-direction: column; }
.coverage-location-card > div > span:first-child { color: var(--blue-700); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.coverage-location-card h3 { margin: 8px 0 10px; }
.coverage-location-card p { margin-bottom: 20px; color: var(--text-muted); font-size: .84rem; line-height: 1.62; }
.coverage-location-card .card-button { margin-top: auto; align-self: flex-start; }
.coverage-location-card:hover img { transform: scale(1.045); }

@media (max-width: 1180px) {
    .coverage-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .coverage-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .coverage-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .maintenance-area-note .site-container { align-items: flex-start; text-align: left; }
}
@media (max-width: 640px) {
    .coverage-city-grid,
    .coverage-service-grid,
    .coverage-location-grid { grid-template-columns: 1fr; }
    .coverage-city-card,
    .coverage-service-card,
    .coverage-location-card { width: min(100%, 520px); margin-inline: auto; }
    .coverage-service-card { min-height: 0; text-align: center; }
    .coverage-service-card__icon,
    .coverage-service-card .card-button { align-self: center; }
    .page-hero__actions { display: grid; }
    .page-hero__actions .button { width: 100%; }
    .floating-call::after,
    .floating-whatsapp::after { display: none; }
    .floating-call { right: max(14px, env(safe-area-inset-right)) !important; bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
    .floating-whatsapp { right: max(14px, env(safe-area-inset-right)) !important; bottom: calc(16px + env(safe-area-inset-bottom)) !important; }
}


/* V9.4 · Ajustes específicos de cobertura */
.coverage-location-grid {
    align-items: stretch;
}

.coverage-location-card {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.coverage-location-card img {
    max-height: 218px;
    aspect-ratio: 16 / 8;
}

.coverage-location-card > div {
    min-height: 214px;
    padding: 20px 21px;
}

.coverage-location-card h3 {
    margin: 6px 0 8px;
    font-size: 1.12rem;
}

.coverage-location-card p {
    margin-bottom: 15px;
    font-size: .81rem;
    line-height: 1.52;
}

@media (max-width: 860px) {
    .coverage-location-card img {
        max-height: 235px;
        aspect-ratio: 16 / 9;
    }

    .coverage-location-card > div {
        min-height: 205px;
    }
}

@media (max-width: 640px) {
    .coverage-location-card img {
        max-height: 230px;
    }

    .coverage-location-card > div {
        min-height: 0;
        padding: 19px;
    }
}
