/* =========================================================
   Marisa Rodríguez Abogados — Premium dark landing
   Compatible con index.html entregado
   ========================================================= */

:root {
  --black-main: #050506;
  --black-soft: #0e0e12;
  --black-card: #15151b;
  --black-card-2: #1b1a22;
  --gold: #c6a15b;
  --gold-light: #e4c878;
  --purple: #4b2e83;
  --purple-dark: #1c102e;
  --white-soft: #f5f1e8;
  --gray-text: #b8b6c2;
  --gray-muted: #888594;
  --border-gold: rgba(198, 161, 91, 0.26);
  --border-soft: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 30px 90px rgba(0, 0, 0, 0.42);
  --header-h: 88px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --transition: 260ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white-soft);
  background:
    radial-gradient(circle at 85% 5%, rgba(75, 46, 131, 0.32), transparent 32rem),
    radial-gradient(circle at 12% 18%, rgba(198, 161, 91, 0.12), transparent 30rem),
    var(--black-main);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

p {
  color: var(--gray-text);
  margin-bottom: 1rem;
}

::selection {
  color: #120d08;
  background: var(--gold-light);
}

.container-wide {
  max-width: 1480px;
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

.section-padding {
  padding: clamp(5.5rem, 9vw, 9.5rem) 0;
}

.section-anchor {
  scroll-margin-top: var(--header-h);
}

.max-w-lg {
  max-width: 900px;
}

.max-w-md {
  max-width: 760px;
}

.text-balance {
  text-wrap: balance;
}

/* =========================
   Typography
   ========================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--white-soft);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 5.4rem);
  line-height: 0.96;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.18;
  font-weight: 650;
}

.premium-italic {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: -0.03em;
}

/* =========================
   Buttons
   ========================= */

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  border: 1px solid rgba(228, 200, 120, 0.75);
  color: #160f07;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 34px rgba(198, 161, 91, 0.18);
}

.btn-gold:hover,
.btn-gold:focus {
  color: #080808;
  border-color: var(--gold-light);
  box-shadow: 0 18px 48px rgba(198, 161, 91, 0.3);
}

.btn-outline-soft {
  color: var(--white-soft);
  border: 1px solid rgba(245, 241, 232, 0.22);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
}

.btn-outline-soft:hover,
.btn-outline-soft:focus {
  color: var(--white-soft);
  border-color: var(--border-gold);
  background: rgba(198, 161, 91, 0.09);
}

/* =========================
   Navbar
   ========================= */

.site-navbar {
  min-height: var(--header-h);
  padding: 1rem 0;
  background: rgba(5, 5, 6, 0.44);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), min-height var(--transition), padding var(--transition);
  z-index: 1050;
}

.site-navbar.is-scrolled {
  min-height: 72px;
  padding: 0.6rem 0;
  background: rgba(5, 5, 6, 0.86);
  border-bottom-color: rgba(198, 161, 91, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  line-height: 1;
}

/* CORRECCIÓN LOGO: evita que el PNG/SVG/PDF exportado se dispare de tamaño */
.brand-lockup img {
  width: auto !important;
  height: 54px !important;
  max-width: 220px !important;
  max-height: 54px !important;
  object-fit: contain;
}

.site-navbar.is-scrolled .brand-lockup img {
  height: 46px !important;
  max-height: 46px !important;
}

.navbar-toggler {
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 999px;
  padding: 0.5rem 0.65rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(198, 161, 91, 0.22);
}

.site-navbar .nav-link {
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  position: relative;
  transition: color var(--transition);
}

.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

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

/* =========================
   Hero
   ========================= */

.hero-section {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 74% 38%, rgba(75, 46, 131, 0.42), transparent 26rem),
    linear-gradient(135deg, rgba(5, 5, 6, 0.95), rgba(14, 14, 18, 0.9) 48%, rgba(28, 16, 46, 0.8));
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 38%, black, transparent 78%);
}

.hero-container {
  position: relative;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 7.8rem);
  line-height: 0.88;
  font-weight: 800;
  max-width: 850px;
}

.hero-subtitle {
  margin-top: 1.7rem;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  color: rgba(245, 241, 232, 0.9);
  max-width: 720px;
}

.hero-text {
  margin-top: 1.8rem;
  max-width: 780px;
  border-left: 1px solid var(--border-gold);
  padding-left: 1.35rem;
}

.hero-text p {
  font-size: 1rem;
}

.hero-visual {
  position: relative;
  min-height: 660px;
  border-radius: clamp(28px, 4vw, 54px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(198, 161, 91, 0.18);
  background: var(--black-card);
  transform: translateY(-100px);
}

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.03) brightness(0.86);
  transform: scale(1.01);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(5, 5, 6, 0.72)),
    radial-gradient(circle at 20% 85%, rgba(198, 161, 91, 0.18), transparent 22rem);
  z-index: 1;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  right: -13%;
  top: 9%;
  border: 1px solid rgba(228, 200, 120, 0.34);
  border-radius: 999px;
  z-index: 2;
  box-shadow: inset 0 0 60px rgba(75, 46, 131, 0.18);
  pointer-events: none;
}

/* =========================
   Credentials
   ========================= */

.credentials-section {
  margin-top: -4rem;
  position: relative;
  z-index: 3;
}

.credentials-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  background: rgba(15, 15, 19, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 120px;
  padding: 1.5rem;
  border-right: 1px solid rgba(198, 161, 91, 0.14);
}

.credential-item:last-child {
  border-right: 0;
}

.credential-item i {
  color: var(--gold-light);
  font-size: 1.45rem;
  flex: 0 0 auto;
}

.credential-item span {
  color: rgba(245, 241, 232, 0.9);
  font-weight: 650;
  line-height: 1.35;
}

/* =========================
   Sections
   ========================= */

.section-heading p {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  max-width: 720px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.service-card {
  grid-column: span 2;
  position: relative;
  min-height: 420px;
  padding: clamp(1.5rem, 2.2vw, 2.2rem);
  border: 1px solid rgba(198, 161, 91, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(75, 46, 131, 0.22), transparent 16rem),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    var(--black-card);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(228, 200, 120, 0.36);
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}

.service-number {
  position: absolute;
  right: 1.4rem;
  top: 1rem;
  color: rgba(228, 200, 120, 0.13);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}

.service-icon {
  color: var(--gold-light);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  max-width: 330px;
  margin-bottom: 1.35rem;
}

.service-card ul,
.formation-card ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
  color: var(--gray-text);
}

.service-card li,
.formation-card li {
  margin-bottom: 0.7rem;
}

/* Image breaks */
.image-break,
.large-photo-section {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  border-top: 1px solid rgba(198, 161, 91, 0.1);
  border-bottom: 1px solid rgba(198, 161, 91, 0.1);
}

.image-break img,
.large-photo-section img {
  width: 100%;
  height: 72vh;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) brightness(0.72) contrast(1.08);
}

.image-break::after,
.large-photo-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,6,0.88), rgba(5,5,6,0.16) 52%, rgba(5,5,6,0.7)),
    radial-gradient(circle at 16% 70%, rgba(198, 161, 91, 0.18), transparent 22rem);
}

.image-break-content {
  position: absolute;
  left: clamp(1.25rem, 6vw, 6rem);
  bottom: clamp(2rem, 7vw, 6rem);
  z-index: 2;
}

/* Process */
.process-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(75, 46, 131, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 91, 0.5), transparent);
}

.process-step {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(198, 161, 91, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(21, 21, 27, 0.74);
  backdrop-filter: blur(16px);
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(198, 161, 91, 0.07);
  color: var(--gold-light);
  font-weight: 800;
}

.process-step p {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* About */
.about-section {
  background:
    radial-gradient(circle at 88% 35%, rgba(75, 46, 131, 0.2), transparent 28rem),
    var(--black-main);
}

.about-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(198, 161, 91, 0.22);
  box-shadow: var(--shadow-soft);
}

.about-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,6,0.42));
}

.about-photo {
  width: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) brightness(0.88);
}

.role-text {
  margin-top: 0.8rem;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.formation-card {
  padding: clamp(1.35rem, 2vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(198, 161, 91, 0.15);
  background: rgba(255, 255, 255, 0.045);
}

/* Testimonials */
.testimonials-section {
  background:
    radial-gradient(circle at 20% 12%, rgba(198, 161, 91, 0.08), transparent 30rem),
    linear-gradient(180deg, rgba(28,16,46,0.38), rgba(5,5,6,1));
}

.testimonial-card {
  height: 100%;
  min-height: 300px;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(198, 161, 91, 0.14);
  background: rgba(21, 21, 27, 0.82);
}

.testimonial-card i {
  color: var(--gold-light);
  font-size: 2.4rem;
}

.testimonial-card p {
  margin-top: 1.2rem;
  color: rgba(245, 241, 232, 0.9);
  font-size: 1.05rem;
}

.testimonial-card span {
  display: inline-block;
  color: var(--gold-light);
  font-weight: 700;
}

/* FAQ */
.custom-accordion {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(198, 161, 91, 0.14);
  background: rgba(21, 21, 27, 0.78);
}

.custom-accordion .accordion-item {
  color: var(--white-soft);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

.custom-accordion .accordion-button {
  color: var(--white-soft);
  background: transparent;
  padding: 1.35rem 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: none;
}

.custom-accordion .accordion-button::after {
  filter: invert(80%) sepia(24%) saturate(1028%) hue-rotate(358deg) brightness(94%) contrast(88%);
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--gold-light);
  background: rgba(198, 161, 91, 0.06);
}

.custom-accordion .accordion-body {
  color: var(--gray-text);
  padding: 0 1.35rem 1.35rem;
}

/* Contact */
.contact-section {
  background:
    radial-gradient(circle at 84% 12%, rgba(75, 46, 131, 0.32), transparent 28rem),
    radial-gradient(circle at 12% 90%, rgba(198, 161, 91, 0.1), transparent 26rem),
    var(--black-soft);
}

.contact-section h2 {
  margin-bottom: 1.5rem;
}

.contact-form {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(198, 161, 91, 0.18);
  background: rgba(21, 21, 27, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.form-label {
  color: rgba(245, 241, 232, 0.86);
  font-weight: 700;
  font-size: 0.88rem;
}

.form-control,
.form-select {
  min-height: 54px;
  color: var(--white-soft);
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.045);
}

.form-control:focus,
.form-select:focus {
  color: var(--white-soft);
  border-color: rgba(228, 200, 120, 0.6);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 0.2rem rgba(198, 161, 91, 0.14);
}

.form-select option {
  color: #111;
}

textarea.form-control {
  min-height: 150px;
}

.legal-check {
  color: var(--gray-text);
}

.form-check-input {
  background-color: transparent;
  border-color: rgba(228, 200, 120, 0.5);
}

.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold-light);
}

.is-invalid {
  border-color: #ff7b7b !important;
}

.form-feedback {
  min-height: 1.5rem;
  margin: 0.9rem 0 0;
  font-weight: 700;
}

.form-feedback.is-success {
  color: var(--gold-light);
}

.form-feedback.is-error {
  color: #ff9b9b;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(198, 161, 91, 0.13);
  background: #030304;
}

.footer-brand img {
  height: 70px !important;
  max-height: 70px !important;
  max-width: 260px !important;
}

.footer-links,
.footer-legal {
  display: grid;
  gap: 0.7rem;
}

.footer-links a,
.footer-legal a {
  color: rgba(245, 241, 232, 0.68);
  transition: color var(--transition);
}

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

/* =========================
   Cookie banner / modal
   ========================= */

.cookie-banner {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2000;
  width: min(480px, calc(100vw - 2rem));
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(198, 161, 91, 0.28);
  background: rgba(14, 14, 18, 0.94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-banner h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white-soft);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

.cookies-modal-content {
  color: var(--white-soft);
  border: 1px solid rgba(198, 161, 91, 0.25);
  border-radius: 24px;
  background: var(--black-card);
}

.cookies-modal-content .modal-header,
.cookies-modal-content .modal-footer {
  border-color: rgba(255,255,255,0.09);
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cookie-option:last-child {
  border-bottom: 0;
}

.cookie-option p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* =========================
   Scroll animation
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.19,1,.22,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1199.98px) {
  :root {
    --header-h: 78px;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(198, 161, 91, 0.16);
    border-radius: 22px;
    background: rgba(5, 5, 6, 0.96);
  }

  .site-navbar .nav-link {
    padding: 0.7rem 0.2rem;
  }

  .site-navbar .nav-link::after {
    left: 0;
    right: 0;
  }

  .credentials-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .credential-item:nth-child(2) {
    border-right: 0;
  }

  .credential-item:nth-child(1),
  .credential-item:nth-child(2) {
    border-bottom: 1px solid rgba(198, 161, 91, 0.14);
  }

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

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero-container .min-vh-100 {
    min-height: auto !important;
    padding-bottom: 4rem;
  }

  .hero-copy {
    padding-top: 2rem;
  }

  .hero-visual {
    min-height: 520px;
    transform: translateY(-18px);
  }

  .hero-img {
    min-height: 520px;
  }

  .credentials-section {
    margin-top: 0;
    padding-top: 1.25rem;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .process-timeline::before {
    display: none;
  }

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

@media (max-width: 767.98px) {
  :root {
    --header-h: 72px;
  }

  body {
    line-height: 1.58;
  }

  .container-wide {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-lockup img {
    height: 42px !important;
    max-height: 42px !important;
    max-width: 180px !important;
  }

  .site-navbar.is-scrolled .brand-lockup img {
    height: 38px !important;
    max-height: 38px !important;
  }

  .hero-title {
    font-size: clamp(3rem, 13vw, 4.35rem);
  }

  .hero-text {
    padding-left: 1rem;
  }

  .hero-visual {
    min-height: 430px;
    border-radius: 26px;
    transform: translateY(0);
  }

  .hero-img {
    min-height: 430px;
  }

  .credentials-panel {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .credential-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(198, 161, 91, 0.14);
  }

  .credential-item:last-child {
    border-bottom: 0;
  }

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

  .service-card {
    min-height: auto;
  }

  .image-break,
  .large-photo-section {
    min-height: 48vh;
  }

  .image-break img,
  .large-photo-section img {
    height: 52vh;
  }

  .about-photo {
    min-height: 430px;
  }

  .testimonial-card {
    min-height: auto;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .footer-brand img {
    height: 54px !important;
    max-height: 54px !important;
  }
}

@media (max-width: 420px) {
  .btn-lg {
    --bs-btn-padding-y: 0.85rem;
    --bs-btn-padding-x: 1.05rem;
    --bs-btn-font-size: 0.95rem;
  }

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

  h2 {
    font-size: 2.45rem;
  }
}

/* =========================================================
   UX/UI refinements v2 — más aire, encuadres y footer premium
   ========================================================= */

/* Hero más respirado y visible en primera pantalla */
.hero-section {
  padding-top: calc(var(--header-h) + clamp(2.2rem, 4vw, 4.8rem));
}

.hero-container .min-vh-100 {
  min-height: calc(100vh - var(--header-h)) !important;
  padding-top: clamp(1rem, 2vw, 2rem);
  padding-bottom: clamp(3.5rem, 6vw, 6.5rem);
}

.hero-copy .eyebrow {
  margin-bottom: clamp(1.6rem, 2.4vw, 2.4rem);
}

.hero-title {
  font-size: clamp(2.85rem, 5.55vw, 6.45rem);
  line-height: 0.94;
  max-width: 760px;
}

.hero-subtitle {
  margin-top: clamp(1.65rem, 2.7vw, 2.45rem);
  max-width: 640px;
}

.hero-text {
  margin-top: clamp(2.1rem, 6vw, 3rem);
  margin-bottom: clamp(1.3rem, 5vw, 2rem);
  max-width: 700px;
}

.hero-text p + p {
  margin-top: 1.15rem;
}

/* Credenciales: icono arriba, mayor presencia y centrado */
.credentials-section {
  margin-top: -2.2rem;
}

.credentials-panel {
  align-items: stretch;
}

.credential-item {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  min-height: 145px;
  padding: 1.65rem 1.25rem;
}

.credential-item i {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(228, 200, 120, 0.28);
  background: radial-gradient(circle at 50% 18%, rgba(228, 200, 120, 0.18), rgba(198, 161, 91, 0.05));
  font-size: 1.75rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.credential-item span {
  max-width: 250px;
  font-size: 0.98rem;
  line-height: 1.35;
}

/* Imagen de ruptura: prioriza cara y encuadre superior */
.image-break img {
  object-position: center 18%;
}

.large-photo-section img {
  object-position: center 30%;
}

/* Sobre nosotros: más aire entre bloques de lectura */
.about-section .role-text {
  margin-top: 0.85rem;
  margin-bottom: 2rem;
}

.about-section p:not(.role-text) {
  max-width: 820px;
  font-size: 1.04rem;
  line-height: 1.85;
  margin-bottom: 1.8rem;
}

.formation-card {
  margin-top: clamp(2rem, 3vw, 3rem) !important;
  padding-top: clamp(1.55rem, 2.4vw, 2.2rem);
}

.formation-card h3 {
  margin-bottom: 1.3rem;
}

.formation-card li {
  margin-bottom: 0.9rem;
  line-height: 1.65;
}

/* Footer: más premium, sin menú, con geometría sutil */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(198, 161, 91, 0.09), transparent 18rem),
    radial-gradient(circle at 86% 12%, rgba(75, 46, 131, 0.18), transparent 24rem),
    linear-gradient(180deg, #050506, #030304);
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.72;
}

.site-footer::before {
  width: 52vw;
  height: 52vw;
  right: -28vw;
  bottom: -42vw;
  border: 1px solid rgba(198, 161, 91, 0.18);
  border-radius: 50%;
}

.site-footer::after {
  left: clamp(1rem, 5vw, 5rem);
  right: clamp(1rem, 5vw, 5rem);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 200, 120, 0.5), rgba(75, 46, 131, 0.45), transparent);
}

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer-legal a {
  font-size: 0.92rem;
}

.footer-legal a:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 1.35rem;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.55);
  vertical-align: middle;
}

.footer-brand {
  position: relative;
  z-index: 1;
}

/* Ajustes responsive de las mejoras */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: clamp(2.65rem, 6.4vw, 5.5rem);
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: calc(var(--header-h) + 2.4rem);
  }

  .hero-copy {
    padding-top: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }

  .credentials-section {
    margin-top: 0;
  }

  .image-break img {
    object-position: 58% 18%;
  }

  .large-photo-section img {
    object-position: 54% 16%;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero-title {
    font-size: clamp(2.55rem, 11.6vw, 4.1rem);
    line-height: 0.96;
  }

  .hero-subtitle {
    margin-top: 1.45rem;
    font-size: 1.05rem;
  }

  .hero-text {
    margin-top: 1.7rem;
  }

  .credential-item {
    min-height: 132px;
  }

  .credential-item i {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .image-break img {
    object-position: 52% 16%;
  }

  .large-photo-section img {
    object-position: 53% 14%;
  }

  .about-section p:not(.role-text) {
    font-size: 1rem;
    line-height: 1.75;
  }

  .footer-legal {
    display: grid;
    gap: 0.85rem;
  }

  .footer-legal a:not(:last-child)::after {
    display: none;
  }
}

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