:root {
    /*colores*/
    --color1: #ffffff;
    --color2: #061A2D;
    --background-color: #E2DEDE;
    --text-color: #212529;
    /*fuentes*/
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#galeria,
#descripcion,
#asistente,
#oficinas {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
}

.logo {
    height: 60px;
    width: auto;
    /* logo en versión oscura: se invierte a blanco para verse sobre el hero */
    filter: brightness(0) invert(1);
}

.btn-contact {
    display: inline-block;
    background-color: var(--color2);
    color: var(--color1);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s ease;
}

.btn-contact:hover {
    opacity: 0.85;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('media/fondos/Hero.webp') center center / cover no-repeat;
}

.hero-content {
    max-width: 900px;
    color: var(--color1);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.5rem;
}

.hero-tag {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 200;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.hero-description {
    margin-top: 2rem;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.5;
    opacity: 0.95;
    padding-left: 20%;
    padding-right: 20%;
}

.hero-price {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #C9A84C;
}

.hero-price span {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 500;
    color: var(--color1);
    opacity: 0.85;
}

/* ===== Badge "Nueva" ===== */
.badge-new {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--color1);
    color: var(--color2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 2.5rem;
    border-radius: 24px 0 0 0;
}

/* ===== Sección de imagen de características ===== */
.caract-img {
    width: 100%;
    background-color: var(--color2);
}

.caract-carousel {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.caract-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.caract-track::-webkit-scrollbar {
    display: none;
}

.caract-slide {
    height: 100%;
    width: auto;
    flex-shrink: 0;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.caract-arrow {
    display: none;
}

/* ===== Galería ===== */
.galeria {
    width: 100%;
    background-color: var(--background-color);
    padding: 4rem 1.5rem 5rem;
}

.galeria-content {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
}

.galeria-content h1 {
    position: relative;
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color2);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-bottom: 1.5rem;
    margin-bottom: 3.5rem;
}

.galeria-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 3px;
    background-color: #C9A84C;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 20px 0%;
}

.galeria-item {
    aspect-ratio: 5 / 8;
    border-radius: 10px;
    border: 0;
    background-color: #8a8a8a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: #1e2832 20px 20px 50px -5px;
    cursor: pointer;
    font: inherit;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}

.galeria-grid.is-visible .galeria-item {
    opacity: 1;
    transform: translateY(0);
}

.galeria-grid.is-visible .galeria-item:nth-child(1) {
    transition-delay: 0s;
}

.galeria-grid.is-visible .galeria-item:nth-child(2) {
    transition-delay: 0.12s;
}

.galeria-grid.is-visible .galeria-item:nth-child(3) {
    transition-delay: 0.24s;
}

.galeria-grid.is-visible .galeria-item:hover,
.galeria-grid.is-visible .galeria-item:focus-visible {
    transform: translateY(-8px);
    box-shadow: #1e2832 20px 30px 55px -5px;
}

.galeria-item:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 3px;
}

/* Reemplaza cada url() por la foto correspondiente en media/galeria/ */
.galeria-item--fotos {
    background-image: url('media/galeria/fotos.webp');
}

.galeria-item--video {
    background-image: url('media/galeria/videos.webp');
}

.galeria-item--recorrido {
    background-image: url('media/galeria/recorrido.webp');
}

.galeria-item span {
    position: relative;
    z-index: 1;
    color: var(--color1);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 0 1rem;
}

.botones-galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ===== Descripción general ===== */
.descripcion {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 6rem 1.5rem;
    color: var(--color1);
}

/* Capa de fondo independiente y más alta que la sección: JS la desplaza
   (translateY) al hacer scroll para el efecto parallax, sin dejar bordes vacíos. */
.descripcion-bg {
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: calc(100% + 240px);
    background-color: #5a5a5a;
    background-image: url('media/fondos/desc.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

.descripcion-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 10%;
}

.desc-titulo {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 2.5rem;
}

.desc-titulo span {
    display: block;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.descripcion-texto {
    max-width: 720px;
}

.descripcion-texto p {
    font-size: .9rem;
    line-height: 1.7;
    font-weight: 200;
    margin-bottom: 1.5rem;
}

.descripcion-texto p:last-child {
    margin-bottom: 0;
}

.descripcion-texto strong {
    font-weight: 700;
}

.descripcion-ficha-btn {
    margin-top: 2.5rem;
    background-color: var(--color1);
    color: var(--color2);
}

.descripcion-ficha-btn:hover {
    opacity: 0.9;
}

/* ===== Modal de video ===== */
body.modal-open {
    overflow: hidden;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 26, 45, 0.85);
    border: 0;
    cursor: pointer;
}

.video-modal__dialog {
    position: relative;
    width: min(380px, calc(100vw - 3rem));
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: calc(100vh - 3rem);
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.video-modal.is-open .video-modal__dialog {
    transform: scale(1);
}

.video-modal__video {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #000;
    object-fit: cover;
}

.video-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #C9A84C;
    background-color: rgba(6, 26, 45, 0.75);
    color: var(--color1);
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.video-modal__close:hover {
    background-color: rgba(6, 26, 45, 0.95);
}

/* ===== Modal de recorrido virtual ===== */
.tour-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.tour-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.tour-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 26, 45, 0.85);
    border: 0;
    cursor: pointer;
}

.tour-modal__dialog {
    position: relative;
    width: min(1100px, calc(100vw - 3rem));
    height: min(650px, calc(100vh - 3rem));
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.tour-modal.is-open .tour-modal__dialog {
    transform: scale(1);
}

.tour-modal__iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.tour-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #C9A84C;
    background-color: rgba(6, 26, 45, 0.75);
    color: var(--color1);
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tour-modal__close:hover {
    background-color: rgba(6, 26, 45, 0.95);
}

/* ===== Página: Galería de fotos ===== */
.fotos-hero {
    background-color: var(--color2);
    color: var(--color1);
    text-align: center;
    padding: 9rem 1.5rem 3.5rem;
}

.fotos-hero__title {
    position: relative;
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding-bottom: 1.5rem;
}

.fotos-hero__title span {
    display: block;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 0.5rem;
}

.fotos-hero__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 3px;
    background-color: #C9A84C;
}

.fotos-section {
    background-color: var(--background-color);
    padding: 4rem 1.5rem 5rem;
}

.fotos-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.fotos-grid__item {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: #1e2832 15px 15px 40px -8px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}

.fotos-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fotos-grid.is-visible .fotos-grid__item {
    opacity: 1;
    transform: translateY(0);
}

.fotos-grid.is-visible .fotos-grid__item:nth-child(3n+1) {
    transition-delay: 0s;
}

.fotos-grid.is-visible .fotos-grid__item:nth-child(3n+2) {
    transition-delay: 0.08s;
}

.fotos-grid.is-visible .fotos-grid__item:nth-child(3n) {
    transition-delay: 0.16s;
}

.fotos-grid.is-visible .fotos-grid__item:hover,
.fotos-grid.is-visible .fotos-grid__item:focus-visible {
    transform: translateY(-6px);
    box-shadow: #1e2832 15px 25px 45px -8px;
}

.fotos-grid__item:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 3px;
}

/* ===== Modal / lightbox de foto ===== */
.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.photo-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.photo-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 26, 45, 0.92);
    border: 0;
    cursor: pointer;
}

.photo-modal__img {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 92vw);
    max-height: calc(100vh - 3rem);
    display: block;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.94);
    transition: transform 0.3s ease;
}

.photo-modal.is-open .photo-modal__img {
    transform: scale(1);
}

.photo-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #C9A84C;
    background-color: rgba(6, 26, 45, 0.75);
    color: var(--color1);
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.photo-modal__close:hover {
    background-color: rgba(6, 26, 45, 0.95);
}

.photo-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #C9A84C;
    background-color: rgba(6, 26, 45, 0.6);
    color: #C9A84C;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.photo-modal__nav:hover {
    background-color: rgba(6, 26, 45, 0.9);
}

.photo-modal__nav svg {
    width: 22px;
    height: 22px;
}

.photo-modal__nav--prev {
    left: 12px;
}

.photo-modal__nav--next {
    right: 12px;
}

/* ===== Asistente de IA ===== */
.asistente {
    background-color: var(--background-color);
    padding: 4rem 1.5rem 5rem;
}

.asistente-content {
    max-width: 720px;
    margin: 0 auto;
}

.asistente-titulo {
    position: relative;
    text-align: center;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color2);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.asistente-titulo span {
    display: block;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 0.4rem;
    color: #5a5a5a;
}

.asistente-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 3px;
    background-color: #C9A84C;
}

.asistente-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: fit-content;
    margin: 0 auto 1.25rem;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    background-color: rgba(37, 211, 102, 0.12);
    color: #0f7a3d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.asistente-badge svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.asistente-chat {
    background-color: #E5DDD5;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(6, 26, 45, 0.12);
    overflow: hidden;
}

.asistente-chat__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #075E54;
    padding: 0.85rem 1.25rem;
}

.asistente-chat__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.asistente-chat__avatar img {
    width: 65%;
    height: auto;
}

.asistente-chat__info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.asistente-chat__nombre {
    color: var(--color1);
    font-weight: 700;
    font-size: 0.95rem;
}

.asistente-chat__estado {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
}

.asistente-mensajes {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    height: 420px;
    overflow-y: auto;
    padding: 1.25rem;
}

.asistente-mensaje {
    position: relative;
    max-width: 78%;
    padding: 0.55rem 4.4rem 0.6rem 0.85rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.asistente-mensaje p {
    white-space: pre-wrap;
}

.asistente-mensaje__hora {
    position: absolute;
    right: 0.7rem;
    bottom: 0.4rem;
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.asistente-mensaje--con-cta {
    padding-bottom: 2.5rem;
}

.asistente-mensaje__cta {
    display: block;
    width: fit-content;
    margin-top: 0.55rem;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background-color: #061A2D;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.asistente-mensaje__cta:hover {
    transform: translateY(-1px);
}

.asistente-mensaje__cta--whatsapp {
    background-color: #25D366;
}

.asistente-mensaje__cta--whatsapp:hover {
    background-color: #1fb959;
}

.asistente-mensaje__cta--cainbr {
    background-color: #061A2D;
}

.asistente-mensaje__cta--cainbr:hover {
    background-color: #0d2e4d;
}

.asistente-mensaje--bot {
    align-self: flex-start;
    background-color: var(--color1);
    color: var(--text-color);
    border-top-left-radius: 2px;
}

.asistente-mensaje--user {
    align-self: flex-end;
    background-color: #DCF8C6;
    color: var(--text-color);
    border-top-right-radius: 2px;
}

.asistente-mensaje--pensando {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    padding: 0.7rem 1rem;
}

.asistente-mensaje--pensando span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #9a9793;
    animation: asistente-pulso 1.1s infinite ease-in-out;
}

.asistente-mensaje--pensando span:nth-child(2) {
    animation-delay: 0.15s;
}

.asistente-mensaje--pensando span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes asistente-pulso {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(0.85);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.asistente-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #F0F0F0;
    padding: 0.75rem 1rem;
}

.asistente-form[hidden] {
    display: none;
}

.asistente-form input {
    flex: 1;
    font-family: var(--font-main);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    border-radius: 20px;
    border: 1px solid #d8d5d0;
    background-color: var(--color1);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.asistente-form input::placeholder {
    color: #a8a5a0;
}

.asistente-form input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.asistente-enviar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background-color: #25D366;
    color: var(--color1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.asistente-enviar:hover {
    background-color: #1fb959;
}

.asistente-enviar:disabled {
    opacity: 0.6;
    cursor: default;
}

.asistente-enviar svg {
    width: 18px;
    height: 18px;
}

.asistente-gate {
    background-color: var(--color1);
    padding: 1.25rem;
    border-top: 1px solid #ECE9E4;
}

.asistente-gate__texto {
    font-size: 0.9rem;
    color: #5a5a5a;
    margin-bottom: 1rem;
}

.asistente-gate .ficha-form {
    gap: 0.9rem;
}

/* ===== Widget flotante de contacto ===== */
/* Va del lado izquierdo para no chocar con el badge "Nueva" del hero (bottom:0; right:0 del hero). */
.chat-widget {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}

.chat-widget__lanzador {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-widget__boton {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 0;
    background-color: #061A2D;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(6, 26, 45, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.chat-widget__boton:hover {
    background-color: #0d2e4d;
    transform: translateY(-2px);
}

.chat-widget__boton svg {
    width: 26px;
    height: 26px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.chat-widget__boton .chat-widget__icono-cerrar {
    position: absolute;
    opacity: 0;
    transform: rotate(-45deg);
}

.chat-widget.is-abierto .chat-widget__icono-abrir {
    opacity: 0;
    transform: rotate(45deg);
}

.chat-widget.is-abierto .chat-widget__icono-cerrar {
    opacity: 1;
    transform: rotate(0deg);
}

.chat-widget__cinta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color1);
    color: #061A2D;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 0.6rem 0.65rem 1rem;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(6, 26, 45, 0.2);
    white-space: nowrap;
    animation: chat-widget-cinta-in 0.4s ease 0.8s both;
}

.chat-widget__cinta[hidden] {
    display: none;
}

@keyframes chat-widget-cinta-in {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.chat-widget__cinta-cerrar {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 0;
    background: none;
    color: #9a9793;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-widget__cinta-cerrar:hover {
    color: #061A2D;
}

.chat-widget__menu {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: min(310px, 82vw);
    background-color: var(--color1);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 20px 45px rgba(6, 26, 45, 0.25);
    animation: chat-widget-in 0.2s ease;
}

.chat-widget__menu[hidden] {
    display: none;
}

@keyframes chat-widget-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-widget__opcion {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.15s ease;
}

.chat-widget__opcion:hover {
    background-color: #F0EDE9;
}

.chat-widget__opcion-icono {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.chat-widget__opcion-icono svg {
    width: 20px;
    height: 20px;
}

.chat-widget__opcion--ia .chat-widget__opcion-icono {
    background-color: #C9A84C;
}

.chat-widget__opcion--asesor .chat-widget__opcion-icono {
    background-color: #25D366;
}

.chat-widget__opcion-texto {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.chat-widget__opcion-texto strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #061A2D;
}

.chat-widget__opcion-texto small {
    font-size: 0.78rem;
    color: #5a5a5a;
}

/* ===== Modal / formulario de ficha técnica ===== */
.ficha-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.ficha-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.ficha-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 26, 45, 0.75);
    border: 0;
    cursor: pointer;
}

.ficha-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(460px, calc(100vw - 3rem));
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    background-color: var(--color1);
    color: var(--text-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.94);
    transition: transform 0.3s ease;
}

.ficha-modal.is-open .ficha-modal__dialog {
    transform: scale(1);
}

.ficha-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #C9A84C;
    background-color: transparent;
    color: var(--color2);
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ficha-modal__close:hover {
    background-color: var(--color2);
    color: var(--color1);
}

.ficha-modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color2);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.ficha-modal__subtitle {
    font-size: 0.9rem;
    color: #6b6b6b;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.ficha-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ficha-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ficha-form__field input {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #d8d5d0;
    background-color: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ficha-form__field input::placeholder {
    color: #a8a5a0;
}

.ficha-form__field input:focus {
    outline: none;
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.ficha-form__field.has-error input {
    border-color: #c0392b;
}

.ficha-form__error {
    display: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #c0392b;
}

.ficha-form__error.is-visible {
    display: block;
}

.ficha-form__submit {
    margin-top: 0.5rem;
    width: 100%;
}

.ficha-form__submit:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Solo en escritorio (mouse/trackpad): sin esto, quien no tenga trackpad
   no tiene forma intuitiva de desplazar la imagen horizontalmente. */
@media (hover: hover) and (pointer: fine) {
    .caract-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #C9A84C;
        background-color: rgba(6, 26, 45, 0.6);
        color: #C9A84C;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, background-color 0.2s ease;
    }

    .caract-carousel:hover .caract-arrow,
    .caract-arrow:focus-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .caract-arrow:hover {
        background-color: rgba(6, 26, 45, 0.9);
    }

    .caract-arrow svg {
        width: 20px;
        height: 20px;
    }

    .caract-arrow-prev {
        left: 14px;
    }

    .caract-arrow-next {
        right: 14px;
    }
}

/* ===== Oficinas / Mapa ===== */
.oficinas {
    background-color: var(--color1);
    padding: 4.5rem 0 4rem;
}

.oficinas-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.oficinas-titulo {
    position: relative;
    text-align: center;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color2);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.oficinas-titulo span {
    display: block;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 0.4rem;
    color: #5a5a5a;
}

.oficinas-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 3px;
    background-color: #C9A84C;
}

.oficinas-mapa {
    width: 100%;
    height: 480px;
    border-top: 1px solid #ECE9E4;
    border-bottom: 1px solid #ECE9E4;
}

.oficinas-mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.oficinas-info {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.oficinas-direccion {
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.5;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--color2);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 1.5rem 0;
}

.site-footer__top {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-footer__logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-footer__brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 320px;
}

.site-footer__social {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer__social-link:hover {
    color: #ffffff;
}

.site-footer__social-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-footer__social-link:hover .site-footer__social-icon {
    background-color: #C9A84C;
    color: #061A2D;
}

.site-footer__social-icon svg {
    width: 17px;
    height: 17px;
}

.site-footer__social-label {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    font-size: 0.88rem;
    font-weight: 600;
}

.site-footer__social-label small {
    font-size: 0.74rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__links,
.site-footer__contacto {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-footer__links-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 0.25rem;
}

.site-footer__links a,
.site-footer__link-externo {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    width: fit-content;
    transition: color 0.15s ease;
}

.site-footer__links a:hover,
.site-footer__link-externo:hover {
    color: #ffffff;
}

.site-footer__contacto .btn-contact {
    width: fit-content;
}

.site-footer__bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 0 5.5rem;
    text-align: center;
}

.site-footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 1.25rem;
    }

    .logo {
        height: 48px;
    }

    .btn-contact {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-description {
        margin-top: 1.5rem;
        padding: 0%;
    }

    .site-footer__top {
        grid-template-columns: 1fr 1fr;
        row-gap: 2rem;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__brand p {
        max-width: none;
    }

    .badge-new {
        font-size: 1rem;
        padding: 1rem 1.75rem;
        border-radius: 18px 0 0 0;
    }

    .caract-carousel {
        height: 150px;
    }

    .galeria-content h1 {
        font-size: 2.25rem;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 340px;
        margin: 0 auto;
    }

    .galeria-item {
        aspect-ratio: 5 / 6;
    }

    .descripcion {
        padding: 4rem 1.5rem;
    }

    .descripcion-texto {
        max-width: 100%;
    }

    .descripcion-texto p {
        font-size: 12px;
    }

    .fotos-hero {
        padding: 7.5rem 1.5rem 3rem;
    }

    .fotos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .photo-modal__nav {
        width: 38px;
        height: 38px;
    }

    .photo-modal__nav svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }

    .badge-new {
        font-size: 0.85rem;
        padding: 0.85rem 1.5rem;
    }

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

    .caract-carousel {
        height: 110px;
    }

    .asistente-mensajes {
        height: 320px;
    }

    .oficinas-mapa {
        height: 280px;
    }

    .oficinas-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .site-footer__brand {
        grid-column: auto;
    }
}

