:root {
  --primary: hsl(199 68% 42%);
  --secondary: hsl(316 55% 36%);
  --accent: hsl(39 80% 58%);
  --bg: hsl(199 25% 97%);
  --text: hsl(0 0% 10%);
  --muted: hsl(212 18% 38%);
  --line: hsla(0 0% 100% / 0.32);
  --glass: rgba(255, 255, 255, 0.58);
  --shadow: 0 24px 48px rgba(13, 47, 78, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 192, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(181, 64, 152, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 251, 1));
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-frame {
  position: relative;
  z-index: 1;
}

.aurora {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
}

.aurora-a {
  top: -6rem;
  left: -8rem;
  background: rgba(29, 165, 227, 0.42);
}

.aurora-b {
  top: 10rem;
  right: -8rem;
  background: rgba(163, 63, 147, 0.28);
}

.site-header,
.site-footer,
main,
.cookie-banner,
.chatbot-panel {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  padding: 1rem 0 0.5rem;
}

.topline,
.nav-shell,
.footer-grid,
.social-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(213, 240, 247, 0.46));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: calc(var(--radius) + 6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 12px 24px rgba(0, 74, 114, 0.24);
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small,
.micro-link,
.caption,
.support-text,
.footer-note,
.results-note {
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.micro-link {
  font-weight: 700;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: calc(var(--radius) + 10px);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  gap: 0.22rem;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span:not(.sr-only) {
  width: 1.4rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  display: block;
}

.global-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.global-search input,
.catalog-tools input,
.catalog-tools select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(41, 88, 112, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 0.8rem 0.9rem;
}

.global-search button,
.button,
.float-btn,
.chatbot-options button,
.lightbox-close,
.gallery-trigger,
.cookie-actions button {
  border: 0;
  cursor: pointer;
}

.global-search button,
.button {
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 14px 28px rgba(0, 80, 122, 0.22);
}

.button.ghost,
.cookie-actions .ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border: 1px solid rgba(47, 91, 118, 0.18);
  box-shadow: none;
}

main {
  padding: 1.35rem 0 4.5rem;
}

.hero,
.page-hero,
.section-block,
.catalog-tools,
.gallery-grid,
.blog-grid,
.contact-grid,
.legal-shell,
.article-shell,
.gallery-highlight {
  margin-top: 1.25rem;
}

.hero {
  padding-top: 1rem;
}

.hero-copy,
.page-hero,
.glass-card,
.price-card,
.service-card,
.step-card,
.info-panel,
.catalog-card,
.blog-card,
.contact-card,
.legal-shell,
.article-shell,
.gallery-card,
.social-wrap,
.cookie-banner,
.chatbot-panel,
.callout,
.table-wrap {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(224, 241, 248, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy,
.page-hero,
.legal-shell,
.article-shell {
  padding: clamp(1.2rem, 4vw, 2.25rem);
}

.hero h1,
.page-hero h1,
.article-shell h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.page-hero.small h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.lead {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 62ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.hero-facts,
.mini-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.4rem 0 0;
}

.hero-facts div,
.mini-meta div {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 84, 111, 0.1);
}

.hero-facts dt,
.mini-meta dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.hero-facts dd,
.mini-meta dd {
  margin: 0;
  font-weight: 800;
}

.hero-visual img,
.gallery-highlight img,
.article-shell img {
  width: 100%;
  border-radius: calc(var(--radius) + 14px);
  box-shadow: var(--shadow);
}

.caption {
  margin: 0.7rem 0 0;
  text-align: center;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2,
.legal-shell h2,
.article-shell h2,
.contact-card h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.mix-grid,
.price-grid,
.process-grid,
.coverage-grid,
.service-grid,
.catalog-grid,
.blog-grid,
.gallery-grid,
.faq-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.mix-grid,
.price-grid,
.coverage-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card,
.blog-card,
.catalog-card {
  overflow: hidden;
}

.service-card img,
.blog-card img,
.catalog-card img,
.gallery-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div,
.blog-card div,
.catalog-copy,
.gallery-card figcaption {
  padding: 1rem;
}

.step-card,
.price-card,
.glass-card,
.info-panel {
  padding: 1.1rem;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(30, 84, 111, 0.16);
}

.two-col,
.gallery-highlight {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item {
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(24, 92, 124, 0.12);
  border-radius: var(--radius);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.catalog-tools {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  align-items: end;
}

.catalog-tools label,
.contact-form label {
  font-weight: 800;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.tool-group {
  min-width: 0;
}

.results-note {
  align-self: center;
  margin: 0;
  font-weight: 700;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.catalog-card.is-hidden {
  display: none;
}

.contact-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.contact-form textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.form-status {
  min-height: 1.4rem;
  font-weight: 700;
}

.contact-card iframe {
  width: 100%;
  min-height: 290px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.article-shell {
  max-width: 820px;
}

.article-shell p,
.legal-shell p,
.legal-shell li,
.page-hero p,
.glass-card p,
.info-panel p,
.service-card p,
.blog-card p,
.catalog-copy p {
  line-height: 1.75;
}

.text-link {
  font-weight: 800;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.gallery-card {
  overflow: hidden;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
}

.lightbox {
  width: min(92vw, 980px);
  border: 0;
  border-radius: calc(var(--radius) + 10px);
  padding: 1rem;
  background: rgba(6, 19, 31, 0.92);
  color: white;
}

.lightbox::backdrop {
  background: rgba(6, 19, 31, 0.74);
}

.lightbox img {
  width: 100%;
  border-radius: var(--radius);
}

.lightbox-close {
  margin-left: auto;
  display: block;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 1.4rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
}

.site-footer {
  padding-bottom: 6rem;
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 1.2rem;
}

.footer-list,
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-nav a {
  width: fit-content;
}

.social-wrap {
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(30, 84, 111, 0.14);
}

.social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 30;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.cookie-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.floating-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.float-btn {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.float-btn.whatsapp {
  background: #26a96c;
}

.float-btn.phone {
  background: var(--primary);
}

.float-btn.chat {
  background: var(--secondary);
}

.chatbot-panel {
  position: fixed;
  right: 1rem;
  bottom: 14rem;
  max-width: 360px;
  z-index: 34;
  overflow: hidden;
}

.chatbot-head,
.chatbot-body {
  padding: 0.95rem 1rem;
}

.chatbot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.chatbot-close {
  background: transparent;
  color: inherit;
  font-size: 1.35rem;
}

.chatbot-options {
  display: grid;
  gap: 0.55rem;
}

.chatbot-options button {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(30, 84, 111, 0.12);
}

.chatbot-response {
  min-height: 5.6rem;
  margin: 0.85rem 0;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.chat-wa {
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
  padding: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(30, 84, 111, 0.12);
  vertical-align: top;
}

th {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-cumple {
  background: rgba(18, 140, 99, 0.12);
  color: #0c6848;
}

.status-conflicto {
  background: rgba(193, 107, 10, 0.14);
  color: #8f4a00;
}

.status-sustituido {
  background: rgba(105, 68, 164, 0.14);
  color: #56368a;
}

.callout {
  padding: 1rem;
  margin: 1rem 0;
}

.error-page {
  min-height: 55vh;
  display: grid;
  align-content: center;
  text-align: center;
}

@media (max-width: 940px) {
  .nav-shell {
    grid-template-columns: auto 1fr;
  }

  .global-search {
    grid-column: 1 / -1;
  }

  .contact-grid,
  .two-col,
  .gallery-highlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-top: 0.5rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-shell {
    grid-template-columns: auto 1fr;
  }

  .topline,
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-stack {
    right: 0.75rem;
  }

  .chatbot-panel {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 13.5rem;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  main,
  .cookie-banner,
  .chatbot-panel {
    width: min(calc(100% - 1rem), var(--max));
  }

  .hero h1,
  .page-hero h1 {
    line-height: 1.03;
  }

  .global-search {
    flex-direction: column;
    align-items: stretch;
  }

  .global-search button,
  .button {
    width: 100%;
  }

  .social-link span {
    display: none;
  }
}
