:root {
  --ortodex-success: #2f6f57;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0 !important;
  box-shadow: none;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-navbar .navbar-brand {
  color: #ffffff;
  letter-spacing: 0.03em;
}

.site-navbar .navbar-brand:hover,
.site-navbar .navbar-brand:focus {
  color: #ffffff;
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.14);
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}

.site-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.site-navbar .nav-link {
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  text-shadow: 0 1px 2px rgba(9, 20, 39, 0.45);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, padding 0.25s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #12366a;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.site-navbar .nav-link.active {
  color: #12366a;
  background-color: #ffffff;
}

.site-navbar.is-compact {
  background: linear-gradient(90deg, rgba(36, 79, 143, 0.97), rgba(106, 149, 217, 0.97));
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 18px rgba(12, 25, 49, 0.32);
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

body.no-hero-page {
  padding-top: 82px;
}

.site-navbar.is-compact .nav-link {
  padding: 0.3rem 0.75rem;
  text-shadow: none;
}

.hero-fullscreen {
  min-height: 100vh;
  background-image: url("../img/hero-dormitorio-moderno.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  background: linear-gradient(120deg, rgba(10, 20, 35, 0.55), rgba(47, 111, 87, 0.35));
}

.hero-content {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-logo {
  width: clamp(180px, 24vw, 320px);
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.navbar-brand {
  letter-spacing: 0.03em;
}

.section-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12) !important;
}

.section-image {
  height: 240px;
  object-fit: cover;
}

.contact-footer {
  background: linear-gradient(135deg, #244f8f 0%, #6a95d9 45%, #9fc0f0 100%);
}

.contact-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(17, 38, 72, 0.22);
  backdrop-filter: blur(3px);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(17, 38, 72, 0.28);
}

.contact-icon {
  width: 86px;
  height: 86px;
  color: #4d7fcb;
  background-color: rgba(106, 149, 217, 0.14);
  border: 2px solid rgba(106, 149, 217, 0.34);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.contact-icon svg {
  width: 44px;
  height: 44px;
}

.contact-icon--whatsapp {
  color: #ffffff;
  background-color: #25d366;
  border-color: rgba(18, 140, 126, 0.45);
}

.contact-icon--whatsapp svg {
  width: 44px;
  height: 44px;
}

.contact-whatsapp-note {
  color: #5a6578;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-card .contact-whatsapp-btn {
  background-color: #25d366;
  border: 1px solid rgba(18, 140, 126, 0.55);
  color: #fff;
  box-shadow: 0 6px 16px rgba(18, 140, 126, 0.28);
  padding-inline: 1.5rem;
}

.contact-card .contact-whatsapp-btn:hover {
  background-color: #20bd5a;
  border-color: #128c7e;
  color: #fff;
}

.contact-card .contact-whatsapp-btn:focus-visible {
  background-color: #25d366;
  color: #fff;
  outline: 3px solid rgba(37, 211, 102, 0.55);
  outline-offset: 3px;
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.contact-link {
  color: #3669b8;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  color: #234b88;
}

.contact-footer .text-secondary {
  color: rgba(255, 255, 255, 0.92) !important;
}

.btn-success {
  background-color: var(--ortodex-success);
  border-color: var(--ortodex-success);
}

.btn-success:hover,
.btn-success:focus {
  background-color: #245844;
  border-color: #245844;
}

.btn-outline-success {
  color: var(--ortodex-success);
  border-color: var(--ortodex-success);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background-color: var(--ortodex-success);
  border-color: var(--ortodex-success);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  width: min(460px, calc(100vw - 2rem));
  background: linear-gradient(135deg, rgba(21, 51, 96, 0.97), rgba(36, 79, 143, 0.97));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 20px 38px rgba(8, 18, 38, 0.38);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.cookie-banner__content {
  padding: 1rem;
}

.cookie-banner__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.cookie-banner__text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cookie-banner__config {
  margin: 0 0 0.8rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.11);
}

.cookie-banner__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.cookie-banner__check:last-child {
  margin-bottom: 0;
}

.site-footer-corporate {
  border-top: 1px solid rgba(36, 79, 143, 0.16);
  background-color: #f7f9fc;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: 0.65rem 1rem;
}

.footer-links a {
  color: #244f8f;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #12366a;
  text-decoration: underline;
}

@media screen and (max-width: 991.98px) {
  .site-navbar .navbar-nav {
    margin-top: 0.75rem;
    gap: 0.35rem;
    background-color: rgba(10, 32, 67, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.65rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

@media screen and (min-width: 992px) {
  .footer-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.35rem;
  }
}

.back-to-top {
  --back-to-top-size: 3rem;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1180;
  width: var(--back-to-top-size);
  height: var(--back-to-top-size);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ortodex-success), #245844);
  color: #fff;
  box-shadow: 0 8px 22px rgba(12, 25, 49, 0.38);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease,
    box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 12px 28px rgba(12, 25, 49, 0.45);
  color: #fff;
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(106, 149, 217, 0.95);
  outline-offset: 3px;
}

@media screen and (max-width: 991.98px) {
  .back-to-top {
    bottom: 5.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
