@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ==========================================================
   Reset y Variables Base
   ========================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --accent: #0ea5e9;
  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-light);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   Header Principal
   ========================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  backdrop-filter: blur(0px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 20px) clamp(16px, 5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease;
  gap: 16px;
  min-height: 70px;
}

.main-header.scrolled .header-inner {
  padding: clamp(10px, 2vw, 16px) clamp(16px, 5vw, 24px);
}

.header-logo img {
  height: clamp(45px, 12vw, 60px);
  width: auto;
  transition: var(--transition);
}

.main-header.scrolled .header-logo img {
  height: clamp(35px, 8vw, 45px);
}

.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-nav a {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.main-header.scrolled .header-nav a {
  color: var(--text-light);
}

.header-nav a:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}

.header-nav a.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.main-header.scrolled .header-nav a.active {
  color: #ffffff;
}

/* Legal pages use the fixed header without hero background. */
body.legal-page {
  padding-top: 96px;
}

body.legal-page .main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid var(--border-light);
}

body.legal-page .header-nav a {
  color: var(--text-light);
}

/* Móvil Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.main-header.scrolled .mobile-menu-toggle span {
  background: var(--text);
}

.mobile-menu-toggle.active span {
  background: #000000;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(10px, -10px);
}

/* ==========================================================
   Layout blocks
   ========================================================== */
.sectionseparator {
  width: min(1120px, 92%);
  margin: 1.35rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.18), transparent);
}

.intro,
section.main {
  width: min(1120px, 92%);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 3.5vw, 3rem);
  position: relative;
  overflow: hidden;
  animation: revealUp 680ms var(--ease-modern) both;
}

.intro::before,
section.main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.05), transparent 26%);
}

.intro > *,
section.main > * {
  position: relative;
  z-index: 1;
}

/* Hero style for first section */
#inicio {
  background: linear-gradient(140deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.04)), var(--surface);
}

#inicio img {
  float: none;
  display: block;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition:
    transform 260ms var(--ease-modern),
    box-shadow 260ms var(--ease-modern);
}

#inicio img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 26px 56px rgba(20, 27, 45, 0.17);
}

.intro p {
  text-align: left;
}

/* ==========================================================
   Table content transformed to card grid
   ========================================================== */
.intro table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.intro tbody {
  display: block;
}

.intro tr {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.intro td {
  width: 100%;
  padding: 1.15rem;
  margin: 0;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: 0 8px 24px rgba(20, 27, 45, 0.06);
  text-align: left;
  vertical-align: top;
  transition:
    transform 240ms var(--ease-modern),
    box-shadow 240ms var(--ease-modern),
    border-color 240ms var(--ease-modern);
}

.intro td:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(20, 27, 45, 0.11);
  border-color: rgba(79, 70, 229, 0.28) !important;
}

.intro td img {
  float: none;
  display: block;
  width: 92px;
  max-width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  border-radius: 10px;
  box-shadow: none;
}

.intro td h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.intro td p {
  font-size: 0.96rem;
  color: var(--muted);
}

/* ==========================================================
   Buttons / Interactions
   ========================================================== */
.intro a {
  color: var(--primary);
  font-weight: 500;
}

.intro a:hover {
  color: var(--primary-strong);
}

.intro a.linkbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  padding: 0.78rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
  transition:
    transform 220ms var(--ease-modern),
    box-shadow 220ms var(--ease-modern),
    filter 220ms var(--ease-modern);
}

.intro a.linkbutton:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.34);
  filter: brightness(1.04);
}

/* ==========================================================
   Contact section
   ========================================================== */
.centrado {
  text-align: center;
}

div.contenedortabla {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem auto 0;
}

.columna {
  display: block;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 8px 22px rgba(20, 27, 45, 0.06);
  transition:
    transform 220ms var(--ease-modern),
    box-shadow 220ms var(--ease-modern);
}

.columna:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 27, 45, 0.1);
}

.columnatexto {
  padding-top: 1rem;
  padding-left: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.intro img.iconimg {
  float: none;
  display: inline-block;
  margin: 0.25rem 0;
  border-radius: 6px;
  box-shadow: none;
  background: transparent;
}

.Etiqueta {
  position: relative;
  display: block;
  width: 100%;
  padding: 0.62rem 0.9rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: none;
  box-shadow: 0 10px 20px rgba(20, 27, 45, 0.14);
}

.Etiqueta:before,
.Etiqueta:after {
  content: none;
}

.Etiqueta.Blue {
  background: linear-gradient(120deg, #2563eb, #0ea5e9);
}

.Etiqueta.Grey {
  background: linear-gradient(120deg, #64748b, #475569);
}

/* ==========================================================
   Main legal pages (privacy / terms)
   ========================================================== */
section.main {
  line-height: 1.75;
}

#basicblank {
  font-size: 0.98rem;
  color: var(--muted);
  text-align: left;
}

#basicblank p,
#basicblank li {
  color: var(--muted);
}

#basicblank h3 {
  margin-top: 1rem;
}

#basicblank ul {
  list-style: disc;
  padding-left: 1.25rem;
}

/* ==========================================================
   Footer
   ========================================================== */
footer {
  margin-top: 1.35rem;
  width: 100%;
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.96), rgba(20, 27, 45, 1));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer div {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: left;
}

footer div section {
  min-width: 0;
  margin: 0;
}

footer div section h3 {
  color: #fff;
  margin-bottom: 0.55rem;
}

footer p,
footer li,
nav#linksrel ul li,
nav#siteMap ul li {
  color: #aeb7c7;
  font-size: 0.92rem;
  line-height: 1.8;
}

footer a {
  color: #8ab4ff;
}

footer a:hover {
  color: #c6dbff;
}

footer div section#about,
footer div section#linksrel,
footer div section#siteMap {
  width: auto;
  margin: 0;
}

/* ==========================================================
   Utilities and legacy compatibility selectors
   ========================================================== */
table#centrada,
div.centrada {
  margin-left: auto;
  margin-right: auto;
}

.paddingimage {
  padding: 0 0 1rem;
  margin: 0;
  width: auto;
}

ol.bulletlist,
ul.bulletlist {
  list-style: disc;
  margin-left: 1.25rem;
}

ol.checklist,
ul.checklist {
  list-style-image: url(../images/check.png);
  margin-left: 1.25rem;
  text-align: left;
}

.photoimg {
  display: inline-block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 27, 45, 0.14);
}

#photoimgcentered {
  text-align: center;
}

.sucursal {
  display: inline-block;
  vertical-align: top;
  margin-bottom: 2rem;
  width: 18rem;
}

div.main {
  border: none;
  background: transparent;
}

.main .articles {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border: none;
}

article {
  border-bottom: 1px dashed var(--border);
  padding: 0.85rem 0;
  font-size: 0.96rem;
}

article:last-child {
  border-bottom: none;
}

aside {
  margin-top: 2rem;
}

aside section {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

aside h3 {
  padding-bottom: 0.45rem;
}

nav.categories ul li,
nav.archives ul li {
  margin: 0.22rem 0;
  font-size: 0.92rem;
}

.justificado {
  text-align: justify;
}

.smallfont {
  font-size: 0.72rem;
}

.followus {
  vertical-align: top;
  font-weight: 600;
  margin-top: 0;
  width: 12rem;
  overflow: hidden;
  display: inline-block;
}

a.googleplus {
  text-decoration: none;
  display: inline-block;
  color: var(--text);
  text-align: center;
  font:
    1rem Inter,
    sans-serif;
  white-space: nowrap;
}

img.googleplus {
  border: 0;
  width: 0.8em;
  height: 0.8em;
}

#googlemap {
  margin: 0 auto;
  display: block;
  text-align: left;
  border-radius: 8px;
}

div#googlemap {
  box-shadow: 0 10px 26px rgba(20, 27, 45, 0.15);
}

#contentInfo {
  background-color: #fff;
  border: none;
  color: var(--text);
}

#contentInfo h3,
#contentInfo p,
#contentInfo a {
  font:
    1rem Inter,
    sans-serif;
}

#contentInfo a {
  color: var(--text);
}

#contentInfo a:hover {
  color: var(--primary);
}

div.contenedormapa {
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  width: min(510px, 100%);
}

div.contenedorlinkbutton {
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  width: auto;
}

div#piemapa {
  width: 10em;
  padding-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
}

.columnaiconos,
.columnaimgtxt,
.columnaimgtxttexto,
.columnaimgtxticonos {
  font-family: Inter, sans-serif;
}

.columnaiconos {
  padding-top: 1.5rem;
  padding-left: 0;
  font-size: 0.9rem;
  text-align: left;
  line-height: 1;
}

.columnaimgtxt {
  display: inline-block;
  vertical-align: top;
  padding: 0 1rem;
  margin-top: 1.5rem;
}

.columnaimgtxttexto {
  padding-top: 1.5rem;
  font-size: 1rem;
  text-align: center;
}

.columnaimgtxticonos {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
  line-height: 1;
}

/* ==========================================================
   Social sprites (keep existing assets)
   ========================================================== */
.wsite-social-item {
  width: 28px;
  height: 30px;
  margin: 1px 0 0 4px;
  display: inline-block;
  vertical-align: middle;
  transition:
    transform 200ms var(--ease-modern),
    opacity 200ms var(--ease-modern);
}

.wsite-social-item:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.wsite-social-facebook {
  background: url(images/social-icons.png) no-repeat 0 0;
}

.wsite-social-twitter {
  background: url(images/social-icons.png) no-repeat -32px 0;
}

.wsite-social-linkedin {
  background: url(images/social-icons.png) no-repeat -65px 0;
}

.wsite-social-mail {
  background: url(images/social-icons.png) no-repeat -97px 0;
}

.wsite-social-rss {
  background: url(images/social-icons.png) no-repeat -130px 0;
}

.wsite-social-flickr {
  background: url(images/social-icons.png) no-repeat -162px 0;
}

.wsite-social-plus {
  background: url(images/social-icons.png) no-repeat -195px 0;
}

.wsite-social-pinterest {
  background: url(images/social-icons.png) no-repeat -227px 0;
}

.wsite-social-vimeo {
  background: url(images/social-icons.png) no-repeat -260px 0;
}

.wsite-social-yahoo {
  background: url(images/social-icons.png) no-repeat -292px 0;
}

.wsite-social-youtube {
  background: url(images/social-icons.png) no-repeat -325px 0;
}

/* ==========================================================
   Motion
   ========================================================== */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   Responsive enhancements
   ========================================================== */
@media (min-width: 700px) {
  .intro tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  div.contenedortabla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer div {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.75rem;
  }
}

@media (min-width: 980px) {
  .lineamenuinner {
    min-height: 84px;
  }

  #inicio {
    padding-top: clamp(2rem, 4vw, 3.8rem);
    padding-bottom: clamp(2rem, 4vw, 3.8rem);
  }

  #inicio p {
    font-size: 1.07rem;
  }

  #inicio img {
    float: right;
    margin: 0 0 1rem 1.3rem;
    width: min(46%, 460px);
  }

  div.contenedortabla {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
/* ==========================================================
   NUEVO DISEÑO - Hero Section
   ========================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding-top: 0;
  margin-top: 0;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.85) 0%,
    rgba(67, 56, 202, 0.75) 50%,
    rgba(99, 102, 241, 0.85) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: #ffffff;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 48px;
  opacity: 0.95;
  font-weight: 500;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 60px);
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  min-width: 140px;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
  color: #ffffff;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border: 2px solid transparent;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: #ffffff;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.9;
  font-weight: 500;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  margin: 0 auto;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ==========================================================
   NUEVO DISEÑO - Servicios, Productos y Contacto
   ========================================================== */
.modules-section,
.products-section,
.contact-section {
  padding: 100px 0;
  position: relative;
}

.modules-section {
  background: var(--bg-soft);
}

.products-section {
  background: #ffffff;
}

.contact-section {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Servicios Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.module-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 2px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.module-card.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.module-card:hover::before {
  transform: scaleX(1);
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary);
}

.module-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.module-features {
  list-style: none;
  margin-bottom: 24px;
}

.module-features li {
  padding: 8px 0;
  color: var(--text-light);
  font-size: 15px;
}

.module-btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.module-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* Productos Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.product-card.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary);
}

.product-banner {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-banner img {
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-banner img {
  transform: scale(1.05);
}

/* El logo de LAZARVS necesita aire lateral para respirar mejor. */
.product-card[data-modal="lazarvs"] .product-banner {
  padding: 0 32px;
}

.product-card[data-modal="lazarvs"] .product-banner img {
  width: 100%;
  max-width: auto;
  max-height: 150px;
  object-fit: contain;
}

.product-card[data-modal="lazarvs"] .product-content {
  padding-left: 32px;
  padding-right: 32px;
}

.product-content {
  padding: 32px;
}

.product-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.product-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  padding: 6px 14px;
  background: var(--bg-soft);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.product-highlights {
  list-style: none;
  margin-bottom: 24px;
}

.product-highlights li {
  padding: 10px 0;
  color: var(--text-light);
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}

.product-highlights li:last-child {
  border-bottom: none;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.product-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
}

.product-btn.primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
}

.product-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  color: #ffffff;
}

.product-btn.secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-btn.secondary:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Contacto Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.contact-card {
  background: #ffffff;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 2px solid var(--border-light);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.contact-card.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 8px;
  font-size: 15px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.contact-link:hover {
  transform: translateX(4px);
  color: var(--primary-dark);
}

/* ==========================================================
   NUEVO DISEÑO - Modal
   ========================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-2xl);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(90deg);
}

#modalBody h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text);
}

#modalBody h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

#modalBody p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.modal-list {
  list-style: none;
  margin: 24px 0;
}

.modal-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-light);
}

.modal-list li:last-child {
  border-bottom: none;
}

.modal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.modal-link:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

/* ==========================================================
   NUEVO DISEÑO - Footer
   ========================================================== */
footer {
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.14), transparent 35%),
    linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #cbd5e1;
  padding: 60px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

footer .footer-content,
footer > .clear {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px;
}

footer .footer-section,
footer > .clear section {
  min-width: 0;
  padding-right: 4px;
}

footer .footer-section h3,
footer > .clear section h3 {
  color: #ffffff;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

footer .footer-section p,
footer > .clear section p {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 10px;
}

footer .footer-section ul,
footer > .clear section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer .footer-section li,
footer > .clear section li {
  margin-bottom: 10px;
}

footer .footer-section a,
footer > .clear section a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

footer .footer-section a:hover,
footer > .clear section a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* ==========================================================
   Animaciones
   ========================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 992px) {
  .header-logo img {
    height: clamp(40px, 10vw, 55px);
  }

  .header-nav a {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  body.legal-page {
    padding-top: 84px;
  }

  .product-card[data-modal="lazarvs"] .product-banner {
    padding: 0 32px;
  }

  .product-card[data-modal="lazarvs"] .product-content {
    padding-left: 32px;
    padding-right: 32px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-inner {
    transition:
      background-color 0.4s ease-out,
      backdrop-filter 0.4s ease-out,
      box-shadow 0.4s ease-out;
    min-height: 70px;
  }

  .header-inner.active {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(50px);
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(50px);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .main-header.scrolled .header-nav {
    background: rgba(255, 255, 255, 0.98);
  }

  .header-nav.active {
    max-height: 300px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary);
  }

  .header-nav a {
    padding: 16px 24px;
    font-size: 16px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
    display: block;
    width: 100%;
    text-align: left;
  }

  .header-nav a:hover {
    background: var(--bg-soft);
    color: var(--primary);
  }

  .header-nav active {
    background: transparent;
    color: var(--text);
    box-shadow: none;
    border-bottom: 3px solid var(--primary);
  }

  .header-inner.active {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(50px);
  }

  .main-header.menu-active {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }

  .hero-section {
    min-height: 500px;
    padding: 80px 0 0 0;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 16px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 32px;
  }

  .hero-stats {
    gap: clamp(16px, 4vw, 32px);
    margin-bottom: 32px;
    flex-direction: column;
    width: 100%;
  }

  .stat-item {
    padding: 16px;
    min-width: 50%;
    width: 50%;
    max-width: 280px;
    margin: 0 auto;
  }

  .stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }

  .stat-label {
    font-size: 13px;
  }

  .hero-cta {
    padding: 13px 32px;
    font-size: 15px;
    width: 100%;
    max-width: 280px;
  }

  .scroll-indicator {
    display: none;
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .module-card,
  .product-card,
  .contact-card {
    padding: 24px;
  }

  .modal-content {
    padding: 32px 24px;
    max-height: 90vh;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-logo img {
    height: clamp(35px, 10vw, 45px);
  }

  .header-inner {
    padding: 12px 12px;
  }

  .hero-section {
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    padding: 0 12px;
  }

  .hero-title {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    margin-bottom: 24px;
  }

  .hero-stats {
    gap: 12px;
    margin-bottom: 24px;
  }

  .stat-item {
    padding: 12px;
    min-width: 50%;
    max-width: 50%;
  }

  .stat-number {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 12px;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    max-width: 80%;
    justify-content: center;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .modules-grid,
  .products-grid,
  .contact-grid {
    gap: 20px;
  }

  .module-card,
  .product-card,
  .contact-card {
    padding: 20px;
  }

  .module-card h3,
  .product-card h3 {
    font-size: 1.2rem;
  }

  .module-features li,
  .product-highlights li {
    font-size: 14px;
    padding: 6px 0;
  }

  .product-actions {
    flex-direction: column;
    gap: 8px;
  }

  .product-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .contact-icon {
    width: 56px;
    height: 56px;
  }

  .modal-content {
    padding: 24px 16px;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 13px;
  }
}
