﻿/* ═══════════════════════════════════════════
   RESIDENCIAS CIUDAD REAL — GLOBAL STYLESHEET
   ═══════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ──────────────────── */
:root {
  --white: #FFFFFF;
  --off-white: #FDFAF7;
  --cream: #F6EFE6;
  --warm-gray-50: #F9F6F2;
  --warm-gray-100: #EFE9E1;
  --warm-gray-200: #DBD1C4;
  --warm-gray-300: #BCAF9C;
  --warm-gray-400: #998A76;
  --warm-gray-500: #786A58;
  --warm-gray-600: #584D40;
  --warm-gray-700: #3C332A;
  --warm-gray-800: #28221C;
  --warm-gray-900: #1B1712;

  --sage-50: #EEF5F8;
  --sage-100: #D3E5EC;
  --sage-200: #A8CADA;
  --sage-300: #7CAEC5;
  --sage-400: #5A93AF;
  --sage-500: #3E7A94;
  --sage-600: #2F6178;
  --sage-700: #244B5D;

  --sky-50: #F0F8FA;
  --sky-100: #D7EBF0;
  --sky-200: #ABD6E0;
  --sky-300: #7CBECE;
  --sky-400: #56A4B9;
  --sky-500: #3D8CA3;

  --terracotta-50: #EFF5EE;
  --terracotta-100: #D7E8D3;
  --terracotta-200: #B3D2AB;
  --terracotta-300: #8CB980;
  --terracotta-400: #6B9E5C;
  --terracotta-500: #4F7F42;

  --gold-50: #FAF6EC;
  --gold-100: #EFE2C4;
  --gold-200: #DFC894;
  --gold-300: #CBA968;
  --gold-400: #B78F45;

  --font-display: 'Fraunces', Georgia, serif;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;

  --shadow-soft: 0 2px 20px rgba(27, 23, 18, 0.05);
  --shadow-medium: 0 4px 30px rgba(27, 23, 18, 0.08);
  --shadow-elevated: 0 10px 44px rgba(27, 23, 18, 0.12);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  color: var(--warm-gray-800);
  background: var(--white);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ── TYPOGRAPHY ─────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); letter-spacing: -0.02em; color: var(--warm-gray-900); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.01em; color: var(--warm-gray-900); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--warm-gray-800); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-500);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--sage-400);
  display: inline-block;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  color: var(--warm-gray-500);
  line-height: 1.8;
  max-width: 620px;
  font-weight: 300;
}

/* ── ANIMATIONS ─────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ── BUTTONS ────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--sage-500);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(62, 122, 148, 0.25);
  transition: all 0.35s var(--transition-smooth);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--sage-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(62, 122, 148, 0.3);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--transition-smooth);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  color: var(--warm-gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid var(--warm-gray-200);
  border-radius: var(--radius-xl);
  transition: all 0.35s var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--sage-300);
  color: var(--sage-600);
  background: var(--sage-50);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--white);
  color: var(--sage-700);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.35s var(--transition-smooth);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

/* ── NAVIGATION ─────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(216, 212, 204, 0.3);
  transition: all 0.4s var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(26, 24, 22, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 108px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-img {
  height: 78px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--warm-gray-900);
  letter-spacing: -0.01em;
}

.nav-logo-text span {
  color: var(--sage-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 9px 13px;
  font-size: 1.10rem;
  font-weight: 500;
  color: var(--warm-gray-600);
  border-radius: var(--radius-xl);
  transition: all 0.3s var(--transition-smooth);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--sage-600);
  background: var(--sage-50);
}

.nav-links a.active {
  color: var(--sage-700);
  background: var(--sage-100);
}

.nav-cta {
  padding: 10px 26px !important;
  background: var(--sage-500) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 2px 12px rgba(62, 122, 148, 0.25);
  transition: all 0.3s var(--transition-smooth) !important;
}

.nav-cta:hover {
  background: var(--sage-600) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(62, 122, 148, 0.3) !important;
}

/* ── NAV ACTIONS (phone + hamburger) ──── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sage-700);
  border: 2px solid var(--sage-300);
  border-radius: var(--radius-xl);
  background: var(--sage-50);
  transition: all 0.3s var(--transition-smooth);
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.nav-phone:hover {
  background: var(--sage-100);
  border-color: var(--sage-400);
  transform: translateY(-1px);
}

.nav-phone svg { width: 17px; height: 17px; flex-shrink: 0; }

@media (max-width: 900px) {
  .nav-phone-label { display: none; }
  .nav-phone { padding: 10px 12px; }
}

/* ── NAV DROPDOWN ───────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  font-size: 1.10rem;
  font-weight: 500;
  color: var(--warm-gray-600);
  border-radius: var(--radius-xl);
  transition: all 0.3s var(--transition-smooth);
  cursor: pointer;
  letter-spacing: 0.01em;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--sage-600);
  background: var(--sage-50);
}

.nav-dropdown-toggle svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.3s var(--transition-smooth);
}

.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--warm-gray-100);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s var(--transition-smooth);
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu details {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.nav-dropdown-menu details + details { margin-top: 2px; }

.nav-dropdown-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--warm-gray-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
  transition: all 0.2s;
}

.nav-dropdown-menu summary::-webkit-details-marker { display: none; }

.nav-dropdown-menu summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.nav-dropdown-menu details[open] summary::after { transform: rotate(-135deg); }

.nav-dropdown-menu summary:hover {
  background: var(--sage-50);
  color: var(--sage-600);
}

.nav-dropdown-menu details > a {
  display: block;
  padding: 9px 16px 9px 28px;
  font-size: 0.86rem;
  color: var(--warm-gray-600);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-weight: 400;
}

.nav-dropdown-menu details > a:hover {
  background: var(--sage-50);
  color: var(--sage-600);
}

/* ── HAMBURGER ──────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--warm-gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 4px;
    border-bottom: 1px solid var(--warm-gray-100);
    transform: translateY(-110%);
    transition: transform 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-medium);
    z-index: 100;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; text-align: center; padding: 14px; font-size: 1rem; white-space: normal; }
  .nav-dropdown-toggle { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; white-space: normal; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--sage-50);
    border-radius: var(--radius-md);
    margin-top: 4px;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu summary { justify-content: center; }
  .nav-dropdown-menu details > a { text-align: center; }
}

/* ── PAGE HERO (subpages) ───────────────── */
.page-hero {
  padding: clamp(160px, 18vw, 220px) 0 clamp(60px, 8vw, 100px);
  background: var(--off-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--sage-50), transparent 60%);
  opacity: 0.6;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sky-50), transparent 60%);
  opacity: 0.4;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero h1 em {
  font-style: italic;
  font-family: var(--font-heading);
  color: var(--sage-600);
}

.page-hero .section-label {
  justify-content: center;
}

.page-hero .section-subtitle {
  margin: 0 auto;
}

/* ── CTA BANNER ─────────────────────────── */
.cta-banner {
  padding: clamp(70px, 10vw, 120px) 0;
  background: linear-gradient(135deg, var(--sage-50) 0%, var(--cream) 50%, var(--sage-100) 100%);
  border-top: 1px solid var(--sage-200);
  border-bottom: 1px solid var(--sage-200);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 200%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(62, 122, 148,0.06) 0%, transparent 60%);
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-inner h2 { color: var(--warm-gray-900); margin-bottom: 16px; }

.cta-inner p {
  color: var(--warm-gray-500);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.8;
}

/* ── FOOTER ─────────────────────────────── */
.footer {
  background: var(--warm-gray-50);
  color: var(--warm-gray-600);
  border-top: 2px solid var(--warm-gray-100);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--warm-gray-900);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warm-gray-400);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--warm-gray-600);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--sage-600); }

.footer-social p {
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--warm-gray-500);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--warm-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray-600);
  transition: all 0.3s var(--transition-smooth);
}

.social-link svg { width: 19px; height: 19px; }

.social-link:hover {
  background: var(--sage-500);
  border-color: var(--sage-500);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--warm-gray-200);
  font-size: 0.80rem;
  color: var(--warm-gray-400);
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--warm-gray-400); transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--warm-gray-700); }

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

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── BACK TO TOP ────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(62, 122, 148, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--transition-smooth);
  z-index: 999;
  cursor: pointer;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--sage-600); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ── PAGE LOADER ────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }

.loader-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-400), var(--sage-600));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: pulse-soft 1.5s ease-in-out infinite;
}

.loader-icon svg { width: 28px; height: 28px; fill: white; }

.loader-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--warm-gray-700);
}

/* ── COOKIE CONSENT ─────────────────────── */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  background: var(--warm-gray-900);
  color: var(--white);
  padding: 22px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  transition: transform 0.5s var(--transition-smooth);
}

.cookie-consent.visible { transform: translateY(0); }

.cookie-consent-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0;
}

.cookie-consent-text a {
  color: var(--sage-200);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent-actions button {
  padding: 12px 26px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  font-family: inherit;
}

.cookie-accept {
  background: var(--sage-500);
  color: var(--white);
  border: none;
}

.cookie-accept:hover { background: var(--sage-600); }

.cookie-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.cookie-reject:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

@media (max-width: 700px) {
  .cookie-consent { flex-direction: column; text-align: center; gap: 16px; padding: 20px 24px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions button { flex: 1; }
}

/* ── HERO ACCENT (colored, same typeface) ── */
.page-hero h1 .hero-accent,
.slider-content h1 .hero-accent {
  color: var(--sage-600);
}

/* ── VALUES ─────────────────────────────── */
.values {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--off-white);
  position: relative;
}

.values::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm-gray-200), transparent);
}

.values-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  text-align: center;
  border: 1px solid var(--warm-gray-100);
  transition: all 0.5s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sage-400);
  transform: scaleX(0);
  transition: transform 0.5s var(--transition-smooth);
}

.value-card:hover::before { transform: scaleX(1); }

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: transparent;
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--transition-smooth);
}

.value-card:hover .value-icon { transform: scale(1.08); }

.value-icon.empathy { background: linear-gradient(135deg, var(--terracotta-50), var(--terracotta-100)); }
.value-icon.solidarity { background: linear-gradient(135deg, var(--sage-50), var(--sage-100)); }
.value-icon.dignity { background: linear-gradient(135deg, var(--sky-50), var(--sky-100)); }
.value-icon.warmth { background: linear-gradient(135deg, var(--gold-50), var(--gold-100)); }

.value-icon svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.value-card p {
  font-size: 0.95rem;
  color: var(--warm-gray-500);
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }
