/* ════════════════════════════════════════════════════════════════
   GABINETE MALDONADO – DESIGN SYSTEM
   Paleta: Verde forestal oscuro + Dorado + Crema
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --green-deepest: #0d1f0d;
  --green-dark: #1a2e1a;
  --green-mid: #2d4a2d;
  --green-light: #3d6b3d;
  --green-muted: #4a7c4a;
  --gold-bright: #c9a84c;
  --gold-mid: #b8922e;
  --gold-light: #e8cb7a;
  --gold-pale: #f5e9c5;
  --cream: #faf7f0;
  --text-dark: #1a1a18;
  --text-mid: #3d3d32;
  --text-muted: #6b6b5a;
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-20: rgba(255, 255, 255, 0.2);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --gold-glow: 0 0 30px rgba(201, 168, 76, 0.25);

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--green-deepest);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gold-bright);
  color: var(--green-deepest);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
}

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

.btn-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 31, 13, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--gold-bright);
  transition: transform var(--transition);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.nav-brand-subtitle {
  font-size: 0.7rem;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: var(--white-70);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-bright);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  background: var(--gold-bright);
  color: var(--green-deepest);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px; /* Increase hit target size */
  margin-left: auto;
  margin-right: -6px; /* Offset the padding right */
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001; /* Ensure higher stacking */
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('hero_bg.png');
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(13, 31, 13, 0.82) 0%,
      rgba(13, 31, 13, 0.65) 50%,
      rgba(13, 31, 13, 0.80) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  animation: floatParticle var(--dur, 12s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes floatParticle {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  padding-top: 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-title-accent {
  color: var(--gold-bright);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--white-70);
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--white-70);
  background: var(--white-20);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--white-20);
}

.badge-icon {
  font-size: 1rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: scrollBounce 2s ease-in-out infinite;
  position: relative;
}

.scroll-dot::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, var(--gold-bright));
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(6px);
    opacity: 0.5;
  }
}

/* ════════════════════════════════════════════════════════════════
   SECTION COMMONS
   ════════════════════════════════════════════════════════════════ */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 12px;
}

.section-tag-light {
  color: var(--gold-bright);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

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

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

.section-desc-light {
  color: var(--white-70);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════
   SOBRE MÍ
   ════════════════════════════════════════════════════════════════ */
.sobre-mi {
  background: var(--cream);
  padding: var(--section-padding) 0;
}

.sobre-mi-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.sobre-mi-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.logo-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
}

.logo-large {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: contain;
  border: 4px solid var(--gold-bright);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(201, 168, 76, 0.12);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.logo-large:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg), 0 0 0 12px rgba(201, 168, 76, 0.2), var(--gold-glow);
}

.logo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.6;
  }
}

.stats-row {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--green-dark);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

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

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.4vw, 1.3rem);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--white-70);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.cargo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(45, 74, 45, 0.08);
  border: 1px solid rgba(45, 74, 45, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}

.cargo-badge svg {
  width: 15px;
  height: 15px;
  color: var(--green-muted);
}

.sobre-mi-text {
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 16px;
}

.sobre-mi-text strong {
  color: var(--green-dark);
  font-weight: 600;
}

.areas-actuacion {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.area-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--green-dark);
  color: var(--gold-bright);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════
   SERVICIOS
   ════════════════════════════════════════════════════════════════ */
.servicios {
  background: var(--green-deepest);
  background-image: url('olivar_bg.png');
  background-size: cover;
  background-position: center 40%;
  background-attachment: scroll;
  padding: var(--section-padding) 0;
  position: relative;
}

.servicios::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 13, 0.50);
  z-index: 0;
}

.servicios .container {
  position: relative;
  z-index: 1;
}

.servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-bright), transparent);
}

.servicios .section-title {
  color: var(--white);
}

.servicios .section-tag {
  color: var(--gold-bright);
}

.servicios .section-desc {
  color: rgba(255, 255, 255, 0.55);
}

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

.servicio-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold-mid), var(--gold-bright));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.servicio-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

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

.servicio-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--gold-bright);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.1);
  transition: background var(--transition);
}

.servicio-card:hover .servicio-icon {
  background: rgba(201, 168, 76, 0.18);
}

.servicio-icon svg {
  width: 32px;
  height: 32px;
}

.servicio-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.servicio-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.servicio-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  transition: opacity var(--transition);
}

.servicio-link:hover {
  opacity: 0.75;
}

/* ════════════════════════════════════════════════════════════════
   CTA BAND
   ════════════════════════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
  padding: 80px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.cta-band-inner {
  text-align: center;
}

.cta-band-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-band-text {
  color: var(--white-70);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ════════════════════════════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════════════════════════════ */
.contacto {
  background: var(--green-dark);
  background-image: url('contacto_bg.png');
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  padding: var(--section-padding) 0;
  position: relative;
}

.contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 13, 0.78);
  z-index: 0;
}

.contacto .container {
  position: relative;
  z-index: 1;
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}

.contacto-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.info-logo {
  margin-bottom: 28px;
}

.info-logo-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--gold-bright);
  box-shadow: var(--gold-glow);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-bright);
}

.info-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.info-value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition);
}

a.info-value:hover {
  color: var(--gold-bright);
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: #25d366;
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 8px;
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
}

.whatsapp-btn:hover {
  background: #1ebe59;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ─── FORM ─────────────────────────────────────────────────── */
.contacto-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--white);
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-group select option {
  background: var(--green-dark);
  color: var(--white);
}

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

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

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold-bright);
  cursor: pointer;
}

.form-check label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  cursor: pointer;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(45, 200, 100, 0.12);
  border: 1px solid rgba(45, 200, 100, 0.3);
  border-radius: var(--radius-sm);
  color: #4ece7a;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--green-deepest);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 0;
}

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

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(201, 168, 76, 0.4);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-tagline em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
}

.footer h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

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

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

.footer-servicios-list ul li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.footer-contact a {
  transition: color var(--transition);
}

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

.footer-colegiado {
  margin-top: 12px;
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
  letter-spacing: 0.05em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ════════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ════════════════════════════════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --section-padding: 72px;
  }

  .sobre-mi-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sobre-mi-visual {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    background: rgba(13, 31, 13, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--gold-bright);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

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

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .nav-logo {
    position: relative;
    z-index: 1001;
  }

  .nav-links a {
    font-size: 1.4rem;
    color: var(--white);
  }

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

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

  .sobre-mi-visual {
    flex-direction: column;
  }

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

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

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

  .servicios,
  .contacto {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .contacto-form {
    padding: 28px 20px;
  }

  .contacto-info {
    padding: 28px 20px;
  }

  .stats-row {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }
}

/* ════════════════════════════════════════════════════════════════
   PRIVACY LINKS
   ════════════════════════════════════════════════════════════════ */
.privacy-link {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition);
}

.privacy-link:hover {
  opacity: 0.75;
}

.footer-privacy-link {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-privacy-link:hover {
  color: var(--gold-bright);
}

/* ════════════════════════════════════════════════════════════════
   MODAL POLÍTICA DE PRIVACIDAD
   ════════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--green-dark);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.modal-box h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-bright);
  margin-bottom: 24px;
}

.modal-box h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-bright);
  margin: 20px 0 6px;
}

.modal-body p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-bottom: 8px;
}

.modal-body a {
  color: var(--gold-bright);
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--gold-bright);
}

/* ════════════════════════════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
   ════════════════════════════════════════════════════════════════ */

/* Acelera compositing en elementos animados */
.particle,
.logo-glow,
.scroll-dot {
  will-change: transform, opacity;
}

/* Fuerza GPU en el navbar para evitar repaints */
.navbar {
  will-change: background, padding;
  transform: translateZ(0);
}

/* Reduce coste de backdrop-filter en móvil */
@media (max-width: 768px) {

  /* Eliminar backdrop-filter en móvil — muy costoso en GPU */
  .navbar.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13, 31, 13, 0.98);
  }

  /* Desactivar partículas en móvil via CSS por si el JS no reduce */
  .particle {
    display: none;
  }

  /* Reducir animación glow pesada */
  .logo-glow {
    animation: none;
    opacity: 0.4;
  }

  /* No animar hover en móvil (táctil) */
  .servicio-card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
  }

  /* Simplificar sombras costosas */
  .logo-large {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  /* Reducir section padding en móvil */
  :root {
    --section-padding: 60px;
  }

  /* Optimizar renderizado de texto */
  .hero-title {
    text-rendering: optimizeSpeed;
  }
}

/* Prefers-reduced-motion: respeta preferencias de accesibilidad del usuario */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .particle {
    display: none;
  }

  .logo-glow {
    animation: none;
  }
}