/* ==========================================================================
   Inmobiliaria Carlos III S.A. — hoja de estilos
   Se carga después de bootstrap.min.css (solo se usa su rejilla).
   ========================================================================== */

:root {
    --navy: #0e2238;
    --navy-2: #16324f;
    --navy-3: #081523;
    --ink: #14202e;
    --text: #4b5968;
    --muted: #6b7886;
    --gold: #c7a15a;
    --gold-soft: #e9d9b6;
    --gold-text: #7f5f25;
    --cream: #f6f2ea;
    --cream-2: #fbf9f4;
    --line: #e7e1d4;
    --white: #ffffff;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(14, 34, 56, .06);
    --shadow: 0 14px 40px rgba(14, 34, 56, .10);
    --shadow-lg: 0 28px 60px rgba(14, 34, 56, .18);
    --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --header-h: 78px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.68;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-text); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.18;
    letter-spacing: -.01em;
    margin: 0 0 .6em;
}

p { margin: 0 0 1.1em; }
ul { padding: 0; margin: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10000;
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { position: relative; }

/* ---------- Botones ---------- */
.btn-c {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-c:hover { transform: translateY(-2px); }
.btn-c--primary { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(14, 34, 56, .25); }
.btn-c--primary:hover { background: var(--navy-2); color: #fff; }
.btn-c--gold { background: var(--gold); color: var(--navy-3); box-shadow: 0 8px 22px rgba(199, 161, 90, .35); }
.btn-c--gold:hover { background: #d4b06a; color: var(--navy-3); }
.btn-c--outline { background: transparent; color: var(--navy); border-color: rgba(14, 34, 56, .25); }
.btn-c--outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-c--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-c--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-c--sm { padding: 11px 20px; font-size: 14px; border-radius: 10px; }
.btn-c--block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar {
    background: var(--navy-3);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 40px;
}
.topbar a { color: rgba(255, 255, 255, .88); }
.topbar a:hover { color: var(--gold); }
.topbar ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar i { color: var(--gold); font-size: 12px; }

/* ---------- Cabecera ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(14, 34, 56, .08); border-color: var(--line); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 3px;
}
.brand-text strong { font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a {
    position: relative;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy); font-weight: 600; }

.main-nav a.header-cta { margin-left: 12px; padding: 12px 22px; font-size: 14.5px; color: var(--navy-3); }
.main-nav a.header-cta::after { display: none; }
.main-nav a.header-cta:hover { color: var(--navy-3); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { content: ""; left: 0; top: -6px; }
.nav-toggle span::after { content: ""; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Titulares de sección ---------- */
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section--dark .eyebrow { color: var(--gold); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { font-size: 17px; margin-bottom: 0; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head--left .eyebrow { justify-content: flex-start; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 480px at 88% 8%, rgba(199, 161, 90, .16), transparent 60%),
        linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
    padding: 64px 0 96px;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.2rem);
    line-height: 1.07;
    margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--gold-text); font-weight: 600; }
.hero-lead { font-size: 18px; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 12px 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.hero-points i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-size: 11px;
}

.hero-media { position: relative; padding: 0 0 28px 28px; }
.hero-frame {
    position: relative;
    aspect-ratio: 4 / 4.7;
    border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-lg);
}
.hero-media::before {
    content: "";
    position: absolute;
    inset: 22px 22px 0 0;
    border: 2px solid var(--gold);
    border-radius: 250px 250px 26px 26px;
    opacity: .55;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px 16px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 2;
}
.hero-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--gold);
    font-size: 18px;
}
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--navy); line-height: 1.2; }
.hero-badge span { font-size: 13px; color: var(--muted); }

/* ---------- Portales ---------- */
.portals { padding: 54px 0 12px; }
.portals-title {
    margin: 0 0 26px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
.portals-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.portal {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.portal img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s ease, opacity .3s ease; }
.portal:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--gold-soft); }
.portal:hover img { filter: none; opacity: 1; }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 20px 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}
.cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--gold-text);
    font-size: 26px;
    transition: background-color .3s ease, color .3s ease;
}
.cat-card h3 { margin: 0 0 4px; font-size: 20px; transition: color .3s ease; }
.cat-card span { font-size: 14px; color: var(--muted); transition: color .3s ease; }
.cat-card:hover { transform: translateY(-6px); background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow); }
.cat-card:hover .cat-icon { background: rgba(255, 255, 255, .1); color: var(--gold); }
.cat-card:hover h3 { color: #fff; }
.cat-card:hover span { color: rgba(255, 255, 255, .7); }

/* ---------- Propiedades ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prop-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .3s ease, box-shadow .3s ease;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.prop-card:hover .prop-media img { transform: scale(1.06); }
.prop-media::after {
    content: "";
    position: absolute;
    inset: 55% 0 0 0;
    background: linear-gradient(180deg, transparent, rgba(8, 21, 35, .55));
    pointer-events: none;
}
.prop-tags { position: absolute; left: 18px; top: 18px; display: flex; gap: 8px; z-index: 1; }
.tag {
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    background: var(--navy);
    color: #fff;
}
.tag--light { background: rgba(255, 255, 255, .95); color: var(--navy); }
.prop-price {
    position: absolute;
    left: 18px;
    bottom: 14px;
    z-index: 1;
    font-family: var(--font-head);
    font-size: 25px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.prop-body { padding: 24px 24px 20px; flex: 1; }
.prop-body h3 { margin: 0 0 8px; font-size: 21px; }
.prop-body h3 a { color: var(--navy); }
.prop-body h3 a:hover { color: var(--gold-text); }
.prop-addr { display: flex; gap: 10px; margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.prop-addr i { margin-top: 4px; color: var(--gold-text); }
.prop-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.prop-meta li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}
.prop-meta li + li { border-left: 1px solid var(--line); }
.prop-meta i { color: var(--gold-text); }

/* ---------- Sobre nosotros (bloque dividido) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.split-media { position: relative; padding: 0 0 30px 30px; }
.split-media img {
    width: 100%;
    aspect-ratio: 1 / 1.05;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}
.split-media::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 62%;
    height: 62%;
    border-radius: var(--radius-lg);
    background: var(--gold-soft);
}
.split-chip {
    position: absolute;
    right: -16px;
    top: 36px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--navy);
    color: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-size: 14px;
    line-height: 1.3;
}
.split-chip i { color: var(--gold); font-size: 22px; }
.split-chip strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 600; }

.split-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.check-list { margin: 26px 0 34px; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 14px; color: var(--ink); font-weight: 500; }
.check-list i {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-text);
    font-size: 11px;
}

/* ---------- Servicios ---------- */
.section--dark::before {
    content: "";
    position: absolute;
    right: -180px;
    top: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(199, 161, 90, .25);
    box-shadow: 0 0 0 60px rgba(199, 161, 90, .04), 0 0 0 120px rgba(199, 161, 90, .03);
}
.svc-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-card {
    padding: 34px 28px 32px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}
.svc-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); border-color: rgba(199, 161, 90, .55); }
.svc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(199, 161, 90, .16);
    color: var(--gold);
    font-size: 22px;
}
.svc-card h3 { font-size: 20px; margin-bottom: 12px; }
.svc-card p { margin: 0; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .78); }

/* ---------- Llamada a la acción ---------- */
.cta-card {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: stretch;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    box-shadow: var(--shadow-lg);
}
.cta-media { position: relative; min-height: 360px; }
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--navy) 100%); }
.cta-body { padding: 64px 56px 64px 24px; color: rgba(255, 255, 255, .8); }
.cta-body .eyebrow { color: var(--gold); }
.cta-body h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.cta-body p { font-size: 16.5px; margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 34px 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .3s ease, box-shadow .3s ease;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testi-card > i { margin-bottom: 18px; font-size: 30px; color: var(--gold); }
.testi-card blockquote { flex: 1; margin: 0 0 26px; font-size: 16px; line-height: 1.75; color: var(--ink); }
.testi-author { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.testi-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); }
.testi-author strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--navy); line-height: 1.2; }
.testi-author span { font-size: 13px; color: var(--muted); }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
    position: relative;
    padding: 84px 0 92px;
    color: rgba(255, 255, 255, .8);
    background:
        radial-gradient(700px 360px at 85% 0%, rgba(199, 161, 90, .22), transparent 60%),
        linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 55%, var(--navy-2) 100%);
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -220px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(199, 161, 90, .28);
    box-shadow: 0 0 0 50px rgba(199, 161, 90, .04), 0 0 0 100px rgba(199, 161, 90, .03);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: #fff; }
.page-hero p { max-width: 560px; margin: 0; font-size: 17.5px; }
.breadcrumb-c { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 14px; }
.breadcrumb-c a { color: rgba(255, 255, 255, .8); }
.breadcrumb-c a:hover { color: var(--gold); }
.breadcrumb-c i { font-size: 10px; color: var(--gold); }
.breadcrumb-c span { color: var(--gold); font-weight: 600; }

/* ---------- Página: sobre nosotros ---------- */
.lead { font-size: 18px; color: var(--ink); }
.about-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card {
    display: flex;
    gap: 22px;
    padding: 34px 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.value-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--navy);
    color: var(--gold);
    font-size: 22px;
}
.value-card h3 { margin-bottom: 8px; font-size: 21px; }
.value-card p { margin: 0; font-size: 15.5px; }

.tagline-band { padding: 56px 0; text-align: center; background: var(--navy); }
.tagline-band p {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-style: italic;
    color: #fff;
}
.tagline-band p span { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 500;
    color: var(--ink);
}
.chip i { color: var(--gold-text); }

/* ---------- Página: contacto ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.info-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-size: 20px;
}
.info-card small {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.info-card a, .info-card span { font-weight: 600; font-size: 16px; color: var(--navy); word-break: break-word; line-height: 1.4; display: block; }
.info-card a:hover { color: var(--gold-text); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.map-box { position: relative; min-height: 460px; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--cream); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.form-box {
    padding: 40px 40px 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.form-box h2 { font-size: 28px; margin-bottom: 8px; }
.form-box > p { margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--ink);
    background: var(--cream-2);
    border: 1.5px solid var(--line);
    border-radius: 11px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa4af; }
.field input:focus,
.field textarea:focus { outline: none; background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199, 161, 90, .2); }
.field input.is-invalid,
.field textarea.is-invalid { border-color: #b3261e; background: #fff8f7; }
.field .error-msg { display: none; font-size: 12.5px; color: #b3261e; }
.field input.is-invalid ~ .error-msg,
.field textarea.is-invalid ~ .error-msg { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.alert-c { display: none; margin-bottom: 22px; padding: 14px 18px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.alert-c.is-shown { display: flex; align-items: center; gap: 12px; }
.alert-c--ok { background: #eaf6ee; color: #1d5b34; border: 1px solid #bfe3cb; }
.alert-c--err { background: #fdeceb; color: #8c1d18; border: 1px solid #f3c0bc; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-3); color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer-main { padding: 80px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.15fr 1fr; gap: 48px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: var(--gold); }
.footer-brand p { max-width: 320px; margin-bottom: 22px; line-height: 1.7; }
.site-footer h4 { margin-bottom: 22px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: 12px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-links a::before { content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 10px; color: var(--gold); }
.footer-contact { display: grid; gap: 16px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 14px; line-height: 1.55; }
.footer-contact i { flex: none; width: 18px; margin-top: 4px; text-align: center; color: var(--gold); }
.footer-eu { padding: 14px; background: #fff; border-radius: 14px; max-width: 300px; }
.footer-eu img { width: 100%; }
.footer-eu-note { margin: 12px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.social { display: flex; gap: 10px; }
.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: #fff;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-3); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; }
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }

/* ---------- Botones flotantes ---------- */
.float-stack { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 28px rgba(14, 34, 56, .3);
    transition: transform .25s ease, opacity .25s ease, visibility .25s ease, background-color .25s ease;
}
.float-btn:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.float-btn--wa { background: #1fa855; font-size: 28px; }
.float-btn--wa:hover { background: #178f47; }
.float-btn--top { background: var(--navy); font-size: 17px; opacity: 0; visibility: hidden; transform: translateY(10px); }
.float-btn--top.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-btn--top:hover { background: var(--navy-2); }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero-slide { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
    .split { gap: 56px; }
}

@media (max-width: 991.98px) {
    :root { --header-h: 70px; }
    .section { padding: 76px 0; }
    .topbar { display: none; }

    .nav-toggle { display: block; margin-left: auto; }
    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 20px 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(14, 34, 56, .12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .main-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
    .main-nav a::after { display: none; }
    .main-nav a.active { color: var(--gold-text); }
    .main-nav a.nav-wa { display: inline-flex; margin: 18px 0 0; border-bottom: 0; padding: 14px 28px; justify-content: center; }

    .hero { padding: 40px 0 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
    .portals-row { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .prop-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .split-media { max-width: 560px; margin: 0 auto; width: 100%; }
    .split-chip { right: 0; }
    .cta-card { grid-template-columns: 1fr; }
    .cta-media { min-height: 260px; }
    .cta-media::after { background: linear-gradient(180deg, transparent 55%, var(--navy) 100%); }
    .cta-body { padding: 8px 36px 48px; }
    .testi-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .about-values { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .map-box { min-height: 340px; }
    .page-hero { padding: 64px 0 72px; }
}

@media (max-width: 767.98px) {
    .prop-grid { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 38px; }
    .footer-main { padding: 60px 0 40px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-box { padding: 30px 22px 28px; }
    .section-head { margin-bottom: 40px; }
}

@media (max-width: 575.98px) {
    body { font-size: 15.5px; }
    .section { padding: 64px 0; }
    .brand img { width: 42px; height: 42px; }
    .brand-text strong { font-size: 18px; }
    .brand-text small { font-size: 9.5px; letter-spacing: .22em; }
    .hero-lead { font-size: 16.5px; }
    .hero-actions .btn-c { width: 100%; }
    .hero-points { flex-direction: column; gap: 12px; }
    .hero-media { padding: 0 0 20px 14px; }
    .hero-badge { padding: 12px 16px 12px 12px; }
    .portals-row { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { gap: 14px; }
    .cat-card { padding: 26px 12px 22px; }
    .cat-icon { width: 58px; height: 58px; font-size: 22px; }
    .cat-card h3 { font-size: 17px; }
    .cta-body { padding: 8px 24px 40px; }
    .cta-actions .btn-c { width: 100%; }
    .split-media { padding: 0 0 20px 16px; }
    .split-chip { top: 18px; padding: 11px 14px; }
    .value-card { flex-direction: column; gap: 16px; padding: 28px 24px; }
    .info-card { padding: 22px 20px; }
    .float-stack { right: 14px; bottom: 14px; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
}
