/* ==========================================================================
   Istra Outdoors Paisajismo S.R.L. - Architectural Stylesheet
   Template DNA: templatemo_532_next_level (28.56% / 70% Split Grid & Tabs)
   Palette: Anodized Anthracite (#1e293b), Forest Teal (#0f766e), Lapacho (#b45309)
   ========================================================================== */

:root {
  --istra-dark: #0f172a;
  --istra-slate: #1e293b;
  --istra-teal: #0f766e;
  --istra-lapacho: #b45309;
  --istra-amber: #d97706;
  --istra-light: #f8fafc;
  --istra-border: #cbd5e1;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: #334155;
  padding-top: 28px !important;
  background-color: #ffffff;
}

p {
  line-height: 1.75;
}

/* --- BRAND & SINGLE-ROW ARCHITECTURAL NAVBAR --- */
.tm-brand-row {
  padding-bottom: 22px !important;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
  align-items: center;
}

.istra-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  padding: 12px 20px;
  border: 2px solid #1e293b;
  background: #ffffff;
  transition: all 0.25s ease;
}

.istra-brand-link:hover {
  border-color: #0f766e;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.istra-brand-badge {
  width: 44px;
  height: 44px;
  background: #1e293b;
  color: #fbbf24;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.istra-brand-titles {
  display: flex;
  flex-direction: column;
}

.istra-brand-main {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.1;
}

.istra-brand-main span {
  color: #0f766e;
}

.istra-brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-top: 3px;
}

/* Override Next Level fixed 101px nav-link width so 6 items fit on 1 row */
@media (min-width: 992px) {
  .tm-navbar {
    padding: 0 !important;
  }
  .navbar-expand-lg .navbar-nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  .navbar-expand-lg .navbar-nav .nav-item {
    position: relative;
    white-space: nowrap !important;
  }
  .navbar-expand-lg .navbar-nav .nav-link {
    width: auto !important;
    height: 46px !important;
    padding: 0 15px !important;
    margin-left: 4px !important;
    margin-right: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
  }
  .navbar-light .navbar-nav .nav-link:hover,
  .navbar-light .navbar-nav .nav-item.active > .nav-link {
    border: 1px solid #0f766e !important;
    color: #0f766e !important;
    background: #f0fdfa;
  }
  .navbar-expand-lg .navbar-nav .nav-item.nav-cta .nav-link {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
    padding: 0 20px !important;
  }
  .navbar-expand-lg .navbar-nav .nav-item.nav-cta .nav-link:hover {
    background: #b45309 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
  }

  /* Dropdown Submenu in Next Level Architectural Frame Style */
  .navbar-nav .nav-item.has-dropdown > .nav-link::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    color: #0f766e;
    margin-left: 4px;
  }
  .navbar-nav .nav-item.has-dropdown .istra-dropdown {
    position: absolute;
    top: 100%;
    left: 4px;
    min-width: 270px;
    background: #ffffff;
    border: 1px solid #1e293b;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.15);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1200;
  }
  .navbar-nav .nav-item.has-dropdown:hover .istra-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .navbar-nav .nav-item.has-dropdown .istra-dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }
  .navbar-nav .nav-item.has-dropdown .istra-dropdown li a:hover {
    background: #f8fafc;
    color: #0f766e;
    border-left-color: #b45309;
    padding-left: 22px;
  }
}

@media (max-width: 991px) {
  #navbarNav {
    right: 0;
    min-width: 260px;
    background: #ffffff !important;
    border: 1px solid #1e293b;
    padding: 12px !important;
  }
  .navbar-expand-lg .navbar-nav .nav-link {
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 2px 0 !important;
    padding: 8px 12px !important;
    color: #0f172a !important;
  }
  .istra-dropdown {
    list-style: none;
    padding-left: 16px;
    border-left: 2px solid #0f766e;
    margin-bottom: 8px;
  }
  .istra-dropdown li a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: #475569;
  }
}

/* --- WELCOME SPLIT HERO CUSTOMIZATION --- */
.tm-welcome-box.tm-bg-primary {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
  border-left: 6px solid #b45309;
  padding: 32px;
  height: auto !important;
  min-height: 460px;
}

.tm-welcome-box.tm-bg-gradient {
  background: linear-gradient(145deg, #1e293b 0%, #0f766e 100%) !important;
  border-left: 6px solid #f59e0b;
  padding: 32px;
  height: auto !important;
  min-height: 360px;
}

.tm-welcome-text {
  max-width: 100% !important;
  text-align: left !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  padding: 0 !important;
}

.istra-hero-image-box {
  min-height: 460px;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 36px;
}

.istra-hero-overlay {
  background: rgba(15, 23, 42, 0.86);
  border-left: 4px solid #fbbf24;
  padding: 26px 30px;
  color: #ffffff;
  max-width: 680px;
}

.istra-hero-overlay h1 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.istra-hero-overlay p {
  font-size: 15px;
  color: #e2e8f0;
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- ARCHITECTURAL CARDS & TABLES --- */
.istra-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.istra-card:hover {
  border-color: #0f766e;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.istra-card-img {
  height: 215px;
  overflow: hidden;
  position: relative;
}

.istra-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.istra-card-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #1e293b;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  letter-spacing: 0.8px;
}

.istra-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.istra-card-body h2,
.istra-card-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.istra-card-body p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 16px;
}

.istra-spec-list {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #0f766e;
  font-weight: 600;
}

.istra-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  margin-bottom: 30px;
}

.istra-table {
  width: 100%;
  border-collapse: collapse;
}

.istra-table th {
  background: #1e293b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
}

.istra-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  color: #334155;
}

.istra-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* --- ACCORDION & TIMELINE --- */
.istra-faq-item {
  border: 1px solid #cbd5e1;
  margin-bottom: 14px;
  background: #ffffff;
}

.istra-faq-btn {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.istra-faq-btn:hover {
  background: #f0fdfa;
  color: #0f766e;
}

.istra-faq-body {
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #475569;
  display: none;
  border-top: 1px solid #e2e8f0;
}

.istra-faq-item.active .istra-faq-body {
  display: block;
}

/* --- FOOTER --- */
footer.istra-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 55px 35px 35px 35px;
  margin-top: 60px;
  border-top: 5px solid #b45309;
}

footer.istra-footer h5 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

footer.istra-footer ul {
  list-style: none;
  padding: 0;
}

footer.istra-footer ul li {
  margin-bottom: 9px;
}

footer.istra-footer ul li a {
  color: #cbd5e1;
  font-size: 13.5px;
}

footer.istra-footer ul li a:hover {
  color: #fbbf24;
}

.istra-arrepentimiento-btn {
  display: inline-block;
  background: #b45309;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 16px;
  margin-top: 10px;
  border: 1px solid #f59e0b;
}

.istra-arrepentimiento-btn:hover {
  background: #0f766e;
}

.istra-cookie-bar {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 980px;
  margin: 0 auto;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #fbbf24;
  padding: 16px 22px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

/* === SURGICAL GEOMETRY FIXES === */
html, body, .container-fluid {
  overflow-x: hidden !important;
}
section.row, footer.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
select, .form-control, input, textarea {
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
[class*="col-"], .row > * {
  min-width: 0 !important;
}
table {
  max-width: 100% !important;
}
