/* ============================================================
   Ángel Bonet Codina — style.css
   Economía del Propósito | ImpactCo
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --navy:        #1C1C1C;
  --navy-light:  #2E2E2E;
  --gold:        #B8503C;
  --gold-light:  #C46350;
  --cream:       #EDEBE7;
  --dark:        #1A1A1A;
  --gray:        #6B7280;
  --gray-light:  #E2DFDB;
  --white:       #FFFFFF;
  --transition:  0.3s ease;
  --max-width:   1200px;
  --nav-height:  80px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.18);
  --radius:      8px;
  --radius-lg:   16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Accessibility: Skip to Content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 12px 24px;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.text-gray  { color: var(--gray); }
.text-white { color: var(--white); }

.label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 90, 56, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}

.nav-logo .logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.nav-logo .logo-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav.scrolled .nav-logo .logo-name {
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav.scrolled .nav-link {
  color: var(--gray);
}

.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active {
  color: var(--navy);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  padding: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--navy);
}

.lang-btn:hover:not(.active) {
  color: var(--white);
}

.nav.scrolled .lang-toggle {
  background: var(--gray-light);
}

.nav.scrolled .lang-btn {
  color: var(--gray);
}

.nav.scrolled .lang-btn:hover:not(.active) {
  color: var(--navy);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(255,255,255,0.1);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav.scrolled .hamburger span {
  background: var(--navy);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 16px 0 24px;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu .nav-link {
  display: block;
  color: var(--dark);
  padding: 12px 24px;
  border-radius: 0;
  font-size: 1rem;
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  color: var(--navy);
  background: var(--cream);
}

.mobile-menu .lang-toggle {
  margin: 16px 24px 0;
  background: var(--gray-light);
  display: inline-flex;
}

.mobile-menu .lang-btn {
  color: var(--gray);
}

.mobile-menu .lang-btn:hover:not(.active) {
  color: var(--navy);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #3A3A3A 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(224,90,56,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(0,0,0,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='400' cy='400' r='350' fill='none' stroke='rgba(224,90,56,0.07)' stroke-width='80'/%3E%3Ccircle cx='400' cy='400' r='250' fill='none' stroke='rgba(224,90,56,0.04)' stroke-width='60'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 28px;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
  animation: scrollBob 2s ease-in-out infinite;
}

.hero-scroll svg {
  opacity: 0.5;
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ABOUT (HOME)
   ============================================================ */

.about-home {
  background: var(--cream);
  padding: 100px 0;
}

.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-placeholder {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-image-placeholder::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--gold), transparent 60%);
  z-index: -1;
}

.about-image-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  opacity: 0.4;
  z-index: 0;
}

.about-image-initials {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  user-select: none;
}

.about-home-content .label {
  margin-bottom: 12px;
}

.about-home-content h2 {
  color: var(--navy);
  margin-bottom: 24px;
}

.about-home-content p {
  color: var(--gray);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.credentials-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
}

.credential-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.credential-text {
  flex: 1;
}

.credential-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.credential-text span {
  font-size: 0.875rem;
  color: var(--gray);
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats {
  background: var(--navy);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  background: var(--white);
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header h2 {
  color: var(--navy);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.0625rem;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

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

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--navy);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--navy);
  color: var(--gold);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */

.quote-section {
  background: var(--gold);
  padding: 80px 0;
  text-align: center;
}

.quote-section blockquote {
  max-width: 800px;
  margin: 0 auto;
}

.quote-section blockquote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 24px;
}

.quote-section blockquote p::before {
  content: '\201C';
}

.quote-section blockquote p::after {
  content: '\201D';
}

.quote-author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.75;
  letter-spacing: 0.05em;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  background: var(--cream);
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--navy);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--gray);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
}

.footer-main {
  padding: 80px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
}

.footer-brand .logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.footer-brand .logo-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
}

.footer-contact-list a:hover {
  color: var(--gold);
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--gold);
}

/* EU Logos Bar (Kit Digital requirement) */
.footer-eu {
  background: #FFFFFF;
  border-top: 3px solid var(--gold);
  padding: 20px 0;
}

.footer-eu-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.eu-logos-img {
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .eu-logos-img {
    max-height: 240px;
  }
}

/* Legal Bar */
.footer-legal {
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.footer-legal .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--gold);
}

/* ============================================================
   PAGE HERO (Inner pages)
   ============================================================ */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: calc(var(--nav-height) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(224,90,56,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero-content .label {
  margin-bottom: 12px;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   SERVICES DETAIL PAGE
   ============================================================ */

.services-detail {
  padding: 100px 0;
}

.service-detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.service-detail-section:last-child {
  margin-bottom: 0;
}

.service-detail-section.reverse {
  direction: rtl;
}

.service-detail-section.reverse > * {
  direction: ltr;
}

.service-detail-visual {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-detail-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(201,168,76,0.15) 0%, transparent 60%);
}

.service-detail-visual svg {
  width: 80px;
  height: 80px;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.service-detail-content .label {
  margin-bottom: 8px;
}

.service-detail-content h2 {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
}

.service-detail-content > p {
  color: var(--gray);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--dark);
  font-weight: 500;
}

.service-feature::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--navy);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%23C9A84C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-bio {
  padding: 100px 0;
  background: var(--white);
}

.about-bio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.about-bio-image {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.about-bio-image-box {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.about-bio-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-bio-image-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, var(--gold), transparent 60%);
  z-index: -1;
}

.about-bio-image-initials {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
}

.about-bio-name {
  text-align: center;
}

.about-bio-name strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.about-bio-name span {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 500;
}

.about-bio-content .label {
  margin-bottom: 12px;
}

.about-bio-content h2 {
  color: var(--navy);
  margin-bottom: 32px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.about-bio-content p {
  color: var(--gray);
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

/* Timeline */
.timeline {
  padding: 100px 0;
  background: var(--cream);
}

.timeline h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 16px;
}

.timeline-intro {
  text-align: center;
  color: var(--gray);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 64px;
}

.timeline-list {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 60px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1));
}

.timeline-item {
  position: relative;
  padding: 0 0 48px 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 20px;
  height: 20px;
  background: var(--navy);
  border: 3px solid var(--gold);
  border-radius: 50%;
}

.timeline-year {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.timeline-item h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--gray);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.7;
}

/* ImpactCo Section */
.impactco-section {
  padding: 100px 0;
  background: var(--white);
}

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

.impactco-content .label {
  margin-bottom: 12px;
}

.impactco-content h2 {
  color: var(--navy);
  margin-bottom: 20px;
}

.impactco-content p {
  color: var(--gray);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.impactco-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.impactco-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

.impactco-stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.impactco-stat-label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-section {
  padding: 80px 0 100px;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  color: var(--navy);
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--gray);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.125rem;
}

.contact-detail-text {
  padding-top: 4px;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-detail-text a,
.contact-detail-text span {
  font-size: 0.9375rem;
  color: var(--gray);
  transition: color var(--transition);
}

.contact-detail-text a:hover {
  color: var(--navy);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 32px;
}

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

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

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

.form-group label span.required {
  color: #dc3545;
  margin-left: 2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224,90,56,0.12);
}

.form-control::placeholder {
  color: #aab4c0;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}

.form-check label {
  font-size: 0.875rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1.6;
}

.form-check label a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 15px 32px;
}

.form-message {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-content {
  padding: 80px 0 100px;
  background: var(--white);
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
}

.legal-body h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-light);
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.85;
}

.legal-body ul li {
  margin-bottom: 8px;
}

.legal-body strong {
  color: var(--dark);
  font-weight: 600;
}

.legal-body a {
  color: var(--navy);
  text-decoration: underline;
}

.legal-body a:hover {
  color: var(--gold);
}

.legal-info-box {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-info-box p {
  margin-bottom: 8px;
  color: var(--dark);
}

/* ============================================================
   UTILITIES
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

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

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-grid > .footer-brand {
    grid-column: 1 / -1;
  }

  .about-home-grid {
    gap: 48px;
  }

  .about-bio-grid {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }

  .impactco-grid {
    gap: 48px;
  }

  .service-detail-section {
    gap: 48px;
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  /* Nav */
  .nav-links,
  .lang-toggle {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Hero */
  .hero {
    text-align: center;
    padding-bottom: 80px;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  /* About Home */
  .about-home-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-placeholder {
    max-width: 320px;
    margin-inline: auto;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(3)::before,
  .stat-item:nth-child(4)::before {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  /* Services detail */
  .service-detail-section,
  .service-detail-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
    margin-bottom: 64px;
  }

  .service-detail-visual {
    aspect-ratio: 16/9;
    max-height: 280px;
  }

  /* About bio */
  .about-bio-grid {
    grid-template-columns: 1fr;
  }

  .about-bio-image {
    position: static;
    max-width: 280px;
    margin-inline: auto;
  }

  /* ImpactCo */
  .impactco-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline-list {
    padding-left: 48px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

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

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid > .footer-brand {
    grid-column: auto;
  }


  .footer-legal .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .stat-number {
    font-size: 2.25rem;
  }

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

  .about-home {
    padding: 64px 0;
  }

  .services {
    padding: 64px 0;
  }

  .services-grid {
    max-width: 100%;
  }

  .service-card {
    padding: 28px 24px;
  }

  .cta-section {
    padding: 64px 0;
  }

  .about-bio {
    padding: 64px 0;
  }

  .timeline {
    padding: 64px 0;
  }

  .impactco-section {
    padding: 64px 0;
  }

  .impactco-visual {
    padding: 28px 20px;
  }

  .contact-section {
    padding: 48px 0 64px;
  }

  .contact-form-wrap {
    padding: 24px 16px;
  }

  .eu-logos {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal-links {
    gap: 12px;
  }
}

/* ============================================================
   SERVICES GRID — 6 COLUMNAS (3+3)
   ============================================================ */

.services-grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .services-grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid--6 {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ============================================================
   MANIFIESTO
   ============================================================ */

.manifiesto {
  background: var(--gold);
  padding: 80px 0;
  text-align: center;
}

.manifiesto-header {
  max-width: 680px;
  margin: 0 auto 56px;
}

.manifiesto-header h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.manifiesto-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  font-style: italic;
  margin: 0;
}

.manifiesto-header em {
  color: var(--white);
  font-style: italic;
}

.manifiesto .label {
  color: rgba(255, 255, 255, 0.75);
}

.manifiesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 960px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.manifiesto-stat {
  background: rgba(255, 255, 255, 0.12);
  padding: 40px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background var(--transition);
}

.manifiesto-stat:hover {
  background: rgba(255, 255, 255, 0.2);
}

.manifiesto-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 14px;
}

.manifiesto-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.manifiesto-cta {
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .manifiesto-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
}

/* ============================================================
   HERO — LAYOUT 2 COLUMNAS CON FOTO
   ============================================================ */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 50px 0 80px;
  width: 100%;
}

/* En layout de 2 columnas el max-width lo controla el grid */
.hero-grid .hero-content {
  max-width: none;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-photo-frame {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.hero-photo-frame > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}

.hero-photo-deco {
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: 20px;
  left: 16px;
  border: 2px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero-photo-badge {
  position: absolute;
  bottom: -20px;
  left: -28px;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  min-width: 110px;
}

.badge-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
}

.badge-txt {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 40px 0 60px;
    gap: 48px;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-photo-frame {
    max-width: 300px;
  }
}

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

  .hero-grid {
    padding: 24px 0 40px;
  }
}

/* ============================================================
   PRESENCIA INTERNACIONAL — MOSAICO DE FOTOS
   ============================================================ */

.presencia {
  padding: 80px 0 90px;
  background: var(--navy);
}

.presencia .section-header h2 {
  color: var(--white);
}

.presencia .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.presencia .label {
  color: var(--gold);
}

.presencia-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.presencia-photo {
  position: relative;
  overflow: hidden;
}

.presencia-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.8);
}

.presencia-photo:hover img {
  transform: scale(1.06);
  filter: brightness(0.95);
}

.presencia-photo--tall {
  grid-row: 1 / 3;
}

.presencia-photo::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.presencia-photo:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .presencia-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }

  .presencia-photo--tall {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
  }
}

@media (max-width: 480px) {
  .presencia-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }

  .presencia-photo--tall {
    grid-column: 1 / 2;
  }
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */

.testimonials {
  padding: 100px 0;
  background: var(--cream);
}

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-quote-mark {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.9;
  color: var(--gold);
  margin-bottom: 12px;
  user-select: none;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--dark);
  font-size: 0.9375rem;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--gray-light);
  padding-top: 18px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-meta strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.testimonial-meta span {
  font-size: 0.8125rem;
  color: var(--gray);
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ============================================================
   CTA — DARK PHOTO VARIANT
   ============================================================ */

.cta-section--dark {
  background:
    linear-gradient(rgba(15, 25, 55, 0.88), rgba(15, 25, 55, 0.93)),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1400&q=80')
    center / cover no-repeat;
}

.cta-section--dark h2 {
  color: var(--white);
}

.cta-section--dark p {
  color: rgba(255, 255, 255, 0.72);
}

/* ============================================================
   SERVICE DETAIL — FOTO EN LUGAR DE ICONO
   ============================================================ */

.service-detail-visual--photo {
  padding: 0;
  background: none;
}

.service-detail-visual--photo::before {
  display: none;
}

.service-detail-visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero entrance — staggered */
.hero-content .hero-eyebrow { animation: fadeUp 0.7s ease both; animation-delay: 0.1s; }
.hero-content h1            { animation: fadeUp 0.7s ease both; animation-delay: 0.25s; }
.hero-content .hero-desc    { animation: fadeUp 0.7s ease both; animation-delay: 0.4s; }
.hero-content .hero-ctas { animation: fadeUp 0.7s ease both; animation-delay: 0.55s; }
.hero-visual                { animation: slideLeft 0.9s ease both; animation-delay: 0.3s; }

/* Page hero entrance */
.page-hero-content .label { animation: fadeUp 0.6s ease both; animation-delay: 0.1s; }
.page-hero-content h1     { animation: fadeUp 0.6s ease both; animation-delay: 0.25s; }
.page-hero-content p      { animation: fadeUp 0.6s ease both; animation-delay: 0.4s; }

/* Scroll-triggered base state — hidden before JS reveals */
.anim-fade-up,
.anim-fade-in,
.anim-slide-left,
.anim-slide-right,
.anim-scale-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-fade-up    { transform: translateY(36px); }
.anim-slide-left { transform: translateX(36px); }
.anim-slide-right{ transform: translateX(-36px); }
.anim-scale-in   { transform: scale(0.93); }

/* Stagger delays for grouped children */
.anim-stagger > *:nth-child(1) { transition-delay: 0s; }
.anim-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.anim-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.anim-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.anim-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.anim-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Revealed state */
.anim-fade-up.revealed,
.anim-fade-in.revealed,
.anim-slide-left.revealed,
.anim-slide-right.revealed,
.anim-scale-in.revealed {
  opacity: 1;
  transform: none;
}

/* Honour prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-fade-in,
  .anim-slide-left,
  .anim-slide-right,
  .anim-scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-content .hero-eyebrow,
  .hero-content h1,
  .hero-content .hero-desc,
  .hero-content .hero-ctas,
  .hero-visual,
  .page-hero-content .label,
  .page-hero-content h1,
  .page-hero-content p {
    animation: none;
    opacity: 1;
  }
}

/* ── Enhanced hover effects ── */
.service-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.presencia-photo {
  transition: transform 0.5s ease;
  overflow: hidden;
}
.presencia-photo:hover img {
  transform: scale(1.06);
}
.presencia-photo img {
  transition: transform 0.5s ease;
}

.impactco-stat {
  transition: transform 0.3s ease;
}
.impactco-stat:hover {
  transform: translateY(-4px);
}
