:root {
  --brand: #f05d22;
  --brand-light: #ff8a4c;
  --surface: #202020;
  --surface-raised: #2a2a2a;
  --text: #f3f3f3;
  --muted: #c9c9c9;
  --line: rgba(255, 255, 255, .14);
  --shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  background: #161616 !important;
  color: var(--text) !important;
  font-family: Raleway, Helvetica, Arial, sans-serif !important;
  line-height: 1.7;
}

body > .container-fluid:first-child {
  background: linear-gradient(135deg, #1f1f1f, #101010);
  border-bottom: 1px solid var(--line);
}

body > .container-fluid:first-child .row {
  min-height: 104px;
  padding: 1.25rem 0 !important;
}

body > .container-fluid:first-child picture img {
  width: min(190px, 100%);
  height: auto;
  transition: transform .25s ease, filter .25s ease;
}

body > .container-fluid:first-child a:hover picture img {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

body > .container-fluid:first-child a:not(:has(picture)) {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  transition: color .2s ease;
}

body > .container-fluid:first-child a:not(:has(picture)):hover { color: var(--brand-light); }

nav.navbar {
  background: linear-gradient(90deg, #e8521c, var(--brand)) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

nav.navbar .container { min-height: 58px; }

.navbar-light .navbar-nav .nav-link {
  border-radius: .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin: .3rem .1rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  background: rgba(19, 19, 19, .88) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.dropdown-menu {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: .5rem !important;
  box-shadow: var(--shadow) !important;
  padding: .45rem;
}

.dropdown-menu .dropdown-item {
  border-radius: .35rem;
  font-size: .82rem;
  padding: .55rem .75rem;
}

body > .container-fluid[style*="background"] > .container {
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
}

body > .container-fluid[style*="showcase"] .col-12[style*="background"] {
  backdrop-filter: blur(5px);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow);
  margin: 0 !important;
  padding: clamp(1.5rem, 3vw, 2.5rem) !important;
}

body > .container-fluid[style*="showcase"] h1 {
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.15;
  margin: 0;
}

body > .container.py-5,
.banner {
  padding-top: clamp(3.5rem, 7vw, 6.5rem) !important;
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem) !important;
}

body > .container.py-5 > .row,
.banner > .row {
  row-gap: 2rem;
}

p { color: var(--muted); }

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 750;
  letter-spacing: .015em;
  line-height: 1.2;
}

h2.text-warning, h3.text-primary { color: var(--brand-light) !important; }

hr {
  background: linear-gradient(90deg, var(--brand), transparent) !important;
  border: 0;
  height: 2px !important;
  opacity: 1;
}

a {
  color: var(--brand-light);
  text-underline-offset: .18em;
}

a:hover { color: #fff; }

.list-group {
  border-radius: .6rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.list-group .list-group-item {
  border-color: var(--line);
  padding: .9rem 1rem;
  transition: background-color .2s ease, padding-left .2s ease;
}

.list-group .list-group-item:hover { padding-left: 1.25rem; }

.img-fluid {
  border-radius: .55rem;
  box-shadow: var(--shadow);
}

.banner > .row > [class*="col-"] > .list-unstyled {
  border-color: rgba(240, 93, 34, .75) !important;
  line-height: 1.75;
  margin-bottom: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

.contact-info-panel {
  background: linear-gradient(155deg, rgba(42, 42, 42, .96), rgba(25, 25, 25, .96));
  border: 1px solid var(--line);
  border-radius: .7rem;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-info-panel h2 { margin-bottom: 1.25rem; }

#contacto-form {
  background: rgba(22, 22, 22, .88);
  border: 1px solid var(--line);
  border-radius: .7rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(1.25rem, 3vw, 2rem);
}

#contacto-form .contact-form-heading,
#contacto-form > .mb-3:nth-of-type(4),
#contacto-form > .mb-3:nth-of-type(5),
#contacto-form .contact-form-actions,
#contacto-form #contacto-status,
#contacto-form > p { grid-column: 1 / -1; }

#contacto-form .contact-form-heading { margin-bottom: .35rem; }

#contacto-form .contact-form-heading h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 .35rem;
}

#contacto-form .contact-form-heading p { margin: 0; }

#contacto-form > .mb-3 { margin: 0 !important; }

#contacto-form .form-control {
  background: rgba(255, 255, 255, .97);
  border: 1px solid transparent;
  border-radius: .4rem;
  box-shadow: none;
  min-height: 46px;
}

#contacto-form .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(240, 93, 34, .2);
}

#contacto-form textarea.form-control {
  min-height: 190px;
  padding-top: .8rem;
  resize: vertical;
}

#contacto-form .btn-primary {
  background: var(--brand) !important;
  border-radius: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: 0;
  padding: .85rem 1.35rem;
  transition: background-color .2s ease, transform .2s ease;
}

#contacto-form .btn-primary:hover:not(:disabled) {
  background: var(--brand-light) !important;
  transform: translateY(-2px);
}

#contacto-form .contact-form-actions {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem !important;
  padding-top: 1.5rem;
}

#contacto-form .small { font-size: .72rem; line-height: 1.45; margin: .25rem 0 0; }
#contacto-form .contact-honeypot { display: none !important; }

body > .container-fluid > hr + .container {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

body > .container-fluid > hr + .container > .row { row-gap: 2rem; }

body > .container-fluid > hr + .container h4 {
  font-size: .9rem;
  letter-spacing: .08em;
}

body > .container-fluid > hr + .container .list-unstyled li { margin-bottom: .45rem; }

@media (max-width: 991.98px) {
  nav.navbar .container { padding: .35rem .75rem; }
  .navbar-light .navbar-nav .nav-link { margin: .1rem 0; }
  .navbar-toggler { background: rgba(255, 255, 255, .82); }
}

@media (max-width: 767.98px) {
  body > .container-fluid:first-child .row { min-height: 88px; }
  body > .container-fluid:first-child .row > .col:nth-child(2) { display: none; }
  body > .container-fluid:first-child .row > .col { flex: 0 0 50%; }
  body > .container-fluid[style*="showcase"] h1 { font-size: 2rem; }
  .banner { padding-left: .75rem !important; padding-right: .75rem !important; }
  #contacto-form { grid-template-columns: 1fr; }
  #contacto-form > .mb-3 { grid-column: 1 / -1; }
  #contacto-form .contact-form-actions .btn { width: 100%; }
}
