:root {
  color-scheme: dark;
  --bg: #0f1117;
  --surface: #161b28;
  --surface-soft: #1f2534;
  --text: #f6f7fb;
  --muted: #aab2c9;
  --accent: #f5a623;
  --accent-soft: #f7d5a3;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 24px;
  font-family: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #271e47 0%, #0f1117 52%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

/* Clases para ajustar tamaño de imágenes */
.img-small {
  width: 150px;
  height: auto;
}

.img-medium {
  width: 300px;
  height: auto;
}

.img-large {
  width: 400px;
  height: auto;
}

.img-full {
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(15, 17, 23, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav-menu.menu-open {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .nav-menu {
    display: none;
    width: 100%;
    background: rgba(15, 17, 23, 0.96);
    padding: 1rem 0;
    border-radius: 20px;
  }

  .nav-menu.menu-open {
    display: grid;
  }

  .nav-menu a {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
  }

  .nav-menu a:hover {
    color: var(--text);
  }

  .menu-toggle {
    display: block;
    font-size: 1.6rem;
    color: var(--text);
    background: transparent;
  }

  .hero {
    padding-top: 3rem;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 0.95;
  margin: 0;
}

.hero p {
  max-width: 42rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 1.5rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.open-advisor {
  cursor: pointer;
}

.about-image.open-advisor img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-image {
  display: grid;
  place-items: center;
}

.hero-carousel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.carousel-image {
  position: absolute;
  width: 100%;
  height: 600px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  border-radius: 32px;
}

.carousel-image.active {
  position: relative;
  opacity: 1;
}

.carousel-indicators {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.indicator:hover {
  transform: scale(1.2);
}

.indicator.active {
  background: var(--accent);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.screen-hidden {
  display: none;
}

.catalog-screen {
  padding: 3rem 0;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-group {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.form-select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  appearance: none;
}

.form-select:focus {
  outline: 2px solid rgba(245, 166, 35, 0.35);
  border-color: var(--accent);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.catalog-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.catalog-card img {
  width: 100%;
  height: auto;
  display: block;
}

.catalog-card h3 {
  margin: 1rem;
  font-size: 1.2rem;
}

.catalog-card p {
  margin: 0 1rem 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.catalog-price {
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 900px) {
  .catalog-filters,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
}

.services,
.collection,
.about,
.contact {
  padding: 3rem 0;
}

.service-grid,
.gallery-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.advisor-card {
  grid-column: 2 / span 2;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

.service-card,
.gallery-card,
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.service-card h3,
.gallery-card h3,
.contact-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.service-card p,
.gallery-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  margin-bottom: 1rem;
  background: #1c2332;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.about-content ul {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.advisor-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 12, 17, 0.95);
  padding: 2rem;
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.advisor-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.advisor-shell {
  width: min(960px, 100%);
  max-height: min(92vh, 1100px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(23, 27, 40, 0.98), rgba(12, 13, 18, 0.98));
  border: 1px solid rgba(245, 166, 35, 0.12);
  border-radius: 32px;
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.45);
  padding: 2.5rem;
  position: relative;
  animation: fadeIn 0.45s ease both;
}

.advisor-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 24, 35, 0.88);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.advisor-header {
  text-align: center;
  margin-bottom: 2rem;
}

.advisor-header h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 2.6vw, 2.8rem);
}

.advisor-subtitle {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.advisor-progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.8rem;
}

.advisor-progress {
  display: block;
  width: 14.285%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fdd77f);
  transition: width 0.35s ease;
}

.advisor-step {
  display: none;
  gap: 1rem;
}

.advisor-step.active {
  display: grid;
}

.step-label {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.advisor-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.advisor-option {
  padding: 1rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

.advisor-option:hover,
.advisor-option.selected {
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.3);
  transform: translateY(-1px);
}

.advisor-field-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.advisor-slider-wrap {
  display: grid;
  gap: 1rem;
}

#advisorBudget {
  width: 100%;
}

#advisorBudgetValue {
  display: inline-flex;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--accent);
  font-weight: 700;
}

#advisorDescription {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  resize: vertical;
}

.advisor-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.advisor-result {
  margin-top: 1.8rem;
}

.advisor-result-card {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 166, 35, 0.12);
}

.advisor-result-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.advisor-result-text {
  margin-top: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}

.advisor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.advisor-result.hidden,
.advisor-modal.hidden {
  display: none;
}

.no-scroll {
  overflow: hidden;
}

.advisor-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.advisor-product-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 166, 35, 0.12);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.advisor-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.advisor-product-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2534 0%, #14182f 100%);
}

.advisor-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.advisor-product-card:hover .advisor-product-image img {
  transform: scale(1.08);
}

.advisor-product-info {
  padding: 1.5rem;
}

.advisor-product-info h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.advisor-product-desc {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.advisor-product-price {
  margin: 1rem 0 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.advisor-reserve {
  width: 100%;
  padding: 0.8rem;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes slideInStagger {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .advisor-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advisor-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advisor-shell {
    max-height: 95vh;
    padding: 1.8rem;
  }
}

@media (max-width: 700px) {
  .advisor-collection-grid {
    grid-template-columns: 1fr;
  }

  .advisor-options-grid {
    grid-template-columns: 1fr;
  }

  .advisor-navigation {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advisor-card {
    grid-column: 1 / span 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-menu {
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .advisor-card {
    grid-column: auto;
    max-width: 100%;
  }

  .hero {
    padding-top: 3rem;
  }
}
