/*
 Theme Name:     Emotion Note Theme
 Template:       Divi
 Version:        1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500;1,9..144,600&family=Inter:wght@200;300;400;500;600;700&display=swap');


/* Theme customization starts here
------------------------------------------------------- */

#main-header,
#top-header,
.et-l--header,
header.et-l {
  display: none !important;
}

#page-container,
#et-main-area,
#main-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/*-----------------------------------------------------*/
/*-----------------------------------------------------*/
/*-------------General Styles--------------------------*/
/*-----------------------------------------------------*/
/*-----------------------------------------------------*/

/* ==========================================================
   Dr. Camilo MartÃ­nez - Home + Footer
   CSS para pegar en style.css del child theme.
   Separado del HTML para usar en Divi 5 / WordPress.
   ========================================================== */

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

:root {
  /* Brand: Navy + Gold (Camilo MartÃ­nez) */
  --blue: #0f2847;        /* deep-blue - main dark */
  --blue-dark: #0a1628;   /* navy - darker */
  --blue-deep: #050d1a;   /* almost black navy */
  --blue-mid: #1a3f6f;    /* royal-blue */
  --blue-light: #4a8fd4;  /* light-blue */
  --blue-soft: #a8c4e0;
  --blue-tint: #d4e4f7;   /* ice */
  --blue-mist: #f1f6fc;   /* pale navy mist */

  --teal: #c9a96e;          /* gold - main accent */
  --teal-dark: #a68848;     /* gold-dark */
  --teal-mid: #d4b67d;
  --teal-light: #dfc698;    /* gold-light */
  --teal-soft: #e8d4ad;
  --teal-tint: #f4ead3;
  --teal-mist: #faf5e8;

  /* Neutrals with subtle cool undertone for navy aesthetic */
  --white: #ffffff;
  --paper: #fafbfd;
  --cream: #f5f7fa;
  --bone: #e9edf2;
  --stone-light: #c8d0da;
  --stone: #7a8599;
  --slate: #4a5568;
  --charcoal: #1f2937;
  --ink: #0a1628;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--paper);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--blue-tint); color: var(--blue-dark); }
img { max-width: 100%; display: block; }

/* ============ GRAIN OVERLAY ============ */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ REVEAL ============ */
.r { opacity: 0; transform: translateY(60px); transition: opacity 1.1s var(--ease-smooth), transform 1.1s var(--ease-smooth); }
.r.v { opacity: 1; transform: translateY(0); }
.r-d1 { transition-delay: 0.1s; } .r-d2 { transition-delay: 0.2s; }
.r-d3 { transition-delay: 0.3s; } .r-d4 { transition-delay: 0.4s; }
.r-d5 { transition-delay: 0.5s; }

.r-fade { opacity: 0; transition: opacity 1.4s var(--ease-smooth); }
.r-fade.v { opacity: 1; }

.r-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-smooth); }
.r-clip.v { clip-path: inset(0 0 0 0); }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 1.5rem 0; transition: all 0.5s var(--ease);
  mix-blend-mode: normal!important;
  isolation: isolate;
}
.header.scrolled {
  background: rgba(250,250,247,0.85); backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px); padding: 0.9rem 0;
  mix-blend-mode: normal; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  color: var(--white); text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 0.6rem;
  transition: color 0.5s var(--ease);
  font-variation-settings: "opsz" 12;
}
.header.scrolled .logo { color: var(--ink); }
.logo-tag { font-family: var(--font-body); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }

.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a {
  font-size: 0.7rem; font-weight: 500; color: var(--white); text-decoration: none;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.5s var(--ease), opacity 0.3s; opacity: 0.85;
}
.header.scrolled .nav a { color: var(--charcoal); }
.nav a:hover { opacity: 1; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.3rem; border-radius: 100px;
  background: var(--white); color: var(--blue-dark) !important;
  font-size: 0.7rem; font-weight: 600 !important; letter-spacing: 0.1em;
  transition: all 0.4s var(--ease) !important; opacity: 1 !important;
}
.header.scrolled .nav-cta { background: var(--blue); color: var(--white) !important; }
.nav-cta:hover { transform: scale(1.04); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); margin: 5px 0; transition: background 0.5s; }
.header.scrolled .hamburger span { background: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background: var(--blue-deep);
  padding: 8rem 0 0;
}
/* Hero background image area */
.hero-bg {
  position: absolute; top: 0; right: 0; width: 55%; height: 100%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, var(--blue-deep) 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(45,174,190,0.25) 0%, transparent 60%);
}
.hero-bg::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 80%; height: 70%;
  background: radial-gradient(circle at 70% 80%, rgba(138,107,189,0.3) 0%, transparent 60%);
}
.hero-photo-large {
  position: absolute; top: 50%; right: 8%; transform: translateY(-45%);
  width: 38%; max-width: 480px; aspect-ratio: 4/5;
  background: var(--blue-mid); border-radius: 6px; overflow: hidden;
  box-shadow: 0 60px 120px rgba(15,8,40,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  z-index: 2;
}
.hero-photo-large::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,8,40,0.5) 100%);
  z-index: 1;
}
.photo-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
  color: rgba(255,255,255,0.2); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.photo-placeholder svg { width: 40px; height: 40px; opacity: 0.4; stroke-width: 1; }
.photo-placeholder.dark { color: var(--stone-light); }
.photo-placeholder.dark svg { color: var(--stone-light); }

.hero-content {
  position: relative; z-index: 3;
  max-width: 1400px; margin: 0 auto; padding: 4rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr;
}
.hero-text { padding-right: 2rem; padding-top: 4rem; }

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

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 2.5rem;
  opacity: 0; animation: heroIn 1.2s 0.3s var(--ease-smooth) forwards;
}
.hero-eyebrow .line { width: 50px; height: 1px; background: var(--teal); }
.hero-eyebrow .num { font-family: var(--font-display); font-style: italic; font-weight: 400; opacity: 0.7; font-size: 0.75rem; }

.hero-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3rem, 6.5vw, 6rem); line-height: 0.95; color: var(--white);
  letter-spacing: -0.04em; margin-bottom: 3rem;
  font-variation-settings: "opsz" 144;
  opacity: 0; animation: heroIn 1.2s 0.5s var(--ease-smooth) forwards;
}
.hero-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-mid) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-title .block { display: block; }

.hero-desc {
  font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,0.65); max-width: 440px;
  margin-bottom: 2.5rem; font-weight: 300;
  opacity: 0; animation: heroIn 1.2s 0.7s var(--ease-smooth) forwards;
}

.hero-meta {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0; animation: heroIn 1.2s 0.9s var(--ease-smooth) forwards;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-meta-item .label { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-light); font-weight: 500; }
.hero-meta-item .value { font-family: var(--font-display); font-size: 1rem; color: var(--white); font-weight: 400; }
.hero-meta-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.15); }

.hero-cta-row {
  margin-top: 3rem; margin-bottom: 2em; display: flex; gap: 1rem; align-items: center;
  opacity: 0; animation: heroIn 1.2s 1.1s var(--ease-smooth) forwards;
}

/* Marquee scrolling text */
.hero-marquee {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: rgba(0,0,0,0.2); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden; padding: 1.2rem 0; z-index: 4;
}
.marquee-track {
  display: flex; gap: 4rem; white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 1.1rem; color: rgba(255,255,255,0.6);
}
.marquee-track span { display: flex; align-items: center; gap: 4rem; }
.marquee-track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ BUTTONS ============ */
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 2.4rem; border-radius: 100px; font-size: 0.60rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; font-family: var(--font-body); cursor: pointer; border: none;
  transition: all 0.4s var(--ease);
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); transform: scale(1.03); box-shadow: 0 15px 40px rgba(70,37,135,0.3); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); transform: scale(1.03); box-shadow: 0 15px 40px rgba(45,174,190,0.3); }
.btn-white { background: var(--white); color: var(--blue-dark); }
.btn-white:hover { background: var(--cream); transform: scale(1.03); box-shadow: 0 15px 40px rgba(255,255,255,0.2); }
.btn-ghost-light {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue-soft); }
.btn-ghost:hover { background: var(--blue-mist); border-color: var(--blue); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; color: var(--blue); text-decoration: none;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover { gap: 0.9rem; }
.link-arrow::after { content: '→'; transition: transform 0.3s var(--ease); display: inline-block; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============ STATS ============ */
.stats {
  background: var(--paper); padding: 8rem 3rem;
  border-bottom: 1px solid var(--bone);
}
.stats-inner { max-width: 1400px; margin: 0 auto; }
.stats-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  margin-bottom: 6rem; align-items: end;
}
.stats-eyebrow {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.5rem;
}
.stats-title {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; line-height: 1.1; color: var(--ink); letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}
.stats-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stats-desc { font-size: 0.95rem; line-height: 1.8; color: var(--slate); font-weight: 300; max-width: 420px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--bone);
}
.stat-item {
  padding: 3rem 2rem 0 0; border-right: 1px solid var(--bone);
  position: relative;
}
.stat-item:last-child { border-right: none; padding-right: 0; }
.stat-item:not(:last-child) { padding-right: 2rem; padding-left: 2rem; }
.stat-item:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300; line-height: 1; color: var(--ink); letter-spacing: -0.04em;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 144;
}
.stat-num em { font-style: italic; color: var(--blue); }
.stat-label {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 0.6rem;
}
.stat-context { font-size: 0.82rem; color: var(--slate); line-height: 1.6; font-weight: 300; }

/* ============ ABOUT (EDITORIAL) ============ */
.about {
  padding: 12rem 3rem; background: var(--white); position: relative;
}
.about-inner { max-width: 1400px; margin: 0 auto; }

.about-eyebrow {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 4rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--blue);
}
.about-eyebrow::before { content: ''; width: 50px; height: 1px; background: var(--blue); }
.about-eyebrow .num { font-family: var(--font-display); font-style: italic; font-weight: 400; opacity: 0.6; }

.about-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: 1; color: var(--ink);
  letter-spacing: -0.04em; margin-bottom: 5rem;
  font-variation-settings: "opsz" 144;
  max-width: 1100px;
}
.about-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.about-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 6rem; align-items: start;
}

.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: sticky; top: 100px; }
.about-photo-1 {
  grid-column: 1 / -1; aspect-ratio: 4/5;
  background: var(--blue-mist); border-radius: 4px; position: relative; overflow: hidden;
}
.about-photo-2 {
  aspect-ratio: 1/1.1; background: var(--teal-mist); border-radius: 4px; position: relative; overflow: hidden;
}
.about-photo-3 {
  aspect-ratio: 1/1.1; background: var(--blue-tint); border-radius: 4px; position: relative; overflow: hidden;
}

.about-text { padding-top: 1rem; }
.about-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.4rem; letter-spacing: -0.01em;
}
.about-role {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 2rem;
}
.about-text p {
  font-size: 1rem; line-height: 1.85; color: var(--slate); margin-bottom: 1.4rem; font-weight: 300;
}
.about-text p strong {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  color: var(--blue-dark);
}

.about-pullquote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.35; color: var(--blue-dark);
  margin: 4rem 0; padding: 0 0 0 3rem;
  border-left: 2px solid var(--teal);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}

.about-credentials {
  margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--bone);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.about-cred {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.about-cred-label { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.about-cred-value { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 500; line-height: 1.4; }

/* ============ APPROACH / 3 STEPS ============ */
.approach {
  background: var(--cream); padding: 12rem 3rem; position: relative; overflow: hidden;
}
.approach::before {
  content: ''; position: absolute; top: 10%; right: -10%; width: 50vw; height: 50vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(70,37,135,0.04) 0%, transparent 60%);
}
.approach::after {
  content: ''; position: absolute; bottom: 10%; left: -10%; width: 50vw; height: 50vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(45,174,190,0.05) 0%, transparent 60%);
}
.approach-inner { max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }

.approach-header { margin-bottom: 6rem; max-width: 800px; }
.approach-eyebrow {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--teal-dark);
}
.approach-eyebrow::before { content: ''; width: 50px; height: 1px; background: var(--teal); }
.approach-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.05; color: var(--ink); letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
}
.approach-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.approach-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.approach-step {
  background: var(--white); padding: 0; border-radius: 4px; overflow: hidden;
  transition: all 0.5s var(--ease);
  border: 1px solid rgba(70,37,135,0.04);
}
.approach-step:hover { transform: translateY(-8px); box-shadow: 0 30px 80px rgba(70,37,135,0.1); }

.approach-step-image {
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-mist) 0%, var(--teal-mist) 100%);
}
.approach-step-image::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(70,37,135,0.1) 0%, transparent 60%);
}

.approach-step-content { padding: 2.5rem 2.5rem 3rem; }
.approach-step-num {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 500;
  color: var(--teal-dark); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem;
}
.approach-step-num::before { content: ''; width: 24px; height: 1px; background: var(--teal); }

.approach-step h4 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 400;
  color: var(--ink); margin-bottom: 1rem; line-height: 1.2; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}
.approach-step p { font-size: 0.92rem; line-height: 1.8; color: var(--slate); font-weight: 300; }

/* ============ SERVICES (ASYMMETRIC) ============ */
.services {
  background: var(--white); padding: 12rem 3rem;
}
.services-inner { max-width: 1400px; margin: 0 auto; }

.services-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  margin-bottom: 6rem; align-items: end;
}
.services-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1; color: var(--ink); letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
}
.services-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.services-desc { font-size: 0.95rem; line-height: 1.8; color: var(--slate); font-weight: 300; max-width: 420px; }

/* Asymmetric grid - 6 services with featured one */
.services-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.2rem;
}

.service-card {
  background: var(--paper); padding: 2.8rem 2.5rem; border-radius: 4px;
  position: relative; overflow: hidden; cursor: default;
  transition: all 0.5s var(--ease);
  border: 1px solid rgba(70,37,135,0.04);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 280px;
}
.service-card:hover { background: var(--white); transform: translateY(-4px); box-shadow: 0 25px 60px rgba(70,37,135,0.08); }
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 500;
  color: var(--teal-dark); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  color: var(--ink); margin-bottom: 0.8rem; line-height: 1.2; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}
.service-card p { font-size: 0.86rem; line-height: 1.75; color: var(--slate); font-weight: 300; margin-bottom: 1.5rem; flex-grow: 1; }

/* Featured service (first one - large) */
.service-featured {
  grid-column: 1; grid-row: 1 / 3;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white); padding: 4rem 3.5rem;
  position: relative; overflow: hidden;
}
.service-featured::before {
  content: ''; position: absolute; top: -50%; right: -30%; width: 600px; height: 600px;
  border-radius: 50%; background: radial-gradient(circle, rgba(45,174,190,0.2) 0%, transparent 60%);
}
.service-featured::after { display: none; }
.service-featured:hover { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }

.service-featured-img {
  width: 100%; aspect-ratio: 16/10; border-radius: 4px; margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.05); position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.service-featured .service-num { color: var(--teal-light); position: relative; z-index: 1; }
.service-featured h3 { color: var(--white); font-size: 2.2rem; position: relative; z-index: 1; line-height: 1.1; }
.service-featured p { color: rgba(255,255,255,0.7); position: relative; z-index: 1; font-size: 0.95rem; max-width: 480px; }
.service-featured .link-arrow { color: var(--teal-light); position: relative; z-index: 1; }

/* Service CTA card */
.service-cta-card {
  grid-column: 2 / 4; grid-row: 2;
  background: var(--cream); display: flex; align-items: center; gap: 3rem;
  padding: 3rem;
}
.service-cta-card h3 { font-size: 1.8rem; margin-bottom: 0; flex: 1; }
.service-cta-card .btn-pill { white-space: nowrap; }

/* ============ LO QUE NO HAGO (BIG TYPE STATEMENT) ============ */
.boundaries {
  background: var(--paper); padding: 12rem 3rem; position: relative;
}
.boundaries-inner { max-width: 1400px; margin: 0 auto; }

.boundaries-eyebrow {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--blue);
}
.boundaries-eyebrow::before { content: ''; width: 50px; height: 1px; background: var(--blue); }

.boundaries-statement {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.5rem, 5.5vw, 5.5rem); line-height: 1; color: var(--ink);
  letter-spacing: -0.04em; margin-bottom: 5rem; max-width: 1200px;
  font-variation-settings: "opsz" 144;
}
.boundaries-statement em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.boundaries-grid {
  display: grid; grid-template-columns: 4fr 8fr; gap: 6rem; align-items: start;
}
.boundaries-intro {
  font-size: 1.05rem; line-height: 1.85; color: var(--slate); font-weight: 300;
  position: static;
}
.boundaries-intro strong { font-family: var(--font-display); font-style: italic; color: var(--blue-dark); font-weight: 500; }

.boundaries-list { display: flex; flex-direction: column; gap: 0; }
.boundary-row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 2rem;
  padding: 2.5rem 0; border-bottom: 1px solid var(--bone);
  align-items: center; transition: padding 0.4s var(--ease);
}
.boundary-row:first-child { border-top: 1px solid var(--bone); }
.boundary-row:hover { padding-left: 1rem; }
.boundary-num {
  font-family: var(--font-display); font-size: 1rem; font-style: italic; font-weight: 400;
  color: var(--teal-dark);
}
.boundary-title {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 400;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.2;
  font-variation-settings: "opsz" 60;
}
.boundary-action {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); display: flex; align-items: center; gap: 0.5rem;
}
.boundary-action::before { content: '→'; }

/* ============ MISTAKES (EDITORIAL GRID) ============ */
.mistakes {
  background: var(--white); padding: 12rem 3rem;
}
.mistakes-inner { max-width: 1400px; margin: 0 auto; }

.mistakes-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  margin-bottom: 6rem; align-items: end;
}
.mistakes-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1; color: var(--ink); letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
}
.mistakes-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mistakes-desc { font-size: 0.95rem; line-height: 1.8; color: var(--slate); font-weight: 300; max-width: 420px; }

.mistakes-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem;
}
.mistake-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 2rem; align-items: start;
  padding: 2rem 0; border-top: 1px solid var(--bone);
}
.mistake-image {
  aspect-ratio: 1/1; background: linear-gradient(135deg, var(--blue-mist) 0%, var(--teal-mist) 100%);
  border-radius: 4px; position: relative; overflow: hidden;
  border: 1px solid rgba(70,37,135,0.04);
}
.mistake-image::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 70%, rgba(70,37,135,0.08) 0%, transparent 60%);
}
.mistake-content {}
.mistake-num {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; font-style: italic;
  color: var(--teal-dark); margin-bottom: 0.6rem;
}
.mistake-content h4 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 400;
  color: var(--ink); margin-bottom: 0.6rem; line-height: 1.25; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}
.mistake-content p { font-size: 0.88rem; line-height: 1.75; color: var(--slate); font-weight: 300; }

/* ============ GALLERY (CONSULTORIO) ============ */
.gallery {
  background: var(--cream); padding: 12rem 3rem;
}
.gallery-inner { max-width: 1400px; margin: 0 auto; }

.gallery-header { text-align: center; max-width: 700px; margin: 0 auto 5rem; }
.gallery-eyebrow {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.5rem;
}
.gallery-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 300; line-height: 1.05; color: var(--ink); letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 144;
}
.gallery-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gallery-desc { font-size: 0.98rem; line-height: 1.75; color: var(--slate); font-weight: 300; }

/* Masonry-like grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px 240px;
  gap: 1rem;
}
.gallery-img {
  background: var(--blue-mist); border-radius: 4px; position: relative; overflow: hidden;
  border: 1px solid rgba(70,37,135,0.04);
  transition: transform 0.6s var(--ease);
}
.gallery-img:hover { transform: scale(0.98); }
.gallery-img::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(70,37,135,0.06) 0%, transparent 70%);
}
.gallery-1 { grid-column: 1 / 3; grid-row: 1 / 3; background: linear-gradient(135deg, var(--blue-tint) 0%, var(--blue-mist) 100%); }
.gallery-2 { grid-column: 3; grid-row: 1; background: linear-gradient(135deg, var(--teal-tint) 0%, var(--teal-mist) 100%); }
.gallery-3 { grid-column: 4; grid-row: 1; background: var(--blue-mist); }
.gallery-4 { grid-column: 3 / 5; grid-row: 2; background: linear-gradient(135deg, var(--teal-mist) 0%, var(--blue-mist) 100%); }
.gallery-5 { grid-column: 1 / 3; grid-row: 3; background: linear-gradient(135deg, var(--blue-mist) 0%, var(--teal-mist) 100%); }
.gallery-6 { grid-column: 3; grid-row: 3; background: var(--teal-mist); }
.gallery-7 { grid-column: 4; grid-row: 3; background: var(--blue-tint); }

/* ============ TESTIMONIALS / GOOGLE REVIEWS ============ */
.testimonials {
  background: var(--white); padding: 12rem 3rem;
}
.testimonials-inner { max-width: 1400px; margin: 0 auto; }

.testimonials-header {
  display: flex; justify-content: space-between; gap: 4rem; align-items: end;
  margin-bottom: 5rem;
}
.testimonials-header-copy { max-width: 820px; }
.testimonials-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1; color: var(--ink); letter-spacing: -0.035em;
  margin-top: 1.5rem;
  font-variation-settings: "opsz" 144;
}
.testimonials-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.google-rating-summary {
  min-width: 260px; background: var(--paper); border: 1px solid var(--bone); border-radius: 14px;
  padding: 1.4rem 1.5rem; box-shadow: 0 20px 60px rgba(10,22,40,0.06);
}
.google-rating-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.google-rating-number { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink); font-weight: 400; }
.google-badge {
  width: 42px; height: 42px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(10,22,40,0.08); overflow: hidden;
}
.google-badge img { width: 24px; height: 24px; object-fit: contain; }
.google-stars { color: var(--teal-dark); letter-spacing: 0.08em; font-size: 0.95rem; line-height: 1; }
.google-rating-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-top: 0.7rem; }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.google-review-card {
  background: var(--paper); border: 1px solid var(--bone); border-radius: 16px;
  padding: 1.4rem; min-height: 245px; display: flex; flex-direction: column;
  box-shadow: 0 18px 50px rgba(10,22,40,0.045);
  transition: all 0.4s var(--ease);
}
.google-review-card:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(10,22,40,0.08); background: var(--white); }
.google-review-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.google-review-author { display: flex; align-items: center; gap: 0.9rem; }
.google-review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  position: relative; overflow: hidden; flex: 0 0 auto;
}
.google-review-avatar span { position: relative; z-index: 1; }
.google-review-avatar img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
}
.google-review-name { font-family: var(--font-display); color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.2; }
.google-review-date { font-size: 0.68rem; color: var(--stone); margin-top: 0.2rem; }
.google-review-source {
  width: 28px; height: 28px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bone); overflow: hidden; flex: 0 0 auto;
}
.google-review-source img { width: 17px; height: 17px; object-fit: contain; }
.google-review-source.doctoralia img { width: 21px; height: 21px; }
.google-review-text {
  font-size: 0.9rem; line-height: 1.75; color: var(--slate); font-weight: 300;
  margin-top: 1rem; flex-grow: 1;
}
.testimonials-cta {
  display: flex; justify-content: center; margin-top: 4rem;
}
/* ============ AUTHORITY QUOTE (BIG TYPE) ============ */
.philosophy {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  padding: 14rem 3rem; text-align: center; position: relative; overflow: hidden;
}
.philosophy::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(70,37,135,0.04) 0%, transparent 60%);
}
.philosophy::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,174,190,0.05) 0%, transparent 60%);
}
.philosophy-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(62vw, 720px); height: auto;
  opacity: 0.035; pointer-events: none; z-index: 1;
  mix-blend-mode: multiply;
}
.philosophy-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.philosophy-eyebrow {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 3rem;
}
.philosophy-quote {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.25; color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.philosophy-quote em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.philosophy-attribution {
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--bone);
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
}

/* ============ LOCATION ============ */
.location {
  background: var(--white); padding: 12rem 3rem;
}
.location-inner { max-width: 1400px; margin: 0 auto; }

.location-header { margin-bottom: 5rem; max-width: 800px; }
.location-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1; color: var(--ink); letter-spacing: -0.035em;
  margin-top: 1.5rem;
  font-variation-settings: "opsz" 144;
}
.location-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.location-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }

.location-info { display: flex; flex-direction: column; gap: 0; }
.location-item {
  display: grid; grid-template-columns: 60px 1fr; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid var(--bone); align-items: start;
}
.location-item:first-child { border-top: 1px solid var(--bone); }
.location-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-mist); display: flex; align-items: center; justify-content: center;
}
.location-icon svg { width: 18px; height: 18px; color: var(--blue); stroke-width: 1.5; }
.location-item h4 {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 0.5rem;
}
.location-item p {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); font-weight: 400;
  line-height: 1.4;
}

.location-map {
  aspect-ratio: 1/1; background: var(--blue-mist); border-radius: 4px; overflow: hidden;
  position: relative; border: 1px solid rgba(70,37,135,0.04);
}
.location-map::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(70,37,135,0.06) 0%, transparent 70%);
}

/* ============ CTA FINAL ============ */
.cta-final {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 50%, var(--blue) 100%);
  padding: 14rem 3rem; text-align: center; position: relative; overflow: hidden;
  color: var(--white);
}
.cta-final::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.cta-final-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(45,174,190,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.cta-final-eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 3rem;
}
.cta-final-eyebrow .line { width: 40px; height: 1px; background: var(--teal); }
.cta-final-title {
  font-family: var(--font-display); font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 300; line-height: 1; color: var(--white); letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
  font-variation-settings: "opsz" 144;
}
.cta-final-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-mid) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-final-desc {
  font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,0.65);
  max-width: 540px; margin: 0 auto 3.5rem; font-weight: 300;
}
.cta-final-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { background: var(--paper); padding: 6rem 3rem 2.5rem; border-top: 1px solid var(--bone); }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem;
  margin-bottom: 5rem; padding-bottom: 5rem; border-bottom: 1px solid var(--bone);
}
.footer-brand .footer-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em; display: block; margin-bottom: 0.4rem;
}
.footer-brand .footer-tag {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone); font-weight: 600;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.8; margin-top: 1.5rem; max-width: 320px; font-weight: 300; color: var(--slate); }
.footer h4 {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.5rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer ul li a {
  font-family: var(--font-display); font-size: 0.95rem; color: var(--charcoal); text-decoration: none;
  transition: color 0.3s; font-weight: 400;
}
.footer ul li a:hover { color: var(--blue); font-style: italic; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.65rem; font-weight: 400; color: var(--stone); letter-spacing: 0.1em; text-transform: uppercase;
}

/* ============ MOBILE NAV ============ */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--blue-deep); padding: 6rem 3rem 3rem; flex-direction: column; gap: 2rem;
  z-index: 998;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 300; color: var(--white);
  text-decoration: none; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: -0.02em;
}



/* ============ WORDPRESS ASSETS / PLACEHOLDERS ============ */
:root {
  --dcm-placeholder-image: url("https://drcamilomartinez.com/wp-content/uploads/2026/06/Dr-Camilo-Martinez-Oftalmologo-especialista-en-Retina-Bogota-Colombia.png");
}

.logo {
  align-items: center;
}

.logo img {
  display: block;
  height: 63px;
  width: auto;
  max-width: 276px;
  filter: brightness(0) invert(1)!important;
	opacity: 1 !important;
  visibility: visible !important;
  transition: filter 0.5s var(--ease), height 0.5s var(--ease);
}

.header.scrolled .logo img {
  height: 55px;
filter: none !important;
}

.footer-brand .footer-logo {
  display: block;
  margin-bottom: 0.8rem;
}

.footer-brand .footer-logo img {
  display: block;
  height: 82px;
  width: auto;
  max-width: 336px;
}

.hero-photo-large,
.about-photo-1,
.about-photo-2,
.about-photo-3,
.approach-step-image,
.service-featured-img,
.mistake-image,
.gallery-img,
.location-map {
  /*background-image: var(--dcm-placeholder-image) !important;*/
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.photo-placeholder {
  display: none !important;
}

/* Fix: about photos should always show the placeholder image */
.about-photos .about-photo-1,
.about-photos .about-photo-2,
.about-photos .about-photo-3 {
  display: block !important;
  opacity: 1 !important;
  clip-path: none !important;
  /*background-image: var(--dcm-placeholder-image) !important;*/
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.about-photos .about-photo-1 {
  min-height: 520px;
}

.about-photos .about-photo-2,
.about-photos .about-photo-3 {
  min-height: 260px;
}

@media (max-width: 768px) {
  .about-photos .about-photo-1 {
    min-height: 420px;
  }

  .about-photos .about-photo-2,
  .about-photos .about-photo-3 {
    min-height: 220px;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 220px 220px 220px 220px; }
  .gallery-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .gallery-2 { grid-column: 3; grid-row: 1; }
  .gallery-3 { grid-column: 3; grid-row: 2; }
  .gallery-4 { grid-column: 1 / 3; grid-row: 3; }
  .gallery-5 { grid-column: 3; grid-row: 3; }
  .gallery-6 { grid-column: 1; grid-row: 4; }
  .gallery-7 { grid-column: 2 / 4; grid-row: 4; }
}
@media (max-width: 1024px) {
  .header-inner, .stats, .about, .approach, .services, .boundaries, .mistakes, .gallery, .testimonials, .philosophy, .location, .cta-final, .footer { padding-left: 2rem; padding-right: 2rem; }
  .hero-content { grid-template-columns: 1fr; padding: 4rem 2rem; }
  .hero-bg { width: 100%; opacity: 0.5; }
  .hero-photo-large { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .stat-item { padding: 2.5rem 1.5rem; border-right: 1px solid var(--bone); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { padding-top: 2.5rem; border-top: 1px solid var(--bone); }
  .about-grid, .boundaries-grid, .location-grid { grid-template-columns: 1fr; gap: 4rem; }
  .about-photos { position: static; }
  .services-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .service-featured { grid-column: 1 / -1; grid-row: auto; }
  .service-cta-card { grid-column: 1 / -1; grid-row: auto; flex-direction: column; align-items: flex-start; gap: 2rem; text-align: left; }
  .approach-steps, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .mistakes-grid { grid-template-columns: 1fr; }
  .stats-header, .services-header, .mistakes-header { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .header-inner { padding: 0 1.5rem; }
  .hero { padding-top: 6rem; }
  .hero-content { padding: 2rem 1.5rem 6rem; }
  .hero-meta { flex-wrap: wrap; }
  .hero-meta-divider { display: none; }
  .stats, .about, .approach, .services, .boundaries, .mistakes, .gallery, .testimonials, .philosophy, .location, .cta-final, .footer { padding: 6rem 1.5rem; }
  .approach-steps, .testimonials-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, 180px); }
  .gallery-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .gallery-2 { grid-column: 1; grid-row: 3; }
  .gallery-3 { grid-column: 2; grid-row: 3; }
  .gallery-4 { grid-column: 1 / 3; grid-row: 4; }
  .gallery-5 { grid-column: 1 / 3; grid-row: 5; }
  .gallery-6 { grid-column: 1; grid-row: 6; }
  .gallery-7 { grid-column: 2; grid-row: 6; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .boundary-row { grid-template-columns: 50px 1fr; }
  .boundary-action { display: none; }
  .mistake-item { grid-template-columns: 100px 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 768px) {
  .logo img { height: 53px; max-width: 228px; }
  .header.scrolled .logo img { height: 48px; }
  .footer-brand .footer-logo img { height: 70px; max-width: 288px; }
}


/* ============ DCM V6 REFINEMENTS ============ */
.about-title {
  max-width: 100%;
}

.location-item a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(15,40,71,0.25);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.location-item a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

@media (max-width: 1024px) {
  .hero-photo-large {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    display: block;
    width: min(84vw, 420px);
    max-width: 420px;
    margin: 1.5rem auto 6rem;
    z-index: 3;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-bottom: 2rem;
  }

  .hero-photo-large {
    width: 88%;
    max-width: 380px;
    margin: 1rem auto 6rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-item,
  .stat-item:first-child,
  .stat-item:not(:last-child),
  .stat-item:last-child,
  .stat-item:nth-child(2),
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    padding: 2.4rem 0;
    border-right: none;
    border-top: 1px solid var(--bone);
  }

  .stat-item:first-child {
    border-top: none;
  }

  .testimonials-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .google-rating-summary {
    width: 100%;
    min-width: 0;
  }
}


/* ============ DCM V7 REFINEMENTS ============ */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-featured,
  .service-cta-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

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

  .footer-brand p {
    max-width: 100%;
  }
}


/* ============ DCM V8 ACCESSIBILITY TYPOGRAPHY ============ */
:root {
  --stone: #657085;
  --slate: #334155;
  --charcoal: #182235;
}

html {
  font-size: 17px;
}

body {
  text-rendering: optimizeLegibility;
}

/* More comfortable reading size for patients, especially in medical content */
.hero-desc,
.stats-desc,
.about-text p,
.approach-step p,
.services-desc,
.boundaries-intro,
.mistakes-desc,
.mistake-content p,
.gallery-desc,
.google-review-text,
.location-item p,
.cta-final-desc,
.footer-brand p,
.stat-context {
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  line-height: 1.85;
  font-weight: 400;
}

.service-card:not(.service-featured) p {
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  line-height: 1.85;
  color: var(--slate);
  font-weight: 400;
}

.service-featured p {
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
}

.hero-desc,
.cta-final-desc {
  color: rgba(255,255,255,0.78);
}

/* Small labels were elegant but too small for this audience */
.hero-eyebrow,
.stats-eyebrow,
.about-eyebrow,
.approach-eyebrow,
.boundaries-eyebrow,
.gallery-eyebrow,
.philosophy-eyebrow,
.cta-final-eyebrow,
.stat-label,
.service-num,
.mistake-num,
.location-item h4,
.footer h4,
.google-rating-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
}

.about-role,
.google-review-date,
.footer-brand .footer-tag {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.nav a,
.nav-cta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.btn-pill {
  font-size: 0.9rem;
  letter-spacing: 0.075em;
  padding: 1rem 2.35rem;
}

.google-review-name {
  font-size: 1.08rem;
}

.footer ul li a {
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  html {
    font-size: 17.5px;
  }

  .hero-desc,
  .stats-desc,
  .about-text p,
  .approach-step p,
  .services-desc,
  .boundaries-intro,
  .mistakes-desc,
  .mistake-content p,
  .gallery-desc,
  .google-review-text,
  .location-item p,
  .cta-final-desc,
  .footer-brand p,
  .stat-context,
  .service-card:not(.service-featured) p,
  .service-featured p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .btn-pill {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
    padding: 1rem 1.5rem;
  }

  .hero-cta-row,
  .cta-final-buttons {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
    line-height: 1;
  }

  .about-title,
  .approach-title,
  .services-title,
  .boundaries-statement,
  .mistakes-title,
  .gallery-title,
  .testimonials-title,
  .location-title,
  .cta-final-title {
    line-height: 1.04;
  }
}


/* ============ DCM V9 BRAND CLEANUP + READING WEIGHT ============ */
/* Keep the page accessible, but avoid an overly heavy body. */
body {
  font-weight: 300;
}

.hero-desc,
.stats-desc,
.about-text p,
.approach-step p,
.services-desc,
.boundaries-intro,
.mistakes-desc,
.mistake-content p,
.gallery-desc,
.google-review-text,
.location-item p,
.cta-final-desc,
.footer-brand p,
.stat-context,
.service-card:not(.service-featured) p,
.service-featured p {
  font-weight: 300;
}

.about-text p strong,
.google-review-name,
.location-item p,
.stat-num,
.stat-label,
.service-card h3,
.approach-step h4,
.mistake-content h4,
.footer ul li a {
  font-weight: 400;
}

.btn-pill,
.nav a,
.nav-cta,
.hero-eyebrow,
.stats-eyebrow,
.about-eyebrow,
.approach-eyebrow,
.boundaries-eyebrow,
.gallery-eyebrow,
.philosophy-eyebrow,
.cta-final-eyebrow,
.footer h4,
.google-rating-label {
  font-weight: 500;
}



/* ============ DCM V12 MOBILE 360 SAFETY ============ */
/* Mobile base: optimize first for real phone widths around 360px, without breaking tablet/desktop. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

a,
p,
h1,
h2,
h3,
h4,
span,
div {
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  html {
    font-size: 16.5px;
  }

  .header {
    padding: 1rem 0;
  }

  .header.scrolled {
    padding: 0.65rem 0;
  }

  .header-inner {
    padding: 0 1.05rem;
    gap: 0.8rem;
  }

  .logo img {
    height: 46px;
    max-width: 190px;
  }

  .header.scrolled .logo img {
    height: 42px;
  }

  .hamburger {
    flex: 0 0 auto;
  }

  .mobile-nav {
    padding: 5.5rem 1.25rem 2rem;
  }

  .mobile-nav a {
    font-size: 1.75rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5.5rem;
  }

  .hero-content {
    padding: 1.5rem 1.15rem 1rem;
  }

  .hero-text {
    padding-right: 0;
    padding-top: 1.5rem;
  }

  .hero-eyebrow,
  .stats-eyebrow,
  .about-eyebrow,
  .approach-eyebrow,
  .boundaries-eyebrow,
  .gallery-eyebrow,
  .philosophy-eyebrow,
  .cta-final-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.095em;
    line-height: 1.45;
  }

  .hero-title {
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 2rem;
  }

  .hero-desc,
  .cta-final-desc {
    max-width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .hero-meta-divider {
    display: none;
  }

  .hero-cta-row,
  .cta-final-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .btn-pill {
    width: 100%;
    justify-content: center;
    font-size: 0.86rem;
    padding: 0.95rem 1rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }

  .hero-photo-large {
    width: calc(100% - 2.3rem);
    max-width: 330px;
    margin: 0.5rem auto 5rem;
  }

  .hero-marquee {
    padding: 0.85rem 0;
  }

  .marquee-track {
    font-size: 0.95rem;
    gap: 2.5rem;
  }

  .marquee-track span {
    gap: 2.5rem;
  }

  .stats,
  .about,
  .approach,
  .services,
  .boundaries,
  .mistakes,
  .gallery,
  .testimonials,
  .philosophy,
  .location,
  .cta-final,
  .footer {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .stats,
  .about,
  .approach,
  .services,
  .boundaries,
  .mistakes,
  .gallery,
  .testimonials,
  .location {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .philosophy,
  .cta-final {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .stats-header,
  .services-header,
  .mistakes-header,
  .testimonials-header,
  .location-header,
  .approach-header {
    margin-bottom: 3rem;
  }

  .stats-title,
  .about-title,
  .approach-title,
  .services-title,
  .boundaries-statement,
  .mistakes-title,
  .gallery-title,
  .testimonials-title,
  .location-title,
  .cta-final-title {
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.032em;
  }

  .about-title,
  .boundaries-statement {
    margin-bottom: 3rem;
  }

  .about-grid,
  .boundaries-grid,
  .location-grid {
    gap: 3rem;
  }

  .about-photos {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .about-photos .about-photo-1,
  .about-photos .about-photo-2,
  .about-photos .about-photo-3 {
    min-height: 360px;
  }

  .about-pullquote {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    padding-left: 1.2rem;
    margin: 3rem 0;
  }

  .about-credentials {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .approach-step-content,
  .service-card,
  .service-featured,
  .service-cta-card,
  .google-review-card,
  .google-rating-summary {
    padding: 1.45rem;
  }

  .service-featured h3 {
    font-size: 1.75rem;
  }

  .services-grid,
  .services-grid[style] {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  .service-card,
  .service-featured,
  .service-cta-card {
    min-height: auto;
  }

  .service-cta-card h3 {
    font-size: 1.45rem;
  }

  .boundary-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 2rem 0;
  }

  .boundary-num {
    font-size: 0.9rem;
  }

  .boundary-title {
    font-size: 1.35rem;
  }

  .mistake-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mistake-image {
    width: 100%;
    min-height: 220px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery-1,
  .gallery-2,
  .gallery-3,
  .gallery-4,
  .gallery-5,
  .gallery-6,
  .gallery-7 {
    grid-column: auto;
    grid-row: auto;
    min-height: 230px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  .google-review-top {
    gap: 0.75rem;
  }

  .google-review-author {
    gap: 0.75rem;
  }

  .google-review-avatar {
    width: 40px;
    height: 40px;
  }

  .google-rating-top {
    align-items: flex-start;
  }

  .location-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .location-icon {
    width: 40px;
    height: 40px;
  }

  .location-map {
    aspect-ratio: 4 / 5;
    min-height: 300px;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }

  .footer-brand .footer-logo img {
    height: 62px;
    max-width: 250px;
  }

  .footer-bottom {
    align-items: flex-start;
    text-align: left;
    line-height: 1.6;
  }
}

@media (max-width: 380px) {
  html {
    font-size: 16px;
  }

  .header-inner {
    padding: 0 0.95rem;
  }

  .logo img {
    height: 42px;
    max-width: 178px;
  }

  .header.scrolled .logo img {
    height: 39px;
  }

  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .hero-photo-large {
    max-width: 315px;
  }

  .stats,
  .about,
  .approach,
  .services,
  .boundaries,
  .mistakes,
  .gallery,
  .testimonials,
  .philosophy,
  .location,
  .cta-final,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .stats-title,
  .about-title,
  .approach-title,
  .services-title,
  .boundaries-statement,
  .mistakes-title,
  .gallery-title,
  .testimonials-title,
  .location-title,
  .cta-final-title {
    font-size: 2rem;
  }

  .google-review-card,
  .google-rating-summary,
  .approach-step-content,
  .service-card,
  .service-featured,
  .service-cta-card {
    padding: 1.2rem;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 2.18rem;
  }

  .hero-eyebrow,
  .stats-eyebrow,
  .about-eyebrow,
  .approach-eyebrow,
  .boundaries-eyebrow,
  .gallery-eyebrow,
  .philosophy-eyebrow,
  .cta-final-eyebrow {
    letter-spacing: 0.075em;
  }

  .btn-pill {
    font-size: 0.82rem;
  }

  .google-review-source {
    width: 26px;
    height: 26px;
  }

  .google-review-source img {
    width: 15px;
    height: 15px;
  }
}


/* ============ DCM V13 HERO H1 + MARQUEE FIX ============ */
.hero-title-doctor {
  max-width: 760px;
}

/* Prevent marquee items from shrinking, wrapping or stacking on small screens. */
.hero-marquee {
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  min-width: max-content;
  white-space: nowrap;
  gap: 4rem;
  will-change: transform;
}

.marquee-track > span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4rem;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.marquee-track .dot {
  display: inline-block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
}

@media (max-width: 768px) {
  .hero-marquee {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1.5rem;
    z-index: 4;
  }

  .hero-photo-large {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title-doctor {
    font-size: clamp(2.45rem, 11vw, 3.15rem);
    line-height: 1.02;
  }

  .marquee-track {
    gap: 2.2rem;
    font-size: 0.95rem;
    animation-duration: 36s;
  }

  .marquee-track > span {
    gap: 2.2rem;
  }
}

@media (max-width: 360px) {
  .hero-title-doctor {
    font-size: clamp(2.25rem, 10.5vw, 2.85rem);
  }

  .marquee-track {
    gap: 1.8rem;
    font-size: 0.9rem;
  }

  .marquee-track > span {
    gap: 1.8rem;
  }
}

/* ==========================================================
   DIVI / WORDPRESS OVERRIDES
   Mantiene el diseÃ±o funcional cuando el HTML se pega dentro
   de un mÃ³dulo CÃ³digo de Divi.
   ========================================================== */

/* Evita que el grain overlay se aplique a todo WordPress.
   Lo movemos al wrapper del home. */
body::after {
  display: none !important;
}

.dcm-home-page::after {
  content: '' !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  opacity: 0.035 !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") !important;
}

/* Wrapper para escapar del ancho por defecto de row/module en Divi. */
.et_pb_code_inner > .dcm-home-page,
.dcm-home-page {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: hidden !important;
  font-family: var(--font-body) !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
}

.et_pb_code_inner > .dcm-home-footer,
.dcm-home-footer {
  width: 100% !important;
  max-width: 100% !important;
  font-family: var(--font-body) !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
}

/* Reset defensivo contra estilos heredados de Divi/WordPress. */
.dcm-home-page *,
.dcm-home-page *::before,
.dcm-home-page *::after,
.dcm-home-footer *,
.dcm-home-footer *::before,
.dcm-home-footer *::after {
  box-sizing: border-box !important;
}

.dcm-home-page img,
.dcm-home-footer img {
  max-width: 100% !important;
  height: auto;
  display: block !important;
}

.dcm-home-page p,
.dcm-home-footer p {
  padding-bottom: 0 !important;
}

.dcm-home-page a,
.dcm-home-footer a {
  text-decoration: none;
}

.dcm-home-page ul,
.dcm-home-footer ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.dcm-home-page button,
.dcm-home-page input,
.dcm-home-page textarea,
.dcm-home-page select {
  font-family: var(--font-body) !important;
}

.dcm-home-page .btn-pill {
  border-width: 0 !important;
  text-decoration: none !important;
}

.dcm-home-page .hero,
.dcm-home-page .stats,
.dcm-home-page .about,
.dcm-home-page .approach,
.dcm-home-page .services,
.dcm-home-page .boundaries,
.dcm-home-page .mistakes,
.dcm-home-page .gallery,
.dcm-home-page .testimonials,
.dcm-home-page .philosophy,
.dcm-home-page .location,
.dcm-home-page .cta-final {
  width: 100% !important;
  max-width: 100% !important;
}

.dcm-home-page .hero-content,
.dcm-home-page .stats-inner,
.dcm-home-page .about-inner,
.dcm-home-page .approach-inner,
.dcm-home-page .services-inner,
.dcm-home-page .boundaries-inner,
.dcm-home-page .mistakes-inner,
.dcm-home-page .gallery-inner,
.dcm-home-page .testimonials-inner,
.dcm-home-page .philosophy-inner,
.dcm-home-page .location-inner,
.dcm-home-page .footer-inner,
.dcm-home-footer .footer-inner {
  box-sizing: border-box !important;
}

/* ProtecciÃ³n adicional para mobile 360px. */
@media (max-width: 480px) {
  .dcm-home-page,
  .et_pb_code_inner > .dcm-home-page {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
}

/* Fix logo inicial sobre fondo oscuro */
.dcm-home-page .header:not(.scrolled) .logo img {
  height: 63px !important;
  width: auto !important;
  max-width: 276px !important;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Logo despuÃ©s del scroll */
.dcm-home-page .header.scrolled .logo img {
  height: 55px !important;
  width: auto !important;
  max-width: 276px !important;
  filter: none !important;
}

@media (max-width: 768px) {
  .dcm-home-page .header:not(.scrolled) .logo img {
    height: 53px !important;
    max-width: 228px !important;
  }

  .dcm-home-page .header.scrolled .logo img {
    height: 48px !important;
    max-width: 228px !important;
  }
}

/* ==========================================================
   DCM HARDENED OVERRIDES
   Capa final para proteger el home/footer frente a estilos
   de Divi, WordPress, mÃ³dulos, filas, imÃ¡genes y variables.
   Debe quedar SIEMPRE al final del CSS.
   ========================================================== */

/* Variables duplicadas en el wrapper para que no dependan solo de :root. */
.dcm-home-page,
.dcm-home-footer {
  --blue: #0f2847 !important;
  --blue-dark: #0a1628 !important;
  --blue-deep: #050d1a !important;
  --blue-mid: #1a3f6f !important;
  --blue-light: #4a8fd4 !important;
  --blue-soft: #a8c4e0 !important;
  --blue-tint: #d4e4f7 !important;
  --blue-mist: #f1f6fc !important;

  --teal: #c9a96e !important;
  --teal-dark: #a68848 !important;
  --teal-mid: #d4b67d !important;
  --teal-light: #dfc698 !important;
  --teal-soft: #e8d4ad !important;
  --teal-tint: #f4ead3 !important;
  --teal-mist: #faf5e8 !important;

  --white: #ffffff !important;
  --paper: #fafbfd !important;
  --cream: #f5f7fa !important;
  --bone: #e9edf2 !important;
  --stone-light: #c8d0da !important;
  --stone: #657085 !important;
  --slate: #334155 !important;
  --charcoal: #182235 !important;
  --ink: #0a1628 !important;

  --font-display: 'Fraunces', Georgia, serif !important;
  --font-body: 'Inter', sans-serif !important;
  --ease: cubic-bezier(0.25, 1, 0.5, 1) !important;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Evitar que Divi limite el mÃ³dulo cÃ³digo o recorte el full width. */
body .et_pb_code_inner > .dcm-home-page,
body .dcm-home-page {
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: hidden !important;
  font-family: var(--font-body) !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
}

body .et_pb_code_inner > .dcm-home-footer,
body .dcm-home-footer {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: hidden !important;
  font-family: var(--font-body) !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
}

/* Si el navegador soporta :has(), libera el mÃ³dulo/row que contiene el home. */
body .et_pb_code:has(.dcm-home-page),
body .et_pb_module:has(.dcm-home-page),
body .et_pb_column:has(.dcm-home-page),
body .et_pb_row:has(.dcm-home-page),
body .et_pb_section:has(.dcm-home-page) {
  overflow: visible !important;
}

/* Neutralizar padding/margins heredados de Divi dentro del home/footer. */
.dcm-home-page,
.dcm-home-page *,
.dcm-home-page *::before,
.dcm-home-page *::after,
.dcm-home-footer,
.dcm-home-footer *,
.dcm-home-footer *::before,
.dcm-home-footer *::after {
  box-sizing: border-box !important;
}

.dcm-home-page h1,
.dcm-home-page h2,
.dcm-home-page h3,
.dcm-home-page h4,
.dcm-home-page h5,
.dcm-home-page h6,
.dcm-home-footer h1,
.dcm-home-footer h2,
.dcm-home-footer h3,
.dcm-home-footer h4,
.dcm-home-footer h5,
.dcm-home-footer h6 {
  padding-bottom: 0 !important;
}

.dcm-home-page p,
.dcm-home-footer p {
  padding-bottom: 0 !important;
}

.dcm-home-page ul,
.dcm-home-page ol,
.dcm-home-footer ul,
.dcm-home-footer ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.dcm-home-page a,
.dcm-home-footer a {
  text-decoration: none !important;
}

/* ImÃ¡genes generales: permite que el logo/fuentes especÃ­ficas ganen por reglas posteriores. */
.dcm-home-page img,
.dcm-home-footer img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Header propio del home: gana frente a reglas de Divi/Theme Builder. */
body .dcm-home-page .header {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 100000 !important;
  padding: 1.5rem 0 !important;
  background: transparent !important;
  transition: all 0.5s var(--ease) !important;
  mix-blend-mode: normal !important;
  isolation: isolate !important;
  overflow: visible !important;
}

body .dcm-home-page .header.scrolled {
  background: rgba(250,250,247,0.85) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  padding: 0.9rem 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.04) !important;
}

body .dcm-home-page .header-inner {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 3rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2rem !important;
}

/* Logo: evita el bug de height:auto de Divi/WordPress. */
body .dcm-home-page .header .logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  line-height: 1 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body .dcm-home-page .header:not(.scrolled) .logo img {
  display: block !important;
  height: 63px !important;
  width: auto !important;
  max-width: 276px !important;
  min-width: 1px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body .dcm-home-page .header.scrolled .logo img {
  display: block !important;
  height: 55px !important;
  width: auto !important;
  max-width: 276px !important;
  min-width: 1px !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* NavegaciÃ³n propia. */
body .dcm-home-page .nav {
  display: flex !important;
  align-items: center !important;
  gap: 2.4rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .dcm-home-page .nav a {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  opacity: 0.85 !important;
}

body .dcm-home-page .header.scrolled .nav a {
  color: var(--charcoal) !important;
}

body .dcm-home-page .nav a:hover {
  opacity: 1 !important;
}

body .dcm-home-page .nav .nav-cta,
body .dcm-home-page .nav a.nav-cta {
  padding: 0.75rem 1.45rem !important;
  border-radius: 100px !important;
  background: var(--white) !important;
  color: var(--blue-dark) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

body .dcm-home-page .header.scrolled .nav .nav-cta,
body .dcm-home-page .header.scrolled .nav a.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
}

/* MenÃº mobile. */
body .dcm-home-page .hamburger {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body .dcm-home-page .hamburger span {
  display: block !important;
  width: 22px !important;
  height: 1.5px !important;
  background: var(--white) !important;
  margin: 5px 0 !important;
  border-radius: 0 !important;
}

body .dcm-home-page .header.scrolled .hamburger span {
  background: var(--ink) !important;
}

body .dcm-home-page .mobile-nav {
  position: fixed !important;
  inset: 0 auto auto 0 !important;
  width: 100% !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: var(--blue-deep) !important;
  padding: 6rem 3rem 3rem !important;
  flex-direction: column !important;
  gap: 2rem !important;
}

body .dcm-home-page .mobile-nav.active {
  display: flex !important;
}

body .dcm-home-page .mobile-nav a {
  color: var(--white) !important;
  font-family: var(--font-display) !important;
  font-size: 2rem !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  padding: 1rem 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Botones: evita reglas de botones de Divi. */
body .dcm-home-page .btn-pill,
body .dcm-home-footer .btn-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.95rem 2.4rem !important;
  border: 0 !important;
  border-radius: 100px !important;
  box-shadow: none;
  font-family: var(--font-body) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

body .dcm-home-page .btn-white {
  background: var(--white) !important;
  color: var(--blue-dark) !important;
}

body .dcm-home-page .btn-ghost-light {
  background: transparent !important;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}

body .dcm-home-page .btn-blue,
body .dcm-home-footer .btn-blue {
  background: var(--blue) !important;
  color: var(--white) !important;
}

body .dcm-home-page .btn-teal,
body .dcm-home-footer .btn-teal {
  background: var(--teal) !important;
  color: var(--white) !important;
}

/* Secciones e inner wrappers. */
body .dcm-home-page .hero,
body .dcm-home-page .stats,
body .dcm-home-page .about,
body .dcm-home-page .approach,
body .dcm-home-page .services,
body .dcm-home-page .boundaries,
body .dcm-home-page .mistakes,
body .dcm-home-page .gallery,
body .dcm-home-page .testimonials,
body .dcm-home-page .philosophy,
body .dcm-home-page .location,
body .dcm-home-page .cta-final {
  width: 100% !important;
  max-width: 100% !important;
}

body .dcm-home-page .hero-content,
body .dcm-home-page .stats-inner,
body .dcm-home-page .about-inner,
body .dcm-home-page .approach-inner,
body .dcm-home-page .services-inner,
body .dcm-home-page .boundaries-inner,
body .dcm-home-page .mistakes-inner,
body .dcm-home-page .gallery-inner,
body .dcm-home-page .testimonials-inner,
body .dcm-home-page .philosophy-inner,
body .dcm-home-page .location-inner,
body .dcm-home-footer .footer-inner {
  box-sizing: border-box !important;
}

/* Placeholders/fotos: asegurar que Divi no elimine backgrounds. */
body .dcm-home-page .hero-photo-large,
body .dcm-home-page .about-photo-1,
body .dcm-home-page .about-photo-2,
body .dcm-home-page .about-photo-3,
body .dcm-home-page .approach-step-image,
body .dcm-home-page .service-featured-img,
body .dcm-home-page .mistake-image,
body .dcm-home-page .gallery-img,
body .dcm-home-page .location-map {
  /*background-image: var(--dcm-placeholder-image) !important;*/
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Grids crÃ­ticos. */
body .dcm-home-page .stats-grid,
body .dcm-home-page .approach-steps,
body .dcm-home-page .services-grid,
body .dcm-home-page .mistakes-grid,
body .dcm-home-page .gallery-grid,
body .dcm-home-page .testimonials-grid,
body .dcm-home-page .location-grid,
body .dcm-home-footer .footer-top {
  display: grid !important;
}

body .dcm-home-page .hero-content,
body .dcm-home-page .stats-header,
body .dcm-home-page .services-header,
body .dcm-home-page .mistakes-header {
  display: grid !important;
}

body .dcm-home-page .testimonials-header {
  display: flex !important;
}

/* Footer global propio. */
body .dcm-home-footer .footer {
  width: 100% !important;
  max-width: 100% !important;
  background: var(--paper) !important;
  padding: 6rem 3rem 2.5rem !important;
  border-top: 1px solid var(--bone) !important;
}

body .dcm-home-footer .footer-logo img {
  display: block !important;
  height: 82px !important;
  width: auto !important;
  max-width: 336px !important;
  object-fit: contain !important;
}

/* Breakpoints reforzados. */
@media (max-width: 1024px) {
  body .dcm-home-page .header-inner {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  body .dcm-home-page .hero-content {
    grid-template-columns: 1fr !important;
    padding: 4rem 2rem !important;
  }

  body .dcm-home-page .hero-bg {
    width: 100% !important;
    opacity: 0.5 !important;
  }

  body .dcm-home-page .hero-photo-large {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    display: block !important;
    width: min(84vw, 420px) !important;
    max-width: 420px !important;
    margin: 1.5rem auto 6rem !important;
    z-index: 3 !important;
  }

  body .dcm-home-page .about-grid,
  body .dcm-home-page .boundaries-grid,
  body .dcm-home-page .location-grid {
    grid-template-columns: 1fr !important;
  }

  body .dcm-home-page .services-grid {
    grid-template-columns: 1fr !important;
  }

  body .dcm-home-page .service-card,
  body .dcm-home-page .service-featured,
  body .dcm-home-page .service-cta-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 768px) {
  body .dcm-home-page .nav {
    display: none !important;
  }

  body .dcm-home-page .hamburger {
    display: block !important;
  }

  body .dcm-home-page .header-inner {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  body .dcm-home-page .header:not(.scrolled) .logo img {
    height: 53px !important;
    max-width: 228px !important;
  }

  body .dcm-home-page .header.scrolled .logo img {
    height: 48px !important;
    max-width: 228px !important;
  }

  body .dcm-home-page .hero-content {
    padding: 2rem 1.5rem !important;
  }

  body .dcm-home-page .hero-photo-large {
    width: 88% !important;
    max-width: 380px !important;
    margin: 1rem auto 6rem !important;
  }

  body .dcm-home-page .stats-grid,
  body .dcm-home-page .approach-steps,
  body .dcm-home-page .services-grid,
  body .dcm-home-page .testimonials-grid,
  body .dcm-home-footer .footer-top {
    grid-template-columns: 1fr !important;
  }

  body .dcm-home-page .testimonials-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body .dcm-home-page .google-rating-summary {
    width: 100% !important;
    min-width: 0 !important;
  }

  body .dcm-home-footer .footer-logo img {
    height: 70px !important;
    max-width: 288px !important;
  }
}

@media (max-width: 480px) {
  body .et_pb_code_inner > .dcm-home-page,
  body .dcm-home-page {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  body .dcm-home-page .header-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body .dcm-home-page .btn-pill {
    width: 100% !important;
    max-width: 100% !important;
  }
}
