/*
 * Tycoon Equipamiento Corporativo S.A. - Bespoke Architectural Stylesheet
 * Preserves and extends templatemo_547_real_dynamic native UI classes (.tm-*)
 * Warm Walnut (#1E1915), Petiribí Amber (#B58342), Brushed Brass (#C89B57), Travertine (#F6F3EE)
 */

:root {
  --tm-walnut-dark: #1E1915;
  --tm-walnut-mid: #2C241E;
  --tm-petiribi: #B58342;
  --tm-petiribi-dark: #8E632B;
  --tm-brass: #C89B57;
  --tm-travertine: #F6F3EE;
  --tm-sand: #EAE3D7;
  --tm-slate: #2D3134;
  --tm-muted: #5A534A;
  --tm-white: #FFFFFF;
  --tm-border: #DCD3C4;
  --tm-success: #22543D;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--tm-slate);
  background-color: var(--tm-travertine);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--tm-walnut-dark);
  line-height: 1.24;
  margin-top: 0;
  font-weight: 600;
}

p {
  color: #3E3832;
  margin-bottom: 1.1rem;
}

a {
  color: var(--tm-petiribi-dark);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--tm-walnut-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Native templatemo_547_real_dynamic Structural Classes */
.tm-container {
  max-width: 1380px;
  margin: 0 auto;
  background-color: var(--tm-white);
  box-shadow: 0 18px 50px rgba(30, 25, 21, 0.08);
}

.tm-text-primary {
  color: var(--tm-petiribi-dark) !important;
}

.tm-text-secondary {
  color: var(--tm-walnut-mid) !important;
}

.tm-bg-gray {
  background-color: var(--tm-travertine) !important;
}

.tm-bg-white {
  background-color: var(--tm-white) !important;
}

.tm-bg-dark {
  background-color: var(--tm-walnut-dark) !important;
  color: var(--tm-travertine) !important;
}

/* Top Institutional Bar */
.tm-topbar {
  background-color: #16120F;
  color: #E5DEC9;
  font-size: 0.84rem;
  padding: 9px 28px;
  border-bottom: 1px solid rgba(200, 155, 87, 0.25);
}

.tm-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tm-topbar-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tm-topbar-items span,
.tm-topbar-items a {
  color: #E5DEC9;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tm-topbar-items a:hover {
  color: var(--tm-brass);
}

.tm-topbar-items i {
  color: var(--tm-brass);
}

/* Real Dynamic Header & Stripes */
.tm-site-header {
  position: relative;
  background-color: var(--tm-walnut-dark);
  background-image: linear-gradient(125deg, #1E1915 0%, #2C231C 60%, #3A2D22 100%);
  padding: 20px 28px;
  border-bottom: 3px solid var(--tm-petiribi);
  z-index: 1000;
  overflow: visible !important;
}

.tm-header-stripes-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 240px;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.14;
}

.tm-header-stripe {
  height: 18px;
  background: repeating-linear-gradient(-45deg, var(--tm-brass), var(--tm-brass) 8px, transparent 8px, transparent 16px);
  margin-bottom: 8px;
}

.tm-header-stripe-short {
  height: 12px;
  width: 70%;
  margin-left: auto;
  background: repeating-linear-gradient(-45deg, var(--tm-petiribi), var(--tm-petiribi) 6px, transparent 6px, transparent 12px);
}

.tm-header-bar {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1010;
}

.tm-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  flex-shrink: 0;
}

.tm-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: linear-gradient(135deg, #B58342 0%, #8E632B 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.tm-brand-text {
  display: flex;
  flex-direction: column;
}

.tm-brand-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.32rem;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  line-height: 1.1;
}

.tm-brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tm-brass);
  margin-top: 3px;
  font-weight: 600;
}

/* Single-Row Desktop Navigation + Accessible Dropdowns */
.tm-nav {
  display: flex;
  align-items: center;
}

.tm-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.tm-nav-item {
  position: relative;
  white-space: nowrap;
}

.tm-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #F4EFE6 !important;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.tm-nav-link:hover,
.tm-nav-item.active > .tm-nav-link {
  background-color: rgba(200, 155, 87, 0.18);
  color: var(--tm-brass) !important;
}

.tm-nav-link.tm-nav-cta {
  background-color: var(--tm-petiribi);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 10px 16px;
  margin-left: 4px;
}

.tm-nav-link.tm-nav-cta:hover {
  background-color: var(--tm-brass);
  color: #1E1915 !important;
}

/* Strictly prevent double dropdown arrows */
.has-sub::after,
.has-sub > a::after,
.tm-nav-item::after,
.tm-nav-link::after {
  content: none !important;
  display: none !important;
}

.tm-nav-caret {
  font-size: 0.72rem;
  color: var(--tm-brass);
  transition: transform 0.2s ease;
}

.has-sub:hover .tm-nav-caret {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 285px;
  background-color: #241D18;
  border: 1px solid rgba(200, 155, 87, 0.35);
  border-top: 3px solid var(--tm-brass);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 9999;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.submenu-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 9px 18px;
  font-size: 0.88rem;
  color: #EAE3D7 !important;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.submenu a:hover {
  background-color: rgba(200, 155, 87, 0.16);
  color: var(--tm-brass) !important;
  border-left-color: var(--tm-brass);
}

.tm-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(200, 155, 87, 0.5);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero Section - Real Dynamic Split & Overlay */
.tm-hero-banner {
  position: relative;
  background-color: #1A1512;
  color: #FFFFFF;
  overflow: hidden;
}

.tm-hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
  padding: 58px 28px;
}

.tm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(200, 155, 87, 0.18);
  border: 1px solid rgba(200, 155, 87, 0.45);
  color: #E7C386;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.tm-hero-banner h1 {
  color: #FFFFFF;
  font-size: 2.65rem;
  line-height: 1.16;
  margin-bottom: 18px;
}

.tm-hero-lead {
  color: #E6DFD3;
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 26px;
}

.tm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.tm-btn-primary {
  background-color: var(--tm-petiribi);
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px rgba(181, 131, 66, 0.28);
}

.tm-btn-primary:hover {
  background-color: #9A6D30;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.tm-btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--tm-brass);
  color: #F6F3EE !important;
}

.tm-btn-outline:hover {
  background-color: var(--tm-brass);
  color: #1E1915 !important;
}

.tm-btn-dark {
  background-color: var(--tm-walnut-dark);
  color: #FFFFFF !important;
}

.tm-btn-dark:hover {
  background-color: var(--tm-petiribi-dark);
  color: #FFFFFF !important;
}

.tm-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
}

.tm-metric-card strong {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.55rem;
  color: var(--tm-brass);
}

.tm-metric-card span {
  font-size: 0.82rem;
  color: #D7CFC2;
}

.tm-hero-visual {
  position: relative;
}

.tm-hero-visual img {
  width: 100%;
  border-radius: 10px;
  border: 2px solid rgba(200, 155, 87, 0.4);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.tm-hero-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(24, 19, 15, 0.92);
  border-left: 4px solid var(--tm-brass);
  padding: 12px 16px;
  border-radius: 6px;
  color: #F4EFE6;
  font-size: 0.85rem;
}

/* Inner Page Header Banner */
.tm-page-banner {
  background: linear-gradient(120deg, #1E1915 0%, #31261E 100%);
  color: #FFFFFF;
  padding: 46px 28px;
  border-bottom: 4px solid var(--tm-petiribi);
}

.tm-page-banner-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.tm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: #D2C7B8;
  margin-bottom: 12px;
}

.tm-breadcrumb a {
  color: var(--tm-brass);
}

.tm-page-banner h1 {
  color: #FFFFFF;
  font-size: 2.35rem;
  margin-bottom: 12px;
}

.tm-page-banner p {
  color: #E5DEC9;
  font-size: 1.05rem;
  max-width: 840px;
  margin-bottom: 0;
}

/* Native Real Dynamic Content Sections */
.tm-section {
  padding: 64px 28px;
}

.tm-section-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.tm-section-header {
  max-width: 780px;
  margin-bottom: 40px;
}

.tm-section-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tm-petiribi-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Real Dynamic .tm-box-1, .tm-box-2, .tm-strategy-box */
.tm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.tm-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}

.tm-box-1,
.tm-box-2 {
  background-color: var(--tm-white);
  border: 1px solid var(--tm-border);
  border-top: 4px solid var(--tm-petiribi);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 10px 26px rgba(30, 25, 21, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tm-box-1:hover,
.tm-box-2:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(30, 25, 21, 0.11);
}

.tm-box-img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
}

.tm-box-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background-color: var(--tm-travertine);
  color: var(--tm-petiribi-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
  border: 1px solid var(--tm-border);
}

.tm-strategy-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background-color: var(--tm-white);
  border: 1px solid var(--tm-border);
  border-left: 4px solid var(--tm-petiribi);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
}

.tm-strategy-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: #241D18;
  color: var(--tm-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Native Gallery & Effect Bubba */
.tm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tm-gallery-item {
  background: var(--tm-white);
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(30, 25, 21, 0.06);
}

figure.effect-bubba {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #1E1915;
}

figure.effect-bubba img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

figure.effect-bubba:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}

.tm-gallery-body {
  padding: 20px 22px;
}

/* Technical Specification Tables */
.tm-spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  background: var(--tm-white);
}

.tm-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.tm-spec-table th {
  background-color: var(--tm-walnut-dark);
  color: #FFFFFF;
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
}

.tm-spec-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--tm-border);
  color: var(--tm-slate);
}

.tm-spec-table tr:nth-child(even) td {
  background-color: #FAF8F4;
}

/* Interactive Office Floor Space & Budget Planner */
.tm-planner-box {
  background-color: var(--tm-white);
  border: 2px solid var(--tm-petiribi);
  border-radius: 10px;
  padding: 34px;
  box-shadow: 0 18px 44px rgba(30, 25, 21, 0.09);
}

.tm-planner-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.tm-form-group {
  margin-bottom: 18px;
}

.tm-form-group label {
  display: block;
  font-weight: 600;
  color: var(--tm-walnut-dark);
  margin-bottom: 7px;
  font-size: 0.93rem;
}

.tm-form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.96rem;
  border: 1px solid #C6B9A6;
  border-radius: 6px;
  background-color: #FDFBF8;
  color: var(--tm-slate);
}

.tm-form-control:focus {
  outline: none;
  border-color: var(--tm-petiribi);
  box-shadow: 0 0 0 3px rgba(181, 131, 66, 0.18);
}

.tm-summary-panel {
  background-color: #1E1915;
  color: #F6F3EE;
  border-radius: 8px;
  padding: 28px;
  border-top: 4px solid var(--tm-brass);
}

.tm-summary-panel h3 {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.tm-summary-price {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.15rem;
  color: var(--tm-brass);
  margin: 12px 0;
}

.tm-summary-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tm-summary-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #E5DEC9;
}

/* Alert & Feedback Messages */
.tm-form-feedback {
  display: none;
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: 6px;
  background-color: #EBF5EE;
  border-left: 4px solid var(--tm-success);
  color: #1A3A2A;
  font-weight: 500;
}

/* Footer */
.tm-site-footer {
  background-color: #18130F;
  color: #D7CFC2;
  padding: 60px 28px 32px;
  border-top: 4px solid var(--tm-petiribi);
}

.tm-footer-grid {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tm-site-footer h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.tm-site-footer p,
.tm-site-footer li {
  color: #CFC5B6;
  font-size: 0.9rem;
}

.tm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tm-footer-links li {
  margin-bottom: 9px;
}

.tm-footer-links a {
  color: #DCD3C4;
}

.tm-footer-links a:hover {
  color: var(--tm-brass);
}

.tm-footer-bottom {
  max-width: 1260px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: #B8AD9E;
}

.tm-fiscal-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(200, 155, 87, 0.25);
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .tm-hero-grid,
  .tm-planner-grid,
  .tm-grid-2 {
    grid-template-columns: 1fr;
  }
  .tm-grid-4,
  .tm-grid-3,
  .tm-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .tm-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .tm-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .tm-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1E1915;
    padding: 18px 24px;
    border-bottom: 3px solid var(--tm-petiribi);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  }
  .tm-nav.nav-open {
    display: block;
  }
  .tm-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--tm-brass);
    margin-left: 14px;
    padding: 4px 0;
    background: transparent;
  }
}

@media (max-width: 640px) {
  .tm-grid-4,
  .tm-grid-3,
  .tm-gallery,
  .tm-footer-grid,
  .tm-hero-metrics {
    grid-template-columns: 1fr;
  }
  .tm-hero-banner h1 {
    font-size: 2rem;
  }
  .tm-page-banner h1 {
    font-size: 1.85rem;
  }
}

/* === SURGICAL GEOMETRY FIXES === */
.tm-header-stripes-wrap {
  display: none !important;
}
.tm-hero-caption {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin-top: 12px !important;
}
.tm-nav-link {
  padding: 9px 11px !important;
  font-size: 0.88rem !important;
}
.tm-brand-title {
  font-size: 1.2rem !important;
}
.tm-brand-subtitle {
  font-size: 0.65rem !important;
  letter-spacing: 0.06em !important;
}
@media (max-width: 960px) {
  .tm-site-header {
    padding: 14px 16px !important;
  }
  .tm-brand {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .tm-brand-subtitle {
    display: none !important;
  }
  .tm-brand-title {
    font-size: 1.05rem !important;
  }
  .tm-topbar {
    padding: 8px 16px !important;
  }
  .tm-section, .tm-hero-banner, .tm-page-banner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
select, .tm-form-control, input, textarea {
  max-width: 100% !important;
  min-width: 0 !important;
}
