/* Diseño de tableta: referencia vertical de 768 px.
   Las reglas de móvil (<600 px) y escritorio (>1200 px) se conservan. */
.tablet-whatsapp-label { display: none; }

@media (min-width: 600px) and (max-width: 1200px) {
  :root {
    --tablet-gutter: clamp(40px, 10.4167vw, 120px);
    --tablet-content: min(840px, calc(100% - 2 * var(--tablet-gutter)));
  }

  /* Cabecera e inicio */
  .hero-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0 !important;
    overflow: visible !important;
    background: #f1eee5 !important;
  }
  .hero-photo { display: none !important; }
  .site-header {
    position: relative !important;
    top: 0 !important;
    height: 80px !important;
    min-height: 80px !important;
    flex: 0 0 80px !important;
    background: var(--green) !important;
    transform: none !important;
  }
  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: var(--tablet-content) !important;
    height: 80px !important;
    margin: 0 auto;
    padding: 0 !important;
  }
  .brand { height: auto !important; }
  .brand img { width: 48px !important; height: 58px !important; }
  .desktop-nav { display: none; }
  .mobile-menu-button {
    width: 48px !important;
    height: 48px !important;
    cursor: pointer;
  }
  .mobile-menu-button img { width: 48px !important; height: 34px !important; }
  .mobile-menu { padding: 0 var(--tablet-gutter) 40px !important; }
  .mobile-menu-top { height: 80px; flex-basis: 80px; }
  .mobile-menu-brand img { width: 48px !important; height: 58px !important; }
  .mobile-menu-links { margin-top: 36px; }
  .mobile-menu-links a { padding: 24px 0 20px; font-size: 28px !important; }
  .mobile-menu .mobile-wa { max-width: 440px; align-self: center; }
  body.mobile-menu-open { overflow: hidden !important; }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: var(--tablet-content) !important;
    max-width: none;
    margin: 0 auto !important;
    padding: 24px 0 0 !important;
    background: #f1eee5 !important;
  }
  .eyebrow {
    margin: 0 0 24px !important;
    font-size: clamp(18px, 3.125vw, 24px) !important;
    line-height: 1.2 !important;
    letter-spacing: .28em !important;
    font-weight: 500;
  }
  .eyebrow-location, .hero-copy-details, .hero-copy-full-stop { display: none; }
  .hero-copy::after { content: "."; }
  .hero-content h1 {
    max-width: none !important;
    margin: 0 0 32px !important;
    font-size: clamp(56px, 9.375vw, 72px) !important;
    line-height: .94 !important;
    letter-spacing: -.02em !important;
  }
  .hero-copy {
    max-width: none !important;
    margin: 0 !important;
    color: var(--ink) !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
  }
  .hero-content .hero-cta { display: none !important; }
  .mobile-hero-image {
    display: block !important;
    width: var(--tablet-content) !important;
    max-width: 840px;
    height: auto !important;
    aspect-ratio: 608 / 446 !important;
    margin: 16px auto 0 !important;
    border-radius: 28px !important;
    object-fit: cover !important;
    object-position: center 52% !important;
  }
  .hero-cta-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: var(--tablet-content) !important;
    max-width: 840px;
    min-height: 58px;
    margin: 24px auto 20px !important;
    padding: 10px 24px;
    color: #f6f4ed;
    background: var(--green);
    border-radius: 22px;
  }
  .hero-cta-mobile img { display: none !important; }
  .tablet-whatsapp-label { display: inline-flex; align-items: center; gap: 16px; font-size: 20px; }
  .tablet-whatsapp-label svg { flex: 0 0 38px; width: 38px; height: 38px; }
  .hero-cta-mobile:focus-visible,
  .service-card a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }

  /* Sobre nosotros */
  .about-section { padding: 56px 0 60px !important; background: #f8f6f0; }
  .about-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: var(--tablet-content);
    max-width: 840px;
    margin: 0 auto;
    row-gap: 0 !important;
  }
  .about-copy { display: contents !important; }
  .about-kicker {
    grid-row: 1 !important;
    gap: 16px;
    margin: 0 0 12px !important;
    font-size: clamp(22px, 3.6458vw, 28px);
    line-height: 1.25;
    letter-spacing: .2em;
  }
  .about-kicker::after { background: var(--gold); }
  .about-title {
    grid-row: 2 !important;
    max-width: none;
    margin: 0 0 28px !important;
    font-size: clamp(42px, 6.7708vw, 52px);
    line-height: .9;
  }
  .about-image-wrap {
    grid-row: 3 !important;
    width: 100% !important;
    height: auto;
    max-height: none;
    aspect-ratio: 608 / 536;
    margin: 0 0 24px !important;
    border-radius: 32px;
  }
  .about-image { object-position: center 55%; }
  .about-description, .about-principles {
    max-width: none;
    font-size: 20px;
    line-height: 1.3;
  }
  .about-description { grid-row: 4 !important; margin: 0 !important; }
  .about-principles { grid-row: 5 !important; margin: 24px 0 0 !important; }
  .about-more { display: none; }

  /* Áreas de servicio */
  .services-section { padding: 30px 0 52px; background: #f1eee5; }
  .services-header, .services-grid { width: var(--tablet-content); max-width: 840px; }
  .services-header { margin: 0 auto 28px; text-align: left; }
  .services-kicker { margin-bottom: 16px; font-size: 22px; line-height: 1.25; letter-spacing: .1em; }
  .services-title { max-width: 680px; font-size: clamp(42px, 6.7708vw, 52px); line-height: .9; }
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-card {
    display: grid;
    grid-template-columns: clamp(144px, 26.5625vw, 204px) minmax(0, 1fr) 44px;
    gap: 16px;
    align-items: center;
    min-height: 188px;
    padding: 18px 14px;
    border-radius: 24px;
    text-align: left;
  }
  .service-icon-wrap { width: 100%; height: 150px; margin: 0; border-radius: 22px; }
  .service-icon-wrap img { width: 84px; height: 84px; }
  .service-card h3 {
    min-height: 0;
    margin: 0 0 14px;
    font-size: clamp(30px, 4.6875vw, 36px);
    line-height: 1.05;
  }
  .service-card p { max-width: 400px; font-size: 16px; line-height: 1.25; }
  .service-card a { min-width: 44px; min-height: 44px; margin: 0; padding: 0; justify-self: end; justify-content: center; }
  .service-link-label { display: none; }
  .service-arrow { width: 24px; height: 22px; }

  /* Principios */
  .philosophy-section { padding: 30px 0 36px; }
  .philosophy-header, .philosophy-list { width: var(--tablet-content); max-width: 840px; }
  .philosophy-header { margin: 0 auto 30px; }
  .philosophy-kicker {
    display: flex;
    align-items: center;
    gap: 56px;
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: .05em;
    text-align: left;
  }
  .philosophy-kicker-detail { display: none; }
  .philosophy-kicker::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: #f6f4ed; }
  .philosophy-title { margin: 0 -16px; font-size: clamp(42px, 7.8125vw, 60px); line-height: 1.06; text-align: center; }
  .philosophy-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .principle { display: flex; align-items: center; gap: 56px; padding: 0; text-align: left; }
  .principle + .principle::before, .principle p { display: none; }
  .principle img { flex: 0 0 100px; width: 100px; height: 100px; margin: 0; }
  .principle h3 { margin: 0; font: 600 clamp(36px, 5.7292vw, 44px)/1.15 "Cormorant Garamond", Georgia, serif; }

  /* Contacto: utiliza el PNG de 768 × 242 del diseño. */
  .contact-section {
    display: flex;
    align-items: center;
    min-height: 242px;
    padding: 28px 0 24px;
    background-image: url("../images/Fondo_contacto_tabletas.png");
    background-position: center;
    background-size: cover;
    scroll-margin-top: 24px;
  }
  .contact-inner { width: var(--tablet-content); max-width: 840px; }
  .contact-kicker { margin-bottom: 8px; font-size: 16px; line-height: 1.2; letter-spacing: .08em; }
  .contact-title { max-width: 400px; margin-bottom: 24px; font-size: 42px; line-height: .92; }
  .contact-mobile-break { display: block; }
  .contact-description { display: none; }
  .contact-whatsapp { width: 336px; max-width: 100%; }

  /* Footer compacto: logo, redes y derechos. */
  .site-footer { padding: 40px 0 32px; }
  .footer-inner {
    grid-template-columns: 206px minmax(0, 1fr);
    width: min(860px, calc(100% - 2 * var(--tablet-gutter) + 20px));
    max-width: none;
  }
  .footer-brand { padding: 0 32px 0 0; }
  .footer-logo { width: 174px; }
  .footer-brand-copy, .footer-contact { display: none; }
  .footer-social { justify-content: center; padding-left: 36px; border-left-width: 1px; }
  .footer-social h2 { display: block; margin: 0 0 16px; font-size: 24px; }
  .social-icons { gap: 4px; }
  .social-icons img { width: 38px; height: 38px; }
  .footer-copyright { order: 0; margin: 14px 0 0; font-size: 20px; line-height: 1.2; }
  .footer-copyright span + span { margin-top: 0; }
}
