:root {
  --color-primary: #3551C9;
  --color-secondary: #5A73DA;
  --color-light-blue: #8EA2F2;
  --color-accent: #C7B37A;
  --color-dark: #2F3440;
  --color-light-gray: #F5F7FB;
  --color-white: #FFFFFF;
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--color-dark);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Layout & Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Background Colors for Alternation */
.bg-white {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.bg-light-gray {
  background-color: var(--color-light-gray);
  color: var(--color-dark);
}

.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.bg-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-dark);
  box-shadow: 0 4px 15px rgba(199, 179, 122, 0.4);
}

.btn-accent:hover {
  background-color: #dfcaa0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 179, 122, 0.6);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(53, 81, 201, 0.3);
}

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

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

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

.header-cta {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .header-cta {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--color-dark);
  color: var(--color-white);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(47, 52, 64, 0.9), rgba(53, 81, 201, 0.6));
  z-index: -1;
}

.hero-content {
  max-width: 600px;
}

.hero-subtitle {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Promo Section – redesigned */
.promo-section {
  overflow: visible;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }
}

/* Eyebrow label */
.promo-eyebrow {
  display: inline-block;
  background-color: rgba(199, 179, 122, 0.15);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.promo-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.promo-text > p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Benefit chips grid */
.promo-chips {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.promo-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-light-gray);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  flex: 1;
  min-width: 130px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(53, 81, 201, 0.12);
}

.promo-chip i {
  font-size: 1.6rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.promo-chip span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-dark);
}

/* Loyalty callout */
.promo-loyalty {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #f9f5ec 0%, #fffdf6 100%);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 14px 14px 0;
  padding: 1.25rem 1.5rem;
}

.promo-loyalty__icon {
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.promo-loyalty strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--color-dark);
}

.promo-loyalty p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

/* Image container – fixed landscape ratio */
.promo-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}

.promo-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Floating gift badge */
.promo-img-badge {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  padding: 0.65rem 1.4rem;
  box-shadow: 0 8px 24px rgba(53, 81, 201, 0.4);
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.promo-img-badge i {
  font-size: 1.1rem;
  color: var(--color-accent);
}

.promo-img-badge span {
  line-height: 1.25;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: var(--color-dark);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

/* Problems & Benefits Grid */
.icon-list {
  list-style: none;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon-list .icon {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

/* Two Column Layouts */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .two-cols {
    grid-template-columns: 1fr;
  }
}

/* Section Wave Dividers */
.wave-divider {
  display: block;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

@media (min-width: 768px) {
  .wave-divider svg {
    height: 80px;
  }
}

/* Quiénes Somos – Image with floating stat badges */
.qs-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.qs-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 0.75rem 1.1rem;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.qs-badge--tl {
  top: -1rem;
  left: -1.5rem;
  animation-delay: 0.1s;
}

.qs-badge--br {
  bottom: 1.5rem;
  right: -1.5rem;
  animation-delay: 0.25s;
}

.qs-badge--bl {
  bottom: -1rem;
  left: 1rem;
  animation-delay: 0.4s;
}

.qs-badge__number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.qs-badge__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .qs-badge--tl { top: -0.5rem; left: 0.5rem; }
  .qs-badge--br { bottom: 0.5rem; right: 0.5rem; }
  .qs-badge--bl { display: none; }
}

/* Footer */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.footer-logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy a {
  color: var(--color-accent);
  font-weight: bold;
}


/* ===== MUDACEN WP OVERRIDES ===== */

/* --- Typography: force Inter everywhere --- */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div, button, input {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* --- Section background colors --- */
.bg-white   { background-color: #FFFFFF !important; }
.bg-light-gray { background-color: #F5F7FB !important; }
.bg-primary { background-color: #3551C9 !important; }
.bg-dark    { background-color: #2F3440 !important; }

/* --- Text colors: light sections --- */
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white p,
.bg-light-gray h1, .bg-light-gray h2, .bg-light-gray h3, .bg-light-gray p {
    color: #2F3440 !important;
}

/* --- Text colors: dark/blue sections --- */
.bg-primary h1, .bg-primary h2, .bg-primary h3,
.bg-primary p, .bg-primary strong, .bg-primary li,
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark p, .bg-dark strong, .bg-dark li {
    color: #FFFFFF !important;
}

/* --- Hero section --- */
#hero { background-color: #2F3440 !important; }
#hero h1, #hero p, #hero .hero-subtitle, #hero span { color: #FFFFFF !important; }
#hero .hero-subtitle { color: #C7B37A !important; }

/* --- Buttons: lock colors so theme doesn't override --- */
.btn-accent {
    background-color: #C7B37A !important;
    color: #2F3440 !important;
}
.btn-primary {
    background-color: #3551C9 !important;
    color: #FFFFFF !important;
}
.btn-white {
    background-color: #FFFFFF !important;
    color: #3551C9 !important;
}

/* --- Service cards inside dark sections keep white text --- */
#propuesta-valor .service-card h3,
#propuesta-valor .service-card p { color: #FFFFFF !important; }

/* --- Trust cards inside dark sections keep dark text --- */
.trust-card h3 { color: #2F3440 !important; }
.trust-card p { color: #555555 !important; }

/* --- Accent icon color --- */
.service-icon { color: #3551C9 !important; }
.icon { color: #C7B37A !important; }
