/* =====================================================================
   BestSafeCo — Modern layer
   Sits on top of style.css / bootstrap.css and refines typography,
   color, spacing, cards, navigation, footer and micro-interactions
   without touching the original markup contracts (ids/classes) the
   template JS (main.js) depends on.
   ===================================================================== */

:root {
  --c-primary: #d1803f;
  --c-primary-dark: #b3672c;
  --c-ink: #16213a;
  --c-ink-2: #1c2b4a;
  --c-navy: #0f1b2f;
  --c-navy-2: #16233b;
  --c-text: #5a6472;
  --c-text-soft: rgba(255, 255, 255, 0.62);
  --c-line: rgba(22, 33, 58, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 18px rgba(15, 27, 47, 0.08);
  --shadow-md: 0 20px 45px -18px rgba(15, 27, 47, 0.35);
  --shadow-lg: 0 30px 70px -24px rgba(15, 27, 47, 0.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base type ---------- */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: "Poppins", "Work Sans", Arial, sans-serif;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Work Sans", Arial, sans-serif;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
a { color: var(--c-primary); }
a:hover, a:active, a:focus { color: var(--c-primary-dark); }
::selection { background: var(--c-primary); color: #fff; }

/* ---------- Logo wordmark (image asset shipped with the template is corrupt) ---------- */
.gtco-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  background: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 62px -6px rgba(0, 0, 0, 0.4);
  max-width: 100%;
}
@media screen and (max-width: 480px) {
  .gtco-logo-text {
    font-size: 15px;
    padding: 8px 10px;
    gap: 5px;
  }
  .gtco-logo-text i { font-size: 16px; }
}
.gtco-logo-text i { color: var(--c-primary); font-size: 22px; }
.gtco-logo-text .accent { color: var(--c-primary); }
.footer-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo-text i { color: var(--c-primary); font-size: 22px; }
.footer-logo-text .accent { color: var(--c-primary); }

/* ---------- Language switch text badges (flag icon assets shipped with the template are corrupt) ---------- */
.idioma a, .idioma-s a {
  background: var(--c-navy) !important;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.idioma a:before { content: "EN"; }
.idioma-s a:before { content: "ES"; }

/* ---------- Loader (loader.gif shipped with the template is corrupt) ---------- */
.gtco-loader {
  background: #fff !important;
}
.gtco-loader:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 4px solid rgba(209, 128, 63, 0.2);
  border-top-color: var(--c-primary);
  animation: gtco-spin 0.8s linear infinite;
}
@keyframes gtco-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Nav ---------- */
.gtco-nav {
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}
.gtco-nav.nav-scrolled {
  background: rgba(15, 27, 47, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
  padding-bottom: 0 !important;
}
.gtco-nav.nav-scrolled .menu-1 { padding-top: 14px; padding-bottom: 14px; }
.gtco-nav.nav-scrolled .gtco-logo-text {
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}
.gtco-logo-text {
  transition: padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gtco-nav ul li a {
  letter-spacing: 0.06em;
  font-weight: 600;
  position: relative;
}
.gtco-nav ul li a:after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 18px;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.gtco-nav ul li a:hover:after,
.gtco-nav ul li.active a:after {
  transform: scaleX(1);
}

/* ---------- Language switch ---------- */
.idioma, .idioma-s {
  border-radius: 100px 0 0 100px;
  overflow: hidden;
}
.idioma a, .idioma-s a {
  border-radius: 100px 0 0 100px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.idioma a:hover, .idioma-s a:hover {
  transform: translateX(-4px);
  box-shadow: -4px 0 14px 2px rgba(0, 0, 0, 0.35);
}

/* ---------- Hero / cover ---------- */
.gtco-cover .overlay {
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.35) 0%, rgba(10, 18, 34, 0.72) 100%);
}
.gtco-container h1 {
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.home-slide h1 {
  letter-spacing: -0.02em;
}
.carousel-indicators li {
  border-color: rgba(255, 255, 255, 0.6);
}
.carousel-indicators .active {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
}

/* ---------- Section heading rhythm ---------- */
#gtco-features, #gtco-team, #gtco-services, .gtco-section {
  background: #fff;
}

/* ---------- Feature / staff cards ---------- */
.feature-center {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 30px 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature-center img,
.gtco-container img,
.gtco-tabs .gtco-tab-content-wrap img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.feature-center:hover img,
.gtco-tab-content img:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-md) !important;
}

.gtco-staff {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 10px;
}
.staff-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(209, 128, 63, 0.12);
  color: var(--c-primary);
  font-size: 28px;
  margin-bottom: 18px;
}
#gtco-team .row > div img {
  border-radius: var(--radius-lg);
}

/* ---------- Icon badges for lists (Consultoría) ---------- */
.gtco-tab-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.gtco-tab-content ul li {
  position: relative;
  padding: 8px 0 8px 34px;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.5;
}
.gtco-tab-content ul li:last-child { border-bottom: none; }
.gtco-tab-content ul li:before {
  content: "\e042";
  font-family: "icomoon";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--c-primary);
  font-size: 16px;
}

/* ---------- Service / product cards ---------- */
#gtco-services .row > div h4.uppercase {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  letter-spacing: 0.08em;
}
#gtco-services .col-md-4 > img,
#gtco-services .col-md-4.col-sm-6 > img {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}
.gtco-tab-content[data-tab-content="3"] h3 {
  margin-top: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-primary {
  box-shadow: 0 12px 26px -12px rgba(209, 128, 63, 0.65);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-cta-modern {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 34px;
  background: var(--c-primary);
  color: #fff !important;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  box-shadow: 0 16px 34px -14px rgba(209, 128, 63, 0.75);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-cta-modern:hover {
  transform: translateY(-3px);
  color: #fff !important;
  box-shadow: 0 20px 40px -14px rgba(209, 128, 63, 0.9);
}

/* ---------- Forms ---------- */
.form-control {
  border-radius: var(--radius-sm);
  border-color: var(--c-line);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-control:focus {
  box-shadow: 0 0 0 4px rgba(209, 128, 63, 0.15) !important;
}
#contact .gtco-contact-info {
  background: #f7f8fa;
  border-radius: var(--radius-lg);
  padding: 34px;
}

/* ---------- Footer (modern, dark, multi-column) ---------- */
#gtco-footer {
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 4.5em 0 0 0;
}
#gtco-footer .footer-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 3em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#gtco-footer .footer-col {
  flex: 1 1 220px;
  min-width: 200px;
}
#gtco-footer .footer-col img.footer-logo {
  background: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  max-width: 200px;
}
#gtco-footer .footer-col p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.8;
}
#gtco-footer .footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
#gtco-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#gtco-footer .footer-col ul li {
  margin-bottom: 10px;
}
#gtco-footer .footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
#gtco-footer .footer-col ul li a:hover {
  color: var(--c-primary);
  padding-left: 4px;
}
#gtco-footer .gtco-social-icons li a {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 8px 0 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
#gtco-footer .gtco-social-icons li a:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
}
#gtco-footer .copyright {
  padding: 22px 0;
}
#gtco-footer .copyright small {
  color: rgba(255, 255, 255, 0.4);
}
#gtco-footer .copyright a {
  color: rgba(255, 255, 255, 0.6);
}
#gtco-footer .copyright a:hover { color: var(--c-primary); }

/* ---------- Go to top ---------- */
.gototop a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.gototop a i { height: 42px; }

/* ---------- Tabs ---------- */
.gtco-tabs .gtco-tab-nav {
  border-radius: 100px;
  padding: 6px;
}
.gtco-tabs .gtco-tab-nav li a {
  border-radius: 100px;
}
.gtco-tabs .gtco-tab-nav li.active a {
  box-shadow: var(--shadow-sm);
}

@media screen and (max-width: 768px) {
  #gtco-footer .footer-modern { flex-direction: column; gap: 28px; }
}
