/* ==========================================================================
   Espánium Design System - Space Grotesk + Inter Premium Tech Typography
   ========================================================================== */

:root {
  /* Color Palette matching 1LexanXL Schema */
  --header-blue: #0157D6;
  --header-blue-dark: #0144AA;
  --primary-blue: #0157D6;
  --primary-hover: #0144AA;
  --primary-light: #EBF2FF;
  
  --neutral-1000: #0F172A;
  --neutral-800: #1E293B;
  --neutral-600: #475569;
  --neutral-500: #64748B;
  --neutral-300: #CBD5E1;
  --neutral-200: #E2E8F0;
  --neutral-100: #F8FAFC;
  
  /* Warm Beige Page Background Design System */
  --bg-beige: #F7F4EE;
  --card-bg: #FFFFFF;
  --card-border: #E6E1D7;
  --card-hover-border: #0157D6;

  --accent-emerald: #10B981;
  --accent-emerald-bg: #D1FAE5;

  /* Alpiko Gold Yellow Brand Color */
  --accent-yellow: #FEDC00;
  --accent-yellow-hover: #FFE62E;
  --accent-yellow-text: #0B1B3D;

  /* Premium Tech Typography: Space Grotesk + Inter */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(1, 87, 214, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(1, 87, 214, 0.14);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base - Strict Horizontal Overflow Prevention */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Strict Background Scroll Lock on Modal Open (Preserves Scroll Position) */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background-color: var(--bg-beige);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Gentle Silky Crossfade Transition for Language Swap */
[data-i18n] {
  transition: opacity 0.16s ease-in-out;
}

body.lang-changing [data-i18n] {
  opacity: 0.2;
}

/* Offset Main Content to account for Fixed Header */
main {
  padding-top: 68px;
}

/* Container - Perfectly Symmetric Padding */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom Styled Toast Notification (Mobile Optimized Banner Card) */
.toast-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: calc(100% - 32px);
  max-width: 420px;
  background-color: var(--neutral-1000);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-notification.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 28px;
  height: 28px;
  background-color: var(--accent-emerald);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.toast-message {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4;
}

/* Section Shared */
.section {
  padding: 68px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background-color: transparent;
  overflow: hidden;
}

.section-header-left {
  margin-bottom: 28px;
}

/* Prominent Section Headings */
.section-title-uppercase {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--neutral-1000);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.25;
}

/* Unified Pill Capsule Button Design System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(1, 87, 214, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 87, 214, 0.38);
}

.btn-outline {
  background-color: var(--accent-yellow);
  color: var(--accent-yellow-text);
  border: 1.5px solid var(--accent-yellow);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(254, 220, 0, 0.4);
}

.btn-outline:hover {
  background-color: var(--accent-yellow-hover);
  border-color: var(--accent-yellow-hover);
  color: var(--accent-yellow-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(254, 220, 0, 0.6);
}

.btn-header {
  background-color: #ffffff;
  color: var(--primary-blue);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  text-align: center;
}

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

.btn-sm {
  padding: 9px 20px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 34px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* 1. HEADER & LANGUAGE SWITCHER (Fixed Full-Width Screen Span Header Bar) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--header-blue);
  color: #ffffff;
  height: 68px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 100%;
  padding: 0 36px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  height: 100%;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 42px;
  max-height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  display: inline-block;
  text-align: center;
}

.main-nav .nav-link[data-i18n="nav_servicios"] { min-width: 80px; }
.main-nav .nav-link[data-i18n="nav_ventajas"] { min-width: 84px; }
.main-nav .nav-link[data-i18n="nav_proyectos"] { min-width: 84px; }
.main-nav .nav-link[data-i18n="nav_testimonios"] { min-width: 98px; }
.main-nav .nav-link[data-i18n="nav_sobre_mi"] { min-width: 80px; }
.main-nav .nav-link[data-i18n="nav_experiencia"] { min-width: 94px; }
.main-nav .nav-link[data-i18n="nav_contacto"] { min-width: 80px; }

.nav-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Language Switcher - Fully Pill Capsules */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 3px 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.lang-switcher-mobile {
  display: none;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: var(--primary-blue);
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  user-select: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 2. HERO SECTION (Pro UI/UX Design System) */
.hero-section {
  padding: 48px 0 56px;
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .hero-section {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    padding: 32px 0 40px;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Status Pill Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background-color: rgba(1, 87, 214, 0.08);
  color: var(--primary-blue);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(1, 87, 214, 0.18);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--neutral-1000);
  line-height: 1.16;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--neutral-600);
  line-height: 1.56;
  margin-bottom: 26px;
  max-width: 650px;
}

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

.hero-actions .btn-lg {
  min-width: 160px;
  text-align: center;
}

/* Trust & Pro Metrics Bar (Values on top, Labels underneath) */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--card-border);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--neutral-1000);
  line-height: 1.1;
}

.metric-lbl {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--neutral-600);
  white-space: nowrap;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background-color: var(--card-border);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Profile Photo Container - Completely Frameless, Borderless & Seamless */
.profile-card {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  background-color: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  box-shadow: none;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  display: block;
  /* Fades out softly ONLY at the bottom - Top, Left & Right are 100% sharp and edge-to-edge */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 82%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 82%, rgba(0, 0, 0, 0) 100%);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.profile-card::after {
  display: none;
}

/* Clean Floating Glassmorphism Badges with Smooth Scroll-Out Effect */
.float-badge {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neutral-1000);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 5;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  white-space: nowrap;
  opacity: 1;
}

.float-badge-top {
  top: 14px;
  right: 0px;
}

.float-badge-bottom {
  bottom: 14px;
  left: -12px;
  background-color: rgba(240, 246, 255, 0.96);
  color: var(--primary-blue);
  border: 1px solid rgba(1, 87, 214, 0.22);
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(1, 87, 214, 0.16);
  max-width: 250px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

/* Smooth Vertical Slide-Off Screen Animation */
.float-badge-top.scrolled-out {
  transform: translateY(-24px);
  opacity: 0;
}

.float-badge-bottom.scrolled-out {
  transform: translateY(24px);
  opacity: 0;
}

/* Clickable Profile Photo Effects */
.profile-card-clickable,
.sobre-mi-img-clickable {
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast);
}

.profile-card-clickable:hover {
  transform: scale(1.02);
}

.sobre-mi-img-clickable:hover {
  transform: scale(1.08);
}

.avatar-placeholder {
  color: var(--neutral-400);
}

/* 3. SERVICIOS Y TARIFAS - ACCORDION ("ГАРМОШКА") */
.servicios-section {
  background-color: transparent;
}

.services-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.accordion-item:hover {
  border-color: rgba(1, 87, 214, 0.3);
  box-shadow: 0 8px 24px rgba(1, 87, 214, 0.08);
}

.accordion-item.active {
  border-color: var(--primary-blue);
  box-shadow: 0 10px 28px rgba(1, 87, 214, 0.12);
}

.accordion-item-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-color: rgba(1, 87, 214, 0.25);
}

.accordion-header {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  user-select: none;
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.accordion-header-left .service-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.accordion-item.active .service-icon {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.accordion-header-left .service-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neutral-1000);
  margin: 0;
}

.accordion-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.accordion-header-right .service-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-blue);
  background-color: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(1, 87, 214, 0.2);
}

.accordion-header-right .service-price.price-highlight {
  background-color: var(--primary-blue);
  color: #ffffff;
  border-color: transparent;
}

.accordion-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-beige);
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, color 0.2s ease;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
  background-color: var(--primary-blue);
  color: #ffffff;
}

/* ACCORDION BODY TRANSITION */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-content {
  overflow: hidden;
  padding: 0 24px;
  transition: padding 0.35s ease;
}

.accordion-item.active .accordion-content {
  padding: 0 24px 20px 78px;
}

.accordion-content .service-desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--neutral-700);
  margin-bottom: 14px;
}

.accordion-actions {
  display: flex;
  align-items: center;
}

.accordion-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.accordion-cta-btn:hover {
  color: #1d4ed8;
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .accordion-header {
    padding: 14px 16px;
  }
  .accordion-header-left {
    gap: 12px;
  }
  .accordion-header-left .service-title {
    font-size: 0.94rem;
  }
  .accordion-header-right .service-price {
    font-size: 0.82rem;
    padding: 4px 10px;
  }
  .accordion-item.active .accordion-content {
    padding: 0 16px 16px 16px;
  }
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  background-color: var(--neutral-1000);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-1000);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.94rem;
  color: var(--neutral-600);
  line-height: 1.55;
  flex-grow: 1;
}

/* 4. VENTAJAS (Grayscale in Desktop until Hover) */
.ventajas-section {
  background-color: transparent;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.ventaja-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ventaja-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.check-badge {
  width: 34px;
  height: 34px;
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: filter var(--transition-normal), opacity var(--transition-normal), transform var(--transition-normal);
}

.ventaja-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--neutral-1000);
  margin-bottom: 8px;
}

.ventaja-desc {
  font-size: 0.9rem;
  color: var(--neutral-600);
  line-height: 1.5;
  flex-grow: 1;
}

/* Desktop Hover Interaction: B&W Grayscale until Hover */
@media (min-width: 769px) {
  .ventaja-card .check-badge {
    filter: grayscale(100%);
    opacity: 0.55;
  }

  .ventaja-card:hover .check-badge {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
  }

  .contacto-card .contacto-icon {
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter var(--transition-normal), opacity var(--transition-normal), transform var(--transition-normal);
  }

  .contacto-card:hover .contacto-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
  }

  .service-card .service-icon {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-normal), opacity var(--transition-normal), transform var(--transition-normal);
  }

  .service-card:hover .service-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
  }

  .proyecto-card .proyecto-category {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter var(--transition-normal), opacity var(--transition-normal);
  }

  .proyecto-card:hover .proyecto-category {
    filter: grayscale(0%);
    opacity: 1;
  }
}

/* 5. PROYECTOS DE EJEMPLO */
.proyectos-section {
  background-color: transparent;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.proyecto-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  height: 100%;
}

.proyecto-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.proyecto-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--primary-blue);
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.proyecto-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--neutral-1000);
  margin-bottom: 10px;
}

.proyecto-desc {
  font-size: 0.9rem;
  color: var(--neutral-600);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.proyecto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--neutral-600);
  background-color: var(--bg-beige);
  border: 1px solid var(--card-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* 6. TESTIMONIOS (Single Continuous Infinite Ticker Row) */
.testimonios-section {
  padding: 64px 0;
  overflow: hidden;
  position: relative;
  background-color: transparent;
}

.testimonios-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-review-trigger {
  box-shadow: 0 2px 10px rgba(1, 87, 214, 0.2);
}

.testimonios-slider-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.testimonios-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.track-1 {
  animation: scrollLeft 110s linear infinite;
}

.testimonios-slider-wrapper:hover .testimonios-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonio-pill-card {
  width: 350px;
  flex-shrink: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.testimonio-pill-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonio-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rating-score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--neutral-1000);
}

.testimonio-stars {
  color: #F59E0B;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
}

.testimonio-text {
  font-size: 0.92rem;
  color: var(--neutral-600);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 16px;
  flex-grow: 1;
}

.testimonio-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--neutral-200);
  padding-top: 12px;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--neutral-1000);
}

.author-role {
  font-size: 0.8rem;
  color: var(--neutral-500);
}

/* Review Modal Form Styling */
.modal-card-sm {
  max-width: 460px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--neutral-1000);
}

.star-rating-picker {
  display: flex;
  gap: 6px;
}

.star-item {
  font-size: 1.8rem;
  color: var(--neutral-300);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.star-item:hover,
.star-item.active {
  color: #F59E0B;
}

.star-item:hover {
  transform: scale(1.15);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-300);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--neutral-1000);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background-color: var(--neutral-100);
}

.form-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-light);
  background-color: #ffffff;
}

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

/* About Me Large Profile Modal Layout - Executive Balance */
.modal-card-about {
  max-width: 740px;
  width: calc(100% - 32px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.about-modal-body {
  padding: 28px 32px;
  overflow-x: hidden !important;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
  scroll-behavior: smooth;
}

.about-modal-grid {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
}

.about-modal-visual {
  width: 230px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.about-modal-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

/* Quick Profile Info Card Under Photo */
.about-quick-card {
  margin-top: 14px;
  background-color: var(--bg-beige);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neutral-800);
}

.quick-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px var(--accent-emerald-bg);
  flex-shrink: 0;
}

.quick-info-icon {
  font-size: 0.92rem;
  line-height: 1;
}

.quick-info-text {
  white-space: nowrap;
}

.about-modal-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.about-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neutral-1000);
  margin-bottom: 2px;
  line-height: 1.2;
}

.about-role-subtitle {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 14px;
  line-height: 1.35;
}

/* Dedicated Executive Modal Footer Bar */
.modal-footer {
  padding: 16px 28px;
  background-color: var(--bg-beige);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.socials-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neutral-600);
}

.social-icon-dark {
  background-color: var(--card-bg);
  color: var(--neutral-800);
  border: 1px solid var(--card-border);
}

.social-icon-dark:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 7. SOBRE MÍ & CV HIGHLIGHTS */
.sobre-mi-section {
  background-color: transparent;
}

.sobre-mi-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
}

.sobre-mi-avatar {
  display: flex;
  justify-content: center;
}

.sobre-mi-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
  display: block;
}

.initials-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-blue);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.text-body {
  font-size: 0.94rem;
  color: var(--neutral-600);
  margin-bottom: 16px;
  line-height: 1.6;
}

.cv-highlights {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background-color: var(--bg-beige);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.cv-item {
  font-size: 0.86rem;
  color: var(--neutral-600);
  min-width: 0;
  line-height: 1.4;
}

.cv-item-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--neutral-1000);
}

.cv-item-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--neutral-600);
}

.cv-item strong {
  color: var(--primary-blue);
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

.skill-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-800);
  background-color: var(--bg-beige);
  border: 1px solid var(--card-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: normal;
  word-break: break-word;
}

/* 8. CONTACTO & IDIOMAS - Clean without container box */
.contacto-section {
  background-color: transparent;
}

.idiomas-box {
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.idiomas-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--neutral-800);
  display: inline-block;
  min-width: 255px;
}

.idiomas-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.idioma-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--neutral-800);
}

.idioma-pill.highlight {
  background-color: var(--primary-light);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  font-weight: 700;
}

.contacto-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.contacto-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 20px;
  text-decoration: none;
  transition: all var(--transition-normal);
  height: 100%;
}

.contacto-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.contacto-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-phone { background-color: var(--accent-emerald-bg); color: var(--accent-emerald); }
.icon-mail { background-color: var(--primary-light); color: var(--primary-blue); }
.icon-telegram { background-color: #E0F2FE; color: #0284C7; }

.contacto-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--neutral-1000);
}

.contacto-security-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.contacto-security-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--neutral-500);
  letter-spacing: 0.1px;
}

/* INTERACTIVE 3D BUSINESS CARD (VISITKA) */
.biz-card-wrapper {
  perspective: 1200px;
  max-width: 680px;
  width: 100%;
  margin: 16px auto 0;
  cursor: pointer;
  user-select: none;
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.biz-card-wrapper:hover {
  transform: rotate(-1.5deg) translateY(-5px) scale(1.01);
}

.biz-card-wrapper.flipped {
  transform: rotate(-1.5deg);
}

.biz-card-wrapper.flipped:hover {
  transform: rotate(-1.5deg) translateY(-5px) scale(1.01);
}

.biz-card-inner {
  position: relative;
  width: 100%;
  height: 295px;
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.biz-card-wrapper.flipped .biz-card-inner {
  transform: rotateY(180deg);
}

.biz-card-front,
.biz-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  padding: 24px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 24px 50px -10px rgba(1, 87, 214, 0.28),
    0 12px 24px -6px rgba(0, 0, 0, 0.12);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
}

/* FRONT DESIGN WITH RICH MULTI-STOP GRADIENT & GLASS REFLECTION */
.biz-card-front {
  background: linear-gradient(135deg, #0f4c81 0%, #0157d6 42%, #1d4ed8 78%, #1e3a8a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}

.biz-card-front::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.biz-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.biz-brand-logo {
  display: flex;
  align-items: center;
}

.biz-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.biz-brand-hl {
  background: linear-gradient(135deg, #93C5FD 0%, #60A5FA 50%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.biz-tag-badge {
  font-size: 0.78rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.biz-card-center {
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.biz-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.biz-qr-box {
  background: #ffffff;
  padding: 5px 6px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  z-index: 10;
}

.biz-qr-box:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.biz-qr-img {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  display: block;
}

.biz-qr-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--primary-blue);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
}

.biz-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  white-space: nowrap;
}

.biz-role {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.biz-card-bottom {
  display: flex;
  justify-content: center;
}

.biz-prompt-text {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-yellow);
  border-bottom: 1.5px dashed rgba(254, 220, 0, 0.85);
  padding-bottom: 2px;
  transition: all 0.22s ease;
}

.biz-card-wrapper:hover .biz-prompt-text {
  color: #FFE62E;
  border-bottom-color: #FFE62E;
  transform: translateY(-1px);
}

/* BACK DESIGN */
.biz-card-back {
  background-color: #ffffff;
  color: var(--neutral-1000);
  transform: rotateY(180deg);
  border: 1px solid var(--card-border);
}

.biz-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--card-border);
}

.biz-back-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neutral-1000);
}

.biz-logo-img-back {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(1, 87, 214, 0.15));
}

.biz-back-contacts-lbl {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.biz-flip-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-blue);
  background-color: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease;
}

.biz-flip-btn:hover {
  background-color: rgba(1, 87, 214, 0.16);
}

.biz-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.biz-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 4px;
  background-color: transparent;
  text-decoration: none;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: transform var(--transition-fast);
}

.biz-contact-item:last-child {
  border-bottom: none;
}

.biz-contact-item:hover {
  background-color: transparent;
  transform: translateX(6px);
}

.biz-contact-item:hover .contacto-value {
  color: var(--primary-blue);
}

/* ELEGANT GREY MONOCHROME ICONS ON CARD BACK */
.biz-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.biz-contact-item:hover .biz-icon {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.biz-item-info {
  display: flex;
  flex-direction: column;
}

.biz-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--neutral-500);
  font-family: var(--font-heading);
}

/* 8. EXPERIENCIA Y FORMACIÓN SECTION */
.experiencia-section {
  background-color: var(--bg-beige);
  border-bottom: 1px solid var(--card-border);
}

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

.exp-column {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.exp-col-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neutral-1000);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--card-border);
}

.exp-col-title svg {
  color: var(--primary-blue);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--primary-light);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-blue);
  background-color: var(--primary-light);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.timeline-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--neutral-600);
  background-color: var(--neutral-100);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--neutral-1000);
  margin-top: 4px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--neutral-600);
  line-height: 1.5;
  margin-bottom: 6px;
}

.timeline-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.achievement-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #047857;
  background-color: transparent;
  border: none;
  padding: 2px 0;
  margin-right: 12px;
}

/* 9. FOOTER CON REDES SOCIALES */
.site-footer {
  background-color: var(--header-blue);
  color: #ffffff;
  padding: 26px 0;
}

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

.footer-copy-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
}

.footer-credits {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
}

.beating-heart {
  display: inline-block;
  color: #EF4444;
  animation: heartbeat 1.25s infinite ease-in-out;
  transform-origin: center;
  margin: 0 2px;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.35); }
  28% { transform: scale(1); }
  42% { transform: scale(1.35); }
  70% { transform: scale(1); }
}

.selenit-link {
  color: var(--accent-yellow);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent-yellow);
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
  padding-bottom: 1px;
}

.selenit-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

/* Social Icons in Footer */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-icon-link:hover {
  background-color: transparent;
  color: #ffffff;
  transform: translateY(-2px) scale(1.12);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast);
  text-align: center;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  user-select: none;
}

/* BANNER DE COOKIES (RGPD Compliance) */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  width: calc(100% - 48px);
  background-color: var(--neutral-1000);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-content p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--neutral-300);
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
}

/* MODALS - Strict Viewport Clipping & Background Scroll Prevention */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  touch-action: auto;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neutral-1000);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--neutral-500);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--neutral-600);
  line-height: 1.6;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-body h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--neutral-1000);
  margin: 14px 0 4px;
}

.modal-body ul {
  margin: 6px 0 12px 20px;
  padding: 0;
}

.modal-body li {
  margin-bottom: 4px;
}

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

  .exp-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacto-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-container {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer-links {
    justify-content: center;
    gap: 8px 12px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 44px 0;
  }

  .section-header-left {
    margin-bottom: 20px;
  }

  .section-title-uppercase {
    font-size: 1.35rem;
  }

  .brand-logo-text {
    font-size: 1.65rem;
  }

  .lang-switcher-desktop {
    display: none;
  }

  .lang-switcher-mobile {
    display: flex;
    margin-top: 10px;
    margin-bottom: 6px;
    align-self: center;
  }

  .header-actions .btn-header {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background-color: var(--header-blue);
    flex-direction: column;
    padding: 0 24px;
    gap: 8px;
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: max-height 380ms cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                visibility 380ms, 
                transform 380ms cubic-bezier(0.4, 0, 0.2, 1),
                padding 380ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav.active {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 14px 24px 22px;
  }

  .nav-link {
    font-size: 0.94rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transform: none;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .main-nav .nav-link[data-i18n="nav_servicios"],
  .main-nav .nav-link[data-i18n="nav_ventajas"],
  .main-nav .nav-link[data-i18n="nav_proyectos"],
  .main-nav .nav-link[data-i18n="nav_testimonios"],
  .main-nav .nav-link[data-i18n="nav_sobre_mi"],
  .main-nav .nav-link[data-i18n="nav_contacto"] {
    min-width: auto;
    text-align: left;
  }

  .hero-section {
    padding: 0 0 44px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .hero-badge {
    margin: 0 auto 16px;
  }

  .hero-visual {
    order: -1;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    margin-top: 0;
    overflow: hidden;
  }

  /* Full Screen Width Edge-to-Edge Photo on Mobile Devices */
  .profile-card {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1.02;
    margin: 0 auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
  }

  .profile-img {
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  }

  /* Keep badges strictly inside photo container bounds on Mobile */
  .float-badge-top {
    top: 14px;
    right: 16px;
    font-size: 0.76rem;
    padding: 5px 12px;
  }

  .float-badge-bottom {
    bottom: 14px;
    left: 16px;
    font-size: 0.76rem;
    padding: 5px 12px;
  }

  /* Smooth Fade-Out without horizontal viewport expansion on Mobile Chrome */
  .float-badge-top.scrolled-out {
    transform: translateY(-20px);
    opacity: 0;
  }

  .float-badge-bottom.scrolled-out {
    transform: translateY(20px);
    opacity: 0;
  }

  /* Stabilized Hero Content on Mobile (Zero Height Shift / Jumps between ES and EN) */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    min-height: 2.45em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 4.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    max-width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn-lg {
    width: 100%;
    max-width: 280px;
  }

  .hero-metrics {
    justify-content: center;
    margin-top: 24px;
    padding-top: 18px;
    gap: 16px;
  }

  .metric-item {
    align-items: center;
    text-align: center;
  }

  .metric-val {
    font-size: 1.15rem;
  }

  .metric-lbl {
    font-size: 0.78rem;
  }

  .metric-divider {
    height: 26px;
  }

  /* Testimonials Header Bar Centered on Mobile Devices */
  .testimonios-header-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 24px;
  }

  .testimonios-header-bar .section-header-left {
    text-align: center;
    width: 100%;
    margin-bottom: 0;
  }

  .testimonios-header-bar .btn-review-trigger {
    margin: 0 auto;
  }

  .testimonio-pill-card {
    width: 290px;
    padding: 18px 20px;
  }

  /* Modal Mobile Responsiveness - Full Width Photo & Symmetric Padding */
  .modal-overlay {
    padding: 16px;
  }

  .modal-card,
  .modal-card-about {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
  }

  .about-modal-body {
    padding: 20px 18px 24px;
  }

  .about-modal-grid {
    flex-direction: column;
    gap: 18px;
  }

  .about-modal-visual {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 4px;
    border-radius: var(--radius-md);
  }

  .about-modal-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    aspect-ratio: 1 / 1.02;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-md);
  }

  .modal-footer {
    padding: 14px 18px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .modal-socials {
    justify-content: center;
  }

  .modal-footer-actions {
    width: 100%;
    justify-content: center;
  }

  .services-grid,
  .ventajas-grid,
  .proyectos-grid,
  .contacto-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sobre-mi-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }

  .sobre-mi-img {
    margin: 0 auto;
    width: 90px;
    height: 90px;
  }

  .initials-badge {
    margin: 0 auto;
    width: 90px;
    height: 90px;
    font-size: 2rem;
  }

  .cv-highlights {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .skills-badges {
    justify-content: center;
  }

  .idiomas-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
  }

  .idiomas-title {
    min-width: auto;
  }

  .idiomas-pills {
    width: 100%;
  }

  .idioma-pill {
    font-size: 0.78rem;
    padding: 4px 10px;
  }

  .footer-container {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
    gap: 10px;
  }

  .cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  /* Toast Banner on Mobile */
  .toast-notification {
    top: 76px;
    width: calc(100% - 24px);
    padding: 12px 16px;
  }
}

@media (max-width: 420px) {
  .brand-logo-text {
    font-size: 1.22rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

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

/* FLOATING ACTIONS (PERMANENT WHATSAPP & SCROLL TO TOP) */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 120px;
  z-index: 990;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.floating-btn {
  pointer-events: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background-color 0.2s ease, 
              opacity 0.3s ease, 
              visibility 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.12);
}

/* Permanent WhatsApp Circular Icon Button */
.floating-wa-btn {
  background-color: transparent;
  padding: 0;
  border-radius: 50%;
  overflow: visible;
}

.floating-wa-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(37, 211, 102, 0.5));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.floating-wa-btn:hover .floating-wa-img {
  transform: scale(1.08);
  filter: drop-shadow(0 14px 28px rgba(37, 211, 102, 0.7));
}

.floating-wa-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Scroll To Top Button */
.scroll-top-btn {
  background-color: #ffffff;
  color: var(--header-blue);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.85);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  background-color: var(--header-blue);
  color: #ffffff;
  border-color: var(--header-blue);
  box-shadow: 0 10px 24px rgba(1, 87, 214, 0.32);
}

@media (max-width: 640px) {
  .contacto-section .container {
    padding: 0 8px;
  }

  .biz-card-wrapper {
    max-width: 100%;
    margin-top: 10px;
  }

  .biz-card-inner {
    height: 270px;
  }

  .biz-card-front,
  .biz-card-back {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .biz-name {
    font-size: 1.5rem;
  }

  .biz-role {
    font-size: 0.82rem;
  }

  .biz-qr-img {
    width: 44px;
    height: 44px;
  }

  .biz-qr-box {
    padding: 4px 5px;
    border-radius: 10px;
  }

  .biz-qr-label {
    font-size: 0.54rem;
  }

  .brand-logo-img {
    height: 34px;
    max-height: 34px;
  }

  .biz-logo-img {
    height: 32px;
  }

  .biz-logo-img-back {
    height: 24px;
  }

  .biz-back-contacts-lbl {
    font-size: 0.88rem;
  }

  .biz-contact-item {
    padding: 8px 2px;
    gap: 10px;
  }

  .floating-actions {
    right: 16px;
    bottom: 110px;
    gap: 12px;
  }

  .floating-btn {
    width: 60px;
    height: 60px;
  }

  .floating-wa-img {
    width: 60px;
    height: 60px;
  }

  .scroll-top-btn {
    width: 48px;
    height: 48px;
  }
}
