:root {
  --orange-wheel: #f58634;
  --fire: #b44404;
  --shark: #1d2023;
  --outer-space: #30383f;
  --river-bed: #4a5c64;
  --walnut: #73441c;
  --iroko: #493624;
  --birch: #362b1e;
  --bs-primary: #b44404;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(180, 68, 4, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 134, 52, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(115, 68, 28, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 90%, rgba(73, 54, 36, 0.1) 0%, transparent 40%),
    linear-gradient(135deg, #faf8f6 0%, #f5f0eb 40%, #faf8f6 100%);
  background-attachment: fixed;
}

/* ===== Typography ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 {
  color: var(--fire);
  font-size: 3.5em;
  font-weight: 700;
}

h2 {
  color: var(--fire);
  font-size: 3.5em;
  font-weight: 700;
}

h3 {
  font-size: 1.8em;
  font-weight: 700;
}

/* ===== Navbar ===== */

#nav {
  background: transparent !important;
  transition: background var(--transition-smooth),
              backdrop-filter var(--transition-smooth),
              box-shadow var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(180, 68, 4, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#nav a {
  color: aliceblue !important;
}

.navbar-brand {
  font-size: 1.4em;
  letter-spacing: 1px;
}

.navbar-toggler-icon {
  color: aliceblue !important;
  border-color: aliceblue !important;
}

#menubtn {
  color: aliceblue;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1em;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

#nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--orange-wheel);
  transition: width var(--transition-smooth), left var(--transition-smooth);
}

#nav .nav-link:hover::after,
#nav .nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Navbar social icons */
.navbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  transition: background var(--transition-smooth),
              transform var(--transition-smooth);
  text-decoration: none;
  font-size: 0.9em;
}

.navbar-social a:hover {
  background: var(--orange-wheel);
  transform: scale(1.1);
}

/* ===== Hero ===== */

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 0;
}

.hero-banner .container {
  position: relative;
  z-index: 1;
}

.hero-banner .container .row .col-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ===== Logo / Atropos ===== */

#logo {
  opacity: 1;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#logo .atropos-scale,
#logo .atropos-rotate,
#logo .atropos-inner {
  overflow: visible;
}

.atropos-inner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* ===== Sections ===== */

.section-bg {
  background-image: url("/assets/img/back_white.png");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#section2 {
  padding: 100px 0 60px;
}

#section3 {
  padding: 100px 0 60px;
}

#section4 {
  padding: 100px 0 60px;
}

#contacto {
  padding: 80px 0 60px;
}

/* ===== Glassmorphism ===== */

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Cards ===== */

.card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.card .card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--fire);
}

.list-service-item {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  font-size: 0.9em;
  color: #555;
}

.list-service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-wheel);
}

/* ===== Carousel ===== */

.carousel-fixed-height .carousel-item {
  height: 500px;
  background-color: #f0f0f0;
}

.carousel-fixed-height .carousel-item img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== Buttons ===== */

.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95em;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-smooth);
}

.btn-custom-primary {
  background: linear-gradient(135deg, var(--fire), var(--orange-wheel));
  color: #fff;
  border: none;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(180, 68, 4, 0.3);
}

.btn-custom-primary:hover {
  background: linear-gradient(135deg, var(--orange-wheel), var(--fire));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 68, 4, 0.45);
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #f58634;
  --bs-btn-hover-border-color: var(--bs-primary);
}

/* ===== Social CTA ===== */

.social-cta {
  background: linear-gradient(135deg, var(--fire), var(--orange-wheel));
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(180, 68, 4, 0.25);
}

.social-cta h3 {
  color: #fff;
}

.social-cta .lead {
  color: rgba(255, 255, 255, 0.9);
}

.btn-social {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-social:hover {
  background: #fff;
  color: var(--fire);
  border-color: #fff;
}

/* ===== Form ===== */

.form-control {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
  background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
  border-color: var(--fire);
  box-shadow: 0 0 0 3px rgba(180, 68, 4, 0.15);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
}

/* ===== Footer ===== */

.footer {
  background: var(--shark);
  color: rgba(255, 255, 255, 0.8);
}

.footer h5 {
  color: var(--orange-wheel);
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.footer a:hover {
  color: var(--orange-wheel);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-social a {
  display: inline-block;
  padding: 4px 0;
}

/* ===== Message alerts ===== */

.message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  animation: slideDown 0.4s ease-out;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== Responsive ===== */

@media (max-width: 767.98px) {
  .atropos {
    max-height: 200px;
  }

  .hero-banner .background-video {
    display: none;
  }

  .hero-banner {
    background-image: url('/assets/img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .video-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }

  h1 {
    font-size: 2.2em;
  }

  .carousel-fixed-height .carousel-item {
    height: 300px;
  }

  #section2,
  #section3,
  #section4 {
    padding: 60px 0 40px;
  }
}

@media (max-width: 599px) {
  #logo {
    width: 300px;
    height: auto;
  }
}

@media (min-width: 1400px) {
  #logo {
    height: 500px;
    width: auto;
  }
}
