/* ========================================================
   BuildCalc Core Stylesheet - Modern Construction Portal
   Navy & Orange Theme, Filterable Categories, Clean Cards
   ======================================================== */

:root {
  --navy-dark: #0b1a2d;
  --navy-hero: #0e243f;
  --navy-border: #1e3a5f;
  
  --orange-primary: #ea580c;
  --orange-hover: #c2410c;
  --orange-light: #fff7ed;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-card: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border: #e2e8f0;
  --border-focus: #3b82f6;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-main);
  background-color: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   Header & Navbar (Clean White Top Bar)
   ======================================================== */
header.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
  }
}

.nav-menu a {
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  color: #334155;
  transition: color 0.15s ease;
}

.nav-menu a:hover {
  color: var(--orange-primary);
}

.nav-menu .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #ffffff;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  user-select: none;
}

.lang-pill-btn:hover,
.lang-dropdown.open .lang-pill-btn {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.lang-globe-icon {
  width: 15px;
  height: 15px;
  color: #ffffff;
  flex-shrink: 0;
}

.lang-code {
  font-family: inherit;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.lang-chevron-icon {
  width: 12px;
  height: 12px;
  color: #ffffff;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-dropdown.open .lang-chevron-icon,
.lang-dropdown:hover .lang-chevron-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 165px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: langFadeIn 0.15s ease-out forwards;
}

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown.open .lang-menu {
  display: flex;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.15s ease;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lang-item.active {
  background: rgba(234, 88, 12, 0.15);
  color: #fb923c;
  font-weight: 700;
}

.lang-item-check {
  margin-left: auto;
  font-size: 0.75rem;
  color: #ea580c;
  font-weight: 800;
}

/* Legacy fallback */
.lang-switch {
  display: none;
}



/* ========================================================
   Hero Section (Deep Navy Blue Banner)
   ======================================================== */
.hero-navy {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-hero) 100%);
  color: #ffffff;
  padding: 3.5rem 1.25rem 3.75rem;
  text-align: center;
  position: relative;
}

.hero-container {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Search Bar in Hero */
.hero-search-wrapper {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}

.hero-search-input {
  width: 100%;
  padding: 13px 48px 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.15s ease;
}

.hero-search-input:focus {
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.15rem;
  pointer-events: none;
}

/* ========================================================
   Portal Layout (Sidebar Categorías + Grid de Tarjetas)
   ======================================================== */
.portal-layout {
  max-width: 1280px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .portal-layout {
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
  }
}

/* Sidebar Categories */
.categories-sidebar h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.categories-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.category-item button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-item button:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.category-item button.active {
  background: #e2e8f0;
  color: var(--text-main);
  font-weight: 700;
}

.category-count {
  font-size: 0.8rem;
  color: #64748b;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 680px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tool Card (Exact look from reference image) */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tool-card-footer {
  margin-top: auto;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  background: #ffffff;
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

/* ========================================================
   Calculator Inner Page Layout
   ======================================================== */
.layout-container {
  max-width: 1100px;
  margin: 1.75rem auto 3rem;
  padding: 0 1.25rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--orange-primary);
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 860px) {
  .calc-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-sublabel {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.input-unit-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field {
  width: 100%;
  padding: 10px 14px;
  padding-right: 2.5rem;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-unit {
  position: absolute;
  right: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

select.input-field {
  padding-right: 14px;
}

.btn-calculate {
  width: 100%;
  padding: 12px 18px;
  background: var(--orange-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: background 0.15s ease, transform 0.05s ease;
  margin-top: 0.5rem;
}

.btn-calculate:hover {
  background: var(--orange-hover);
}

.btn-calculate:active {
  transform: scale(0.99);
}

/* Result Box */
.result-box {
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.result-main {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.result-number {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.result-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.35rem;
}

.result-details {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-row strong {
  color: var(--text-main);
  font-weight: 700;
}



/* Content Section & Tables */
.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 1.5rem 0 0.85rem;
  color: var(--text-main);
}
.content-section h2:first-child {
  margin-top: 0;
}

.content-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.quick-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.85rem 0 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.quick-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.quick-table th {
  background: var(--surface-alt);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}

.quick-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

.quick-table tr:last-child td {
  border-bottom: none;
}

.quick-table tr:hover td {
  background: var(--surface-alt);
}

.table-scroll-hint {
  display: none;
}

.table-card-label-mobile {
  display: none;
}

/* ========================================================
   Transformación a Tarjetas Móviles Fijas (Sin desplazamiento)
   Se adapta al 100% del ancho de la pantalla sin scroll horizontal
   ======================================================== */
@media (max-width: 768px) {
  .layout-container {
    padding: 0 0.85rem;
    margin: 1rem auto 2.5rem;
  }

  .content-section {
    padding: 1.25rem 0.85rem;
  }

  .quick-table-wrapper.responsive-table-wrapper,
  .quick-table-wrapper:has(.responsive-table) {
    overflow-x: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0.5rem 0 1.25rem !important;
  }

  .responsive-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border: none !important;
  }

  .responsive-table thead {
    display: none !important;
  }

  .responsive-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.95rem !important;
    width: 100% !important;
  }

  .responsive-table tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--surface) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 0 1rem 0.85rem 1rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .responsive-table tr:hover td {
    background: transparent !important;
  }

  /* Cabecera destacada de la tarjeta */
  .responsive-table td.table-card-header,
  .responsive-table td:first-child {
    display: block !important;
    text-align: left !important;
    background: #f8fafc !important;
    margin: 0 -1rem 0.5rem -1rem !important;
    padding: 0.75rem 1rem !important;
    border-bottom: 1.5px solid var(--border) !important;
    font-size: 0.95rem !important;
    color: var(--navy-dark) !important;
    width: auto !important;
  }

  .responsive-table td.table-card-header::before,
  .responsive-table td:first-child::before {
    display: none !important;
  }

  .responsive-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    font-size: 0.875rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
    text-align: right !important;
    gap: 0.75rem !important;
    white-space: normal !important;
  }

  .responsive-table td:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .responsive-table td::before {
    content: attr(data-label) !important;
    font-weight: 700 !important;
    color: var(--navy-dark) !important;
    font-size: 0.825rem !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    max-width: 48% !important;
    line-height: 1.35 !important;
  }

  .responsive-table td .table-cell-val {
    flex: 1 1 auto !important;
    text-align: right !important;
    word-break: break-word !important;
    min-width: 0 !important;
    line-height: 1.35 !important;
  }

  .table-card-label-mobile {
    display: inline !important;
    font-weight: 700 !important;
    color: var(--navy-dark) !important;
  }
}

/* FAQs */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  background: var(--surface);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 18px 14px;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Related Nav */
.related-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.related-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--surface);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange-primary);
  box-shadow: var(--shadow-sm);
}

.related-card h3 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.related-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Ad Slots */
.ad-slot {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  overflow: hidden;
  position: relative;
}

.ad-slot::before {
  content: "PUBLICIDAD / ADS";
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.ad-leaderboard {
  min-height: 90px;
  width: 100%;
}

.ad-rectangle {
  min-height: 250px;
  width: 100%;
}

.ad-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6px;
  display: flex;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
}

.ad-sticky-footer .ad-slot {
  margin: 0;
  min-height: 50px;
  max-width: 728px;
  width: 100%;
}

/* ========================================================
   Modern Multi-Column Site Footer (Navy Theme & Orange Accents)
   ======================================================== */
footer.site-footer {
  background: var(--navy-dark, #0b1a2d);
  border-top: 1px solid var(--navy-border, #1e3a5f);
  padding: 3.5rem 1.25rem 6.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 0.9fr;
    gap: 2.75rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-brand-title:hover {
  color: #ffffff;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.footer-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.35);
  color: #fb923c;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  width: fit-content;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin: 0 0 1.15rem 0;
  position: relative;
  padding-bottom: 0.45rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--orange-primary, #ea580c);
  border-radius: 2px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav li {
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.775rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-disclaimer {
  max-width: 780px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-disclaimer strong {
  color: #94a3b8;
}

.footer-copyright {
  font-weight: 500;
  white-space: nowrap;
}

/* Legacy helper support */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-links a:hover {
  color: #ffffff;
}

/* ========================================================
   Action Buttons in Result Card (Equal Height & Proportions)
   ======================================================== */
.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.btn-copy,
.btn-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 42px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  transition: all 0.15s ease;
}

.btn-copy {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
}

.btn-copy:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--text-main);
}

.btn-pdf {
  background: #0b1a2d;
  border: 1.5px solid #0b1a2d;
  color: #ffffff;
}

.btn-pdf:hover {
  background: #1e3a5f;
  border-color: #1e3a5f;
  box-shadow: 0 2px 6px rgba(11, 26, 45, 0.25);
}

@media (max-width: 360px) {
  .result-actions {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   Printable A4 Engineering Report Styles
   Hidden on screen, pristine on PDF / Print
   ======================================================== */
#print-report {
  display: none;
}

@media print {
  /* Hide standard web UI */
  header.site-header,
  nav.breadcrumbs,
  .page-header,
  .calc-grid,
  .content-section,
  .ad-slot,
  .ad-sticky-footer,
  footer.site-footer {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.4;
  }

  #print-report {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1.5cm 1.5cm !important;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #0b1a2d;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .print-brand {
    font-size: 18pt;
    font-weight: 800;
    color: #0b1a2d;
  }

  .print-meta {
    text-align: right;
    font-size: 9pt;
    color: #475569;
  }

  .print-title {
    font-size: 16pt;
    font-weight: 800;
    margin-bottom: 15px;
    color: #0b1a2d;
  }

  .print-section-title {
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0b1a2d;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 4px;
    margin: 16px 0 10px;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
  }

  .print-table th {
    background: #f1f5f9;
    font-weight: 700;
    text-align: left;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    font-size: 9.5pt;
  }

  .print-table td {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    font-size: 9.5pt;
  }

  .print-highlight {
    background: #f8fafc;
    border-left: 3px solid #ea580c;
    padding: 10px 14px;
    margin: 14px 0;
    font-size: 9.5pt;
  }

  .print-footer {
    border-top: 1px solid #cbd5e1;
    padding-top: 10px;
    margin-top: 30px;
    font-size: 8pt;
    color: #64748b;
    display: flex;
    justify-content: space-between;
  }
}

/* ========================================================
   Modern Calculator Architecture Styles
   Page container, badge, calc-card, result-card, forms & FAQs
   ======================================================== */

.page-container {
  max-width: 1160px;
  margin: 1.5rem auto 3.5rem;
  padding: 0 1.25rem;
  box-sizing: border-box;
  width: 100%;
}

.page-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-primary);
  background: var(--orange-light);
  border: 1px solid rgba(234, 88, 12, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

.page-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.breadcrumb-separator {
  color: var(--text-light);
  margin: 0 0.35rem;
}

.brand-accent {
  color: var(--orange-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-lang:hover {
  border-color: var(--navy-border);
  background: var(--surface-alt);
}

.calc-grid > * {
  min-width: 0;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.calc-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.calc-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.calc-tab.active {
  background: var(--surface);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-control,
.form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-main);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-help {
  display: block;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 12px 18px;
  background: var(--orange-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: background 0.15s ease, transform 0.05s ease;
  box-sizing: border-box;
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-primary:active {
  transform: scale(0.99);
}

/* Result Card & Breakdown */
.result-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.result-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.result-main-value {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.result-main-value .result-number {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.result-main-value .result-unit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.875rem;
  gap: 0.75rem;
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--text-muted);
  flex: 1;
}

.result-val {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* FAQ Accordion Details */
.faq-accordion details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.15s ease;
}

.faq-accordion details[open] {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.faq-accordion summary {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  outline: none;
  background: var(--surface-alt);
  user-select: none;
  font-size: 0.95rem;
}

.faq-accordion summary:hover {
  color: var(--orange-primary);
}

.faq-accordion .faq-content {
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Ad Slot Helpers */
.ad-leaderboard-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.ad-placeholder-text {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.ad-sticky-footer-inner {
  margin: 0 !important;
  max-width: 728px;
  width: 100%;
}

.footer-brand {
  font-weight: 700;
  color: var(--navy-dark);
}

/* ========================================================
   Enhanced Calculator Features: Alerts, Auxiliaries,
   Pricing, WhatsApp & Extended Geometries
   ======================================================== */

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tab-btn {
  flex: 1 1 calc(33.333% - 0.4rem);
  min-width: 105px;
}

/* WhatsApp Share Button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 42px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  text-decoration: none;
  background: #16a34a;
  border: 1.5px solid #16a34a;
  color: #ffffff;
  transition: all 0.15s ease;
}

.btn-whatsapp:hover {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
  color: #ffffff;
}

/* Logistics, Crane & Screed Alert / Cuba Dynamic Alert / PMA Alert / Double Glue Alert */
.alert-cuba,
.alert-crane,
.alert-screed,
.alert-pma,
.alert-double-glue,
.alert-truck-bulk {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-left: 4px solid #f59e0b;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1.15rem;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.45;
}

.alert-cuba .alert-icon,
.alert-crane .alert-icon,
.alert-screed .alert-icon,
.alert-pma .alert-icon,
.alert-double-glue .alert-icon,
.alert-truck-bulk .alert-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Accordion details for custom inputs */
.accordion-details {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-details summary {
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-details summary::-webkit-details-marker {
  display: none;
}

.accordion-details[open] summary {
  border-bottom: 1px dashed var(--border);
  background: #f1f5f9;
}

.accordion-details-body {
  padding: 12px 14px;
}

.input-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .input-row-3 {
    grid-template-columns: 1fr;
  }
}

.tag-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.tag-badge-blue { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag-badge-green { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.tag-badge-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* Auxiliary Materials Section */
.aux-section {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.15rem;
}

.aux-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.aux-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.65rem;
  transition: border-color 0.15s ease;
}

.aux-card:hover {
  border-color: #cbd5e1;
}

.aux-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.aux-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--orange-primary);
  cursor: pointer;
}

.aux-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  margin-left: 1.65rem;
  line-height: 1.35;
}

/* Budget & Pricing Box */
.budget-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-top: 1.15rem;
}

.budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.budget-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.budget-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #15803d;
}

.budget-details {
  font-size: 0.8rem;
  color: #166534;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px dashed #bbf7d0;
  padding-top: 0.5rem;
}

.budget-row {
  display: flex;
  justify-content: space-between;
}

/* Action buttons 3-column support */
.result-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

/* ========================================================
   Editorial & Technical Guide Components
   ======================================================== */
.content-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 1.5rem 0 0.65rem;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.15rem;
  margin: 1.5rem 0 2rem;
}

.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.diff-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.diff-card-cemento { border-top: 4px solid #64748b; }
.diff-card-mortero { border-top: 4px solid var(--orange-primary); }
.diff-card-hormigon { border-top: 4px solid var(--navy-dark); }

.diff-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.65rem;
  align-self: flex-start;
}

.diff-badge-cemento { background: #f1f5f9; color: #475569; }
.diff-badge-mortero { background: #fff7ed; color: #c2410c; }
.diff-badge-hormigon { background: #eff6ff; color: #1e40af; }

.diff-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 0 0 0.5rem;
}

.diff-formula {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-alt);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.diff-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.diff-uses {
  font-size: 0.825rem;
  color: var(--text-main);
  border-top: 1px dashed var(--border);
  padding-top: 0.65rem;
}

.diff-uses strong {
  color: var(--navy-dark);
}

/* Pro Tips & Mistakes List */
.pro-tips-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.pro-tip-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange-primary);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pro-tip-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.pro-tip-body {
  flex-grow: 1;
}

.pro-tip-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 0.4rem;
}

.pro-tip-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.pro-tip-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 6px 10px;
  display: inline-block;
}

.table-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.775rem;
  font-weight: 700;
}
.table-tag-green { background: #dcfce7; color: #166534; }
.table-tag-blue { background: #dbeafe; color: #1e40af; }
.table-tag-amber { background: #fef3c7; color: #92400e; }
.table-tag-purple { background: #f3e8ff; color: #6b21a8; }

/* ========================================================
   Mobile Responsive Result Cards & Rows (Zero text clipping)
   ======================================================== */
@media (max-width: 640px) {
  .calc-card,
  .result-card,
  .card {
    padding: 1.25rem 1rem !important;
  }

  .result-row,
  .detail-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    padding: 0.6rem 0 !important;
  }

  .result-label,
  .detail-row span:first-child {
    font-size: 0.825rem !important;
    color: var(--text-muted) !important;
    flex: none !important;
    width: 100% !important;
    line-height: 1.35 !important;
  }

  .result-val,
  .detail-row strong {
    text-align: left !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
    line-height: 1.4 !important;
  }

  .aux-card {
    padding: 0.75rem 0.75rem !important;
  }
}

/* ========================================================
   Multi-Room & Multi-Estancia Manager Styles
   ======================================================== */
.room-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.room-manager-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.room-badge-count {
  background: var(--navy-dark);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
}
.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.room-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.room-item-card.is-active {
  border-color: var(--orange-primary);
  background: #fff8f3;
  box-shadow: 0 1px 3px rgba(249, 115, 22, 0.12);
}
.room-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.room-item-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.room-item-meta {
  font-size: 0.775rem;
  color: var(--text-muted);
}
.room-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.btn-room-action {
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--navy-dark);
  transition: all 0.15s;
}
.btn-room-action:hover {
  background: var(--surface-alt);
  border-color: #cbd5e1;
}
.btn-room-action.is-editing {
  background: #ffedd5;
  border-color: #fdba74;
  color: #c2410c;
}
.btn-room-delete {
  color: #ef4444;
}
.btn-room-delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}
.btn-add-room {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: #fff;
  border: 1.5px dashed var(--orange-primary);
  color: var(--orange-primary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 1.15rem;
}
.btn-add-room:hover {
  background: #fff7ed;
  border-color: #ea580c;
  color: #ea580c;
}

@media (max-width: 480px) {
  .room-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .room-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ========================================================
   Related Tools Cluster Component (Silo SEO Interlinking)
   ======================================================== */
.related-tools-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.related-tools-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.related-tool-card {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}
.related-tool-card:hover {
  border-color: var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.related-tool-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.related-tool-icon {
  font-size: 1.25rem;
}
.related-tool-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-dark);
  transition: color 0.15s ease;
}
.related-tool-card:hover .related-tool-name {
  color: var(--orange-primary);
}
.related-tool-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ========================================================
   Contact Page Styles (BuildCalcSuite Modern Layout)
   ======================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 2.5rem;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  background: var(--orange-light);
  color: var(--orange-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.2rem;
}

.contact-info-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.contact-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-top: 0.35rem;
}

.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--orange-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

.btn-contact-submit:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(234, 88, 12, 0.3);
}

.contact-success-msg {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  align-items: center;
  gap: 0.5rem;
}




