﻿/*
Theme Name: Jorge Cavia Premium Clinic
Author: Antigravity
Description: Premium light-mode clinical design with WOW effects.
Version: 5.0
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100;300;400;700&family=Roboto:wght@100;300;400;500;700&display=swap');

:root {
  --color-primary: #113f0f;
  --color-dark: #0a0a0a;
  --color-text: #222222;
  --color-light: #f7f7f7;
  --color-white: #ffffff;
  
  --font-sans: 'Roboto', sans-serif;
  --font-serif: 'Roboto Slab', serif;
  
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 5%; }

/* ANIMATIONS (WOW FACTOR) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes imageReveal {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.premium-fade { animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.hover-lift {
  transition: var(--transition);
  will-change: transform;
}
.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* HEADER */
.site-header {
  background-color: var(--color-white);
  padding: 2.5rem 0;
  position: relative;
  z-index: 100;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-branding h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.main-navigation ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}
.main-navigation a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-bottom: 0.5rem;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 1px;
  background-color: var(--color-primary);
  transition: var(--transition);
}
.main-navigation a:hover::after { width: 100%; }

/* BUTTONS */
.premium-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1.2rem 3rem;
  border: 1px solid var(--color-primary);
  border-radius: 0;
  margin-top: 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.premium-button::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--color-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.premium-button:hover { color: var(--color-primary); }
.premium-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* HOME HERO */
.hero-section {
  padding: 8rem 0;
  background-color: var(--color-light);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.hero-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.3;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--color-dark);
}
.hero-subtitle {
  font-size: 1.2rem; line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #444;
}
.hero-body {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}
.hero-author-signature {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--color-primary);
}
.hero-image-wrapper {
  position: relative;
  overflow: hidden;
}
.hero-image-wrapper img {
  width: 100%;
  transform: scale(1.05);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-image-wrapper:hover img { transform: scale(1); }

/* HOME SERVICES */
.services-premium {
  padding: 10rem 0;
  background-color: var(--color-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.service-card {
  padding: 4rem 3rem;
  background: var(--color-light);
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  background: var(--color-white);
  border-top: 3px solid var(--color-primary);
}
.service-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #999;
  margin-bottom: 1.5rem;
}
.service-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-dark);
}
.service-excerpt {
  flex-grow: 1;
}
.service-excerpt p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* BLOG SECTION */
.blog-section {
  padding: 8rem 0;
  background-color: var(--color-light);
}
.section-heading {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 5rem;
  font-weight: 300;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}
.blog-article-card {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.05);
}
.blog-image-wrapper { overflow: hidden; }
.blog-image-wrapper img {
  width: 100%; height: 250px; object-fit: cover;
  transition: transform 1s;
}
.blog-article-card:hover .blog-image-wrapper img { transform: scale(1.1); }
.blog-content { padding: 3rem; }
.blog-content h4 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.blog-excerpt { color: #666; margin-bottom: 2rem; }
.text-link {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--color-primary);
}
.text-link:hover { color: var(--color-dark); }

/* INNER PAGE EDITORIAL */
.editorial-page-wrapper {
  display: flex;
  min-height: calc(100vh - 100px);
  width: 100%;
  padding-left: 5%;
}
.editorial-left {
  flex: 0 0 25%;
  padding-top: 8rem;
  padding-right: 2rem;
}
.editorial-subtitle {
  display: block;
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-weight: 500;
}
.editorial-title {
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-dark);
}
.editorial-middle {
  flex: 0 0 40%;
  padding-top: 14rem;
  padding-right: 5rem;
  padding-bottom: 8rem;
}
.editorial-right {
  flex: 0 0 35%;
  position: relative;
}
.editorial-image {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  clip-path: inset(0 0 0 100%);
  animation: imageReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* TYPOGRAPHY OVERRIDES */
.content-body p, .content-body h6, .content-body li h6 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.9;
  font-weight: 300;
  color: #444;
  margin-bottom: 2rem;
}
.content-body strong { font-weight: 500; color: var(--color-dark); }

/* FOOTER */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 8rem 0 3rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}
.footer-title {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.footer-phone {
  font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.3;
  font-weight: 300;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}
.footer-email {
  font-size: 1.2rem;
  color: var(--color-primary);
}
.footer-email:hover { color: var(--color-white); }
.footer-right p {
  color: #aaa;
  font-weight: 300;
  font-size: 1.1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  color: #888; font-size: 0.9rem; } .legal-navigation ul { display: flex; gap: 2rem; list-style: none; }
.legal-navigation a:hover { color: var(--color-white); }

@media (max-width: 1024px) {
  .hero-layout, .editorial-page-wrapper, .footer-content { grid-template-columns: 1fr; flex-direction: column; }
  .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .editorial-left { padding: 4rem 5% 0; }
  .editorial-middle { padding: 2rem 5% 4rem; }
  .editorial-right { height: 60vh; width: 100%; position: relative; }
  .editorial-image { position: relative; height: 100%; }
}



/* PRO ASYMMETRICAL INNER PAGE LAYOUT */
.pro-inner-page {
  padding: 8rem 0 12rem;
  background-color: var(--color-white);
}

.pro-asymmetrical-layout {
  display: flex;
  width: 100%;
  max-width: 100%;
  padding: 0;
  align-items: stretch;
}

.pro-sidebar, .pro-content, .pro-right-image-container {
  min-width: 0; /* CRITICAL FIX: prevents flex items from overflowing due to intrinsic child size */
}

.pro-sidebar-sticky {
  position: sticky;
  top: 6rem; /* Stays fixed when scrolling */
}

.pro-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.pro-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.pro-content {
  padding-top: 8rem !important;
  max-width: 850px;
}

/* PRO CONTENT TYPOGRAPHY */
.pro-content p, .pro-content h6, .pro-content li h6 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.9;
  font-weight: 300;
  color: #333;
  margin-bottom: 2rem;
}

.pro-content h1, .pro-content h2, .pro-content h3, .pro-content h4, .pro-content h5 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.pro-content ul {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.pro-content li {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 300;
  color: #333;
}

/* PRO IMAGE HANDLING INSIDE CONTENT */
.pro-content figure {
  margin: 4rem 0;
  position: relative;
}

.pro-content img {
  width: 100%;
  height: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* Wow effect on images */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-content img:hover {
  transform: translateY(-5px);
}

.pro-content figcaption {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #888;
  margin-top: 1rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .pro-asymmetrical-layout {
  display: flex;
  width: 100%;
  max-width: 100%;
  padding: 0;
  align-items: stretch;
}

.pro-sidebar, .pro-content, .pro-right-image-container {
  min-width: 0; /* CRITICAL FIX: prevents flex items from overflowing due to intrinsic child size */
}
  .pro-sidebar-sticky {
    position: relative;
    top: 0;
  }
  .pro-inner-page {
    padding: 4rem 0 6rem;
  }
}


/* OVERRIDE: CENTERED PREMIUM EDITORIAL LAYOUT */
.premium-article {
  background-color: var(--color-white);
  padding-bottom: 8rem;
}

.article-header {
  background-color: #fafafa;
  padding: 8rem 0 6rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 5rem;
}

.article-kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 500;
  margin-bottom: 2rem;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 1000px;
}

.article-divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 3rem auto 0;
}

.article-content-wrapper {
  padding: 0 5%;
}

.premium-editorial {
  max-width: 760px; /* Optimal reading width */
  margin: 0 auto;
}

/* TYPOGRAPHY */
.premium-editorial p {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 2;
  font-weight: 400; /* Better readability than 300 */
  color: #222;
  margin-bottom: 2.5rem;
}

/* Dropcap for the first paragraph */
.premium-editorial > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-primary);
  float: left;
  line-height: 0.8;
  padding-right: 0.8rem;
  padding-top: 0.5rem;
}

/* Lead paragraph styling */
.premium-editorial > p:first-of-type {
  font-size: 1.35rem;
  line-height: 1.9;
  color: #111;
}

.premium-editorial h1, .premium-editorial h2, .premium-editorial h3, .premium-editorial h4 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  margin: 4rem 0 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.premium-editorial h2 { font-size: 2.2rem; }
.premium-editorial h3 { font-size: 1.8rem; }

.premium-editorial ul {
  padding-left: 2rem;
  margin-bottom: 3rem;
}

.premium-editorial li {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

/* BREAKOUT IMAGES */
.premium-editorial figure {
  margin: 4rem 0;
  width: 100vw;
  max-width: 1100px; /* Wider than text column */
  margin-left: 50%;
  transform: translateX(-50%);
  position: relative;
}

.premium-editorial img {
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15); /* Premium shadow */
  display: block;
}

.premium-editorial figcaption {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #888;
  margin-top: 1.5rem;
  font-style: italic;
  letter-spacing: 0.05em;
}
/* OVERRIDE: PRO 3-COLUMN LAYOUT */
.pro-inner-page {
  padding: 8rem 0 0rem; /* Remove bottom padding so image goes to footer */
  background-color: var(--color-white);
  min-height: calc(100vh - 100px);
}

.pro-asymmetrical-layout {
  display: flex;
  width: 100%;
  max-width: 100%;
  padding: 0;
  align-items: stretch;
}

.pro-sidebar, .pro-content, .pro-right-image-container {
  min-width: 0; /* CRITICAL FIX: prevents flex items from overflowing due to intrinsic child size */
}

.pro-sidebar {
  padding-top: 8rem !important;
  flex: 0 0 25%;
  padding: 8rem 2rem 4rem 5%;
}

.pro-sidebar-sticky {
  position: sticky;
  top: 8rem;
}

.pro-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.pro-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  
}

.pro-content {
  padding-top: 8rem !important;
  flex: 0 0 40%;
  padding: 8rem 5rem 8rem 2rem;
}

/* TYPOGRAPHY (No Dropcap) */
.pro-content p, .pro-content h6, .pro-content li h6 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 2;
  font-weight: 300;
  color: #555;
  margin-bottom: 2.5rem;
}

.pro-content h1, .pro-content h2, .pro-content h3, .pro-content h4, .pro-content h5 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  margin: 2rem 0;
  font-weight: 700;
}

.pro-right-image {
  flex: 0 0 35%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Overriding the previous dropcap completely to be safe */
.premium-editorial > p:first-of-type::first-letter { font-size: inherit; float: none; color: inherit; padding: 0; font-family: inherit; font-weight: inherit; }

@media (max-width: 1024px) {
  .pro-asymmetrical-layout {
  display: flex;
  width: 100%;
  max-width: 100%;
  padding: 0;
  align-items: stretch;
}

.pro-sidebar, .pro-content, .pro-right-image-container {
  min-width: 0; /* CRITICAL FIX: prevents flex items from overflowing due to intrinsic child size */
}
  .pro-sidebar, .pro-content, .pro-right-image { flex: 0 0 100%; padding: 4rem 5%; }
  .pro-right-image { min-height: 60vh; }
}
/* OVERRIDE: PRO 3-COLUMN LAYOUT REFINED */
.pro-inner-page {
  padding: 0; /* Let the image hit the very top! */
  background-color: var(--color-white);
  min-height: calc(100vh - 100px);
}

.pro-asymmetrical-layout {
  display: flex;
  width: 100%;
  max-width: 100%;
  padding: 0;
  align-items: stretch;
}

.pro-sidebar, .pro-content, .pro-right-image-container {
  min-width: 0; /* CRITICAL FIX: prevents flex items from overflowing due to intrinsic child size */
}

.pro-sidebar {
  padding-top: 8rem !important;
  flex: 0 0 25%;
  padding: 10rem 3rem 4rem 5%;
}

.pro-sidebar-sticky {
  position: sticky;
  top: 10rem;
}

.pro-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.pro-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  
}

.pro-divider {
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  margin-top: 2.5rem;
}

.pro-content {
  padding-top: 8rem !important;
  flex: 0 0 40%;
  padding: 10rem 6rem 10rem 1rem;
}

/* TYPOGRAPHY REFINED */
.pro-content p, .pro-content h6, .pro-content li h6 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.9;
  font-weight: 400; /* Much stronger than 300 */
  color: #222; /* Darker for better contrast */
  margin-bottom: 2.5rem;
}

/* Lead paragraph styling for the first block of text */
.pro-content > *:first-child {
  font-size: 1.35rem;
  line-height: 1.8;
  color: #000;
  font-weight: 500;
}

.pro-content h1, .pro-content h2, .pro-content h3, .pro-content h4, .pro-content h5 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  margin: 4rem 0 2rem;
  font-weight: 700;
}

.pro-right-image {
  flex: 0 0 35%;
  min-height: 100vh; /* Reaches the bottom */
  background-size: cover;
  background-position: center 20%; /* Shift focus slightly up */
  position: relative;
  box-shadow: inset 20px 0 30px -20px rgba(0,0,0,0.1); /* Subtle inner shadow to separate from text */
}

@media (max-width: 1024px) {
  .pro-asymmetrical-layout {
  display: flex;
  width: 100%;
  max-width: 100%;
  padding: 0;
  align-items: stretch;
}

.pro-sidebar, .pro-content, .pro-right-image-container {
  min-width: 0; /* CRITICAL FIX: prevents flex items from overflowing due to intrinsic child size */
}
  .pro-sidebar {
  padding-top: 8rem !important; padding: 4rem 5% 0; }
  .pro-content {
  padding-top: 8rem !important; padding: 2rem 5% 4rem; }
  .pro-right-image { flex: 0 0 100%; min-height: 60vh; }
  .pro-sidebar-sticky { position: relative; top: 0; }
}
.pro-right-image-container {
  flex: 0 0 35%;
  position: relative;
}

.pro-image-sticky {
  position: sticky;
  top: 10rem;
  padding: 0;
  display: block; /* Removed flex to prevent child width issues */
}

.pro-actual-image {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .pro-right-image-container { flex: 0 0 100%; padding: 4rem 5%; }
  .pro-image-sticky {
  position: sticky;
  top: 10rem;
  padding: 0;
  display: block; /* Removed flex to prevent child width issues */
}
}



/* FINAL OVERRIDE TO FIX HORIZONTAL SCROLL AND CORRUPTIONS */
.pro-asymmetrical-layout {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  align-items: stretch !important;
}

.pro-sidebar, .pro-content, .pro-right-image-container {
  min-width: 0 !important; /* The golden rule to prevent flex overflow */
}

.pro-right-image-container {
  flex: 0 0 35% !important;
  position: relative !important;
  
}

.pro-image-sticky {
  position: sticky !important;
  top: 10rem !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
}

.pro-actual-image {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

@media (max-width: 1024px) {
  .pro-asymmetrical-layout { flex-direction: column !important; }
  .pro-right-image-container { flex: 0 0 100% !important; padding: 4rem 5% !important; }
  .pro-image-sticky { position: relative !important; top: 0 !important; }
}
/* ========================================================
   THE SUPER DESIGNER MASTERPIECE: FLAWLESS GRID EDITORIAL
   ======================================================== */

.pro-inner-page {
  padding: 0;
  background-color: var(--color-white);
  min-height: 100vh;
  position: relative;
}

/* Bulletproof CSS Grid (No more overlapping flex items) */
.pro-asymmetrical-layout {
  display: grid !important;
  grid-template-columns: 1.2fr 2fr 1.8fr !important; /* Perfect golden-ratio inspired balance */
  gap: 4rem !important; /* Guaranteed breathing room */
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 0 0 4rem !important;
  align-items: stretch !important;
}

/* 1. LEFT COLUMN: The Sticky Title */
.pro-sidebar {
  padding-top: 8rem !important;
  position: sticky !important;
  top: 10rem !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.pro-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
  margin-bottom: 2rem;
}

.pro-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.8rem); /* Slightly smaller to prevent word breaking */
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  word-wrap: normal;
  
}

.pro-divider {
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
  margin-top: 2rem;
}

/* 2. MIDDLE COLUMN: The Content */
.pro-content {
  padding-top: 8rem !important;
  padding: 0 0 10rem 0 !important;
  min-width: 0 !important;
}

.pro-content p, .pro-content h6, .pro-content li h6 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.9;
  font-weight: 400;
  color: #2a2a2a; /* Deep, legible slate */
  margin-bottom: 2rem;
}

.pro-content > *:first-child {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #000;
  font-weight: 500;
  margin-bottom: 3rem; /* Extra space after lead */
}

/* 3. RIGHT COLUMN: The Cinematic Sticky Image */
.pro-right-image-container {
  padding: 0 !important;
  min-width: 0 !important;
}

.pro-image-sticky {
  position: sticky !important;
  top: 0 !important; /* Sticks right to the top of the viewport */
  height: 100vh !important; /* Full cinematic height */
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  overflow: hidden !important;
}

.pro-actual-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* We MUST use cover for 100vh, but... */
  object-position: 80% 50% !important; /* Shift focal point dynamically to keep Jorge in frame! */
  box-shadow: -20px 0 50px rgba(0,0,0,0.05) !important;
}

@media (max-width: 1200px) {
  .pro-asymmetrical-layout { grid-template-columns: 1fr 1.5fr 1.5fr !important; gap: 2rem !important; padding: 8rem 2rem 0 !important; }
}

@media (max-width: 900px) {
  .pro-asymmetrical-layout { grid-template-columns: 1fr !important; padding: 4rem 5% 0 !important; }
  .pro-sidebar {
  padding-top: 8rem !important; position: relative !important; top: 0 !important; margin-bottom: 3rem !important; }
  .pro-image-sticky { height: 60vh !important; position: relative !important; }
}



/* ULTIMATE STICKY FIX */

/* Ensure the grid stretches its children */
.pro-asymmetrical-layout {
  align-items: stretch !important;
  overflow: visible !important;
}

/* Fix Left Column Sticky */
.pro-sidebar {
  padding-top: 8rem !important;
  position: relative !important;
  top: auto !important;
  height: 100% !important;
  overflow: visible !important;
}

.pro-sidebar-sticky {
  position: sticky !important;
  top: 10rem !important;
  height: max-content !important; 
}

/* Fix Right Column Sticky */
.pro-right-image-container {
  position: relative !important;
  height: 100% !important;
  overflow: visible !important;
}

.pro-image-sticky {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  overflow: hidden !important;
}

/* If body has overflow-x hidden, this sometimes rescues sticky */
html, body, .pro-inner-page {
  overflow-x: visible !important;
}
.copyright a:hover {
    color: #fff !important;
}
.footer-email:hover {
    opacity: 1 !important;
}

/* 2-COLUMN LAYOUT FOR PAGES WITHOUT IMAGES (e.g. Legal Pages) */
.pro-2col-layout {
  display: grid !important;
  grid-template-columns: 1.2fr 3.8fr !important;
  gap: 4rem !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 8rem 5% 0 5% !important;
  align-items: stretch !important;
}

.pro-2col-layout .pro-content {
  padding-top: 8rem !important;
  max-width: 900px !important; /* Keep line length readable */
  padding-right: 2rem !important;
}

@media (max-width: 1024px) {
  .pro-2col-layout { grid-template-columns: 1fr 2fr !important; gap: 2rem !important; }
}

@media (max-width: 900px) {
  .pro-2col-layout { grid-template-columns: 1fr !important; padding: 4rem 5% 0 !important; }
}



/* FIX FOR IMAGE NOT TOUCHING TOP */
.pro-asymmetrical-layout {
  padding-top: 0 !important;
}
.pro-2col-layout {
  padding-top: 0 !important;
}

.pro-sidebar-sticky {
  margin-top: 8rem !important; /* Pushes the title down 8rem */
}
.pro-content {
  padding-top: 8rem !important; /* Pushes text down 8rem */
}

.pro-image-sticky {
  top: 0 !important;
  margin-top: 0 !important;
  height: 100vh !important;
}

/* ========================================================
   PRO BLOG ARCHIVE
   ======================================================== */
.pro-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 4rem 3rem;
  padding-bottom: 8rem;
}

.pro-blog-card {
  display: flex;
  flex-direction: column;
}

.pro-blog-image-wrapper {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #f5f5f5;
}

.pro-blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-blog-image-wrapper:hover .pro-blog-img {
  transform: scale(1.05);
}

.pro-blog-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #999;
  display: block;
  margin-bottom: 1rem;
}

.pro-blog-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.pro-blog-title a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.pro-blog-title a:hover {
  color: var(--color-primary);
}

.pro-blog-excerpt {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 2rem;
}

.pro-blog-read-more {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--color-dark);
  padding-bottom: 0.3rem;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.pro-blog-read-more:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ========================================================
   CLASSIC PREMIUM BLOG LAYOUT (SINGLE POST)
   ======================================================== */
.premium-blog-layout {
  padding: 8rem 0 10rem 0;
  background-color: #fcfcfc;
}

.premium-blog-container {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 6rem;
  align-items: start;
}

/* MAIN CONTENT */
.premium-blog-header {
  margin-bottom: 3rem;
}

.premium-blog-meta {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.premium-blog-meta a {
  color: var(--color-primary);
  text-decoration: none;
}
.premium-blog-meta a:hover {
  text-decoration: underline;
}

.meta-sep {
  margin: 0 0.5rem;
  color: #ccc;
}

.premium-blog-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.15;
  margin: 0;
}

.premium-blog-content {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.9;
  color: #2a2a2a;
}

.premium-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.premium-blog-content h2, .premium-blog-content h3 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* SIDEBAR */
.premium-blog-sidebar {
  position: sticky;
  top: 8rem;
}

.sidebar-widget {
  margin-bottom: 4rem;
}

.sidebar-widget .widget-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 1rem;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget ul li {
  margin-bottom: 1rem;
}

.sidebar-widget ul li a {
  font-family: var(--font-sans);
  color: var(--color-primary); /* Classic green links */
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.sidebar-widget ul li a:hover {
  opacity: 0.7;
}

/* Search form styling */
.sidebar-widget form {
  position: relative;
}
.sidebar-widget form input[type="text"] {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--color-white);
}
.sidebar-widget form input[type="submit"] {
  display: none;
}

@media (max-width: 1024px) {
  .premium-blog-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .premium-blog-sidebar {
    position: relative;
    top: 0;
  }
}

/* PAGINATION */
.pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eaeaea;
  padding-top: 2rem;
}

.pagination .nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pagination a, .pagination span {
  font-family: var(--font-sans);
  padding: 0.5rem 1rem;
  border: 1px solid #eaeaea;
  text-decoration: none;
  color: var(--color-dark);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination a:hover, .pagination .current {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.archive-card h2 a:hover {
  color: var(--color-primary) !important;
}

/* ========================================================
   MUSICOTERAPIA SERVICES GRID
   ======================================================== */
.services-premium-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-box {
  background: var(--color-white);
  border: 1px solid #eaeaea;
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.service-box h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.service-box p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.service-box .pro-btn {
  display: inline-block;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.service-box .pro-btn:hover {
  background-color: var(--color-primary);
}

/* ========================================================
   PREMIUM FULLWIDTH SECTION (Broken out of layout)
   ======================================================== */
.premium-fullwidth-section {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.9;
  color: #333;
}

.premium-fullwidth-section h6,
.premium-fullwidth-section h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-dark);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.premium-fullwidth-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.premium-fullwidth-section ul + ul {
  margin-top: -1.5rem;
}
.premium-fullwidth-section ul:last-child {
  margin-bottom: 3rem;
}

.premium-fullwidth-section ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Custom premium bullet point */
.premium-fullwidth-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.premium-fullwidth-section ul li h6 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 400;
  color: #444;
}

.services-premium-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem !important;
  margin-top: 2rem !important;
}

.service-box.full-width {
  grid-column: 1 / -1 !important;
}

/* ========================================================
   FLOATING WHATSAPP BUTTON
   ======================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.4);
  color: white;
}

/* Home Social Icons hover */
.social-icons-large a:hover {
  color: var(--color-primary) !important;
}



/* ========================================================
   FIXING TITLE OVERFLOW AND PROPORTIONS
   ======================================================== */
.pro-title {
    word-break: break-word !important;
    hyphens: auto !important;
    line-height: 1.2 !important;
    font-size: clamp(2.5rem, 4vw, 4rem) !important;
}

.pro-asymmetrical-layout {
    grid-template-columns: 1.5fr 2fr 1.5fr !important;
}

.premium-fullwidth-section .container {
    max-width: 1400px !important;
    padding: 0 4rem !important;
}

/* ========================================================
   EMERGENCY FIX FOR SPACING AND TITLE
   ======================================================== */
.pro-title {
    font-size: clamp(2rem, 3vw, 2.8rem) !important;
    word-break: normal !important;
    hyphens: none !important;
    line-height: 1.1 !important;
    margin-bottom: 0 !important; /* Remove bottom margin to tighten up */
}

.pro-subtitle {
    margin-bottom: 0.8rem !important; /* Bring title much closer to subtitle */
}

.pro-divider {
    margin-top: 1.2rem !important; /* Bring divider much closer to title */
}

.pro-asymmetrical-layout {
    grid-template-columns: minmax(320px, 1.5fr) 2fr 1.5fr !important;
}

/* ========================================================
   BIOGRAFIA CARDS GRID (PRO UI MAX)
   ======================================================== */
.premium-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
}

@media (max-width: 900px) {
    .premium-cards-grid {
        grid-template-columns: 1fr;
    }
}

.premium-list-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 3.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: max-content;
}

.premium-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #e0e0e0;
}

.premium-list-card h6 {
    font-size: 1.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 2.5rem !important;
    color: var(--color-dark) !important;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 1rem;
    display: inline-block;
    line-height: 1.4;
}

.premium-list-card ul {
    margin-bottom: 0 !important;
}

.premium-list-card ul li {
    padding-left: 2.5rem !important;
    margin-bottom: 1.8rem !important;
    color: #555;
}

.premium-list-card ul li:last-child {
    margin-bottom: 0 !important;
}

.premium-list-card ul li::before {
    top: 0.6rem !important;
    width: 8px !important;
    height: 8px !important;
}

/* ========================================================
   REVERT CARDS AND FIX BIOGRAFIA TYPOGRAPHY
   ======================================================== */
.premium-cards-grid { display: block !important; }
.premium-list-card { 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 !important; 
    transform: none !important; 
}
.premium-list-card:hover { transform: none !important; box-shadow: none !important; }

/* Enforce STRICT uniformity for all list items regardless of inner tags */
.premium-fullwidth-section ul li,
.premium-fullwidth-section ul li p,
.premium-fullwidth-section ul li h6,
.premium-fullwidth-section ul li span {
    font-size: 1.15rem !important;
    font-family: var(--font-sans) !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    color: #444 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important; /* Remove any accidental borders from previous card CSS */
}

/* Ensure the main section headings are styled properly */
.premium-fullwidth-section h6 strong {
    font-size: 1.6rem !important;
    font-family: var(--font-serif) !important;
    color: var(--color-dark) !important;
    display: block !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
}

/* FIX BULLETS PADDING */
.premium-fullwidth-section ul li {
    padding-left: 2rem !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
}

/* ========================================================
   SUPER PRO FULLSCREEN HERO (FRONT PAGE)
   ======================================================== */
.premium-hero-fullscreen {
    position: relative;
    width: 100vw;
    height: 85vh;
    min-height: 600px;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.05);
    animation: slowZoom 25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slowZoom {
    0% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem 6rem 4rem;
    display: flex;
    justify-content: flex-end;
}

.hero-text-box {
    text-align: right;
    max-width: 700px;
}

.hero-btn-pro {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.92);
    color: #111;
    padding: 1.2rem 3.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(5px);
}

.hero-btn-pro:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    color: var(--color-primary);
}

.hero-title-pro {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
    .premium-hero-fullscreen {
        height: 75vh;
        align-items: center;
        justify-content: center;
    }
    .hero-content-wrapper {
        padding: 0 2rem;
        justify-content: center;
    }
    .hero-text-box {
        text-align: center;
    }
}

/* ========================================================
   FIX HEADER VERTICAL ALIGNMENT
   ======================================================== */
.site-header {
    padding: 1.5rem 0 !important;
}
.site-header .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.site-branding {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.site-navigation {
    margin: 0 !important;
    padding: 0 !important;
}
.site-navigation ul {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================================
   FIX HEADER VERTICAL ALIGNMENT (FOR REAL)
   ======================================================== */
.site-header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.site-branding h1, .site-branding h2 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.main-navigation, .main-navigation div, .main-navigation ul {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-navigation ul li {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.main-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ========================================================
   PRO NAV LIST STYLES (HEADER ALIGNMENT FIX)
   ======================================================== */
.pro-nav-list {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.pro-nav-list li {
    margin: 0 0 0 2rem !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.pro-nav-list li a {
    display: block !important;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.pro-nav-list li a:hover {
    color: var(--color-primary);
}

/* ========================================================
   FIX MASSIVE GAP ON INNER PAGES
   ======================================================== */
.pro-2col-layout {
  padding-top: 2rem !important;
}
.pro-sidebar-sticky {
  margin-top: 2rem !important;
}
.pro-content {
  padding-top: 2rem !important;
}
.pro-2col-layout .pro-content {
  padding-top: 2rem !important;
}

/* ========================================================
   PREMIUM HERO ELEVATION
   ======================================================== */
.premium-hero-banner {
    position: relative;
    width: 100vw;
    height: 550px;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 4rem 10%;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    animation: panZoom 25s ease-out forwards;
}

@keyframes panZoom {
    0% { transform: scale(1.08) translateY(0); }
    100% { transform: scale(1) translateY(-10px); }
}

.hero-gradient-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
}

.hero-content-layer {
    position: relative;
    z-index: 3;
    text-align: right;
    animation: fadeUpIn 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeUpIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-btn-glass {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    margin-bottom: 2rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-transform: uppercase;
}

.hero-btn-glass:hover {
    background: #fff;
    color: #111;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.hero-title-elegant {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    color: #fff;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* PREMIUM BLACK QUOTE SECTION */
.premium-black-quote {
    background: linear-gradient(135deg, #050505 0%, #151515 100%);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.quote-image-container {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 5rem;
    position: relative;
}

.quote-actual-image {
    max-width: 90%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: contrast(1.05) brightness(0.95);
    margin-bottom: -1px;
}

.quote-text-container {
    flex: 1 1 50%;
    min-width: 300px;
    padding: 8rem 10% 8rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-icon-elegant {
    color: var(--color-primary);
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.quote-text-primary {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.6;
    color: #fff;
    font-weight: 300;
    margin-bottom: 2rem;
}

.quote-text-secondary {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
    font-weight: 300;
}
html, body { overflow-x: clip !important; }

/* BLOG POST FIXES */
.premium-blog-content {
    max-width: 800px;
    margin: 0;
    text-align: left;
}
.wp-block-group__inner-container {
    margin: 0 !important;
    padding: 0 !important;
}
.premium-blog-main {
    width: 100%;
}
.premium-blog-sidebar {
    width: 100%;
}


/* AGGRESSIVE BLOG FIXES */
.premium-blog-content .wp-block-group,
.premium-blog-content .wp-block-group__inner-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
.premium-blog-content figure.wp-block-image {
    max-width: 100% !important;
    margin: 0 0 2rem 0 !important;
    float: none !important;
    display: block !important;
}
.premium-blog-content img {
    max-width: 100% !important;
    height: auto !important;
}


.pro-blog-read-more {
    display: inline-block !important;
    padding: 10px 20px !important;
    border: 1px solid var(--color-primary) !important;
    border-radius: 4px !important;
    margin-top: 20px !important;
    text-decoration: none !important;
}
.pro-blog-read-more:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
}



/* THE 3-COLUMN LOCAL LAYOUT THE USER LOVED */
.pro-inner-page {
  padding: 8rem 0;
  background-color: #fff;
}
.pro-asymmetrical-layout {
  display: grid !important;
  grid-template-columns: 2fr 5fr 3fr !important;
  gap: 4rem;
  align-items: start;
}
.pro-2col-layout {
  display: grid !important;
  grid-template-columns: 3fr 7fr !important;
  gap: 6rem;
  align-items: start;
}
.pro-sidebar-sticky {
  position: sticky;
  top: 120px;
}
.pro-image-sticky {
  position: sticky;
  top: 120px;
  width: 100%;
}
.pro-actual-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: block;
}
@media (max-width: 992px) {
  .pro-asymmetrical-layout, .pro-2col-layout {
    grid-template-columns: 1fr !important;
  }
  .pro-sidebar-sticky, .pro-image-sticky {
    position: relative;
    top: 0;
  }
}

html, body { overflow-x: clip !important; max-width: 100vw; }

/* FORCE GRID TO STRETCH SO STICKY WORKS */
.pro-asymmetrical-layout, .pro-2col-layout {
    align-items: stretch !important;
}
.pro-sidebar, .pro-right-image-container {
    height: 100% !important;
}
.pro-sidebar-sticky, .pro-image-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 120px !important;
    height: max-content !important;
}


/* ========================================================
   GLOBAL MOBILE RESPONSIVE FIXES
   ======================================================== */
@media (max-width: 992px) {
    /* Fluid Typography */
    html { font-size: 14px; }
    h1, .hero-title-elegant, .pro-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.2 !important;
    }
    h2, h3 {
        font-size: clamp(1.75rem, 6vw, 2.2rem) !important;
    }
    h4, h5, h6, .pro-content h4, .pro-content h5, .pro-content h6, .pro-content h6 strong {
        font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
    }
    
    /* Hero section alignments */
    .hero-content-layer {
        padding: 1.5rem !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    .hero-btn-glass {
        margin: 0 auto 1.5rem auto !important;
        display: inline-block !important;
        font-size: 0.9rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    .hero-title-elegant {
        text-align: center !important;
    }
    
    /* Quote section padding */
    .premium-black-quote {
        padding: 4rem 1.5rem !important;
    }
    .quote-text-container {
        padding: 2rem 1.5rem !important;
    }
    .quote-text-primary {
        font-size: 1.5rem !important;
    }
    
    /* Services / Sections */
    .services-premium {
        padding: 4rem 1.5rem !important;
    }
    .service-premium-card {
        padding: 2rem !important;
    }
    
    /* Footer */
    .premium-footer {
        padding: 4rem 1.5rem 2rem !important;
    }
    
    /* Content Padding */
    .pro-content {
        padding: 2rem 1.5rem !important;
    }
    
    /* WhatsApp floating button resize */
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 28px !important;
    }
}


/* ========================================================
   DEFINITIVE MOBILE PADDING & LAYOUT FIXES
   ======================================================== */
@media (max-width: 992px) {
    .container {
        padding: 0 2rem !important;
    }
    .pro-inner-page {
        padding: 2rem 0 !important;
    }
    .pro-asymmetrical-layout, .pro-2col-layout {
        gap: 2rem !important; /* Prevent huge gaps between title, text, image */
        padding: 0 !important;
    }
    .pro-sidebar {
        padding: 0 !important;
    }
    .pro-sidebar-sticky {
        padding: 2rem 0 0 !important;
        margin-top: 0 !important;
    }
    .pro-content {
        padding: 0 !important;
    }
    .pro-right-image-container {
        padding: 2rem 0 !important;
    }
    .contacto-hero {
        padding: 6rem 1.5rem 4rem !important;
    }
    .contacto-maps-section {
        padding: 4rem 1.5rem 0 !important;
    }
    .contacto-maps-section .container {
        padding-bottom: 4rem !important;
    }
    .map-wrapper {
        margin: 0 !important;
    }
    .premium-blog-header {
        margin-bottom: 2rem !important;
    }
    .premium-blog-main {
        padding: 0 !important;
    }
    .archive-card {
        padding-bottom: 2rem !important;
        margin-bottom: 2rem !important;
    }
}


/* ========================================================
   MOBILE ARTICLE SLIDER
   ======================================================== */
@media (max-width: 992px) {
    .articles-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding-bottom: 2rem;
        margin-right: -2rem; /* Bleed to the right edge */
        padding-right: 2rem; /* Add padding at the end of the scroll */
    }
    
    /* Hide scrollbar for cleaner look */
    .articles-grid::-webkit-scrollbar {
        display: none;
    }
    .articles-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .articles-grid .archive-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        border: 1px solid #eaeaea !important;
        padding: 2rem 1.5rem !important;
        border-radius: 12px;
        background: #fff;
        margin-bottom: 0 !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
}


/* ========================================================
   SLIDER FIXES AND FRONT PAGE SLIDER
   ======================================================== */
.slider-image {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 992px) {
    /* Home Page Services Slider */
    .services-premium-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 1.5rem !important;
        padding-bottom: 2rem !important;
        margin-right: -1.5rem !important; /* Bleed to edge */
        margin-left: -1.5rem !important;
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }
    
    .services-premium-grid::-webkit-scrollbar {
        display: none !important;
    }
    .services-premium-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    .service-premium-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center !important;
        min-width: 0 !important; /* Prevent flex blowout */
        margin-bottom: 0 !important; /* Override any vertical stacking margin */
    }
}



/* ========================================================
   CRITICAL MOBILE LAYOUT FIXES V2
   ======================================================== */
@media (max-width: 992px) {
    /* Title proportions */
    h1, .hero-title-elegant, .pro-title {
        font-size: clamp(2rem, 6vw, 2.5rem) !important;
        word-break: break-word !important;
    }
    
    /* Layout padding fix */
    .pro-asymmetrical-layout, .pro-2col-layout {
        padding: 0 1.5rem !important;
        gap: 2rem !important;
    }
    
    .pro-content {
        padding: 0 !important; /* The container has padding now, so this can be 0 or 1rem */
    }

    /* Footer fix */
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
    }
    .footer-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2rem !important;
    }
    .legal-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* WhatsApp floating button */
    .floating-whatsapp {
        width: 50px !important;
        height: 50px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 28px !important;
        z-index: 99999 !important;
    }
    
    body {
        padding-bottom: 70px !important;
    }
}

/* Fix giant gaps in bullet points */
.premium-blog-content ul, 
.pro-content ul, 
.premium-fullwidth-section ul {
    padding-left: 1.5rem !important;
    margin-left: 0 !important;
    list-style-position: outside !important;
}
.premium-blog-content ul li, 
.pro-content ul li, 
.premium-fullwidth-section ul li {
    padding-left: 0.5rem !important;
    margin-bottom: 0.8rem !important;
}
.premium-fullwidth-section ul li::before {
    left: -1rem !important;
    top: 0.5rem !important;
}

/* ========================================================
   CRITICAL ALIGNMENT AND SLIDER FIXES
   ======================================================== */
@media (max-width: 992px) {
    /* Align Header Padding exactly with the Content Padding */
    .site-header {
        padding: 1rem 2rem !important;
    }
    .pro-clean-header {
        padding: 1rem 2rem !important;
    }
    
    /* Fix slider visibility and width */
    .articles-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 1.5rem !important;
        padding-bottom: 2rem !important;
        margin-right: 0 !important; /* Remove negative margin so next card is visible */
        padding-right: 0 !important;
        width: 100% !important;
    }
    
    .articles-grid .archive-card {
        flex: 0 0 80% !important; /* Strictly 80% width so the next one peeks heavily */
        min-width: 80% !important; 
        max-width: 80% !important;
    }
    
    /* Same for Home Page Slider */
    .services-premium-grid {
        margin-right: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
    .service-premium-card {
        flex: 0 0 80% !important;
        min-width: 80% !important;
        max-width: 80% !important;
    }
}

/* Revert massive cropped images to natural aspect ratio */
.slider-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
}


/* ========================================================
   THE FINAL PADDING AND ALIGNMENT AUDIT
   ======================================================== */
@media (max-width: 992px) {
    /* 1. Universal Container padding */
    .container, 
    .premium-fullwidth-section .container, 
    .site-header {
        padding: 0 2rem !important;
        box-sizing: border-box !important;
    }
    
    /* 2. Strip all horizontal paddings from grid children so they align flush with the container */
    .pro-asymmetrical-layout, 
    .pro-2col-layout {
        padding: 0 !important;
        margin: 0 !important;
    }
    .pro-content {
        padding: 0 !important;
        margin: 0 !important;
    }
    .pro-sidebar {
        padding: 0 !important;
        margin: 0 !important;
    }
    .pro-right-image-container {
        padding: 2rem 0 !important; /* Only vertical padding */
        margin: 0 !important;
    }
    .pro-content > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 3. Make sure Lists align properly */
    .pro-content ul, .premium-fullwidth-section ul {
        padding-left: 1.5rem !important;
        margin-left: 0 !important;
    }
    
    /* 4. Home Page Slider - CORRECT CLASS NOW */
    .services-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 1.5rem !important;
        padding-bottom: 2rem !important;
        width: 100% !important;
        /* Allow sliding off-screen */
        margin-right: -2rem !important;
        padding-right: 2rem !important;
    }
    
    .services-grid::-webkit-scrollbar {
        display: none !important;
    }
    .services-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    .service-card {
        flex: 0 0 80% !important;
        min-width: 80% !important;
        max-width: 80% !important;
        scroll-snap-align: center !important;
        margin-bottom: 0 !important; 
    }
}


/* ========================================================
   ABSOLUTE BULLETPROOF PADDING FIX
   ======================================================== */
@media (max-width: 992px) {
    /* Because .container and .pro-asymmetrical-layout are on the SAME HTML element,
       we must force the padding directly on .pro-asymmetrical-layout too */
    .container, 
    .pro-asymmetrical-layout, 
    .pro-2col-layout,
    .premium-fullwidth-section .container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        box-sizing: border-box !important;
    }
}


/* REVERT HOME PAGE SLIDER */
@media (max-width: 992px) {
    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        padding-bottom: 0 !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
    .service-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 2rem !important;
    }
}


/* REDUCE HUGE SPACES ON MOBILE */
@media (max-width: 992px) {
    .premium-blog-layout {
        padding: 2rem 0 4rem 0 !important;
    }
    .premium-blog-header {
        margin-bottom: 2rem !important; /* Overrides the inline 5rem */
    }
}



/* ========================================================
   HEADER PADDING FIX (Requested by User)
   ======================================================== */
.site-header {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

@media (max-width: 992px) {
    .site-header {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* HOME PAGE BLOG SLIDER */
@media (max-width: 992px) {
    .blog-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 1.5rem !important;
        padding-bottom: 2rem !important;
        width: 100% !important;
        margin-right: -2rem !important;
        padding-right: 2rem !important;
    }
    .blog-grid::-webkit-scrollbar {
        display: none !important;
    }
    .blog-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    .blog-article-card {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center !important;
        margin-bottom: 0 !important;
    }
}


/* ========================================================
   FIX BULLET POINT ALIGNMENT (PREVENT PUSH TO CENTER)
   ======================================================== */
@media (max-width: 992px) {
    .premium-fullwidth-section ul {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .premium-fullwidth-section ul li {
        padding-left: 1.5rem !important; /* Proper text indent */
        margin-bottom: 1.2rem !important;
    }
    .premium-fullwidth-section ul li::before {
        left: 0 !important; /* Bullet point aligned with edge of li */
        top: 0.6rem !important;
    }
}


/* UN-CROP HOME PAGE BLOG IMAGES */
@media (max-width: 992px) {
    .blog-image-wrapper img {
        height: auto !important;
        object-fit: contain !important;
    }
}


/* FINAL IMAGE FIX FOR BLOG SLIDER (PREVENT VERTICAL STRETCH/DISTORTION) */
.slider-image {
    width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

@media (max-width: 992px) {
    .archive-card, .blog-article-card {
        height: auto !important;
        align-self: flex-start !important; /* Prevents the card from stretching vertically */
    }
}

