:root {
  --accent: #2c7a7b;
  --accent-2: #f4a261;
  --bg: #0f172a;
  --sand: #f5efe6;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea453;
}

body {
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.navbar-nav .nav-link {
  color: #0f172a;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--accent);
}

.lang-toggle .dropdown-toggle {
  min-width: 86px;
  padding: 0.25rem 0.6rem;
  font-size: 0.875rem;
  border-color: #cbd5e1;
  color: #0f172a;
}

.lang-toggle .dropdown-toggle:focus,
.lang-toggle .dropdown-toggle.show {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.12rem rgba(44, 122, 123, 0.2);
}

.lang-toggle .dropdown-menu {
  min-width: 7.5rem;
}

.lang-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.brand-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.hero {
  min-height: 80vh;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.82), rgba(44, 122, 123, 0.55)),
    url("../images/Lobby.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0;
}

.hero .eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-meta .badge {
  padding: 0.75rem 1rem;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: #236468;
  border-color: #236468;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section-heading .eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.section-heading h2 {
  margin-bottom: 0.4rem;
}

.card {
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

#servicios .card {
  border: 1px solid var(--accent);
}

.product-img {
  display: block;
  width: 100%;
  height: clamp(220px, 24vw, 280px);
  object-fit: cover;
  object-position: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.product-sale-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-sale-media {
  position: relative;
}

.product-sale-img {
  width: 100%;
  height: clamp(220px, 26vw, 300px);
  object-fit: cover;
  display: block;
}

.product-sale-price {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.product-sale-body {
  padding: 1rem 1.1rem 1.25rem;
}

.product-sale-text {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
}

.textil-card {
  display: flex;
  align-items: stretch;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.textil-media {
  flex: 0 0 50%;
  min-height: 240px;
  background: #0f172a;
}

.textil-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.textil-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-left: 1px solid #e2e8f0;
}

.textil-caption {
  position: static;
  padding: 0;
  color: #0f172a;
}

.textil-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.textil-desc {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: #475569;
}

.textil-products {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.75rem 0.75rem 0.85rem;
  background: #fff;
}

.textil-products-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.textil-products-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.textil-product-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.1rem 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.textil-product-option input {
  margin: 0.1rem 0 0;
  accent-color: var(--accent);
}

.textil-product-option:hover,
.textil-product-option:focus-within {
  color: var(--accent);
}

.textil-product-option span {
  line-height: 1.25;
}

.textil-page .textil-float-btn {
  position: fixed;
  left: 50%;
  bottom: 6rem;
  transform: translateX(-50%);
  z-index: 1040;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.contact-card {
  border: 1px solid var(--accent);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  background: #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.gallery-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-item img {
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-modal .modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3.5rem;
}

.gallery-modal .modal-backdrop {
  background-color: rgba(10, 15, 28, 0.92);
}

.modal-backdrop.show {
  opacity: 1;
}

.gallery-figure {
  margin: 0;
  text-align: center;
}

.gallery-modal-img {
  width: 100%;
  max-height: 80vh;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #0f172a;
}

.gallery-modal-caption {
  margin-top: 0.75rem;
  color: #f8fafc;
  font-size: 0.95rem;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background: rgba(15, 23, 42, 0.85);
}

.gallery-prev {
  left: 0.75rem;
}

.gallery-next {
  right: 0.75rem;
}

.gallery-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}

@media (max-width: 575.98px) {
  .gallery-modal .modal-body {
    padding: 1rem 2.5rem;
  }

  .gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}

footer {
  background: #f8fafc;
}

.text-balance {
  text-wrap: balance;
}

.dev-credit {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.dev-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  z-index: 1030;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: var(--whatsapp-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35);
  outline-offset: 3px;
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  display: block;
}

@media (max-width: 575px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 1rem;
    bottom: 1rem;
  }
}

@keyframes serviceFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 162, 97, 0.22), transparent 55%),
    radial-gradient(circle at 82% 8%, rgba(44, 122, 123, 0.2), transparent 50%),
    linear-gradient(120deg, rgba(44, 122, 123, 0.12), rgba(15, 23, 42, 0.08)),
    #f8fafc;
  overflow: hidden;
}

.service-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(44, 122, 123, 0.18) 2px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.45;
  pointer-events: none;
}

.service-hero .eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.service-hero-text {
  position: relative;
  z-index: 1;
}

.service-hero-text > * {
  animation: serviceFadeUp 0.6s ease both;
}

.service-hero-text > *:nth-child(1) {
  animation-delay: 0.05s;
}

.service-hero-text > *:nth-child(2) {
  animation-delay: 0.12s;
}

.service-hero-text > *:nth-child(3) {
  animation-delay: 0.18s;
}

.service-hero-text > *:nth-child(4) {
  animation-delay: 0.24s;
}

.service-hero-meta .badge {
  padding: 0.55rem 0.95rem;
}

.service-hero-media {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  animation: serviceFadeUp 0.7s ease 0.18s both;
}

.service-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.service-hero .lead {
  max-width: 560px;
  margin: 0.75rem 0 0;
}

.service-content {
  padding: 3.5rem 0 3.5rem;
  background: #fff;
}

.service-content p {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  color: #334155;
}

.service-story {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 2.75rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  animation: serviceFadeUp 0.6s ease 0.1s both;
}

.service-story p {
  max-width: none;
  margin: 0 0 1.25rem;
  position: relative;
  padding-left: 1.6rem;
}

.service-story p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(44, 122, 123, 0.14);
}

.service-story p:last-child {
  margin-bottom: 0;
}

.service-cta {
  position: relative;
  padding: 4rem 0 4.5rem;
  background:
    radial-gradient(circle at 12% 80%, rgba(44, 122, 123, 0.14), transparent 55%),
    linear-gradient(120deg, rgba(44, 122, 123, 0.08), rgba(15, 23, 42, 0.06));
  overflow: hidden;
}

.service-cta::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -140px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.18) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.35;
  pointer-events: none;
}

.service-cta .cta-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(44, 122, 123, 0.2);
  background: #fff;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: serviceFadeUp 0.6s ease 0.1s both;
}

@media (prefers-reduced-motion: reduce) {
  .service-hero-text > *,
  .service-hero-media,
  .service-story,
  .service-cta .cta-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
