/* =============================================
   Indacasa Redesign - CSS
   Brand (logo): #221c43 + #f4b30d
   ============================================= */

:root {
  --color-primary: #221c43;
  --color-primary-light: #2a2352;
  --color-primary-dark: #141024;
  --color-primary-deeper: #0a0812;
  --color-brand-rgb: 34, 28, 67;
  --color-page-header: #020810;
  --color-page-header-light: #0a1e36;
  --color-page-header-rgb: 2, 8, 16;
  --color-page-header-light-rgb: 10, 30, 54;
  --color-nav-bg: #0c1730;
  --color-nav-bg-rgb: 12, 23, 48;
  --color-accent: #f4b30d;
  --color-accent-rgb: 244, 179, 13;
  --color-accent-hover: #d99a0b;
  --color-accent-soft: #ffc82e;
  --color-accent-bright: #ffd54a;
  --color-topbar-bg: var(--color-accent);
  --color-topbar-text: #1a1533;
  --color-topbar-hover: #8a6509;
  --color-white: #ffffff;
  --color-cream: #f7f3ed;
  --color-cream-soft: #faf7f2;
  --color-gray-50: #efe8df;
  --color-gray-100: #e3dace;
  --color-gray-200: #d4c9bc;
  --color-gray-400: #8b93a7;
  --color-gray-600: #5a6178;
  --color-gray-800: #2c3040;
  --color-text: #1a1a2e;
  --color-text-light: rgba(255, 255, 255, 0.85);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-width: 1200px;
  --topbar-height: 40px;
  --header-height: 96px;
  --header-logo-height: calc(84px - 2mm);
  --site-chrome-height: calc(var(--topbar-height) + var(--header-height));
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(20, 16, 36, 0.1);
  --shadow-md: 0 8px 30px rgba(20, 16, 36, 0.14);
  --shadow-lg: 0 20px 60px rgba(20, 16, 36, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

main {
  padding-top: var(--site-chrome-height);
}

/* Barra superior + menú fijos (siempre visibles al hacer scroll) */
.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: box-shadow var(--transition);
}

.site-chrome.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

img:not(.brand-logo__img) {
  max-width: 100%;
  height: auto;
  display: block;
}

.brand-logo__img {
  display: block;
  width: auto;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent {
  color: var(--color-accent);
  text-shadow: 0 0 16px rgba(var(--color-accent-rgb), 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(
    180deg,
    var(--color-accent-soft) 0%,
    var(--color-accent) 50%,
    var(--color-accent-hover) 100%
  );
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
  box-shadow:
    0 4px 14px rgba(var(--color-accent-rgb), 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--primary:hover {
  background: linear-gradient(
    180deg,
    var(--color-accent-bright) 0%,
    var(--color-accent-soft) 50%,
    var(--color-accent) 100%
  );
  border-color: var(--color-accent-soft);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(var(--color-accent-rgb), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--dark {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--dark:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
}

.btn--rse {
  background: var(--color-white);
  color: #1a1a2e;
  border-color: var(--color-gray-400);
  box-shadow: var(--shadow-sm);
}

.btn--rse:hover {
  background: var(--color-gray-50);
  border-color: var(--color-nav-bg);
  color: #0a1828;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Top Bar */
.top-bar {
  background: linear-gradient(
    180deg,
    var(--color-accent-soft) 0%,
    var(--color-accent) 55%,
    var(--color-accent-hover) 100%
  );
  color: var(--color-topbar-text);
  font-size: 13px;
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  max-height: var(--topbar-height);
  padding: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(26, 21, 51, 0.1);
  overflow: hidden;
}

.top-bar .container {
  width: 100%;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}

.top-bar__links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  gap: 12px;
  white-space: nowrap;
}

.top-bar__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-topbar-text);
  font-weight: 500;
  flex-shrink: 0;
  transition: color var(--transition);
}

.top-bar__links a:hover {
  color: var(--color-topbar-hover);
}

.top-bar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-topbar-text);
  flex-shrink: 0;
  white-space: nowrap;
  transition: color var(--transition);
}

.top-bar__phone:hover {
  color: var(--color-topbar-hover);
}

/* Header */
.header {
  position: relative;
  background: var(--color-nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.35);
  height: var(--header-height);
  max-height: var(--header-height);
  overflow: visible;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: none;
  height: var(--header-height);
  max-height: var(--header-height);
  padding: 0 24px;
  box-sizing: border-box;
  overflow: visible;
}

.header__center {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: max-content;
  max-width: calc(100vw - 48px);
  min-width: 0;
}

.header__end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  min-width: 48px;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: var(--header-height);
  max-height: var(--header-height);
  min-height: 0;
  min-width: 0;
  line-height: 0;
  overflow: visible;
}

.brand-logo__img {
  display: block;
  width: auto;
  max-width: 100%;
  background: transparent;
  filter:
    brightness(1.06)
    saturate(1.15)
    drop-shadow(0 0 12px rgba(var(--color-accent-rgb), 0.55))
    drop-shadow(0 0 22px rgba(255, 205, 50, 0.3));
  transition: transform var(--transition), filter var(--transition);
}

.brand-logo--header.brand-logo__img {
  height: var(--header-logo-height) !important;
  max-height: calc(var(--header-height) - 12px) !important;
  width: auto !important;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  filter:
    brightness(1.06)
    saturate(1.15)
    drop-shadow(0 0 8px rgba(var(--color-accent-rgb), 0.45));
}

.nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
  min-width: 0;
  height: auto;
  padding: 0;
}

.header__logo:hover .brand-logo--header {
  transform: scale(1.02);
  filter:
    brightness(1.1)
    saturate(1.2)
    drop-shadow(0 0 18px rgba(var(--color-accent-rgb), 0.85))
    drop-shadow(0 0 32px rgba(255, 205, 50, 0.5));
}

.footer__brand-link:hover .brand-logo--footer {
  transform: scale(1.02);
  filter:
    drop-shadow(0 0 12px rgba(var(--color-accent-rgb), 0.55))
    drop-shadow(0 0 18px rgba(255, 205, 50, 0.25));
}

.brand-logo--footer.brand-logo__img {
  height: calc(168px - 2mm);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left top;
}

.brand-logo--footer {
  filter:
    brightness(1.06)
    saturate(1.15)
    drop-shadow(0 0 12px rgba(var(--color-accent-rgb), 0.55))
    drop-shadow(0 0 22px rgba(255, 205, 50, 0.3));
}

.footer__brand-link {
  display: inline-block;
}

.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link--two-lines {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
  padding-top: 6px;
  padding-bottom: 6px;
}

.nav__link-line {
  display: block;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.12);
  text-shadow: 0 0 10px rgba(var(--color-accent-rgb), 0.35);
}

.nav__dropdown {
  position: relative;
}

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-nav-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.nav__dropdown:hover .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__submenu a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text-light);
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.nav__submenu a:hover {
  background: rgba(var(--color-accent-rgb), 0.14);
  color: var(--color-accent);
}

.header__cta {
  display: none;
}

.nav-toggle {
  position: static;
  transform: none;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  height: 85vh;
  min-height: 560px;
  max-height: 800px;
  overflow: hidden;
}

.hero__slider {
  height: 100%;
  position: relative;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__slide.active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide--banner img {
  object-position: center 42%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--color-page-header-rgb), 0.94) 0%,
    rgba(var(--color-brand-rgb), 0.78) 50%,
    rgba(var(--color-brand-rgb), 0.52) 100%
  );
}

.hero__overlay--banner {
  background: linear-gradient(
    90deg,
    rgba(var(--color-page-header-rgb), 0.78) 0%,
    rgba(var(--color-page-header-rgb), 0.42) 42%,
    rgba(var(--color-brand-rgb), 0.12) 68%,
    transparent 100%
  );
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 24px;
  z-index: 2;
}

.hero__content--left {
  text-align: left;
}

.hero__content--right {
  text-align: right;
}

.hero__tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(var(--color-accent-rgb), 0.18);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(var(--color-accent-rgb), 0.35);
}

.hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 700px;
}

.hero__content--right h1 {
  margin-left: auto;
}

.hero__content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 550px;
}

.hero__content--right p {
  margin-left: auto;
}

.hero__controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

.hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.hero__arrow:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero__dot.active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 5px;
}

/* CTA Banner */
.cta-banner {
  background: var(--color-accent);
  padding: 28px 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner__phone {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-banner__icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.cta-banner__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.7;
}

.cta-banner__number {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
}

.cta-banner__text {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  flex: 1;
  text-align: center;
}

/* Stats */
.stats {
  background: var(--color-nav-bg);
  padding: 48px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow:
    0 0 18px rgba(var(--color-accent-rgb), 0.6),
    0 0 36px rgba(var(--color-accent-rgb), 0.3);
}

.stats__label {
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header--light p {
  color: var(--color-white);
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-header:not(.section-header--light) h2 .text-accent,
.page-content h2 .text-accent {
  color: var(--color-primary);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header.section-header--light .section-tag,
.section-header.section-header--light h2 {
  color: var(--color-accent);
  text-shadow: 0 0 14px rgba(var(--color-accent-rgb), 0.4);
}

.section-header--light h2 .text-accent {
  color: var(--color-accent);
  text-shadow: 0 0 14px rgba(var(--color-accent-rgb), 0.4);
}

/* Timeline — años en azul oscuro, siempre legibles */
.timeline .timeline__item > .timeline__year {
  display: block;
  font-weight: 800;
  color: #0a1828 !important;
  font-size: clamp(1.45rem, 2.5vw, 1.875rem) !important;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.timeline .timeline__item > h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: #0a1828;
  line-height: 1.35;
  margin: 0 0 10px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* About */
.about {
  padding: 100px 0;
  background: var(--color-gray-50);
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-gray-100);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.about-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.about-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 15px;
  color: var(--color-gray-600);
  line-height: 1.7;
}

.about-card p + p {
  margin-top: 12px;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.values-list li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.values-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.about__cards--centered-head .about-card__icon {
  margin-left: auto;
  margin-right: auto;
}

.about__cards--centered-head .about-card h3 {
  text-align: center;
}

/* Services */
.services {
  padding: 100px 0;
  background: var(--color-primary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card__image {
  height: 220px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card__image--soft img {
  filter: blur(3px);
  transform: scale(1.08);
}

.service-card:hover .service-card__image img {
  transform: scale(1.08);
}

.service-card:hover .service-card__image--soft img {
  transform: scale(1.12);
}

.service-card__body {
  padding: 28px;
}

.service-card__body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-card__body p {
  font-size: 15px;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-card__link {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 15px;
}

.service-card__link:hover {
  color: var(--color-accent);
}

/* RSE */
.rse {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
}

.rse__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.rse__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0a1828 !important;
  line-height: 1.2;
  margin-bottom: 16px;
}

.rse__content h2 .text-accent {
  color: #0a1828 !important;
}

.rse__content .btn {
  box-shadow: var(--shadow-sm);
}

.rse__content p {
  font-size: 17px;
  color: var(--color-gray-600);
  margin-bottom: 32px;
  line-height: 1.7;
}

.rse__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rse__badge {
  width: 280px;
  height: 280px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.rse__badge span {
  font-size: 48px;
  margin-bottom: 12px;
}

.rse__badge p {
  color: var(--color-white);
  font-weight: 600;
  font-size: 16px;
  padding: 0 32px;
}

/* Contact */
.contact {
  padding: 100px 0;
  background: var(--color-cream);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0a1828 !important;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact__info h2 .text-accent {
  color: #0a1828 !important;
}

.contact__info > p {
  color: var(--color-gray-600);
  font-size: 17px;
  margin-bottom: 32px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact__list li:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.contact__list svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--color-primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
}

.contact__list strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray-400);
  margin-bottom: 4px;
}

.contact__list a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact__list a:hover {
  color: var(--color-accent);
}

.contact__social {
  display: flex;
  gap: 12px;
}

.contact__social a {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.contact__social a:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* Form */
.contact__form {
  background: var(--color-gray-50);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-100);
}

.contact__form h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 15px;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  background: var(--color-cream-soft);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Footer */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-text-light);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}

.footer__links h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 14px;
  opacity: 0.75;
  transition: all var(--transition);
}

.footer__links a:hover {
  opacity: 1;
  color: var(--color-accent);
  padding-left: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 13px;
  opacity: 0.6;
}

/* Live Chat Widget */
.live-chat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1100;
  font-family: var(--font-family);
}

.live-chat__toggle {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: #25d366;
  color: var(--color-white);
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.live-chat__toggle:hover,
.live-chat__toggle.is-open {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.live-chat__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(360px, calc(100vw - 32px));
  height: 480px;
  max-height: calc(100vh - 120px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-gray-100);
}

.live-chat__panel[hidden] {
  display: none !important;
}

.live-chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-nav-bg) 0%, var(--color-page-header-light) 100%);
  color: var(--color-white);
}

.live-chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    var(--color-accent-soft) 0%,
    var(--color-accent) 100%
  );
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(var(--color-accent-rgb), 0.45);
}

.live-chat__header-info {
  flex: 1;
  min-width: 0;
}

.live-chat__header-info strong {
  display: block;
  font-size: 15px;
}

.live-chat__header-info span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.live-chat__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.live-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--color-cream-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-chat__msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}

.live-chat__msg--bot {
  align-self: flex-start;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-gray-100);
  border-bottom-left-radius: 4px;
}

.live-chat__msg--user {
  align-self: flex-end;
  background: var(--color-nav-bg);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
}

.live-chat__msg--action {
  align-self: stretch;
  max-width: 100%;
  padding: 0;
  background: transparent;
}

.live-chat__wa-btn {
  display: block;
  text-align: center;
  padding: 12px 16px;
  background: #25d366;
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.live-chat__wa-btn:hover {
  background: #1fb855;
}

.live-chat__quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--color-gray-100);
  background: var(--color-white);
}

.live-chat__quick button {
  border: 1px solid var(--color-gray-200);
  background: var(--color-cream-soft);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.live-chat__quick button:hover {
  border-color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.2);
}

.live-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-gray-100);
  background: var(--color-white);
}

.live-chat__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.live-chat__form input:focus {
  outline: none;
  border-color: var(--color-nav-bg);
}

.live-chat__send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-nav-bg);
  color: var(--color-white);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.live-chat__send:hover {
  background: var(--color-page-header-light);
}

@media (max-width: 480px) {
  .top-bar__links a:nth-child(n+2) {
    display: none;
  }

  .top-bar__phone {
    font-size: 10px;
    white-space: nowrap;
  }

  .live-chat {
    right: 16px;
    bottom: 16px;
  }

  .live-chat__panel {
    width: calc(100vw - 32px);
    height: min(70vh, 520px);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .about__cards,
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rse__inner,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --topbar-height: 34px;
    --header-height: 80px;
    --header-logo-height: calc(68px - 2mm);
  }

  .top-bar {
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    max-height: var(--topbar-height);
    padding: 0;
  }

  .top-bar__inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .top-bar__links {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    gap: 6px;
    font-size: 11px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .top-bar__phone {
    font-size: 11px;
  }

  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }

  .header__center {
    grid-column: auto;
    max-width: none;
    width: auto;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
  }

  .header__logo {
    max-width: min(58vw, 220px);
  }

  .brand-logo--header.brand-logo__img {
    max-width: 100%;
  }

  .header__end {
    grid-column: auto;
    justify-self: auto;
    min-width: 0;
    flex-shrink: 0;
  }

  .container {
    padding: 0 16px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    transform: none;
    width: 300px;
    height: 100vh;
    background: var(--color-nav-bg);
    padding: calc(var(--site-chrome-height) + 24px) 32px 32px;
    transition: right var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link {
    padding: 14px 16px;
    font-size: 16px;
  }

  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 4px;
    display: none;
  }

  .nav__dropdown.open .nav__submenu {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    position: static;
    transform: none;
    z-index: 1001;
  }

  .brand-logo--footer.brand-logo__img {
    height: calc(136px - 2mm);
  }

  .hero {
    height: 70vh;
    min-height: 480px;
    max-height: none;
  }

  .hero__slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
  }

  .hero__content {
    padding: 32px 16px 88px;
    text-align: center !important;
  }

  .hero__content h1,
  .hero__content p {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .hero__content h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .hero__content--right h1,
  .hero__content--right p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__content .btn--lg {
    width: 100%;
    max-width: 300px;
  }

  .hero__slide--banner img {
    object-position: 72% center;
  }

  .hero__overlay--banner {
    background: linear-gradient(
      180deg,
      rgba(var(--color-page-header-rgb), 0.55) 0%,
      rgba(var(--color-page-header-rgb), 0.72) 55%,
      rgba(var(--color-brand-rgb), 0.82) 100%
    );
  }

  .hero__controls {
    bottom: 20px;
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__text {
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact__form {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stats__number {
    font-size: 2rem;
  }

  .about,
  .services,
  .rse,
  .contact {
    padding: 64px 0;
  }
}

/* =============================================
   Contact Page & Map Preview
   ============================================= */

.page-hero {
  background: var(--color-primary-dark);
  padding: 48px 0 56px;
  color: var(--color-white);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.35);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Quick contact cards */
.contact-cards {
  padding: 0 0 64px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

.contact-cards .container {
  max-width: 1320px;
}

.contact-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  height: 100%;
  min-height: 124px;
  min-width: 0;
  background: var(--color-white);
  padding: 12px 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition);
  color: inherit;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.contact-card__body .contact-card__action {
  margin-top: auto;
  padding-top: 6px;
}

.contact-card__value {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.45;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-card__value--oneline {
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 9px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.contact-card__phones {
  font-size: 10px;
  line-height: 1.4;
  margin-top: 2px;
}

.contact-card__line {
  display: block;
}

.contact-card__email a {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.contact-card--static {
  cursor: default;
}

.contact-card--static:hover {
  transform: none;
}

.contact-card--whatsapp:hover {
  border-color: #25d366;
}

.contact-card__icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 16px;
  height: 16px;
}

.contact-card--whatsapp .contact-card__icon {
  background: #25d366;
  color: var(--color-white);
}

.contact-card h3 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-gray-400);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.45;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-card p:last-of-type {
  margin-bottom: 0;
}

.contact-card__action {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  line-height: 1.3;
}

.contact-card:hover .contact-card__action {
  color: var(--color-primary);
}

a.contact-card__action:hover {
  text-decoration: underline;
}

.contact-card--rrhh .contact-card__icon {
  background: var(--color-accent);
  color: var(--color-primary);
}

.contact-card--rrhh p a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-card--rrhh p a:hover {
  color: var(--color-accent);
}

.contact-card--ventas p a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-card--ventas p a:hover {
  color: var(--color-accent);
}

.contact-card__sep {
  color: var(--color-gray-600);
  font-weight: 500;
}

.contact-card__email {
  font-size: 9px !important;
  line-height: 1.35 !important;
  margin-bottom: 0 !important;
}

.contact-card--rrhh:hover {
  border-color: var(--color-accent);
}

/* Contact page layout */
.contact-page {
  padding: 0 0 80px;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact__form--page {
  background: var(--color-cream-soft);
  border: 1px solid var(--color-gray-100);
  box-shadow: var(--shadow-sm);
}

.contact__form--page h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.contact__form-desc {
  color: var(--color-gray-600);
  font-size: 15px;
  margin-bottom: 28px;
}

.required {
  color: #e53935;
}

.sidebar-box {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.sidebar-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.sidebar-box--dark {
  background: var(--color-primary);
  border-color: transparent;
}

.sidebar-box--dark h3 {
  color: var(--color-accent);
}

.sidebar-box--dark p {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 16px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-gray-600);
}

.sidebar-list svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Form success */
.form-success {
  padding: 48px 0;
  background: var(--color-gray-50);
}

.form-success__box {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-success__box svg {
  color: #25d366;
  margin-bottom: 20px;
}

.form-success__box h2 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.form-success__box p {
  color: var(--color-gray-600);
  margin-bottom: 24px;
}

/* Map section */
.contact-map {
  padding: 80px 0;
  background: var(--color-gray-50);
}

.contact-map__wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 7;
}

.contact-map__wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map__btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 2;
}

/* Map preview on homepage */
.contact__map-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-gray-200);
}

.contact__map-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.contact__map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(var(--color-brand-rgb), 0.94));
  color: var(--color-white);
}

.contact__map-overlay h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact__map-overlay p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .contact-cards__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .contact-card {
    flex: 0 0 220px;
    min-height: 140px;
  }

  .contact-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-map__wrap {
    aspect-ratio: 4 / 3;
  }

  .contact-map__btn {
    position: static;
    display: block;
    margin-top: 16px;
    text-align: center;
  }
}

/* Promo modal — landing popup */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 32, 0.78);
  cursor: pointer;
}

.promo-modal__dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.promo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition);
}

.promo-modal__close:hover {
  transform: scale(1.05);
  background: var(--color-white);
}

.promo-modal__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.promo-modal__actions {
  padding: 16px 20px 20px;
}

body.promo-modal-open {
  overflow: hidden;
}
