:root {
  --color-primary: #1a2fcc;
  --color-primary-dark: #13208c;
  --color-accent: #d6cabc;
  --color-bg: #f5f2eb;
  --color-surface: #ffffff;
  --color-text: #151515;
  --color-muted: #5f6470;
  --border: #e7e2da;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
  --radius: 18px;
  --max-width: 1180px;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: linear-gradient(180deg, #fcfbf8 0%, var(--color-bg) 100%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 12px 24px rgba(26, 47, 204, 0.2);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: white;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.navbar__brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.navbar__links a {
  color: var(--color-muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0.2rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero__copy h1,
.section-heading h2,
.about-preview h2,
.section-title,
.page-title {
  font-family: var(--font-display);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-align: center;
}

.hero__copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero__copy p,
.about-preview p,
.feature-card p,
.catalog-card p,
.gallery-card p,
.contact-card p,
.page-intro,
.info-card p,
.form-note {
  color: var(--color-muted);
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero__media img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.section {
  padding: 3rem 0;
}

.section--light {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading,
.about-preview,
.page-header {
  margin-bottom: 1.8rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(26, 47, 204, 0.1);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 280px));
  gap: 1.2rem;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
  max-width: 900px;
}

.feature-card,
.catalog-card,
.info-card,
.contact-card,
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.gallery-card,
.catalog-card {
  box-shadow: var(--shadow);
}

.feature-card h3,
.catalog-card h3,
.info-card h3,
.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.about-preview {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.stats-grid {
  display: grid;
  gap: 1rem;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.filter-btn {
  border: 1px solid var(--border);
  background: white;
  color: var(--color-muted);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.catalog-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  justify-items: center;
  justify-content: center;
}

.catalog-grid > .catalog-card {
  width: 100%;
  max-width: 720px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.catalog-card img,
.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
}

.prototype-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.prototype-images img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}

.catalog-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 26, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 220;
}

.catalog-lightbox.is-open {
  display: flex;
}

.catalog-lightbox__content {
  position: relative;
  max-width: 920px;
  width: 100%;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25);
}

.catalog-lightbox__image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #05081a;
}

.catalog-lightbox__nav,
.catalog-lightbox__close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

.catalog-lightbox__nav--prev {
  left: 1rem;
}

.catalog-lightbox__nav--next {
  right: 1rem;
}

.catalog-lightbox__close {
  top: 1rem;
  right: 1rem;
  transform: none;
  font-size: 1.4rem;
}

.catalog-lightbox__caption {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.catalog-expand {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  background: #fcfbf8;
}

.catalog-expand summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  list-style: none;
}

.catalog-expand summary::-webkit-details-marker {
  display: none;
}

.prototype-images--extra {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.catalog-card .tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #3d3429;
  font-size: 0.8rem;
  font-weight: 700;
}

.gallery-grid--single {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
  margin: 0 auto;
  justify-content: center;
}

.gallery-card {
  border: 1px solid var(--border);
  padding: 0.8rem;
  text-align: left;
  background: var(--color-surface);
  cursor: pointer;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card--hidden {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(16, 24, 40, 0.14);
}

.gallery-card img {
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-card figcaption {
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--color-text);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 26, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 200;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25);
}

.lightbox__content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #05081a;
}

.lightbox__nav,
.lightbox__close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  transform: none;
}

.lightbox__caption {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Modal: Litografía */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 26, 0.6);
  z-index: 250;
  padding: 1.5rem;
}
.modal.is-open {
  display: flex;
}
.modal__content {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 1.4rem;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 26px 60px rgba(0,0,0,0.25);
}
.modal__content h2 {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: rgba(0,0,0,0.55);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

.litografia-body {
  display: block;
}
.litografia-body p {
  margin: 0;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .litografia-body {
    display: block;
  }
}

/* Ocultar la etiqueta 'Litografía' en los placeholders específicos */
.catalog-card[data-category="litografia"] .tag {
  display: none;
}

/* Quitar marco del panel expandible sólo en la tarjeta Modelado */
.catalog-card[data-category="decorative"] .catalog-expand {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* Hacer que la imagen del placeholder Litografía ocupe todo el ancho de la tarjeta */
.catalog-card[data-category="litografia"] .prototype-images img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

/* Quitar marco (borde y sombra) sólo para la tarjeta Modelado (categoria decorative) */


.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: #fcfbf8;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.is-success {
  color: #137a2d;
}

.form-status.is-error {
  color: #b42318;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 18px;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  overflow: hidden;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
}

.footer {
  margin-top: auto;
  padding: 1.4rem 0 2rem;
  color: var(--color-muted);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.footer__links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero__content,
  .about-preview,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .catalog-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .navbar__links {
    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .navbar__links.is-open {
    display: flex;
  }

  .navbar__inner .btn--primary {
    display: none;
  }

  .cards-grid,
  .catalog-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
  }
}
