/* ==========================================================================
   Mundo Empresas — Conectividad y Gestión de Redes
   Page template styles  ·  scoped under .tm-home so the theme header/footer
   are never affected.  Desktop-first (per brief).
   ========================================================================== */

.tm-home *,
.tm-home *::before,
.tm-home *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #2e323c;
  /* Disable browser scroll anchoring page-wide: when an accordion expands near
     the footer, the browser would otherwise pick a node below the expansion as
     its scroll anchor and lurch the page down ~the block height. The narrow
     rule on the accordion elements alone is not enough because the chosen
     anchor lives outside the accordion subtree. */
  overflow-anchor: none;
}

.tm-home {
  /* ---- Brand palette ---- */
  --tm-orange:      #ee7c26;   /* primary brand orange */
  --tm-orange-2:    #f7941d;
  --tm-amber:       #fba919;   /* price gold */
  --tm-grad-btn:    linear-gradient(180deg, #fbb13c 0%, #f0871a 100%);
  --tm-grad-btn-hv: linear-gradient(180deg, #ffc356 0%, #f7941d 100%);

  --tm-slate:       #2e323c;   /* main page background */
  --tm-slate-2:     #272a33;
  --tm-band:        #1d2027;   /* section-title band */
  --tm-panel:       #0c0d11;   /* dark accordion panel */
  --tm-plans-bg:    #1c1e25;
  --tm-plan-card:   #15171d;
  --tm-navy:        #08233f;   /* banner */

  --tm-ink:         #ffffff;
  --tm-dim:         #c7ccd4;   /* secondary text on dark */
  --tm-dim-2:       #9aa0aa;
  --tm-card-ink:    #2b2b2b;   /* text on light cards */

  --tm-radius:      16px;
  --tm-maxw:        1180px;

  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--tm-ink);
  background: var(--tm-slate);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.tm-home img { max-width: 100%; display: block; }
.tm-home p { margin: 0; }
.tm-home ul { margin: 0; padding: 0; list-style: none; }

.tm-wrap { max-width: var(--tm-maxw); margin: 0 auto; padding: 0 40px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.tm-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #05070d;
}
.tm-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tm-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  min-height: 100%;
  height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.tm-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 90% at 50% 36%, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .44) 66%, rgba(0, 0, 0, .80) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .34) 46%, rgba(0, 0, 0, .78) 100%);
}
.tm-hero__inner { position: relative; z-index: 2; padding: 56px 24px 72px; width: 100%; }

.tm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(247,148,29,.95);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #ffd8b0;
  background: rgba(10,12,18,.72);
  backdrop-filter: blur(3px);
  margin-bottom: 26px;
}
.tm-badge .tm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tm-orange); }
.tm-badge--double .tm-dot--right {
  margin-left: 10px;
  flex: 0 0 auto;
}

.tm-hero__title {
  margin: 0 auto;
  max-width: 100%;
  width: fit-content;
  padding: 14px 20px 16px;
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  font-size: clamp(36px, 3.9vw, 66px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.035em;
  text-shadow: 0 10px 34px rgba(0,0,0,.55);
  white-space: normal;
}
.tm-hero__title span { display: inline-block; }
.tm-hero__muted { color: #fff; }
.tm-hero__accent { color: var(--tm-orange-2); }

.tm-hero__cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 44px;
  flex-wrap: wrap;
}

.tm-btn-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(18,20,26,.82);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.tm-btn-line .lbl { font-size: 12px; color: var(--tm-dim); display: block; line-height: 1.1; }
.tm-btn-line .num { font-size: 23px; font-weight: 700; letter-spacing: .01em; }
.tm-btn-line__icon { width: 22px; height: 22px; opacity: .85; object-fit: contain; order: 2; }
.tm-btn-line > span { order: 1; }

.tm-chev-down {
  display: block;
  margin: 34px auto 0;
  width: 30px; height: 30px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  animation: tm-bob 1.8s ease-in-out infinite;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}
.tm-chev-down:hover {
  color: var(--tm-orange);
  animation-play-state: paused;
  transform: translateY(5px);
}
.tm-chev-down:active {
  transform: translateY(10px);
  opacity: 0.7;
}
@keyframes tm-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }
@keyframes tm-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes tm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(238, 124, 38, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(238, 124, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(238, 124, 38, 0); }
}
@media (prefers-reduced-motion: reduce){
  .tm-chev-down{ animation: none; }
  .tm-hero__inner,
  .tm-service,
  .tm-banner__content,
  .tm-contact__inner { animation: none !important; }
}

/* Animaciones de entrada */
.tm-hero__inner {
  animation: tm-fadeInUp 0.8s ease-out;
}
.tm-service {
  animation: tm-fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}
.tm-service:nth-child(1) { animation-delay: 0.1s; }
.tm-service:nth-child(2) { animation-delay: 0.2s; }
.tm-service:nth-child(3) { animation-delay: 0.3s; }
.tm-service:nth-child(4) { animation-delay: 0.4s; }
.tm-service:nth-child(5) { animation-delay: 0.5s; }
.tm-service:nth-child(6) { animation-delay: 0.6s; }
.tm-service:nth-child(7) { animation-delay: 0.7s; }
.tm-service:nth-child(8) { animation-delay: 0.8s; }
.tm-service:nth-child(9) { animation-delay: 0.9s; }

/* ==========================================================================
   SHARED BUTTONS
   ========================================================================== */
.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tm-btn-primary {
  background: var(--tm-grad-btn);
  color: #fff;
  min-height: 72px;
  padding: 14px 28px;
  border-radius: 11px;
  font-size: 18px;
  box-shadow: 0 10px 24px -8px rgba(240,135,26,.6);
}
.tm-btn-primary:hover { background: var(--tm-grad-btn-hv); transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(240,135,26,.7); }
.tm-btn-primary__icon { width: 22px; height: 22px; object-fit: contain; display: block; }

.tm-btn-agendar {
  background: var(--tm-grad-btn);
  color: #fff;
  padding: 17px 38px;
  border-radius: 12px;
  font-size: 21px;
  box-shadow: 0 12px 30px -8px rgba(240,135,26,.6);
}
.tm-btn-agendar:hover { background: var(--tm-grad-btn-hv); transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(240,135,26,.7); }
.tm-btn-agendar__icon { width: 24px; height: 24px; object-fit: contain; display: block; }

/* ==========================================================================
   SECTION TITLE BAND
   ========================================================================== */
.tm-section-title {
  text-align: center;
  padding: 64px 24px;
  background: linear-gradient(180deg, #14171d 0%, var(--tm-slate) 100%);
}
.tm-section-title h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #ffffff;
}

/* ==========================================================================
   SERVICE  (accordion block)
   ========================================================================== */
.tm-services { padding: 0 0 40px; }
.tm-service { margin-bottom: 26px; }
.tm-services,
.tm-service,
.tm-acc-head,
.tm-acc-body {
  overflow-anchor: none;
}

.tm-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #eef0f2 100%);
  border: 0;
  border-radius: var(--tm-radius);
  padding: 18px 30px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.55);
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tm-acc-head:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(0,0,0,.65);
}
.tm-acc-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  color: var(--tm-orange);
}
.tm-acc-icon svg { width: 100%; height: 100%; }
.tm-acc-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tm-acc-titles { flex: 1 1 auto; min-width: 0; }
.tm-acc-title {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--tm-orange);
  line-height: 1.2;
}
.tm-acc-sub { display: block; font-size: 13px; color: #8a8f97; margin-top: 3px; }
.tm-acc-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tm-orange);
  padding-left: 26px;
  border-left: 1px solid #d9dbdf;
}
.tm-acc-toggle .tm-chip {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--tm-grad-btn);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.tm-acc-toggle .tm-chip svg { width: 15px; height: 15px; transition: transform .3s ease; }

/* arrow direction: closed = down, open = up */
.tm-service[data-open="true"] .tm-acc-toggle .tm-chip svg { transform: rotate(180deg); }
.tm-service[data-open="false"] .tm-acc-toggle .txt::after { content: "Mostrar"; }
.tm-service[data-open="true"]  .tm-acc-toggle .txt::after { content: "Ocultar"; }
.tm-acc-toggle .txt { font-size: 0; }
.tm-acc-toggle .txt::after { font-size: 15px; }

.tm-acc-body {
  overflow: hidden;
  padding: 0 20px;
  box-sizing: border-box;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tm-acc-body > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease-out, transform .3s ease-out;
  transition-delay: 0.1s;
  will-change: opacity, transform;
}
.tm-service[data-open="true"] .tm-acc-body > * {
  opacity: 1;
  transform: translateY(0);
}
.tm-service[data-open="false"] .tm-acc-body > * {
  transition-delay: 0s;
}

/* dark panel */
.tm-panel {
  background:
    linear-gradient(180deg, rgba(12,13,17,.65), rgba(12,13,17,.80)),
    var(--tm-panel-img, none);
  background-size: cover;
  background-position: center;
  border-radius: var(--tm-radius);
  margin-top: -14px;
  padding: 34px 36px 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tm-acc-body--fibra {
  --tm-panel-bg: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-fibra-empresas.webp');
}
.tm-acc-body--hiperfibra {
  --tm-panel-bg: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-hiperfibra.webp');
}
.tm-acc-body--dedicado {
  --tm-panel-bg: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-internetdedicado.webp');
}
.tm-acc-body--sdwan {
  --tm-panel-bg: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-sdwan-empresas.webp');
}
.tm-acc-body--dwdm {
  --tm-panel-bg: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-dwdm-empresas.webp');
}
.tm-acc-body--mpls {
  --tm-panel-bg: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-mpls-empresas.webp');
}
.tm-acc-body--starlink {
  --tm-panel-bg: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-starlink-empresas.webp');
}
.tm-acc-body--monitoreo {
  --tm-panel-bg: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-monitoreo-lan-wan-empresas.webp');
}
.tm-acc-body--iot {
  --tm-panel-bg: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-iot-empresas.webp');
}
.tm-acc-body--fibra,
.tm-acc-body--hiperfibra,
.tm-acc-body--dedicado,
.tm-acc-body--sdwan,
.tm-acc-body--dwdm,
.tm-acc-body--mpls,
.tm-acc-body--starlink,
.tm-acc-body--monitoreo,
.tm-acc-body--iot {
  position: relative;
  overflow: hidden;
  background: #0c0d11;
}
.tm-acc-body--fibra::before,
.tm-acc-body--hiperfibra::before,
.tm-acc-body--dedicado::before,
.tm-acc-body--sdwan::before,
.tm-acc-body--dwdm::before,
.tm-acc-body--mpls::before,
.tm-acc-body--starlink::before,
.tm-acc-body--monitoreo::before,
.tm-acc-body--iot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,13,17,.56), rgba(12,13,17,.84)),
    var(--tm-panel-bg) center center / cover no-repeat;
  filter: grayscale(100%) contrast(1.08) brightness(.92);
  transform: scale(1.02);
  z-index: 0;
}
.tm-acc-body--fibra > *,
.tm-acc-body--hiperfibra > *,
.tm-acc-body--dedicado > *,
.tm-acc-body--sdwan > *,
.tm-acc-body--dwdm > *,
.tm-acc-body--mpls > *,
.tm-acc-body--starlink > *,
.tm-acc-body--monitoreo > *,
.tm-acc-body--iot > * {
  position: relative;
  z-index: 1;
}
.tm-panel__img {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 22px;
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
}
.tm-lead {
  max-width: 700px;
  margin: 0 auto 14px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  text-align: center;
}
.tm-para {
  max-width: 700px;
  margin: 0 auto 10px;
  font-size: 13px;
  color: var(--tm-dim);
  line-height: 1.55;
  text-align: center;
}

/* benefit cards */
.tm-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 720px;
  margin: 26px auto 0;
  text-align: left;
  width: 100%;
}
.tm-card {
  background: linear-gradient(180deg, #fdfdfd 0%, #e8e8eb 100%);
  border-radius: 14px;
  padding: 22px 24px 26px;
  color: var(--tm-card-ink);
  box-shadow: 0 16px 34px -18px rgba(0,0,0,.7);
}
.tm-card h4 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--tm-orange);
}
.tm-card li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}
.tm-card li::before {
  content: "•";
  position: absolute; left: 0; top: 0;
  color: #777;
}

/* CTA strip (non-plan blocks) */
.tm-cta {
  text-align: center;
  padding: 44px 24px 48px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 100%);
  border-radius: 0 0 var(--tm-radius) var(--tm-radius);
  margin-top: 8px;
}
.tm-cta p {
  max-width: 35ch;
  margin: 0 auto 28px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

/* ==========================================================================
   PLANS
   ========================================================================== */
.tm-plans {
  background: var(--tm-plans-bg);
  border-radius: 0 0 var(--tm-radius) var(--tm-radius);
  padding: 14px 32px 54px;
  margin-top: 6px;
  overflow: visible;
}

/* Carousel wrapper for mobile */
.tm-plan-carousel {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Carousel arrow buttons - hidden on desktop */
.tm-carousel-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.tm-carousel-arrow:hover:not(:disabled) {
  background: var(--tm-orange);
  border-color: var(--tm-orange);
  transform: translateY(-50%) scale(1.1);
}

.tm-carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tm-carousel-arrow--left {
  left: -20px;
}

.tm-carousel-arrow--right {
  right: -20px;
}

.tm-carousel-arrow svg {
  width: 20px;
  height: 20px;
}
.tm-plans__title {
  text-align: center;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  padding: 36px 0 38px;
  color: #fff;
}
.tm-plans__title .o { color: var(--tm-orange); }
.tm-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
  align-items: start;
}
.tm-plan {
  position: relative;
  background: #6f6f6f;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 30px 26px 28px;
  text-align: center;
  overflow: visible;
  align-self: start;
}
.tm-plan--rec {
  border-color: var(--tm-orange);
  box-shadow: 0 0 0 1px var(--tm-orange), 0 20px 40px -18px rgba(238,124,38,.55);
}
.tm-rec-tag {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--tm-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 6px;
  letter-spacing: .02em;
}
.tm-plan__label { font-size: 14px; color: #fff; margin-bottom: 14px; }
.tm-plan__label b { color: #fff; font-weight: 700; }
.tm-plan__speed { font-size: 40px; font-weight: 800; color: var(--tm-amber); line-height: 1; }
.tm-plan__speed .u { font-size: 26px; color: #fff; }
.tm-plan__type { font-size: 13px; font-weight: 600; color: #fff; margin: 8px 0 16px; }
.tm-plan__select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0d0f14;
  border: 1px solid #2f323b;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  color: #c7ccd4;
  margin-bottom: 18px;
}
.tm-plan__select b { color: #fff; }
.tm-plan__select svg { width: 12px; height: 12px; opacity: .7; }
.tm-plan__price { font-size: 17px; color: #fff; margin-bottom: 18px; }
.tm-plan__price .amt { font-size: 34px; font-weight: 800; color: #FFDA00; letter-spacing: -.01em; }
.tm-plan__price .iva { font-size: 12px; }
.tm-plan__price .iva .uf { color: #FF7F00; }
.tm-plan__price .iva .plus-iva { color: #ffffff; font-weight: bold; }
.tm-btn-quiero {
  display: block;
  width: 100%;
  background: transparent;
  border: 2px solid var(--tm-orange);
  color: var(--tm-orange);
  font-weight: 800;
  font-size: 15px;
  border-radius: 8px;
  padding: 11px 0;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, color .18s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tm-btn-quiero:hover { background: var(--tm-grad-btn); border-color: transparent; color: #fff; }
.tm-plan--rec .tm-btn-quiero { background: var(--tm-grad-btn); border-color: transparent; color: #fff; }
.tm-btn-quiero img { width: 14px; height: 14px; object-fit: contain; display: block; }
.tm-btn-quiero:hover img {
  filter: brightness(0) invert(1);
}
.tm-plan__more {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: #343741;
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, color .18s ease;
  margin-bottom: 1rem;
}
.tm-plan__more svg { width: 12px; height: 12px; vertical-align: -1px; margin-left: 6px; transition: transform .3s ease; }
.tm-plan.is-open .tm-plan__more {
  background: linear-gradient(180deg, #fbb13c 0%, #f0871a 100%);
}
.tm-plan.is-open .tm-plan__more svg {
  transform: rotate(180deg);
}
.tm-plan__note {
  margin-top: 1rem;
  font-size: 11px;
  color: #cfd3da;
  line-height: 1.5;
}
.tm-plan__details {
  margin-top: 0;
  background: #343741;
  border-radius: 8px;
  padding: 14px 14px 12px;
  text-align: left;
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, max-height .28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 18px 34px -18px rgba(0,0,0,.55);
  z-index: 3;
  position: relative;
}
.tm-plan__details ul { list-style: none; margin: 0; padding: 0; }
.tm-plan__details li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.25;
  color: #eef1f6;
}
.tm-plan__details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  font-weight: 700;
}
.tm-plan__details b { color: #fff; font-weight: 700; }
.tm-plan__note { color: #cfd3da; }
.tm-plan.is-open .tm-plan__details {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin-top: 14px;
  max-height: 1000px;
}

/* ==========================================================================
   BANNER
   ========================================================================== */
.tm-banner {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: #071f35;
}
.tm-banner__bg,
.tm-banner__overlay {
  position: absolute;
  inset: 0;
}
.tm-banner__bg {
  background: url('https://www.tumundo.cl/wp-content/uploads/2026/06/bkgr-autopauta.webp') center center / cover no-repeat;
}
.tm-banner__overlay {
  background:
    linear-gradient(90deg, rgba(4, 28, 51, .94) 0%, rgba(4, 28, 51, .80) 34%, rgba(4, 28, 51, .32) 58%, rgba(4, 28, 51, .10) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.06) 100%);
}
.tm-banner__content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 400px;
  margin: 0 auto;
  padding: 32px 24px 28px;
  display: flex;
  align-items: center;
  gap: 44px;
}
.tm-banner__logo {
  width: 250px;
  max-width: 30vw;
  height: auto;
  flex: 0 0 auto;
}
.tm-banner__text {
  max-width: 620px;
  color: #fff;
}
.tm-banner__text h2 {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  max-width: 18ch;
}
.tm-banner__text p {
  margin-top: 8px;
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
  max-width: 19ch;
}
@media (max-width: 900px) {
  .tm-banner { min-height: 320px; }
  .tm-banner__content {
    min-height: 320px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
  }
  .tm-banner__logo { width: 170px; max-width: 50vw; }
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.tm-contact {
  position: relative;
  background: linear-gradient(180deg, #34384200 0%, var(--tm-slate) 0%);
  padding: 70px 0 90px;
  overflow: hidden;
}
.tm-contact__woman {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 470px;
  max-width: 38%;
  z-index: 1;
  pointer-events: none;
}
.tm-contact__inner { position: relative; z-index: 2; }
.tm-contact h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  color: var(--tm-orange);
  margin: 0 0 30px;
}
.tm-form {
  background: rgba(18,20,26,.18);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 38px 40px 40px;
  max-width: 720px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,.7);
  text-align: left;
}
.tm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; justify-items: stretch; }
.tm-field { display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: left; }
.tm-field.full { grid-column: 1 / -1; }
.tm-field label { display: block; width: 100%; font-size: 14px; font-weight: 700; color: #fff; text-align: left; }
.tm-field label .req { color: var(--tm-orange); }
.tm-field input,
.tm-field select,
.tm-field textarea {
  font-family: inherit;
  font-size: 14px;
  color: #2b2b2b;
  background: #fff;
  border: 1px solid #d7dade;
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tm-field input::placeholder,
.tm-field textarea::placeholder { color: #9aa0aa; }
.tm-field input:focus,
.tm-field select:focus,
.tm-field textarea:focus { border-color: var(--tm-orange); box-shadow: 0 0 0 3px rgba(238,124,38,.18); }
.tm-field textarea { resize: vertical; min-height: 92px; }
.tm-form__submit { margin-top: 26px; }
.tm-btn-confirm {
  background: var(--tm-grad-btn);
  color: #fff;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.tm-btn-confirm:hover { background: var(--tm-grad-btn-hv); transform: translateY(-2px); }

/* ==========================================================================
   Narrow-desktop safety (brief = desktop only, but keep it from breaking)
   ========================================================================== */
@media (max-width: 900px) {
  .tm-cards,
  .tm-form__grid,
  .tm-plan-grid { grid-template-columns: 1fr; }
  .tm-contact__woman { display: none; }
  .tm-panel { padding: 32px 22px 36px; }
  .tm-hero__title {
    font-size: clamp(38px, 8vw, 60px);
    white-space: normal;
  }
  .tm-hero__cta { flex-direction: column; width: 100%; }
  .tm-btn-primary, .tm-btn-line { width: 100%; justify-content: center; }
  .tm-acc-head { padding: 16px 20px; gap: 16px; }
  .tm-acc-icon { width: 38px; height: 38px; }
  .tm-acc-title { font-size: 18px; }
  .tm-acc-toggle { padding-left: 16px; }
  .tm-plans { padding: 14px 20px 40px; }
  .tm-banner__content { padding: 24px 20px; }
  .tm-form { padding: 28px 24px; }
}

@media (max-width: 950px) {
  .tm-plan-carousel {
    position: relative;
    margin: 0 20px;
  }

  .tm-carousel-arrow {
    display: flex;
  }

  .tm-carousel-arrow--left {
    left: -15px;
  }

  .tm-carousel-arrow--right {
    right: -15px;
  }

  .tm-plan-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 16px;
    max-width: none;
    margin: 0;
    padding: 14px 5px 28px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    min-height: 0;
  }

  .tm-plan-grid::-webkit-scrollbar {
    height: 0;
  }

  .tm-plan {
    flex: 0 0 clamp(280px, 78vw, 320px);
    scroll-snap-align: start;
    padding: 24px 20px 30px;
  }

  .tm-plans {
    overflow: visible;
    padding-bottom: 58px;
  }

  .tm-plan.is-open {
    overflow: visible;
    z-index: 10;
  }
}

/* Tablet and Mobile styles - Menu hamburguesa solo en móvil */
@media (max-width: 1024px) {
  .tm-mainnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #3a3d45;
  }
  .tm-mainnav__in {
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Show hamburger button */
  .tm-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Mobile menu styles */
  .tm-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2e323c;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 50;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }

  .tm-menu.is-open {
    transform: translateX(0);
  }

  /* Overlay backdrop */
  .tm-menu::before {
    content: "";
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
  }

  .tm-menu.is-open::before {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-100vw);
  }

  .tm-menu a {
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    justify-content: space-between;
    border-radius: 8px;
    margin-bottom: 5px;
  }

  .tm-menu a:hover {
    background: rgba(255,255,255,0.05);
  }

  .tm-menu a.is-active {
    background: rgba(238, 124, 38, 0.15);
    border-left: 3px solid var(--o2);
    padding-left: 17px;
  }
}

/* Topbar mobile version from 950px */
@media (max-width: 950px) {
  /* Mantener topbar visible pero adaptada */
  .tm-topbar {
    background: #f4f5f6;
    border-bottom: 1px solid #e6e7e9;
  }
  .tm-topbar__in {
    padding: 0 30px;
    height: auto;
    min-height: 48px;
    align-items: center;
    justify-content: center; /* Centrar contenido */
  }

  /* Navegación de segmentos centrada y expandida */
  .tm-aud {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 8px 0;
  }
  .tm-aud a {
    font-size: 13px;
    padding: 8px 12px;
    flex: 0 1 auto;
    text-align: center;
    font-weight: 500;
  }
  .tm-aud a.is-active {
    background: rgba(238, 124, 38, 0.1);
    border-radius: 6px;
  }

  /* Ocultar TODOS los elementos de la derecha */
  .tm-topbar__right {
    display: none !important;
  }
}

/* Dropdown de segmentos - Oculto por defecto */
.tm-aud-dropdown {
  display: none;
  position: relative;
}

/* Media query para dropdown de segmentos (700px y abajo) */
@media (max-width: 700px) {
  /* Ocultar navegación normal */
  .tm-aud {
    display: none !important;
  }

  /* Mostrar dropdown */
  .tm-aud-dropdown {
    display: block;
    width: 100%;
  }

  /* Botón del dropdown */
  .tm-aud-dropdown__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e6e7e9;
    border-radius: 8px;
    color: #5a5f66;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .tm-aud-dropdown__toggle:hover {
    background: #f8f9fa;
    border-color: #d1d3d6;
  }

  .tm-aud-dropdown__toggle.is-open {
    background: #f8f9fa;
    border-color: var(--o);
    color: var(--o);
  }

  /* Icono del dropdown */
  .tm-aud-dropdown__icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
  }

  .tm-aud-dropdown__toggle.is-open .tm-aud-dropdown__icon {
    transform: rotate(180deg);
  }

  /* Menú del dropdown */
  .tm-aud-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e6e7e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
  }

  .tm-aud-dropdown__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Enlaces del dropdown */
  .tm-aud-dropdown__menu a {
    display: block;
    padding: 12px 20px;
    color: #5a5f66;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f1f3;
    transition: background 0.15s ease;
  }

  .tm-aud-dropdown__menu a:last-child {
    border-bottom: none;
  }

  .tm-aud-dropdown__menu a:hover {
    background: #f8f9fa;
    color: #222;
  }

  .tm-aud-dropdown__menu a.is-active {
    background: rgba(238, 124, 38, 0.1);
    color: var(--o);
    font-weight: 600;
  }

  .tm-aud-dropdown__menu a:first-child {
    border-radius: 7px 7px 0 0;
  }

  .tm-aud-dropdown__menu a:last-child {
    border-radius: 0 0 7px 7px;
  }

  /* Ajustar padding del contenedor */
  .tm-topbar__in {
    padding: 12px 15px;
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .tm-topbar__in {
    padding: 0 15px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 15px;
  }

  /* Ocultar navegación de segmentos en móvil muy pequeño */
  .tm-aud {
    display: none;
  }

  .tm-mainnav__in {
    padding: 0 20px;
  }

  /* Smaller logo on mobile */
  .tm-logo__img { height: 32px; }
}

@media (max-width: 640px) {
  .tm-hero__inner { padding: 40px 20px 60px; }
  .tm-badge { font-size: 13px; padding: 6px 14px; }
  .tm-hero__title {
    font-size: clamp(32px, 10vw, 48px);
    padding: 14px 18px 16px;
  }
  .tm-section-title h2 { font-size: clamp(24px, 6vw, 32px); }
  .tm-acc-toggle .txt { display: none; }
  .tm-lead { font-size: 18px; }
  .tm-para { font-size: 13px; }
  .tm-card h4 { font-size: 19px; }
  .tm-card li { font-size: 13px; }
  .tm-plans__title { font-size: clamp(22px, 5vw, 28px); padding: 28px 0 30px; }
  .tm-plan { padding: 24px 20px; }
  .tm-plan__speed { font-size: 32px; }
  .tm-plan__speed .u { font-size: 20px; color: #fff; }
  .tm-cta p { font-size: clamp(20px, 5vw, 28px); }
  .tm-btn-agendar { padding: 14px 28px; font-size: 18px; }
  .tm-contact h2 { font-size: clamp(26px, 6vw, 36px); }
  .tm-site-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tm-site-footer__links { gap: 24px; }
}

/* ==========================================================================
   SITE HEADER  (custom — built from scratch, replaces the theme header)
   ========================================================================== */
.tm-site-header,
.tm-site-footer,
.tm-site-header *,
.tm-site-footer * { box-sizing: border-box; }

.tm-site-header,
.tm-site-footer {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --o: #ee7c26; --o2: #f7941d; --amber: #fdd835;
}

/* ---- brand wordmark ---- */
.tm-logo { display: inline-flex; align-items: flex-end; gap: 2px; text-decoration: none; line-height: 1; }
.tm-logo__img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 260px;
}
.tm-logo__word {
  display: inline-flex; align-items: center;
  font-size: 27px; font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.tm-logo__o { width: 26px; height: 26px; margin: 0 1px -2px; }
.tm-logo__sub {
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  color: #d4d7db; margin-bottom: 3px; text-transform: lowercase;
}
.tm-logo--dark .tm-logo__word { color: #f4f5f6; }

/* ---- top utility bar ---- */
.tm-site-header { position: relative; z-index: 40; }
.tm-topbar { background: #f4f5f6; border-bottom: 1px solid #e6e7e9; }
.tm-topbar__in {
  max-width: 1180px; margin: 0 auto; padding: 0 40px;
  height: 48px; display: flex; align-items: center; justify-content: space-between;
}
.tm-aud { display: flex; gap: 28px; height: 100%; }
.tm-aud a {
  display: inline-flex; align-items: center; height: 100%;
  color: #5a5f66; text-decoration: none; font-size: 13px;
  border-bottom: 2px solid transparent; transition: color .15s ease;
}
.tm-aud a:hover { color: #222; }
.tm-aud a.is-active { color: #1f2227; font-weight: 600; border-bottom-color: var(--o); }
.tm-topbar__right { display: flex; align-items: center; gap: 22px; }
.tm-topbar__search { width: 18px; height: 18px; color: #4a4f56; cursor: pointer; }
.tm-ventas { display: flex; flex-direction: column; line-height: 1.1; text-align: right; text-decoration: none; }
.tm-ventas small { font-size: 10px; letter-spacing: .07em; color: #8a8f97; }
.tm-ventas b { font-size: 14px; color: var(--o); }
.tm-cotizar {
  background: var(--o); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 10px 20px; border-radius: 6px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s ease, transform .15s ease;
}
.tm-cotizar:hover { background: #f4881f; transform: translateY(-1px); }
.tm-cotizar svg, .tm-cotizar__icon { width: 14px; height: 14px; }

/* ---- main nav ---- */
.tm-mainnav { background: #3a3d45; }
.tm-mainnav__in {
  max-width: 1180px; margin: 0 auto; padding: 0 40px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.tm-menu { display: flex; gap: 24px; }
.tm-menu a {
  display: inline-flex; align-items: center; gap: 6px;
  color: #d6d8dc; text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: color .15s ease;
}
.tm-menu a:hover { color: #fff; }
.tm-menu a.is-active { color: var(--o2); font-weight: 600; }
.tm-menu a svg { width: 10px; height: 10px; opacity: .75; }

/* Hamburger button - hidden on desktop */
.tm-hamburger {
  display: none;
  padding: 8px;
  background: var(--tm-orange);
  border: 0;
  cursor: pointer;
  z-index: 55;
  margin-left: auto;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.tm-hamburger:hover {
  background: var(--tm-orange-2);
}

.tm-hamburger__icon {
  width: 30px;
  height: 30px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.tm-hamburger__icon line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger active state - X animation */
.tm-hamburger.is-active .tm-hamburger__icon {
  transform: none;
}

.tm-hamburger.is-active .tm-hamburger__icon .tm-hamburger__line--top {
  transform: none;
  opacity: 1;
}

.tm-hamburger.is-active .tm-hamburger__icon .tm-hamburger__line--middle {
  opacity: 0;
}

.tm-hamburger.is-active .tm-hamburger__icon .tm-hamburger__line--bottom {
  transform: none;
  opacity: 1;
}

@media (min-width: 1025px) {
  .tm-mainnav__in {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 32px;
    overflow: visible;
  }

  .tm-menu {
    display: flex !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 24px;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: auto !important;
    min-width: 0;
  }

  .tm-menu::before {
    content: none !important;
  }

  .tm-menu a {
    padding: 0;
    margin: 0;
    border: 0;
    width: auto;
    border-radius: 0;
    background: transparent;
  }

  .tm-hamburger {
    display: none !important;
  }
}

/* ==========================================================================
   SITE FOOTER  (custom — built from scratch, replaces the theme footer)
   ========================================================================== */
.tm-site-footer { background: #33363f; color: #cfd2d6; padding: 56px 40px 0; }
.tm-site-footer__brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 44px; }
.tm-site-footer__brand .tm-logo__img {
  height: 100px;
  width: auto;
  max-width: none;
}
.tm-site-footer__brand .tm-logo__sub { letter-spacing: .02em; font-weight: 500; color: #aeb2b9; text-transform: none; }
.tm-site-footer__cols {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 24px;
}
.tm-fcol h5 { color: var(--o2); font-size: 13px; font-weight: 700; line-height: 1.3; margin: 0 0 14px; }
.tm-fcol ul { list-style: none; margin: 0; padding: 0; }
.tm-fcol li { margin-bottom: 9px; }
.tm-fcol a { color: #aeb2b9; text-decoration: none; font-size: 11.5px; line-height: 1.4; display: inline-block; transition: color .15s ease; }
.tm-fcol a:hover { color: #fff; }
.tm-site-footer__social {
  max-width: 1180px; margin: 46px auto 0; padding: 22px 0;
  border-top: 1px solid #45484f;
  display: flex; justify-content: center; align-items: center; gap: 0; flex-wrap: wrap;
}
.tm-site-footer__social-label { color: #fff; font-size: 14px; font-weight: 700; margin-right: 24px; }
.tm-site-footer__social a { color: #c5c8ce; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: color .15s ease; padding: 0 24px; }
.tm-site-footer__social a:not(:last-child) { border-right: 1px solid #55585f; }
.tm-site-footer__social a:hover { color: #fff; }
.tm-site-footer__social svg { width: 18px; height: 18px; }
.tm-site-footer__links {
  max-width: 1180px; margin: 0 auto; padding: 22px 0;
  border-top: 1px solid #45484f;
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
}
.tm-site-footer__links a { color: #c5c8ce; text-decoration: none; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; transition: color .15s ease; padding: 0 24px; }
.tm-site-footer__links a:not(:last-child) { border-right: 1px solid #55585f; }
.tm-site-footer__links a:hover { color: var(--o2); }
.tm-site-footer__links svg { width: 15px; height: 15px; }
.tm-site-footer__copy {
  background: #2b2e35; margin: 0 -40px; padding: 18px 40px;
  text-align: center; font-size: 11px; color: #9aa0aa;
}
.tm-site-footer__copy b { color: #F4D833; font-weight: 600; }
.tm-totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 9px;
  background: #3a3d45 url('../img/icon-page-top.png') center center no-repeat;
  background-size: 20px 20px;
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.45); cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.tm-totop:hover {
  background: #3a3d45 url('../img/icon-page-top-orange.png') center center no-repeat;
  background-size: 20px 20px;
  transform: translateY(-2px);
}
.tm-totop:active {
  background: #3a3d45 url('../img/icon-page-top-orange.png') center center no-repeat;
  background-size: 20px 20px;
  transform: translateY(0) scale(.96);
}

@media (max-width: 1000px) {
  .tm-site-footer__cols { grid-template-columns: repeat(3, 1fr); }
  .tm-aud { gap: 16px; }
}

/* ==========================================================================
   Contact Form 7 - Formulario Empresa - Estilos personalizados
   ========================================================================== */

/* Contenedor del formulario CF7 */
.wpcf7-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  max-width: none;
  box-shadow: none;
  backdrop-filter: none;
}

/* Grid del formulario CF7 */
.wpcf7-form > p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 26px;
  align-items: start;
  justify-items: stretch;
  text-align: left;
}

/* Campo de mensaje full width */
.wpcf7-form p:has(textarea) {
  grid-column: 1 / -1;
}

/* Alineación del botón a la derecha */
.wpcf7-form .tm-form__submit,
.wpcf7-form p:last-child {
  display: block;
  grid-column: 1 / -1;
  text-align: right;
  margin-top: 26px;
}

.wpcf7-form label { display: block; width: 100%; text-align: left; }

/* Mantener el estilo del botón y aplicarlo al button/submit real */
.wpcf7 .tm-btn-confirm,
.wpcf7 input[type="submit"],
.wpcf7 button.tm-form__submit,
.tm-form__submit {
  background: var(--tm-grad-btn);
  color: #fff;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  display: inline-block;
}

/* Hover del botón */
.wpcf7 .tm-btn-confirm:hover,
.wpcf7 input[type="submit"]:hover,
.wpcf7 button.tm-form__submit:hover,
.tm-form__submit:hover {
  background: var(--tm-grad-btn-hv);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(240,135,26,.7);
}

.wpcf7 button.tm-form__submit,
.tm-form__submit {
  justify-self: end;
  align-self: start;
}

/* Asegurar que todos los campos mantengan el estilo */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: #1f2937;
  transition: all 0.3s ease;
}

/* Estilo específico para el selector de hora */
.wpcf7 select[name="hora"] {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 50px;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #ff7f11;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 127, 17, 0.1);
}

/* Mensajes de validación */
.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

/* Mensaje de respuesta */
.wpcf7-response-output {
  margin: 2em 0 1em 0;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: left;
}

.wpcf7-mail-sent-ok {
  background-color: #10b981;
  color: white;
  border: none;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.wpcf7-spam-blocked {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Spinner de carga */
.wpcf7 .ajax-loader {
  visibility: hidden;
  display: inline-block;
  background: url('../img/ajax-loader.gif') no-repeat;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  vertical-align: middle;
}

.wpcf7.submitting .ajax-loader {
  visibility: visible;
}
