/* landing/assets/css/ramallo-landing.css - Identidad sobria ramallo.ar sobre Bootstrap 5.3 */

:root {
  --rm-accent: #00ADEF;
  --rm-accent-hover: #0284c7;
  --rm-accent-soft: rgba(0, 173, 239, 0.11);
  --rm-accent-border: rgba(0, 173, 239, 0.28);
  --rm-emerald: #10b981;
  --rm-emerald-hover: #059669;
  --rm-radius: 16px;
  --rm-radius-lg: 20px;
}

[data-bs-theme="light"] {
  --bs-body-bg: #f8fafc;
  --bs-body-color: #0f172a;
  --bs-secondary-color: #64748b;
  --bs-border-color: #e2e8f0;
  --rm-surface: #ffffff;
  --rm-surface-muted: #f1f5f9;
  --rm-nav-bg: rgba(255, 255, 255, 0.94);
  --rm-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-bs-theme="dark"] {
  --bs-body-bg: #0b1120;
  --bs-body-color: #f8fafc;
  --bs-secondary-color: #94a3b8;
  --bs-border-color: #1e293b;
  --rm-surface: #131d31;
  --rm-surface-muted: #0f172a;
  --rm-nav-bg: rgba(11, 17, 32, 0.94);
  --rm-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Barra superior de demo / vista previa */
.demo-toolbar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.8rem;
  border-bottom: 1px solid #1e293b;
}
.demo-toolbar .btn-demo {
  color: #cbd5e1;
  border: 1px solid #334155;
  background: transparent;
  font-size: 0.76rem;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.demo-toolbar .btn-demo:hover {
  border-color: #64748b;
  color: #ffffff;
}
.demo-toolbar .btn-demo.active {
  background: var(--rm-accent);
  border-color: var(--rm-accent);
  color: #ffffff;
  font-weight: 600;
}

/* Navbar principal */
.rm-navbar {
  background: var(--rm-nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bs-border-color);
  z-index: 30;
}
.rm-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rm-accent-soft);
  color: var(--rm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--rm-accent-border);
  overflow: hidden;
  flex-shrink: 0;
}
.rm-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rm-nav-link {
  color: var(--bs-secondary-color);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.38rem 0.6rem;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.rm-nav-link:hover {
  color: var(--bs-body-color);
  background: var(--rm-surface-muted);
}

/* Botones */
.btn-rm-primary {
  background-color: var(--rm-accent);
  border-color: var(--rm-accent);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.62rem 1.2rem;
}
.btn-rm-primary:hover {
  background-color: var(--rm-accent-hover);
  border-color: var(--rm-accent-hover);
  color: #ffffff;
}

.btn-rm-whatsapp {
  background-color: var(--rm-emerald);
  border-color: var(--rm-emerald);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.62rem 1.2rem;
}
.btn-rm-whatsapp:hover {
  background-color: var(--rm-emerald-hover);
  border-color: var(--rm-emerald-hover);
  color: #ffffff;
}

.btn-rm-secondary {
  background-color: var(--rm-surface);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  font-weight: 500;
  border-radius: 10px;
  padding: 0.62rem 1.1rem;
}
.btn-rm-secondary:hover {
  background-color: var(--rm-surface-muted);
  color: var(--bs-body-color);
}

/* Superficies y tipografía */
.rm-card {
  background-color: var(--rm-surface);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--rm-radius);
  box-shadow: var(--rm-shadow);
}
.rm-hero-title {
  font-size: clamp(1.95rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.rm-section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rm-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rm-accent);
}
.rm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--rm-emerald);
  display: inline-block;
}
.rm-status-dot.closed {
  background-color: #94a3b8;
}

.rm-hero-media {
  position: relative;
  border-radius: var(--rm-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  aspect-ratio: 4 / 3;
  background: var(--rm-surface-muted);
}
.rm-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rm-hero-media.rm-hero-fit-contain {
  aspect-ratio: auto;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rm-surface-muted);
}
.rm-hero-media.rm-hero-fit-contain img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

/* Franja de datos clave */
.rm-info-item {
  padding: 1rem 1.25rem;
}
.rm-info-label {
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.rm-info-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--bs-body-color);
}

/* Servicios */
.rm-service-row {
  padding: 1rem 1.15rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 14px;
  background: var(--rm-surface);
  transition: border-color 0.15s ease;
  height: 100%;
}
.rm-service-row:hover {
  border-color: var(--rm-accent-border);
}
.rm-service-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rm-accent-soft);
  color: var(--rm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Ofertas */
.rm-offer-card {
  background: var(--rm-surface);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.rm-offer-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 8px;
  background: var(--rm-accent-soft);
  color: var(--rm-accent);
  border: 1px solid var(--rm-accent-border);
  display: inline-block;
}
.rm-price-old {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--bs-secondary-color);
}
.rm-price-new {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bs-body-color);
}

/* Noticias */
.rm-news-card {
  background: var(--rm-surface);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.rm-news-img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: var(--rm-surface-muted);
}

/* Galería */
.rm-gallery-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--rm-surface-muted);
}
.rm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.rm-gallery-item:hover img {
  transform: scale(1.03);
}

/* FAQ */
.rm-accordion .accordion-item {
  background: var(--rm-surface);
  border: 1px solid var(--bs-border-color);
  border-radius: 14px !important;
  margin-bottom: 0.7rem;
  overflow: hidden;
  box-shadow: var(--rm-shadow);
}
.rm-accordion .accordion-button {
  background: var(--rm-surface);
  color: var(--bs-body-color);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 1rem 1.2rem;
  box-shadow: none;
}
.rm-accordion .accordion-button:not(.collapsed) {
  color: var(--rm-accent);
  background: var(--rm-surface);
  box-shadow: none;
}
.rm-accordion .accordion-body {
  padding: 0 1.2rem 1.05rem;
  line-height: 1.6;
}

/* Horarios y Mapa */
.rm-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--bs-border-color);
  font-size: 0.9rem;
  gap: 1rem;
}
.rm-hours-row:last-child {
  border-bottom: 0;
}
.rm-hours-row.today {
  font-weight: 700;
  color: var(--rm-accent);
}

#rm-map {
  width: 100%;
  height: 310px;
  border-radius: 14px;
  border: 1px solid var(--bs-border-color);
  z-index: 1;
}

/* Inputs */
.rm-input {
  background-color: var(--rm-surface-muted);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
}
.rm-input:focus {
  background-color: var(--rm-surface);
  border-color: var(--rm-accent);
  box-shadow: 0 0 0 3px var(--rm-accent-soft);
  color: var(--bs-body-color);
}

/* Menú / Carta digital */
.rm-menu-cat-btn {
  border: 1px solid var(--bs-border-color);
  background: var(--rm-surface);
  color: var(--bs-secondary-color);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.42rem 0.9rem;
  border-radius: 10px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.rm-menu-cat-btn:hover {
  color: var(--bs-body-color);
  border-color: var(--rm-accent-border);
}
.rm-menu-cat-btn.active {
  background: var(--rm-accent);
  border-color: var(--rm-accent);
  color: #ffffff;
}
.rm-menu-card {
  background: var(--rm-surface);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  padding: 1rem;
  height: 100%;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  transition: border-color 0.15s ease;
}
.rm-menu-card:hover {
  border-color: var(--rm-accent-border);
}
.rm-menu-thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--bs-border-color);
  background: var(--rm-surface-muted);
  cursor: pointer;
}
.rm-menu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rm-menu-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--bs-body-color);
  white-space: nowrap;
}
.rm-menu-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--rm-surface-muted);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
}
.rm-menu-tag.featured {
  background: var(--rm-accent-soft);
  color: var(--rm-accent);
  border-color: var(--rm-accent-border);
}

/* Nuestros números y Nuestros valores (identidad sobria ramallo.ar) */
.rm-number-card {
  background: var(--rm-surface);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--rm-radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--rm-shadow);
  height: 100%;
  transition: border-color 0.15s ease;
}
.rm-number-card:hover {
  border-color: var(--rm-accent-border);
}
.rm-number-value {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--rm-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.rm-number-label {
  font-size: 0.88rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
  margin-top: 0.4rem;
}
.rm-value-card {
  background: var(--rm-surface);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--rm-radius);
  padding: 1.35rem;
  box-shadow: var(--rm-shadow);
  height: 100%;
  transition: border-color 0.15s ease;
}
.rm-value-card:hover {
  border-color: var(--rm-accent-border);
}
.rm-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--rm-accent-soft);
  border: 1px solid var(--rm-accent-border);
  color: var(--rm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

/* Swatches de color */
.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.color-swatch:hover {
  transform: scale(1.08);
}
.color-swatch.active {
  border-color: var(--bs-body-color);
}

/* Barra fija móvil */
.rm-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--rm-nav-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--bs-border-color);
  padding: 0.65rem 1rem;
  z-index: 40;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 72px;
  }
}
