/* El teléfono conserva su enlace de llamada en móvil. */
.contact-phone-copy { display: none; }
.home-direction,
.about-photo,
.contact-message-icon { display: none; }
.home-summary { display: contents; }

/* Contenido de escritorio. La barra y el footer conservan sus estilos. */
@media (min-width: 961px) {
  .desktop-nav__indicator { background: rgb(255 255 255 / 78%); }

  .app-viewport .page-panel:not(.page-panel--home) { padding-top: 150px; }
  .services-shell,
  .about-layout,
  .contact-layout,
  .page-panel--blog .blog-layout {
    width: min(1240px, calc(100% - 64px));
    min-height: 0;
    padding-top: 0;
  }

  .page-panel .mobile-section-title {
    display: block;
    margin: 0;
    padding: 0;
    font-family: Gacor, Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--bronze-deep);
  }

  .services-heading,
  .contact-heading {
    display: grid;
    gap: 12px;
    max-width: none;
    text-align: center;
  }

  .services-heading > .eyebrow,
  .services-heading > p:last-child,
  .contact-heading > .eyebrow { display: none; }

  .services-heading h2,
  .contact-heading > p.contact-intro {
    max-width: none;
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
  }

  /* Inicio mantiene su composición y su escala de escritorio. */
  .home-lead { color: var(--ink); }
  .home-layout { grid-template-columns: minmax(430px, .92fr) minmax(0, 1fr); padding-top: 32px; }
  .home-copy > .eyebrow { grid-column: 1; padding-top: 0; }
  .page-panel--home .mobile-hero-logo { grid-column: 1; }
  .home-summary { display: flex; flex-direction: column; grid-column: 2; grid-row: 1 / 4; align-self: center; align-items: flex-start; gap: 24px; min-width: 0; }
  .home-copy h1 {
    grid-column: 2;
    padding-top: 0;
    font-size: clamp(30px, 2.5vw, 36px);
    font-weight: 400;
    line-height: 1.25;
  }
  .home-copy .home-lead { display: none; }
  .home-direction {
    display: block;
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    color: var(--ink);
    font-size: clamp(20px, 1.6vw, 23px);
    line-height: 1.5;
  }
  .home-direction strong { font-weight: 600; }
  .home-actions { grid-column: 2; margin-top: 6px; }
  .home-services { margin-top: 32px; padding-top: 32px; }
  .home-services > h2 { margin: 0 0 24px; text-align: center; }
  .service-choice-grid { gap: 24px; }

  .home-services .service-choice,
  .services-grid .service-card,
  .service-modal__item {
    --card-padding: 24px;
    --card-action-size: 14px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) var(--card-action-size);
    grid-template-rows: max-content max-content;
    min-height: 0;
    align-items: start;
    gap: 12px;
    padding: var(--card-padding);
    border: 0;
    border-radius: 16px;
    color: var(--ink);
    background: linear-gradient(145deg, rgb(255 255 255 / 49%), rgb(255 255 255 / 15%));
    box-shadow: inset 0 0 0 .5px rgb(255 255 255 / 74%), inset 0 1px 0 rgb(255 255 255 / 76%), 0 16px 32px rgb(69 51 38 / 8%);
  }

  .home-services .service-choice { grid-template-rows: max-content max-content max-content; }
  .home-services .service-choice__copy,
  .services-grid .service-card__copy,
  .service-modal__item-copy { display: contents; }

  .home-services .service-choice > i,
  .services-grid .service-card > i,
  .service-modal__item > i {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--bronze-deep);
    font-size: 23px;
    line-height: 28px;
    text-align: center;
    transform: none;
  }

  .home-services .service-choice__copy strong,
  .services-grid .service-card__copy strong,
  .service-modal__item-copy strong {
    grid-column: 2 / -1;
    grid-row: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    color: var(--ink);
  }

  .services-grid .service-card__copy strong {
    grid-column: 2;
    font-size: var(--desktop-service-title-size, 22px);
    white-space: nowrap;
  }

  .home-services .service-choice__copy small,
  .services-grid .service-card__copy small,
  .service-modal__item-copy small {
    grid-column: 1 / 3;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    padding-left: var(--card-action-size);
    color: var(--ink);
    font-size: 16px;
    line-height: 26px;
  }

  .home-services .service-choice__link {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: var(--card-action-size);
    color: var(--bronze-deep);
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
  }

  .home-services .service-choice__link i { font-size: 13px; color: inherit; }
  .home-services .service-choice__link i::before { content: "\f054"; }

  /* Sombras y brillo del mismo logo que se ha afinado en móvil. */
  .page-panel--home .mobile-hero-logo__letter-shadow {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 1px, 0);
    filter: blur(1.2px);
    pointer-events: none;
  }
  .page-panel--home .mobile-hero-logo__letter-shadow::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgb(42 33 26 / 36%);
    -webkit-mask: url("assets/letras.webp") center / 92.592593% 80.246914% no-repeat;
    mask: url("assets/letras.webp") center / 92.592593% 80.246914% no-repeat;
  }
  .page-panel--home .mobile-hero-logo__reflection { transform: translateZ(18px); }
  .page-panel--home .mobile-hero-logo__shadow {
    right: auto;
    left: 6%;
    width: 60%;
    height: 10%;
    background: radial-gradient(ellipse at center, rgb(55 43 34 / 20%), rgb(55 43 34 / 9%) 40%, transparent 72%);
    filter: none;
  }

  /* Servicios: los filtros se mantienen juntos y las tarjetas son compactas. */
  .services-tools {
    grid-template-columns: minmax(360px, 1fr) minmax(280px, 1fr);
    gap: 16px;
    width: min(900px, 100%);
    margin: 24px auto 0;
  }
  .services-tabs { height: 56px; background: rgb(139 117 96 / 8%); }
  .services-tabs button { padding: 0 12px; font-size: 16px; white-space: nowrap; color: var(--ink); }
  .services-search { height: 56px; }
  .services-search input { font-size: 16px; }
  .services-search input::placeholder { color: var(--ink); opacity: .65; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 24px; margin-top: 32px; }
  .services-grid .service-card { position: relative; }
  .services-grid .service-card[hidden] { display: none; }
  .services-grid .service-card__action {
    position: absolute;
    top: 50%;
    right: var(--card-padding);
    display: block;
    width: var(--card-action-size);
    height: var(--card-action-size);
    color: var(--bronze-deep);
    font-size: 0;
    line-height: 0;
    transform: translateY(-50%);
  }
  .services-grid .service-card__action i { display: none; }
  .services-grid .service-card__action::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  /* El apartado de escritorio utiliza el texto completo del Inicio móvil. */
  .about-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); align-items: stretch; gap: 32px; max-width: 1240px; }
  .about-layout > .section-heading { grid-column: 1 / -1; }
  .about-card { grid-column: 1; grid-row: 2; }
  .about-photo {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 380px;
    margin: 0;
    overflow: hidden;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgb(255 255 255 / 49%), rgb(255 255 255 / 15%));
    color: var(--ink);
  }
  .about-photo > i { color: var(--bronze-deep); font-size: 40px; opacity: .6; }
  .about-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .about-card { padding: 32px; }
  .about-card p { margin: 0; color: var(--ink); font-size: 18px; line-height: 30px; }
  .about-card p + p { margin-top: 16px; }
  .about-card .about-contact-cta { min-height: 56px; margin-top: 24px; padding: 0 24px; }

  /* Blog ocupa el mismo ancho de contenido que el resto de los apartados. */
  .page-panel--blog .blog-layout { max-width: 1240px; gap: 32px; }
  .blog-feed { gap: 32px; }
  .blog-post { padding: 24px; }
  .blog-post .blog-post__text { font-size: 18px; line-height: 28px; }
  .blog-carousel { background: transparent; }
  .blog-carousel__slide { height: clamp(260px, 23vw, 320px); overflow: hidden; }
  .blog-carousel__slide:first-child { border-radius: 10px 0 0 10px; }
  .blog-carousel__slide:last-child { border-radius: 0 10px 10px 0; }
  .blog-carousel__slide:only-child { border-radius: 10px; }
  .blog-action { font-size: 16px; line-height: 26px; }
  .blog-empty { color: var(--ink); }

  /* Contacto: datos y mapa a la izquierda, formulario a la derecha. */
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-items: start;
    gap: 32px;
  }
  .contact-heading { grid-column: 1 / -1; }
  .contact-mobile-content { display: block; }
  .contact-intro > span { display: block; }
  .contact-card,
  .contact-map-group,
  .contact-form {
    min-width: 0;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgb(255 255 255 / 49%), rgb(255 255 255 / 15%));
    box-shadow: inset 0 0 0 .5px rgb(255 255 255 / 74%), inset 0 1px 0 rgb(255 255 255 / 76%), 0 16px 32px rgb(69 51 38 / 8%);
  }
  .contact-card { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; gap: 16px; }
  .contact-card > div { align-items: center; gap: 12px; color: var(--ink); font-size: 16px; line-height: 26px; }
  .contact-card > div > i,
  .contact-map-address > i { flex: 0 0 24px; width: 24px; margin: 0; color: var(--bronze-deep); font-size: 20px; text-align: center; }
  .contact-card a { min-width: 0; overflow-wrap: anywhere; }
  .contact-card [data-contact-call] { display: none; }
  .contact-phone-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 26px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .contact-phone-copy i { margin: 0; color: var(--bronze-deep); font-size: 14px; }
  .contact-phone-copy:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 5px; border-radius: 3px; }
  .contact-phone-copy[data-copied] { color: var(--bronze-deep); }
  .contact-section { display: grid; min-width: 0; gap: 16px; }
  .contact-section--directions { grid-column: 1; grid-row: 3; grid-template-rows: auto minmax(0, 1fr); align-self: stretch; }
  .contact-section--divided { grid-column: 2; grid-row: 2 / 4; display: flex; flex-direction: column; align-self: stretch; gap: 24px; }
  .contact-message-icon { display: inline-block; }
  .contact-section--directions .contact-map-group { grid-template-rows: minmax(260px, 1fr) auto; }
  .contact-section--directions .contact-map { height: auto; min-height: 260px; }
  .contact-section-title { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; color: var(--ink); font-size: 27px; font-weight: 400; line-height: 1.3; text-align: center; }
  .contact-section--directions .contact-section-title { font-size: 25px; }
  .contact-section-title i { font-size: 22px; }
  .contact-section-heading { display: grid; gap: 12px; text-align: center; }
  .contact-section-heading p { max-width: 480px; margin: 0 auto; color: var(--ink); font-size: 16px; line-height: 26px; }
  .contact-map-group { display: grid; gap: 12px; margin: 0; }
  .contact-map { position: relative; height: 280px; overflow: hidden; border-radius: 10px; background: #e9e5dc; }
  .contact-map iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
  .contact-map-address { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 16px; line-height: 26px; }
  .contact-map-address span { min-width: 0; }
  .contact-map-group > .contact-map__link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
  .contact-map__link:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: -4px; }
  .contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; flex: 1; gap: 16px; }
  .contact-form__field { display: grid; min-width: 0; gap: 6px; }
  .contact-form__field:nth-child(n + 3),
  .contact-form__privacy-group,
  .contact-form__status,
  .contact-form__privacy,
  .contact-form__submit { grid-column: 1 / -1; }
  .contact-form__field label { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 26px; }
  .contact-form__field :is(input, textarea) { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid rgb(139 117 96 / 22%); border-radius: 12px; background: rgb(255 255 255 / 40%); color: var(--ink); font: inherit; font-size: 16px; line-height: 24px; }
  .contact-form__field textarea { min-height: 156px; resize: vertical; }
  .contact-form__field :is(input, textarea):focus-visible { border-color: var(--bronze-deep); outline: 2px solid rgb(111 91 73 / 22%); outline-offset: 2px; }
  .contact-form__privacy { display: flex; align-items: start; gap: 10px; color: var(--ink); font-size: 15px; line-height: 24px; }
  .contact-form__privacy input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0; accent-color: var(--bronze-deep); }
  .contact-form__privacy a { text-decoration: underline; text-underline-offset: 3px; }
  .contact-form__submit { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border: 0; border-radius: 12px; background: rgb(18 18 17 / 68%); color: #fff; font-size: 16px; line-height: 26px; }
  .contact-form__submit:disabled { cursor: not-allowed; opacity: .65; }

  /* Los modales empiezan debajo de la barra, sin una franja de desenfoque. */
  .service-modal { top: 126px; padding: 0 32px 24px; place-items: start center; }
  .service-modal__backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .service-modal__panel {
    display: flex;
    flex-direction: column;
    width: min(1120px, 100%);
    max-height: calc(100dvh - 150px);
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(155deg, #fffdfb, #ebe0d5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    transform: translate3d(0, calc(100% + 24px), 0);
    transition: transform .42s cubic-bezier(.22, .8, .25, 1);
  }
  .service-modal__chrome { position: relative; display: grid; flex: 0 0 58px; place-items: start center; touch-action: none; user-select: none; cursor: grab; }
  .service-modal__grabber { display: block; width: 48px; height: 4px; margin-top: 16px; border-radius: 4px; background: rgb(111 91 73 / 38%); pointer-events: none; }
  .service-modal__close { top: 8px; right: 16px; width: 44px; height: 44px; }
  .service-modal .service-modal__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 32px 32px; scrollbar-width: thin; }
  .service-modal.is-open .service-modal__panel { transform: translate3d(0, var(--sheet-offset, 0px), 0); }
  .service-modal.is-dragging .service-modal__panel { transition: none; }
  .service-modal.is-dragging .service-modal__chrome { cursor: grabbing; }
  .service-modal__header { grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto auto auto; align-items: start; column-gap: 16px; row-gap: 0; padding-right: 0; }
  .service-modal__visual { grid-column: 1; grid-row: 1 / 3; align-self: center; width: 56px; min-height: 56px; }
  .service-modal__visual > i { font-size: 28px; }
  .service-modal__content { display: contents; }
  .service-modal__content > .eyebrow { grid-column: 2; grid-row: 1; margin: 0 0 4px; padding: 0; color: var(--ink); font-size: 12px; }
  .service-modal__content > h2 { grid-column: 2; grid-row: 2; padding: 0; font-size: 30px; font-weight: 700; line-height: 1.3; }
  .service-modal__intro { grid-column: 1 / -1; grid-row: 3; max-width: none; margin-top: 16px; color: var(--ink); font-size: 16px; line-height: 26px; }
  .service-modal__mobile-action { grid-column: 1 / -1; grid-row: 4; justify-self: start; display: flex; justify-content: space-between; gap: 24px; min-height: 52px; margin-top: 24px; font-size: 16px; }
  .service-modal__services { margin-top: 32px; padding-top: 32px; }
  .service-modal__services > h3 { margin: 0 0 24px; color: var(--ink); font-size: 27px; font-weight: 400; text-align: center; }
  .service-modal__items,
  .service-modal__items:has(.service-modal__item:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 24px; }
  .service-modal__item { --card-padding: 20px; height: auto; }
  .service-modal__item-copy strong { font-size: 18px; }
  .service-modal__aside { margin: 32px 0 0; padding: 32px 0 0; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; background: none; }
  .service-modal__help-copy h3 { color: var(--ink); font-size: 18px; font-weight: 700; }
  .service-modal__help-copy p { color: var(--ink); font-size: 16px; line-height: 26px; }
  .service-modal__aside .button { display: none; }
  .blog-comments-modal .service-modal__panel { width: min(760px, 100%); }
  .blog-comments__heading h2 { font-size: 27px; line-height: 35px; }
  .blog-comments-modal .blog-comment__author,
  .blog-comments-modal .blog-comment__text { font-size: 16px; line-height: 26px; }
}

@media (min-width: 961px) and (max-width: 1160px) {
  .home-layout { grid-template-columns: minmax(360px, .85fr) minmax(0, 1fr); }
  .services-grid .service-card { --card-padding: 20px; gap: 10px; }
  .contact-layout { gap: 24px; }
  .contact-card,
  .contact-map-group,
  .contact-form { padding: 20px; }
  .service-modal { top: 118px; }
  .service-modal__panel { max-height: calc(100dvh - 142px); }
}

@media (min-width: 961px) and (prefers-reduced-motion: reduce) {
  .service-modal__panel,
  .service-modal__backdrop { transition-duration: .01ms; }
}
