/* ================================================================
   LA MARINA SERVICIOS — Design System v2.0
   Brand: #006952 · #336853 · #f71963
   Font: Montserrat · Inter
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --lm-green:        #006952;
  --lm-green-dark:   #004f3e;
  --lm-green-mid:    #336853;
  --lm-green-light:  #628f6e;
  --lm-green-pale:   #e8f4f0;
  --lm-green-xpale:  #f0f8f5;
  --lm-accent:       #f71963;
  --lm-text-dark:    #1e1e1e;
  --lm-text-mid:     #4a4a4a;
  --lm-text-light:   #7a7a7a;
  --lm-white:        #ffffff;
  --lm-bg:           #f4f6f5;
  --lm-border:       #dce8e3;
  --lm-shadow-xs:    0 1px 4px rgba(0,0,0,0.06);
  --lm-shadow-sm:    0 2px 12px rgba(0,105,82,0.08);
  --lm-shadow-md:    0 6px 24px rgba(0,105,82,0.13);
  --lm-shadow-lg:    0 12px 48px rgba(0,105,82,0.18);
  --lm-shadow-card:  0 4px 20px rgba(0,0,0,0.07);
  --lm-radius-xs:    6px;
  --lm-radius:       12px;
  --lm-radius-lg:    20px;
  --lm-radius-pill:  999px;
  --lm-transition:   all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --lm-font:         'Montserrat', 'Inter', sans-serif;
  --lm-container:    1280px;
  --lm-header-top:   40px;
  --lm-header-main:  72px;
}

/* ── Global reset (scoped) ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--lm-font);
  color: var(--lm-text-dark);
  background: var(--lm-bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ── Container ──────────────────────────────────────────────────── */
.lm-container {
  width: 100%;
  max-width: var(--lm-container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ================================================================
   TOP BAR
   ================================================================ */
.lm-topbar {
  background: var(--lm-green-dark);
  height: var(--lm-header-top);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1100;
}

.lm-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  width: 100%;
  max-width: var(--lm-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.lm-topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--lm-transition);
}
.lm-topbar-item:hover { color: #fff; }
.lm-topbar-item i {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.lm-topbar-item.whatsapp i { color: #25D366; }

/* ================================================================
   MAIN HEADER
   ================================================================ */
.lm-header {
  background: var(--lm-white);
  height: var(--lm-header-main);
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-bottom: 3px solid var(--lm-green);
}

.lm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--lm-container);
  margin-inline: auto;
  padding-inline: 24px;
  gap: 32px;
}

/* Logo */
.lm-logo img {
  height: 36px;
  width: auto;
  transition: var(--lm-transition);
}
.lm-logo:hover img { opacity: 0.85; }

/* Desktop Nav */
.lm-nav { display: flex; align-items: center; gap: 4px; }

.lm-nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lm-text-mid);
  padding: 6px 12px;
  border-radius: var(--lm-radius-xs);
  letter-spacing: 0.02em;
  transition: var(--lm-transition);
  white-space: nowrap;
}
.lm-nav-link:hover,
.lm-nav-link.active { color: var(--lm-green); background: var(--lm-green-pale); }

.lm-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--lm-radius-pill);
  letter-spacing: 0.02em;
  transition: var(--lm-transition);
  white-space: nowrap;
}
.lm-nav-btn-outline {
  border: 2px solid var(--lm-green);
  color: var(--lm-green);
  background: transparent;
}
.lm-nav-btn-outline:hover {
  background: var(--lm-green);
  color: var(--lm-white);
}
.lm-nav-btn-solid {
  background: var(--lm-green);
  color: var(--lm-white);
  border: 2px solid var(--lm-green);
}
.lm-nav-btn-solid:hover {
  background: var(--lm-green-dark);
  border-color: var(--lm-green-dark);
  transform: translateY(-1px);
  box-shadow: var(--lm-shadow-sm);
}

/* Hamburger */
.lm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--lm-radius-xs);
  transition: var(--lm-transition);
}
.lm-hamburger:hover { background: var(--lm-green-pale); }
.lm-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lm-green);
  border-radius: 2px;
  transition: var(--lm-transition);
}
.lm-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lm-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.lm-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.lm-mobile-menu {
  display: none;
  position: fixed;
  top: var(--lm-header-main);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  pointer-events: none;
}
.lm-mobile-menu.open { pointer-events: all; }

.lm-mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lm-mobile-menu.open .lm-mobile-overlay { opacity: 1; }

.lm-mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 90vw);
  height: 100%;
  background: var(--lm-white);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.lm-mobile-menu.open .lm-mobile-drawer { transform: translateX(0); }

.lm-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--lm-green);
}
.lm-mobile-drawer-head img { height: 28px; filter: brightness(0) invert(1); }
.lm-mobile-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--lm-transition);
}
.lm-mobile-close:hover { background: rgba(255,255,255,0.28); }

.lm-mobile-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}
.lm-mobile-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lm-text-mid);
  border-left: 3px solid transparent;
  transition: var(--lm-transition);
}
.lm-mobile-nav li a:hover,
.lm-mobile-nav li a.active {
  color: var(--lm-green);
  border-left-color: var(--lm-green);
  background: var(--lm-green-pale);
}
.lm-mobile-nav-divider {
  height: 1px;
  background: var(--lm-border);
  margin: 8px 24px;
}
.lm-mobile-nav-ctas {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--lm-border);
}
.lm-mobile-nav-ctas a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--lm-radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  transition: var(--lm-transition);
}
.lm-mobile-cta-outline {
  border: 2px solid var(--lm-green);
  color: var(--lm-green);
}
.lm-mobile-cta-outline:hover { background: var(--lm-green-pale); }
.lm-mobile-cta-solid {
  background: var(--lm-green);
  color: #fff;
  border: 2px solid var(--lm-green);
}
.lm-mobile-cta-solid:hover { background: var(--lm-green-dark); }

.lm-mobile-contacts {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lm-mobile-contacts a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--lm-text-light);
}
.lm-mobile-contacts a:hover { color: var(--lm-green); }

/* ================================================================
   MAIN CONTENT AREA
   ================================================================ */
main.lm-main { min-height: calc(100vh - var(--lm-header-top) - var(--lm-header-main) - 300px); }

/* ================================================================
   HERO BANNER
   ================================================================ */
.lm-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 420px;
}
.lm-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lm-hero-mobile { display: none; }

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.lm-services {
  padding: 64px 0 80px;
}

.lm-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.lm-section-eyebrow {
  display: inline-block;
  background: var(--lm-green-pale);
  color: var(--lm-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--lm-radius-pill);
  margin-bottom: 14px;
}
.lm-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--lm-text-dark);
  margin: 0 0 12px;
  line-height: 1.2;
}
.lm-section-subtitle {
  font-size: 1rem;
  color: var(--lm-text-light);
  margin: 0;
  font-weight: 400;
}

/* Services Grid */
.lm-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
}

/* Service Card */
.lm-service-card {
  background: var(--lm-white);
  border-radius: var(--lm-radius-lg);
  padding: 32px 20px 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--lm-transition);
  box-shadow: var(--lm-shadow-card);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.lm-service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lm-green), var(--lm-green-light));
  transform: scaleX(0);
  transition: var(--lm-transition);
  transform-origin: left;
}
.lm-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lm-shadow-lg);
  border-color: var(--lm-green-pale);
}
.lm-service-card:hover::before { transform: scaleX(1); }

.lm-service-card-img-wrap {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lm-green-xpale);
  border-radius: var(--lm-radius);
  transition: var(--lm-transition);
  flex-shrink: 0;
}
.lm-service-card:hover .lm-service-card-img-wrap {
  background: var(--lm-green-pale);
  transform: scale(1.05);
}
.lm-service-card-img-wrap img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.lm-service-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lm-text-dark);
  margin: 0;
  line-height: 1.3;
}

.lm-service-card-desc {
  font-size: 0.78rem;
  color: var(--lm-text-light);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.lm-service-card-arrow {
  width: 32px;
  height: 32px;
  background: var(--lm-green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lm-green);
  font-size: 0.75rem;
  transition: var(--lm-transition);
  margin-top: 4px;
}
.lm-service-card:hover .lm-service-card-arrow {
  background: var(--lm-green);
  color: var(--lm-white);
  transform: translateX(3px);
}

/* ================================================================
   INFO BANNER
   ================================================================ */
.lm-info-banner {
  background: linear-gradient(135deg, var(--lm-green) 0%, var(--lm-green-mid) 60%, var(--lm-green-light) 100%);
  padding: 48px 0;
  margin-bottom: 0;
}
.lm-info-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.lm-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}
.lm-info-item-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--lm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.lm-info-item-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.lm-info-item-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}

/* ================================================================
   FOOTER
   ================================================================ */
.lm-footer {
  background: var(--lm-green-dark);
  color: rgba(255,255,255,0.85);
  padding-top: 56px;
}

.lm-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lm-footer-brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.lm-footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 240px;
}
.lm-footer-socials {
  display: flex;
  gap: 10px;
}
.lm-footer-social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  transition: var(--lm-transition);
}
.lm-footer-social-btn:hover {
  background: var(--lm-green-light);
  color: #fff;
  transform: translateY(-2px);
}

.lm-footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lm-white);
  margin: 0 0 20px;
}
.lm-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.lm-footer-col ul li a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  transition: var(--lm-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lm-footer-col ul li a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--lm-green-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--lm-transition);
}
.lm-footer-col ul li a:hover {
  color: rgba(255,255,255,0.95);
  padding-left: 4px;
}
.lm-footer-col ul li a:hover::before { background: #fff; }

.lm-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.lm-footer-contact-item i {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--lm-radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.lm-footer-contact-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
.lm-footer-contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

/* Footer bottom bar */
.lm-footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lm-footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.lm-footer-bottom-links {
  display: flex;
  gap: 20px;
}
.lm-footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: var(--lm-transition);
}
.lm-footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ================================================================
   PAGE WRAPPER (inner pages content area)
   ================================================================ */
.lm-page-content {
  padding: 40px 0 64px;
}

/* ================================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .lm-services-grid { grid-template-columns: repeat(2, 1fr); }
  .lm-footer-grid { grid-template-columns: 1fr 1fr; }
  .lm-footer-brand { grid-column: span 2; }
  .lm-nav-link { padding: 6px 8px; font-size: 0.78rem; }
  .lm-nav-btn { padding: 7px 14px; font-size: 0.78rem; }
  .lm-nav { gap: 2px; }
}

/* ================================================================
   RESPONSIVE — Mobile (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --lm-header-main: 60px;
    --lm-header-top: 36px;
  }

  .lm-topbar-inner { justify-content: center; gap: 20px; }
  .lm-topbar-item { font-size: 0.72rem; }

  .lm-nav { display: none; }
  .lm-hamburger { display: flex; margin-left: auto; }
  .lm-mobile-menu { display: block; }

  .lm-hero { max-height: 220px; }
  .lm-hero-img { display: none; }
  .lm-hero-mobile { display: block; width: 100%; }

  .lm-services { padding: 40px 0 56px; }
  .lm-section-title { font-size: 1.4rem; }
  .lm-services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .lm-service-card { padding: 24px 14px 20px; gap: 10px; }
  .lm-service-card-img-wrap { width: 64px; height: 64px; }
  .lm-service-card-img-wrap img { width: 40px; height: 40px; }
  .lm-service-card-title { font-size: 0.82rem; }
  .lm-service-card-desc { display: none; }
  .lm-service-card-arrow { width: 28px; height: 28px; }

  .lm-info-banner-inner { flex-direction: column; gap: 20px; }
  .lm-info-item { min-width: unset; width: 100%; }

  .lm-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .lm-footer-brand { grid-column: span 1; }
  .lm-footer-bottom { flex-direction: column; text-align: center; }
  .lm-footer-bottom-links { justify-content: center; }

  .lm-container { padding-inline: 16px; }
}

/* ================================================================
   RESPONSIVE — Small Mobile (≤ 400px)
   ================================================================ */
@media (max-width: 400px) {
  .lm-services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lm-service-card { padding: 18px 10px 16px; border-radius: var(--lm-radius); }
  .lm-service-card-img-wrap { width: 56px; height: 56px; }
}

/* ================================================================
   SCROLLBAR (WebKit)
   ================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--lm-green-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--lm-green); }

/* ================================================================
   SUPPLEMENTARY — matches actual Razor HTML output
   ================================================================ */

/* Services title (used in MenuServicios.razor) */
.lm-services-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--lm-text-dark);
  text-align: center;
  margin: 0 0 40px;
}

/* Service card body wrapper */
.lm-service-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  width: 100%;
}

/* Info banner items with direct <i> and <span> */
.lm-info-item i {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.9);
  min-width: 36px;
  text-align: center;
}
.lm-info-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* Footer social links (div.lm-footer-social > a) */
.lm-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.lm-footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  transition: var(--lm-transition);
}
.lm-footer-social a:hover {
  background: var(--lm-green-light);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer contact list */
.lm-footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Footer bottom inner layout */
.lm-footer-bottom {
  background: var(--lm-green-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.lm-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.lm-footer-bottom-inner span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* Sticky header scrolled state */
.lm-header--scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}

/* Drawer scroll */
.lm-mobile-drawer {
  overflow-y: auto;
}

/* Nav button sizing (missing from base rules) */
.lm-nav-btn-outline,
.lm-nav-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--lm-radius-pill);
  letter-spacing: 0.02em;
  transition: var(--lm-transition);
  white-space: nowrap;
  cursor: pointer;
}
