/* ============================================
   SOMOS LOMAS — GLOBAL DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red:          #D01919;
  --red-dark:     #A01212;
  --red-light:    #FEF2F2;
  --dark:         #1A1A1A;
  --dark-2:       #141414;
  --silver:       #8FA09A;
  --silver-light: #C5CEC9;
  --cream:        #F7F4EF;
  --cream-2:      #F0EDE7;
  --white:        #FFFFFF;
  --muted:        #6B7280;
  --border:       rgba(0,0,0,0.08);
  --text:         #2D2D2D;

  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'DM Sans', sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 28px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 48px rgba(0,0,0,0.15);
  --shadow-dark:0 20px 40px rgba(0,0,0,0.40);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  --nav-h: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--cream-2);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-b); }
input, select, textarea { font-family: var(--font-b); }

/* ---- UTILITIES ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 4rem 2rem; }
.sr-only    { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- TYPOGRAPHY ---- */
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: .6rem;
}
.section-title {
  font-family: var(--font-d); font-size: 30px; font-weight: 700;
  color: var(--dark); line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--silver); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 500; padding: 11px 22px; transition: all .2s;
}
.btn-primary  { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark     { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #2d2d2d; }
.btn-outline  { background: transparent; color: var(--dark); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost    { background: transparent; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-white    { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--cream); }
.btn-sm       { font-size: 13px; padding: 8px 16px; }
.btn-lg       { font-size: 15px; padding: 14px 28px; }

/* ---- TAGS / BADGES ---- */
.tag {
  display: inline-block; font-size: 11px; padding: 3px 10px;
  border-radius: var(--radius-full); border: 1px solid rgba(0,0,0,0.1);
  color: var(--muted); background: var(--cream);
}
.tag-red    { background: var(--red-light); color: var(--red); border-color: #FECACA; }
.tag-green  { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.tag-dark   { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ============================================
   NAV — SHARED HEADER
   ============================================ */
.sl-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 500;
}

.sl-nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.sl-nav__mark {
  width: 36px; height: 36px;
  background: var(--dark); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sl-nav__mark svg { width: 22px; height: 22px; }
.sl-nav__wordmark {
  font-family: var(--font-d); font-size: 18px; font-weight: 700;
  color: var(--dark); line-height: 1;
}
.sl-nav__wordmark span { color: var(--red); }

.sl-nav__links {
  display: flex; gap: 2rem; align-items: center; list-style: none;
}
.sl-nav__links a {
  font-size: 13px; color: var(--muted); letter-spacing: .03em;
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.sl-nav__links a:hover,
.sl-nav__links a.active { color: var(--dark); }
.sl-nav__links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--red); border-radius: 1px;
}

.sl-nav__actions { display: flex; align-items: center; gap: 12px; }
.sl-nav__login { font-size: 13px; color: var(--muted); background: none; border: none; }
.sl-nav__login:hover { color: var(--dark); }
.sl-nav__cta {
  background: var(--red); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  padding: 8px 18px; font-size: 13px; font-weight: 500;
  transition: background .2s;
}
.sl-nav__cta:hover { background: var(--red-dark); }

/* Mobile hamburger */
.sl-nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.sl-nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all .3s;
}

/* ============================================
   HERO — SHARED INNER-PAGE HERO
   ============================================ */
.sl-hero {
  background: var(--dark);
  padding: 3.5rem 2rem 2.5rem;
  position: relative; overflow: hidden;
}
.sl-hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.sl-hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: start;
  max-width: 1280px; margin: 0 auto;
}
.sl-hero__eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: .75rem;
}
.sl-hero__title {
  font-family: var(--font-d); font-size: 42px; font-weight: 700;
  color: var(--white); line-height: 1.1; margin-bottom: .75rem;
}
.sl-hero__title em { font-style: italic; color: var(--silver-light); }
.sl-hero__subtitle {
  font-size: 14px; color: rgba(255,255,255,.48); line-height: 1.65;
  max-width: 520px; margin-bottom: 1.75rem;
}
.sl-hero__search {
  display: flex; align-items: center;
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; max-width: 500px;
  box-shadow: var(--shadow-dark);
}
.sl-hero__search-icon { padding: 0 14px; color: var(--muted); font-size: 15px; }
.sl-hero__search input {
  flex: 1; border: none; outline: none; font-size: 14px;
  padding: 13px 0; color: var(--dark); background: transparent;
}
.sl-hero__search-btn {
  background: var(--red); color: var(--white);
  border: none; padding: 0 22px; font-size: 13px; font-weight: 500;
  height: 48px; white-space: nowrap; transition: background .2s;
}
.sl-hero__search-btn:hover { background: var(--red-dark); }
.sl-hero__stats {
  display: flex; gap: 2.5rem; margin-top: 1.75rem;
}
.sl-hero__stat-n {
  font-family: var(--font-d); font-size: 28px; font-weight: 700; color: var(--white);
}
.sl-hero__stat-l {
  font-size: 11px; color: rgba(255,255,255,.38); letter-spacing: .05em;
}

/* ============================================
   FILTER BAR
   ============================================ */
.sl-filter-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: sticky; top: var(--nav-h); z-index: 400;
}
.sl-tabs { display: flex; gap: 0; overflow-x: auto; }
.sl-tab {
  padding: .9rem 1.25rem; font-size: 13px; color: var(--muted);
  background: none; border: none; border-bottom: 2px solid transparent;
  white-space: nowrap; transition: all .2s; cursor: pointer;
}
.sl-tab:hover { color: var(--dark); }
.sl-tab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 500; }
.sl-filter-chips { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sl-chip {
  font-size: 12px; padding: 5px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--white); color: var(--muted); cursor: pointer;
  transition: all .2s;
}
.sl-chip.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ============================================
   CARDS — GENERAL
   ============================================ */
.sl-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.sl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ============================================
   PROMO STRIP
   ============================================ */
.sl-promo-strip {
  background: var(--red); padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sl-promo-strip__title {
  font-family: var(--font-d); font-size: 20px; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
}
.sl-promo-strip__sub { font-size: 13px; color: rgba(255,255,255,.8); }

/* ============================================
   CTA BAND
   ============================================ */
.sl-cta-band {
  background: var(--red); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
  margin-bottom: 3rem;
}
.sl-cta-band__title {
  font-family: var(--font-d); font-size: 22px; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
}
.sl-cta-band__sub { font-size: 13px; color: rgba(255,255,255,.75); }

/* ============================================
   STATS BAR
   ============================================ */
.sl-stats-bar {
  background: var(--cream); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 2.5rem 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.sl-stat { text-align: center; }
.sl-stat__n {
  font-family: var(--font-d); font-size: 36px; font-weight: 700; color: var(--dark);
}
.sl-stat__l { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============================================
   FOOTER
   ============================================ */
.sl-footer {
  background: var(--dark); padding: 3rem 2rem 2rem;
}
.sl-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2.5rem;
}
.sl-footer__logo {
  font-family: var(--font-d); font-size: 20px; font-weight: 700;
  color: var(--white); margin-bottom: .75rem;
}
.sl-footer__logo span { color: var(--red); }
.sl-footer__tagline {
  font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.65; margin-bottom: 1.5rem;
}
.sl-footer__social { display: flex; gap: 12px; }
.sl-footer__social a {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.55);
  transition: all .2s;
}
.sl-footer__social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.sl-footer__col-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.35); font-weight: 500; margin-bottom: 1rem;
}
.sl-footer__links { display: flex; flex-direction: column; gap: 8px; }
.sl-footer__links a {
  font-size: 13px; color: rgba(255,255,255,.55);
  transition: color .2s;
}
.sl-footer__links a:hover { color: var(--white); }
.sl-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.sl-footer__copy { font-size: 12px; color: rgba(255,255,255,.3); }
.sl-footer__legal { display: flex; gap: 1.5rem; }
.sl-footer__legal a { font-size: 12px; color: rgba(255,255,255,.4); transition: color .2s; }
.sl-footer__legal a:hover { color: rgba(255,255,255,.7); }

/* ============================================
   ECOSYSTEM SISTER COMPANIES (SPECTACULAR DESIGN)
   ============================================ */
.sl-ecosystem {
  padding: 4rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 3rem;
  width: 80%;
  max-width: 1700px;
  margin-left: auto;
  margin-right: auto;
}

.sl-ecosystem__header {
  text-align: center;
  margin-bottom: 3rem;
}

.sl-ecosystem__eyebrow {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 1rem;
}

.sl-ecosystem__title {
  font-family: var(--font-d);
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.sl-ecosystem__title em {
  color: var(--red);
  font-style: italic;
}

.sl-ecosystem__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
}

.sl-ecosystem__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.sl-eco-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.sl-eco-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
}

.sl-eco-card__content {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  max-width: 55%;
}

.sl-eco-card__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sl-eco-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.sl-eco-card__name {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.sl-eco-card__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.sl-eco-card__title {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.sl-eco-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.sl-eco-card__link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

.sl-eco-card__link:hover {
  opacity: 0.8;
}

.sl-eco-card__link--blue { color: #185FA5; }
.sl-eco-card__link--orange { color: #F97316; }

.sl-eco-card__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Gradients for glow effects */
.sl-eco-card--netv .sl-eco-card__visual::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(208,25,25,0.15) 0%, transparent 70%);
  z-index: 0;
  border-radius: 50%;
}

.sl-eco-card--mai .sl-eco-card__visual::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(159,122,234,0.15) 0%, transparent 70%);
  z-index: 0;
  border-radius: 50%;
}

.sl-eco-card__visual img {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  transform: none;
}

.sl-eco-card__img-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  margin: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 1rem;
}

.sl-ecosystem__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 3rem;
}

.sl-eco-feat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sl-eco-feat__icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.sl-eco-feat__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.sl-eco-feat__desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .sl-ecosystem__cards { grid-template-columns: 1fr; }
  .sl-ecosystem__features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sl-eco-card { flex-direction: column; min-height: auto; }
  .sl-eco-card__content { max-width: 100%; padding: 2rem; }
  .sl-eco-card__visual { position: relative; width: 100%; height: 250px; }
  .sl-eco-card__visual img { transform: none; max-width: 90%; }
  .sl-ecosystem__features { grid-template-columns: 1fr; }
  .sl-ecosystem__title { font-size: 28px; }
}

/* ============================================
   FORMS
   ============================================ */
.sl-form-label {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--muted); margin-bottom: 4px;
  letter-spacing: .05em; text-transform: uppercase;
}
.sl-form-input, .sl-form-select {
  width: 100%; padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.12); border-radius: var(--radius-md);
  font-size: 14px; color: var(--dark); background: var(--white);
  outline: none; transition: border-color .2s;
  appearance: none;
}
.sl-form-input:focus, .sl-form-select:focus { border-color: var(--red); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .sl-hero__inner { grid-template-columns: 1fr; }
  .sl-footer__grid { grid-template-columns: 1fr 1fr; }
  .sl-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 100px; }

  .sl-nav__links,
  .sl-nav__actions { display: none; }

  .sl-nav__burger { display: flex; }

  .sl-hero__title { font-size: 30px; }
  .sl-hero__stats { gap: 1.5rem; flex-wrap: wrap; }

  .sl-footer__grid { grid-template-columns: 1fr; }
  .sl-footer__bottom { flex-direction: column; gap: .75rem; text-align: center; }

  .section { padding: 2.5rem 1rem; }
  .sl-promo-strip { flex-direction: column; text-align: center; }
  .sl-cta-band { flex-direction: column; }
}

/* ============================================
   MICRO-ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-2 { animation: fadeUp .5s .1s ease both; }
.fade-up-3 { animation: fadeUp .5s .2s ease both; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  /* Eliminamos altura fija para que flexbox del padre mande esto al fondo */
  margin-top: auto; 
}

.hero-slide {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide__cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: color .2s;
}

.hero-slide__cta:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.hero-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
  position: relative;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: all .3s ease;
}

.slider-dot.active {
  background: var(--red-primary);
  transform: scale(1.2);
}
