@import url('https://fonts.googleapis.com/css2?family=Caprasimo&family=Montserrat:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700;900&display=swap');

.tmd-menu {
  --tmd-primary: #3974b8;
  --tmd-secondary: #d9534f;
  --tmd-title-color: #3974b8;
  --tmd-text-color: #71808f;
  --tmd-price-color: #d9534f;
  --tmd-font-body: Montserrat, Arial, sans-serif;
  --tmd-font-heading: Caprasimo, Georgia, serif;
  --tmd-font-price: Montserrat, Arial, sans-serif;
  --tmd-ink: #18283d;
  --tmd-red: #d9534f;
  --tmd-surface: #ffffff;
  --tmd-page: #f7f8fa;
  --tmd-line: #e2e6eb;
  --tmd-muted: #71808f;
  background: var(--tmd-page);
  color: var(--tmd-ink);
  font-family: var(--tmd-font-body);
  overflow: hidden;
  width: 100%;
}

.tmd-menu *,
.tmd-menu *::before,
.tmd-menu *::after { box-sizing: border-box; }
.tmd-menu a { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.tmd-menu a:focus-visible,
.tmd-menu button:focus-visible,
.tmd-menu summary:focus-visible { outline: 3px solid var(--tmd-secondary); outline-offset: 3px; }

/* WP Cafe/WooCommerce minicart is not part of the digital menu. */
body.tmd-page > .wpc_cart_block.wpc-minicart-wrapper,
body.tmd-page .wpc_cart_block.wpc-minicart-wrapper.wpc-cart_main_block { display: none !important; }

/* Hide the theme header only on the page where the digital menu is rendered. */
body.tmd-page #masthead,
body.tmd-page .ast-primary-header-bar,
body.tmd-page .ast-mobile-header-wrap,
body.tmd-page .site-header,
body.tmd-page .ast-breadcrumbs-wrapper,
body.tmd-page .entry-header { display: none !important; }

body.tmd-page .site-content,
body.tmd-page .ast-container { margin-top: 0 !important; padding-top: 0 !important; }

.tmd-loading,
.tmd-error {
  align-items: center;
  background: var(--tmd-surface);
  color: var(--tmd-ink);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 12px;
  justify-content: center;
  min-height: 260px;
  padding: 30px;
  text-align: center;
}

.tmd-loading-spinner {
  animation: tmd-spin .8s linear infinite;
  border: 3px solid #d9e5f2;
  border-radius: 50%;
  border-top-color: var(--tmd-primary);
  height: 25px;
  width: 25px;
}

@keyframes tmd-spin { to { transform: rotate(360deg); } }

.tmd-header {
  align-items: center;
  background: var(--tmd-surface);
  box-shadow: 0 2px 10px rgba(24, 40, 61, .12);
  display: flex;
  height: 82px;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.tmd-brand { color: var(--tmd-primary); text-decoration: none; }
.tmd-brand-logo { display: block; max-height: 52px; max-width: 140px; object-fit: contain; }
.tmd-brand-text { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.07em; line-height: .82; max-width: 125px; text-transform: uppercase; }
.tmd-desktop-nav { display: none; }
.tmd-mobile-nav { position: relative; }
.tmd-mobile-nav summary { color: #9ba0a7; cursor: pointer; font-size: 34px; line-height: 1; list-style: none; }
.tmd-mobile-nav summary::-webkit-details-marker { display: none; }
.tmd-mobile-nav nav { background: var(--tmd-surface); border-radius: 14px; box-shadow: 0 12px 28px rgba(24, 40, 61, .2); display: flex; flex-direction: column; min-width: 210px; padding: 8px; position: absolute; right: 0; top: 46px; }
.tmd-mobile-nav nav a { border-radius: 9px; color: var(--tmd-ink); font-size: 13px; font-weight: 800; padding: 13px 14px; text-decoration: none; text-transform: uppercase; }
.tmd-mobile-nav nav a:hover { background: #eef5fc; }

.tmd-breadcrumb { background: var(--tmd-surface); font-size: 15px; font-weight: 600; margin: 0 !important; padding: 25px 24px; }
.tmd-breadcrumb a { color: var(--tmd-primary); text-decoration: none; }

.tmd-hero { background-color: var(--tmd-primary); background-image: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.48) 51%, rgba(0,0,0,.18)), var(--tmd-hero-image, none); background-position: center, right center; background-repeat: no-repeat; background-size: cover; color: var(--tmd-surface); margin: 0 !important; min-height: 310px; padding: 52px 24px 48px; }
.tmd-hero-copy { max-width: 620px; }
.tmd-eyebrow { font-size: 10px; font-weight: 900; letter-spacing: .15em; margin: 0 0 17px; text-transform: uppercase; }
.tmd-hero h1 { font-family: var(--tmd-font-heading); font-size: clamp(42px, 10vw, 76px); letter-spacing: -.07em; line-height: .94; margin: 0; }
.tmd-hero-description { font-size: 15px; font-weight: 500; line-height: 1.55; margin: 21px 0 0; max-width: 410px; }

.tmd-tabs { background: var(--tmd-primary); display: flex; gap: 9px; overflow-x: auto; padding: 0 20px 16px; scroll-padding-inline: 20px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tmd-tabs::-webkit-scrollbar { display: none; }
.tmd-tabs a { border: 2px solid var(--tmd-surface); border-radius: 12px 12px 0 0; color: var(--tmd-surface); flex: 0 0 auto; font-size: 10px; font-weight: 800; min-height: 49px; padding: 15px 16px; scroll-snap-align: start; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.tmd-tabs a:hover { background: rgba(255,255,255,.2); }
.tmd-tabs a.active { background: var(--tmd-surface); color: var(--tmd-ink); }

.tmd-content { background: var(--tmd-surface); padding: 32px 20px 52px; }
.tmd-layout { margin: 0 auto; max-width: 1250px; }
.tmd-section { scroll-margin-top: 30px; }
.tmd-section + .tmd-section { margin-top: 46px; }
.tmd-section-title { background: var(--tmd-category-section-color, var(--tmd-primary)); border-radius: 16px; color: var(--tmd-surface); font-family: var(--tmd-category-heading-font, var(--tmd-font-heading)); font-size: clamp(23px, 5vw, 36px); letter-spacing: .02em; margin: 0 0 28px; padding: 26px 30px; text-transform: uppercase; }
.tmd-products { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmd-product-card { appearance: none; background: var(--tmd-surface); border: 1px solid var(--tmd-line); border-radius: 16px; color: inherit; cursor: pointer; overflow: hidden; padding: 0; text-align: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tmd-product-card:hover { border-color: #adcbe8; box-shadow: 0 10px 26px rgba(24,40,61,.12); transform: translateY(-2px); }
.tmd-product-image { aspect-ratio: 4 / 3; background: #fff; display: block; height: auto; object-fit: cover; width: 100%; }
.tmd-product-image.is-missing { opacity: 0; }
.tmd-product-body { display: flex; flex-direction: column; min-height: 145px; padding: 14px 12px; }
.tmd-product-name { color: var(--tmd-category-title-color, var(--tmd-title-color)); font-family: var(--tmd-category-font, var(--tmd-font-body)); font-size: 13px; font-weight: 800; line-height: 1.22; text-align: center; text-transform: uppercase; }
.tmd-product-description { color: var(--tmd-category-text-color, var(--tmd-text-color)); font-family: var(--tmd-category-font, var(--tmd-font-body)); font-size: 11px; line-height: 1.4; margin-top: 8px; text-align: center; }
.tmd-product-price { color: var(--tmd-category-price-color, var(--tmd-price-color)); font-family: var(--tmd-category-price-font, var(--tmd-font-price)); font-size: 20px; font-weight: 900; margin-top: auto; padding-top: 12px; text-align: center; }
.tmd-sidebar { display: none; }

.tmd-modal { background: rgba(18,33,50,.74); border: 0; height: 100vh; max-height: none; max-width: none; padding: 20px; width: 100vw; }
.tmd-modal::backdrop { background: rgba(18,33,50,.74); }
.tmd-modal-card { background: var(--tmd-surface); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.32); margin: auto; max-height: min(760px, 92vh); max-width: 680px; overflow: auto; position: relative; width: 100%; }
.tmd-modal-close { align-items: center; background: transparent; border: 0; border-radius: 0; color: #fff; cursor: pointer; display: flex; font-size: 40px; font-weight: 700; height: 42px; justify-content: center; line-height: 1; padding: 0; position: absolute; right: 14px; text-shadow: 0 2px 7px rgba(0,0,0,.5); top: 12px; width: 42px; z-index: 1; }
.tmd-modal-image { aspect-ratio: 16 / 9; background: #fff; display: block; height: auto; object-fit: cover; width: 100%; }
.tmd-modal-body { padding: 24px; }
.tmd-modal-category { color: var(--tmd-title-color); font-size: 10px; font-weight: 900; letter-spacing: .12em; margin: 0 0 10px; text-transform: uppercase; }
.tmd-modal-title { color: var(--tmd-ink); font-family: var(--tmd-font-heading); font-size: 27px; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 12px; }
.tmd-modal-description { color: var(--tmd-text-color); font-size: 15px; line-height: 1.5; margin: 0; }
.tmd-modal-price { color: var(--tmd-price-color); display: block; font-family: var(--tmd-font-price); font-size: 23px; font-weight: 900; margin: 20px 0; }
.tmd-modal-actions { display: grid; gap: 10px; }
.tmd-order-button { border-radius: 12px; color: var(--tmd-surface); font-size: 11px; font-weight: 900; min-height: 48px; padding: 15px; text-align: center; text-decoration: none; text-transform: uppercase; }
.tmd-order-button:hover { filter: brightness(.9); transform: translateY(-1px); }
.tmd-order-whatsapp { background: #25d366; }
.tmd-order-didi { background: #ff7a00; }
.tmd-order-uber { background: #171717; }

.tmd-footer { background: #1e2024; color: var(--tmd-surface); padding: 36px 72px 36px 24px; position: relative; text-align: center; }
.tmd-footer-brand { font-size: 18px; font-weight: 900; margin: 0; }
.tmd-footer-copy { font-size: 13px; margin: 12px 0 22px; }
.tmd-footer-links { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.tmd-footer-links a { border: 1px solid var(--tmd-surface); border-radius: 999px; color: var(--tmd-surface); font-size: 10px; font-weight: 800; padding: 11px 14px; text-decoration: none; text-transform: uppercase; }
.tmd-footer-links a:hover { background: var(--tmd-surface); color: #1e2024; }
.tmd-footer-links .tmd-discounts { background: var(--tmd-red); border-color: var(--tmd-red); }
.tmd-social-link { align-items: center; display: inline-flex; height: 42px; justify-content: center; padding: 0 !important; width: 42px; }
.tmd-social-link i { font-size: 18px; line-height: 1; }
.tmd-back-to-top { align-items: center; background: var(--tmd-primary); border: 0; border-radius: 4px; bottom: 28px; color: var(--tmd-surface); cursor: pointer; display: flex; height: 44px; justify-content: center; position: absolute; right: 24px; width: 44px; }
.tmd-back-to-top i { font-size: 17px; line-height: 1; }
.tmd-floating-whatsapp { align-items: center; background: #25d366 !important; border: 0 !important; border-radius: 50% !important; bottom: 22px; box-shadow: 0 8px 22px rgba(0,0,0,.24); color: #fff !important; display: flex; height: 58px; justify-content: center; line-height: 1; overflow: hidden; padding: 0 !important; position: fixed; right: 22px; text-decoration: none !important; width: 58px; z-index: 9999; }
.tmd-floating-whatsapp i { font-size: 31px; line-height: 1; }
.tmd-floating-whatsapp:hover { background: #1ebd5a; transform: translateY(-3px); }

/* Delivery-app product browsing layout. */
.tmd-tabs { background: #151515; gap: 10px; padding: 18px 20px; }
.tmd-tabs a { background: #272727; border: 1px solid #3a3a3a; border-radius: 999px; color: #f5f5f5; font-size: 12px; min-height: 46px; padding: 13px 20px; }
.tmd-tabs a:hover { background: #383838; }
.tmd-tabs a.active { background: #f1f1f1; border-color: #f1f1f1; color: #151515; }
.tmd-content { background: #151515; color: #f7f7f7; padding: 35px 20px 54px; }
.tmd-section { border-top: 1px solid #2c2c2c; padding-top: 34px; }
.tmd-section:first-child { border-top: 0; padding-top: 0; }
.tmd-section + .tmd-section { margin-top: 35px; }
.tmd-section-title { background: transparent; border-radius: 0; color: #f7f7f7; font-family: var(--tmd-category-heading-font, var(--tmd-font-heading)); font-size: clamp(24px, 6vw, 38px); margin: 0 0 18px; padding: 0; text-transform: none; }
.tmd-products { display: flex; gap: 18px; margin-right: -20px; overflow-x: auto; padding: 0 20px 9px 0; scroll-snap-type: x proximity; scrollbar-width: none; }
.tmd-products::-webkit-scrollbar { display: none; }
.tmd-product-card { background: transparent; border: 0; border-radius: 0; color: #f7f7f7; flex: 0 0 min(77vw, 276px); overflow: visible; scroll-snap-align: start; text-align: left; }
.tmd-product-card:hover { border-color: transparent; box-shadow: none; transform: none; }
.tmd-product-media { background: #f7f7f7; border-radius: 14px; display: block; overflow: hidden; position: relative; }
.tmd-product-image { aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover; }
.tmd-product-body { min-height: 0; padding: 12px 0 0; }
.tmd-product-name { color: #f7f7f7; font-family: var(--tmd-category-font, var(--tmd-font-body)); font-size: 18px; line-height: 1.24; text-align: left; text-transform: none; }
.tmd-product-description { -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #b9b9b9; display: -webkit-box; font-size: 12px; overflow: hidden; text-align: left; }
.tmd-product-price { color: var(--tmd-category-price-color, var(--tmd-price-color)); font-size: 19px; margin-top: 9px; padding-top: 0; text-align: left; }
.tmd-product-badge { background: #277a50; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 800; left: 10px; max-width: calc(100% - 68px); overflow: hidden; padding: 7px 9px; position: absolute; text-overflow: ellipsis; top: 10px; white-space: nowrap; z-index: 1; }
.tmd-product-add { align-items: center; background: #161616; border: 2px solid #333; border-radius: 50%; bottom: 10px; color: #fff; display: flex; font-size: 32px; font-weight: 300; height: 53px; justify-content: center; line-height: 1; position: absolute; right: 10px; width: 53px; }
.tmd-sidebar { background: #202020; border-radius: 14px; color: #fff; }
.tmd-sidebar p { color: #fff; }
.tmd-sidebar a { border-bottom-color: #343434; color: #f4f4f4; }
.tmd-sidebar a:first-of-type { color: #fff; }
.tmd-sidebar a:hover { background: #2d2d2d; }

.tmd-flyer-modal { background: rgba(0,0,0,.78); border: 0; height: 100vh; max-height: none; max-width: none; padding: 18px; width: 100vw; }
.tmd-flyer-modal::backdrop { background: rgba(0,0,0,.78); }
.tmd-flyer-card { margin: auto; max-width: min(620px, 94vw); position: relative; }
.tmd-flyer-image { border-radius: 16px; display: block; max-height: 88vh; object-fit: contain; width: 100%; }
.tmd-flyer-link { display: block; }
.tmd-flyer-close { align-items: center; background: transparent; border: 0; color: #fff; cursor: pointer; display: flex; font-size: 42px; height: 44px; justify-content: center; line-height: 1; padding: 0; position: absolute; right: 8px; text-shadow: 0 2px 7px rgba(0,0,0,.6); top: 8px; width: 44px; z-index: 1; }

@media (min-width: 700px) {
  .tmd-header, .tmd-breadcrumb { padding-left: 6vw; padding-right: 6vw; }
  .tmd-hero { min-height: 430px; padding: 76px 9vw; }
  .tmd-tabs { justify-content: center; padding-bottom: 0; }
  .tmd-tabs a { font-size: 13px; min-height: 59px; padding: 19px 25px; }
  .tmd-content { padding: 54px 6vw 70px; }
  .tmd-products { gap: 24px; }
  .tmd-product-body { min-height: 165px; padding: 18px; }
  .tmd-product-name { font-size: 15px; }
  .tmd-modal-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .tmd-tabs { gap: 7px; padding: 0 14px 12px; scroll-padding-inline: 14px; }
  .tmd-tabs a { border-radius: 10px 10px 0 0; font-size: 9px; min-height: 45px; padding: 12px 14px; }
  .tmd-floating-whatsapp { bottom: 18px; height: 54px; right: 18px; width: 54px; }
  .tmd-floating-whatsapp i { font-size: 28px; }
  .tmd-modal { padding: 12px; }
  .tmd-modal-card { border-radius: 16px; }
  .tmd-modal-body { padding: 22px; }
  .tmd-modal-actions { gap: 9px; }
  .tmd-order-button { border-radius: 10px; min-height: 46px; }
}

@media (min-width: 1024px) {
  .tmd-header { height: 92px; padding-left: max(7vw,48px); padding-right: max(7vw,48px); }
  .tmd-brand-logo { max-height: 62px; max-width: 165px; }
  .tmd-brand-text { font-size: 24px; max-width: 155px; }
  .tmd-mobile-nav { display: none; }
  .tmd-desktop-nav { align-items: center; display: flex; gap: 33px; margin-left: auto; }
  .tmd-desktop-nav a { color: var(--tmd-ink); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
  .tmd-desktop-nav a:hover { color: var(--tmd-primary); }
  .tmd-breadcrumb { display: none; }
  .tmd-hero { min-height: 520px; padding: 112px max(8vw,90px); }
  .tmd-hero h1 { font-size: 78px; }
  .tmd-hero-description { font-size: 18px; max-width: 530px; }
  .tmd-tabs { gap: 30px; padding: 0 45px; }
  .tmd-tabs a { font-size: 15px; padding: 21px 38px; }
  .tmd-content { padding: 66px max(7vw,55px) 84px; }
  .tmd-layout { display: grid; gap: 60px; grid-template-columns: minmax(0,1fr) 285px; }
  .tmd-main { grid-column: 1; }
  .tmd-products { display: grid; gap: 30px; grid-template-columns: repeat(3, minmax(0,1fr)); margin-right: 0; overflow: visible; padding: 0; }
  .tmd-product-card { flex: initial; }
  .tmd-sidebar { align-self: start; display: block; grid-column: 2; padding-top: 72px; position: sticky; top: 30px; }
  .tmd-sidebar p { font-size: 21px; font-weight: 900; margin: 0 0 18px; text-transform: uppercase; }
  .tmd-sidebar a { border-bottom: 1px solid var(--tmd-line); color: var(--tmd-red); display: block; font-size: 15px; padding: 15px 14px; text-decoration: none; }
  .tmd-sidebar a:first-of-type { color: var(--tmd-ink); font-weight: 800; }
  .tmd-sidebar a:hover { background: #f1f6fb; border-radius: 10px; padding-left: 20px; }
  .tmd-footer { padding: 42px max(7vw,55px); }
}

--tmd-ink: #FFFFFF;
--tmd-muted: #FFFFFF;
--tmd-line: #FFFFFF;

.tmd-product-badge { display: none; }
.tmd-product-add { display: none; }

.tmd-modal-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 24px;
  font-weight: 700;
  height: auto;
  justify-content: center;
  line-height: 1;
  padding: 2px 6px;
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 1;
  width: auto;
}
.tmd-modal-close::after { content: "×"; display: block; font-size: 20px; }

/* Ajustes para pantallas pequeñas (móvil) */
@media (max-width: 480px) {
  .tmd-hero { padding: 40px 16px 40px; }
  .tmd-content { padding: 30px 16px 44px; }
  .tmd-section { margin-top: 28px; }
  .tmd-section + .tmd-section { margin-top: 32px; }
  .tmd-tabs { padding: 0 14px 12px; }
  .tmd-tabs a { padding: 12px 14px; font-size: 9px; }
  .tmd-products { gap: 12px; padding: 0 14px 8px 0; }
  .tmd-product-card { flex: 0 0 min(95vw, 240px); }
  .tmd-sidebar { display: block; margin-top: 20px; }
  .tmd-footer { padding: 32px 16px; }
}

/* ==========================================
   FLYER EMERGENTE
   ========================================== */
.tmd-flyer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.tmd-flyer-card {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.tmd-flyer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.tmd-flyer-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.tmd-flyer-image {
  width: 100%;
  height: auto;
  display: block;
}

.tmd-flyer-link {
  display: block;
  padding: 15px;
  text-align: center;
  background: #277A50;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.tmd-flyer-link:hover {
  background: #1e5c3a;
}

/* ==========================================
   SUCURSALES / GOOGLE MAPS
   ========================================== */
.tmd-branches {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--tmd-line, #e2e6eb);
}

.tmd-branches-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.tmd-branches-title {
  font-family: var(--tmd-heading, 'Caprasimo');
  font-size: 28px;
  color: var(--tmd-ink, #18283D);
  margin-bottom: 12px;
}

.tmd-branches-copy {
  font-family: var(--tmd-body, 'Montserrat');
  font-size: 16px;
  color: var(--tmd-muted, #71808F);
  margin-bottom: 24px;
  line-height: 1.6;
}

.tmd-branches-map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  border: none;
  margin-bottom: 20px;
}

.tmd-branches-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--tmd-primary, #3974B8);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.tmd-branches-link:hover {
  background: #2c5a8a;
}

/* ==========================================
   HEADER / HERO
   ========================================== */
.tmd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tmd-surface, #fff);
  box-shadow: 0 2px 8px var(--tmd-header-shadow, rgba(24, 40, 61, 0.12));
}

.tmd-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tmd-logo {
  height: 40px;
  width: auto;
}

.tmd-nav {
  display: flex;
  gap: 20px;
}

.tmd-nav a {
  text-decoration: none;
  color: var(--tmd-ink, #18283D);
  font-weight: 600;
  font-size: 14px;
}

.tmd-nav a:hover {
  color: var(--tmd-primary, #3974B8);
}

/* ==========================================
   HERO / BANNER
   ========================================== */
.tmd-hero {
  background: var(--tmd-primary, #3974B8);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.tmd-hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.tmd-hero-title {
  font-family: var(--tmd-heading, 'Caprasimo');
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--tmd-hero-title-color, #fff);
}

.tmd-hero-description {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================
   CATEGORIES / TABS
   ========================================== */
.tmd-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  background: var(--tmd-surface, #fff);
  border-bottom: 1px solid var(--tmd-line, #e2e6eb);
}

.tmd-tab {
  padding: 10px 20px;
  border-radius: 24px;
  background: var(--tmd-page, #f7f8fa);
  color: var(--tmd-ink, #18283D);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s;
}

.tmd-tab:hover,
.tmd-tab.active {
  background: var(--tmd-primary, #3974B8);
  color: #fff;
}

/* ==========================================
   PRODUCTS GRID
   ========================================== */
.tmd-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tmd-product-card {
  background: var(--tmd-surface, #fff);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tmd-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tmd-product-name {
  font-family: var(--tmd-heading, 'Caprasimo');
  font-size: 18px;
  color: var(--tmd-ink, #18283D);
  margin-bottom: 8px;
}

.tmd-product-desc {
  font-size: 14px;
  color: var(--tmd-muted, #71808F);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tmd-product-price {
  font-family: var(--tmd-price, 'Montserrat');
  font-size: 20px;
  font-weight: 700;
  color: var(--tmd-secondary, #D9534F);
}

/* ==========================================
   MODAL DE PRODUCTO
   ========================================== */
.tmd-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.tmd-modal-content {
  background: var(--tmd-surface, #fff);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  position: relative;
  padding: 30px;
}

.tmd-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--tmd-ink, #18283D);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   FOOTER
   ========================================== */
.tmd-footer {
  background: var(--tmd-ink, #18283D);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.tmd-footer-title {
  font-family: var(--tmd-heading, 'Caprasimo');
  font-size: 24px;
  margin-bottom: 12px;
}

.tmd-footer-text {
  font-size: 14px;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================
   WHATSAPP FLOTANTE
   ========================================== */
.tmd-floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s;
}

.tmd-floating-whatsapp:hover {
  transform: scale(1.1);
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.tmd-breadcrumb {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--tmd-muted, #71808F);
}

.tmd-breadcrumb a {
  color: var(--tmd-primary, #3974B8);
  text-decoration: none;
}

.tmd-breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.tmd-sidebar {
  padding: 20px;
  background: var(--tmd-surface, #fff);
  border-left: 1px solid var(--tmd-line, #e2e6eb);
}

.tmd-sidebar-title {
  font-family: var(--tmd-heading, 'Caprasimo');
  font-size: 18px;
  color: var(--tmd-ink, #18283D);
  margin-bottom: 16px;
}

/* ==========================================
   LOADING SPINNER
   ========================================== */
.tmd-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--tmd-muted, #71808F);
}

.tmd-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--tmd-line, #e2e6eb);
  border-top-color: var(--tmd-primary, #3974B8);
  border-radius: 50%;
  animation: tmd-spin 0.8s linear infinite;
}

@keyframes tmd-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   RESPONSIVE / MÓVIL
   ========================================== */
@media (max-width: 768px) {
  .tmd-hero-title {
    font-size: 28px;
  }
  
  .tmd-hero-description {
    font-size: 16px;
  }
  
  .tmd-products {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .tmd-branches-map {
    height: 300px;
  }
  
  .tmd-header-inner {
    flex-direction: column;
    gap: 12px;
  }
  
  .tmd-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================
   QUITAR CIRCULOS DE PRODUCTO (v1.4.5)
   ========================================== */
.tmd-product-badge {
  display: none;
}

.tmd-product-add {
  display: none;
}

/* ==========================================
   MODAL CLOSE SIMPLIFICADO (v1.4.5)
   ========================================== */
.tmd-modal-close {
  font-size: 24px;
  padding: 2px 6px;
  right: 4px;
  top: 4px;
}

.tmd-modal-close::after {
  content: "×";
  font-size: 20px;
}
