/* =========================================
   CÉLICO & DENTI — ESTUDIO JURÍDICO
   Paleta: Verde oscuro + Rosa/Salmón
   Tipografía: Cormorant Garamond + Jost
   ========================================= */

:root {
  --verde: #1e4035;
  --verde-dark: #152c25;
  --verde-mid: #2a5244;
  --rosa: #c4917a;
  --rosa-light: #d4a898;
  --rosa-pale: #f0e4de;
  --beige: #f7f3f0;
  --blanco: #ffffff;
  --gris: #6b7280;
  --gris-dark: #374151;
  --text: #1a1a1a;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Jost', sans-serif;
  color: var(--text);
  background: var(--blanco);
}

/* ---- NAVBAR ---- */
.cd-navbar {
  background: rgba(20, 44, 37, 0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(196,145,122,0.2);
  transition: all 0.3s;
}

.cd-logo-mark {
  display: flex;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}
.cd-logo-mark .logo-c {
  font-size: 2rem;
  font-weight: 600;
  color: var(--rosa-light);
  letter-spacing: -2px;
}
.cd-logo-mark .logo-sep {
  width: 1px;
  height: 28px;
  background: var(--rosa);
  margin: 0 2px;
}
.cd-logo-mark .logo-d {
  font-size: 2rem;
  font-weight: 600;
  color: var(--blanco);
  letter-spacing: -2px;
}
.cd-logo-mark.sm .logo-c { font-size: 1.5rem; }
.cd-logo-mark.sm .logo-d { font-size: 1.5rem; }
.cd-logo-mark.sm .logo-sep { height: 20px; }

.cd-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blanco);
}
.logo-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--rosa-light);
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.82) !important;
  padding: 6px 14px !important;
  text-transform: uppercase;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--rosa-light) !important;
}

.cd-btn-nav {
  background: var(--rosa);
  color: var(--blanco) !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 8px 22px;
  border-radius: 0;
  transition: background 0.25s;
}
.cd-btn-nav:hover { background: var(--rosa-light); color: var(--blanco) !important; }

.toggler-icon { color: var(--rosa-light); font-size: 1.2rem; }
.navbar-toggler { border: none; outline: none; box-shadow: none; }

/* ---- HERO ---- */
.cd-hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 860px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cd-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.cd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,44,37,0.88) 50%, rgba(20,44,37,0.3) 100%);
  z-index: 1;
}
.cd-hero > .container { z-index: 2; }

.cd-hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rosa-light);
  font-weight: 400;
  margin-bottom: 14px;
}
.cd-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 18px;
}
.cd-hero-title em {
  font-style: italic;
  color: var(--rosa-light);
}
.cd-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  max-width: 460px;
  line-height: 1.7;
}

/* ---- BUTTONS ---- */
.cd-btn-primary {
  background: var(--rosa);
  color: var(--blanco);
  border: none;
  padding: 13px 28px;
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.cd-btn-primary:hover { background: var(--rosa-light); color: var(--blanco); transform: translateY(-1px); }

.cd-btn-outline {
  background: transparent;
  color: var(--blanco);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 13px 28px;
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  text-decoration: none;
}
.cd-btn-outline:hover { border-color: var(--rosa-light); color: var(--rosa-light); }

.cd-btn-light {
  background: var(--blanco);
  color: var(--verde);
  border: none;
  padding: 13px 28px;
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}
.cd-btn-light:hover { background: var(--rosa-pale); color: var(--verde-dark); }

.cd-btn-wa {
  background: #25D366;
  color: var(--blanco);
  border: none;
  padding: 14px 34px;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.cd-btn-wa:hover { background: #1ebe5a; color: var(--blanco); transform: translateY(-2px); }

/* ---- TRUST ---- */
.cd-trust {
  background: var(--beige);
  border-top: 1px solid var(--rosa-pale);
  border-bottom: 1px solid var(--rosa-pale);
}
.cd-trust-item {
  padding: 20px 10px;
}
.cd-trust-item i {
  font-size: 1.6rem;
  color: var(--rosa);
  margin-bottom: 10px;
  display: block;
}
.cd-trust-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--verde);
  margin-bottom: 4px;
}
.cd-trust-item p {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 0;
}

/* ---- SECTION COMMON ---- */
.cd-section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rosa);
  font-weight: 500;
  margin-bottom: 10px;
}
.cd-section-eyebrow.light { color: var(--rosa-light); }

.cd-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--verde-dark);
  line-height: 1.2;
}
.cd-section-title.light { color: var(--blanco); }

.cd-body-text {
  font-size: 0.98rem;
  color: var(--gris-dark);
  line-height: 1.8;
  font-weight: 300;
}
.cd-body-text.light { color: rgba(255,255,255,0.82); }

/* ---- ABOUT ---- */
.cd-about { background: var(--blanco); }
.cd-about-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.cd-about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cd-about-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 90px;
  height: 90px;
  background: var(--rosa);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  border: 3px solid var(--blanco);
}

/* ---- AREAS ---- */
.cd-areas { background: var(--beige); }

.cd-area-card {
  background: var(--blanco);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--rosa-pale);
}
.cd-area-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(30,64,53,0.12); }

.cd-area-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.cd-area-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.cd-area-card:hover .cd-area-img img { transform: scale(1.06); }
.cd-area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,44,37,0.1), rgba(20,44,37,0.5));
}

.cd-area-body {
  padding: 22px 22px 24px;
}
.cd-area-body h3,
.cd-area-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--verde-dark);
  margin-bottom: 8px;
}
.cd-area-body p {
  font-size: 0.87rem;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 12px;
}
.cd-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rosa);
  text-decoration: none;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cd-link:hover { color: var(--verde); gap: 10px; }


/* ---- DIFERENCIAL ---- */
.cd-diferencial {
  background: var(--verde);
}
.cd-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cd-check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cd-check-list li i {
  color: var(--rosa-light);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.cd-diferencial-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 3px solid var(--rosa);
}

/* ---- TESTIMONIOS ---- */
.cd-testimonios { background: var(--blanco); }
.cd-testi-card {
  background: var(--beige);
  border: 1px solid var(--rosa-pale);
  padding: 32px 28px;
  height: 100%;
  position: relative;
}
.cd-testi-card::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--rosa-pale);
  position: absolute;
  top: -10px;
  left: 22px;
  line-height: 1;
}
.cd-stars {
  color: var(--rosa);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.cd-testi-card p {
  font-size: 0.92rem;
  color: var(--gris-dark);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 16px;
}
.cd-testi-autor {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--rosa);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- CTA WA ---- */
.cd-cta-wa {
  background: var(--verde-dark);
}
.cd-wa-icon {
  font-size: 3rem;
  color: #25D366;
  display: block;
}

/* ---- FOOTER ---- */
.cd-footer {
  background: var(--verde-dark);
  color: rgba(255,255,255,0.78);
}
.cd-footer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rosa-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cd-footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.cd-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cd-footer-links li {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  display: flex;
  align-items: center;
}
.cd-footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.cd-footer-links a:hover { color: var(--rosa-light); }
.cd-footer-links i { color: var(--rosa); font-size: 0.8rem; }
.cd-footer-hr { border-color: rgba(255,255,255,0.1); }
.cd-footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.cd-footer-copy a { color: var(--rosa-light); text-decoration: none; }

/* ---- HERO PAGES (internas) ---- */
.cd-page-hero {
  background: var(--verde);
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
}
.cd-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/banner1.jpg') center/cover no-repeat;
  opacity: 0.06;
}
.cd-page-hero .container { position: relative; z-index: 1; }
.cd-page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 10px;
}
.cd-page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  font-weight: 300;
}
.cd-breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cd-breadcrumb a { color: var(--rosa-light); text-decoration: none; }
.cd-breadcrumb span { color: rgba(255,255,255,0.5); margin: 0 8px; }
.cd-breadcrumb .active { color: rgba(255,255,255,0.6); }

/* ---- SERVICIOS CARD ---- */
.cd-service-block {
  background: var(--blanco);
  border: 1px solid var(--rosa-pale);
  padding: 36px 32px;
  height: 100%;
  transition: box-shadow 0.3s, transform 0.3s;
}
.cd-service-block:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,64,53,0.1); }
.cd-service-block .cd-area-icon { font-size: 1.8rem; margin-bottom: 14px; }
.cd-service-block h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--verde-dark);
  margin-bottom: 12px;
}
.cd-service-block ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.cd-service-block ul li {
  font-size: 0.87rem;
  color: var(--gris-dark);
  padding: 5px 0;
  border-bottom: 1px solid var(--rosa-pale);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cd-service-block ul li::before {
  content: '—';
  color: var(--rosa);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ---- CONTACTO ---- */
.cd-form-section { background: var(--beige); }
.cd-form {
  background: var(--blanco);
  padding: 44px 40px;
  border: 1px solid var(--rosa-pale);
}
.cd-form .form-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 6px;
}
.cd-form .form-control,
.cd-form .form-select {
  border-radius: 0;
  border: 1px solid #ddd;
  font-size: 0.93rem;
  padding: 11px 14px;
  color: var(--text);
  background: var(--blanco);
  transition: border-color 0.2s;
}
.cd-form .form-control:focus,
.cd-form .form-select:focus {
  border-color: var(--rosa);
  box-shadow: none;
}
.cd-form textarea.form-control { min-height: 140px; resize: vertical; }

.cd-contact-info { background: var(--verde); padding: 44px 36px; height: 100%; }
.cd-contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--blanco);
  margin-bottom: 8px;
}
.cd-contact-info p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.cd-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.cd-contact-item i {
  color: var(--rosa-light);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.cd-contact-item span, .cd-contact-item a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  line-height: 1.6;
}
.cd-contact-item a:hover { color: var(--rosa-light); }
.cd-contact-item strong { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rosa-light); margin-bottom: 2px; }

/* ---- QUIENES SOMOS ---- */
.cd-team-card {
  background: var(--blanco);
  border: 1px solid var(--rosa-pale);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cd-team-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(30,64,53,0.12); }
.cd-team-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s;
}
.cd-team-card:hover img { transform: scale(1.04); }
.cd-team-card-body { padding: 26px 24px; background: var(--blanco); }
.cd-team-card-body h3,
.cd-team-card-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--verde-dark);
  margin-bottom: 4px;
}
.cd-team-card-body .cd-role {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 12px;
  display: block;
}
.cd-team-card-body p {
  font-size: 0.87rem;
  color: var(--gris);
  line-height: 1.75;
}

.cd-values-grid .cd-value-item {
  padding: 30px 24px;
  border: 1px solid var(--rosa-pale);
  background: var(--blanco);
  text-align: center;
}
.cd-values-grid .cd-value-item i {
  font-size: 1.8rem;
  color: var(--rosa);
  margin-bottom: 14px;
  display: block;
}
.cd-values-grid .cd-value-item h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--verde-dark);
  margin-bottom: 8px;
}
.cd-values-grid .cd-value-item p {
  font-size: 0.86rem;
  color: var(--gris);
  line-height: 1.7;
}

/* ---- UTILITIES ---- */
.py-lg-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--verde-dark);
    padding: 16px 20px 20px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .cd-hero { height: 90vh; }
  .cd-about-img-wrap img { height: 320px; }
  .cd-about-badge { right: 0; bottom: 0; }
  .cd-diferencial-img { height: 280px; }
  .cd-team-card img { height: 280px; }
  .cd-form { padding: 28px 22px; }
  .cd-contact-info { padding: 28px 24px; }
}

@media (max-width: 575px) {
  .cd-hero-title { font-size: 2rem; }
  .cd-about-img-wrap img { height: 260px; }
}
/* =========================================
   SEO LOCAL — NAV DROPDOWN, PRECLICK, ZONAS
   ========================================= */

/* ---- NAV DROPDOWN (nivel 1: servicio · nivel 2: barrio) ---- */
.cd-dd { position: relative; }

.cd-dd-toggle { cursor: pointer; }
.cd-dd-caret {
  font-size: 0.6rem;
  margin-left: 5px;
  transition: transform 0.2s;
}

.cd-dd-menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: var(--verde-dark);
  border: 1px solid rgba(196,145,122,0.22);
  min-width: 245px;
  z-index: 1000;
}

.cd-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 18px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.cd-dd-item:hover,
.cd-dd-item:focus {
  background: var(--verde-mid);
  color: var(--rosa-light);
}

/* Desktop: hover */
@media (min-width: 992px) {
  .cd-dd-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  /* puente invisible para que el mouse no pierda el menú */
  .cd-dd::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
  }
  .cd-dd:hover > .cd-dd-menu,
  .cd-dd:focus-within > .cd-dd-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .cd-dd:hover > .cd-dd-toggle .cd-dd-caret { transform: rotate(180deg); }

  .cd-dd-sub { position: relative; }
  .cd-dd-menu-sub {
    top: -7px;
    left: 100%;
    margin-top: 0;
    margin-left: 1px;
  }
  .cd-dd-sub:hover > .cd-dd-menu-sub,
  .cd-dd-sub:focus-within > .cd-dd-menu-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* el último dropdown abre hacia la izquierda para no salirse */
  .navbar-nav > .cd-dd:last-of-type .cd-dd-menu { left: auto; right: 0; }
}

/* Mobile: acordeón por click (clase .open la pone js/nav.js) */
@media (max-width: 991.98px) {
  .cd-dd-menu {
    display: none;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(196,145,122,0.3);
    margin: 4px 0 8px 14px;
    padding: 0;
    min-width: 0;
  }
  .cd-dd.open > .cd-dd-menu,
  .cd-dd-sub.open > .cd-dd-menu-sub { display: block; }
  .cd-dd.open > .cd-dd-toggle .cd-dd-caret,
  .cd-dd-sub.open > .cd-dd-toggle-sub .cd-dd-caret { transform: rotate(90deg); }
  .cd-dd > .cd-dd-menu > li > .cd-dd-toggle-sub { color: var(--rosa-light); }
  .cd-dd-menu-sub { margin-left: 12px; }
  .cd-dd-item { padding: 8px 14px; }
}

/* ---- PRECLICK EN LAS CARDS DE ÁREAS ---- */
/* el panel flota sobre la grilla: no empuja la card ni desacomoda la fila */
.cd-more {
  position: relative;
  display: inline-block;
}
.cd-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  background: var(--verde);
  color: var(--blanco);
  border: 1px solid var(--verde);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s;
}
.cd-more-toggle i {
  font-size: 0.85em;
  transition: transform 0.25s;
}

.cd-more-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 232px;
  padding: 0 0 6px;
  background: var(--verde);
  border: 1px solid var(--verde-mid);
  box-shadow: 0 18px 44px rgba(20,44,37,0.34);
}
.cd-more-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: var(--verde-dark);
  padding: 11px 18px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--verde-mid);
}
.cd-more-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cd-more-panel a {
  display: block;
  padding: 9px 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.cd-more-panel a:hover {
  background: var(--verde-mid);
  color: var(--rosa-light);
  padding-left: 23px;
}

/* Desktop: se despliega con el hover sobre el botón */
@media (min-width: 992px) {
  /* puente invisible para que el mouse no pierda el panel al bajar */
  .cd-more::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
  }
  .cd-more:hover > .cd-more-panel,
  .cd-more:focus-within > .cd-more-panel { display: block; }
  .cd-more:hover > .cd-more-toggle,
  .cd-more:focus-within > .cd-more-toggle {
    background: var(--verde-mid);
    border-color: var(--rosa);
  }
  .cd-more:hover > .cd-more-toggle i,
  .cd-more:focus-within > .cd-more-toggle i { transform: rotate(90deg); }
  /* en las dos últimas columnas abre hacia la izquierda para no salirse */
  .row > [class*="col-"]:nth-child(3n) .cd-more-panel { left: auto; right: 0; }
}

/* Mobile: se despliega con el click (clase .open la pone js/nav.js) */
@media (max-width: 991.98px) {
  .cd-more.open > .cd-more-panel { display: block; }
  .cd-more.open > .cd-more-toggle {
    background: var(--verde-mid);
    border-color: var(--rosa);
  }
  .cd-more.open > .cd-more-toggle i { transform: rotate(90deg); }
}

/* AOS deja un transform en la columna (data-aos), lo que crea un stacking
   context y encerraba el z-index del popover dentro de su propia columna:
   las cards de la fila siguiente lo tapaban. Se eleva la columna entera. */
.cd-areas .row > [class*="col-"] { position: relative; }
.cd-areas .row > [class*="col-"]:hover,
.cd-areas .row > [class*="col-"].cd-more-activo { z-index: 50; }

/* ---- SECCIÓN ZONAS ---- */
.cd-zonas { background: var(--beige); }

.cd-zona-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 118px;
  padding: 20px 12px;
  background: var(--blanco);
  border: 1px solid var(--rosa-pale);
  text-decoration: none;
  text-align: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.cd-zona-card i {
  font-size: 1.35rem;
  color: var(--rosa);
  transition: color 0.25s;
}
.cd-zona-card span {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--verde-dark);
  transition: color 0.25s;
}
.cd-zona-card:hover {
  background: var(--verde);
  border-color: var(--verde);
  transform: translateY(-4px);
}
.cd-zona-card:hover i { color: var(--rosa-light); }
.cd-zona-card:hover span { color: var(--blanco); }

/* ---- AJUSTES H1 SEO (título más largo que el anterior) ---- */
.cd-hero-title { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.cd-hero-desc { max-width: 520px; }
.cd-hero-desc strong { font-weight: 500; color: var(--blanco); }
.cd-body-text strong { font-weight: 500; color: var(--verde); }

/* ---- BOTONES: separación ícono/texto + legibilidad ---- */
/* el inline-flex colapsaba el espacio del HTML entre el <i> y el texto */
.cd-btn-primary,
.cd-btn-wa,
.cd-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.cd-btn-primary i,
.cd-btn-wa i {
  font-size: 1.1em;
  line-height: 1;
}
.cd-btn-outline svg { flex-shrink: 0; }

/* =========================================
   PÁGINAS SERVICIO × BARRIO
   ========================================= */
.cd-page-hero-desc {
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  line-height: 1.75;
  margin-top: 10px;
}

/* item activo dentro del dropdown del nav */
.cd-dd-item.cd-dd-activo {
  color: var(--rosa-light);
  background: var(--verde-mid);
}

/* ---- QUÉ RESOLVEMOS ---- */
.cd-resuelve {
  background: var(--beige);
  border: 1px solid var(--rosa-pale);
  border-top: 3px solid var(--rosa);
  padding: 32px 30px;
}
.cd-resuelve h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--verde-dark);
  margin-bottom: 20px;
}
.cd-resuelve .cd-check-list li { color: var(--gris-dark); }
.cd-resuelve .cd-check-list i { color: var(--rosa); }

/* ---- EL BARRIO ---- */
.cd-barrio { background: var(--beige); }
.cd-barrio-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rosa-pale);
}
.cd-barrio .cd-check-list li { color: var(--gris-dark); }
.cd-barrio .cd-check-list i { color: var(--rosa); }

/* ---- PASOS ---- */
.cd-paso {
  position: relative;
  height: 100%;
  padding: 30px 24px 26px;
  background: var(--blanco);
  border: 1px solid var(--rosa-pale);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.cd-paso:hover {
  transform: translateY(-5px);
  border-color: var(--rosa);
  box-shadow: 0 16px 40px rgba(30,64,53,0.1);
}
.cd-paso-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--rosa);
  margin-bottom: 12px;
}
.cd-paso h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--verde-dark);
  margin-bottom: 10px;
}
.cd-paso p {
  font-size: 0.87rem;
  font-weight: 300;
  color: var(--gris);
  line-height: 1.75;
  margin: 0;
}

/* ---- FAQ ---- */
.cd-faq-sec { background: var(--beige); }

.cd-accordion .accordion-item {
  background: var(--blanco);
  border: 1px solid var(--rosa-pale);
  border-radius: 0;
  margin-bottom: 10px;
}
.cd-accordion .accordion-button {
  font-family: 'Jost', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--verde-dark);
  background: var(--blanco);
  border-radius: 0;
  padding: 20px 24px;
  box-shadow: none;
}
.cd-accordion .accordion-button:not(.collapsed) {
  background: var(--verde);
  color: var(--blanco);
}
.cd-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--rosa);
}
.cd-accordion .accordion-button::after {
  width: 0.9rem;
  height: 0.9rem;
  background-size: 0.9rem;
}
.cd-accordion .accordion-button:not(.collapsed)::after { filter: invert(1) brightness(2); }
.cd-accordion .accordion-body {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gris-dark);
  line-height: 1.85;
  padding: 22px 24px;
}

/* ---- LINKS CRUZADOS ENTRE SERVICIOS DEL BARRIO ---- */
.cd-cross { background: var(--blanco); }
.cd-cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.cd-cross-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: var(--beige);
  border: 1px solid var(--rosa-pale);
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.cd-cross-link span {
  font-family: 'Jost', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--verde-dark);
  transition: color 0.25s;
}
.cd-cross-link i {
  color: var(--rosa);
  font-size: 0.8rem;
  transition: color 0.25s, transform 0.25s;
}
.cd-cross-link:hover {
  background: var(--verde);
  border-color: var(--verde);
  transform: translateY(-3px);
}
.cd-cross-link:hover span { color: var(--blanco); }
.cd-cross-link:hover i { color: var(--rosa-light); transform: translateX(4px); }

@media (max-width: 767px) {
  .cd-barrio-img { height: 260px; }
  .cd-resuelve { padding: 26px 22px; }
}

/* ---- NAP: datos de contacto en texto (lo que lee Google) ---- */
.cd-nap {
  background: var(--blanco);
  border: 1px solid var(--rosa-pale);
  border-left: 3px solid var(--rosa);
  padding: 26px 26px 24px;
}
.cd-nap-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--verde-dark);
  margin-bottom: 16px;
}
.cd-nap ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cd-nap li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gris-dark);
  line-height: 1.65;
}
.cd-nap li i {
  color: var(--rosa);
  font-size: 0.95rem;
  width: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}
.cd-nap li strong {
  font-weight: 500;
  color: var(--verde-dark);
}
.cd-nap a {
  color: var(--gris-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.cd-nap a:hover { color: var(--rosa); }
.cd-nap .cd-link { display: inline-flex; margin-top: 14px; }

/* ---- SUBSERVICIOS: cards minimalistas, sólo el nombre ---- */
.cd-subs { background: var(--beige); }

.cd-sub-card {
  position: relative;
  height: 100%;
  min-height: 150px;
  padding: 30px 28px;
  background: var(--verde);
  border: 1px solid var(--verde-mid);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
/* filete rosa que recorre el borde superior al pasar el mouse */
.cd-sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--rosa);
  transition: width 0.45s ease;
}
.cd-sub-card:hover::before { width: 100%; }
.cd-sub-card:hover {
  transform: translateY(-6px);
  border-color: var(--rosa);
  box-shadow: 0 22px 50px rgba(20,44,37,0.28);
}

.cd-sub-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(196,145,122,0.42);
  margin-bottom: 12px;
}
.cd-sub-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blanco);
  margin: 0;
  padding-bottom: 14px;
  position: relative;
}
.cd-sub-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 1px;
  background: var(--rosa);
}

@media (max-width: 575px) {
  .cd-sub-card { min-height: 130px; padding: 24px 22px; }
  .cd-sub-card h3 { font-size: 1.3rem; }
}

/* ---- SUBSERVICIOS: descripción + consulta directa ---- */
.cd-sub-card { justify-content: flex-start; min-height: 0; }
.cd-sub-card h3 { margin-bottom: 14px; }
.cd-sub-card p {
  font-size: 0.86rem;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin: 0 0 20px;
  flex-grow: 1;
}
.cd-sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  align-self: flex-start;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(196,145,122,0.55);
  color: var(--blanco);
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.cd-sub-btn i {
  font-size: 1.05em;
  color: #25D366;
  transition: color 0.25s;
}
.cd-sub-btn:hover {
  background: var(--rosa);
  border-color: var(--rosa);
  color: var(--verde-dark);
}
.cd-sub-btn:hover i { color: var(--verde-dark); }

/* ---- HERO: la imagen de mobile es vertical, se encuadra distinto ---- */
@media (max-width: 767px) {
  .cd-hero-bg { object-position: center center; }
  /* en vertical el degradado tiene que ir de arriba a abajo, no de izq. a der. */
  .cd-hero-overlay {
    background: linear-gradient(to bottom, rgba(20,44,37,0.9) 30%, rgba(20,44,37,0.55) 100%);
  }
}

/* ---- ESCRIBANÍA SOCIA (páginas de asesoramiento notarial) ---- */
.cd-partner { background: var(--beige); }

.cd-partner-box {
  /* la caja se ajusta al ancho de lectura del texto, no al del container:
     a 1050px la línea pasaría los 110 caracteres y se lee mal */
  max-width: 860px;
  margin: 0 auto;
  background: var(--blanco);
  border: 1px solid var(--rosa-pale);
  border-left: 4px solid var(--rosa);
  padding: 42px 44px;
}
.cd-partner-box .cd-section-title { margin-bottom: 18px; }
.cd-partner-box .cd-body-text + .cd-body-text { margin-top: 14px; }
.cd-partner-box .cd-btn-primary i {
  font-size: 0.78em;
  margin-left: 2px;
}

@media (max-width: 767px) {
  .cd-partner-box { padding: 30px 24px; }
}

/* =========================================
   ANTI-DESBORDE HORIZONTAL EN MOBILE
   ========================================= */

/* <picture> es inline y metía una caja extra en el flujo del hero.
   display:contents la saca: el <img> se posiciona directo contra .cd-hero */
.cd-hero picture { display: contents; }

@media (max-width: 767px) {
  /* el popover de barrios tiene min-width fijo: en pantallas angostas
     se salía del viewport y arrastraba scroll horizontal */
  .cd-more-panel {
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 44px);
  }
  /* el badge "Graduadas UBA" sobresale del contenedor por diseño */
  .cd-about-img-wrap { overflow: hidden; }

  /* ninguna imagen puede empujar el layout */
  img, picture, svg, iframe { max-width: 100%; }
}

/* =========================================
   PÁGINA DE GRACIAS (confirmación del form)
   ========================================= */
.cd-gracias {
  background: var(--beige);
  padding: 170px 0 90px;   /* deja aire bajo el nav fijo */
  min-height: 88vh;
}
.cd-gracias h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--verde-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.cd-gracias-icono {
  width: 86px;
  height: 86px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--verde);
  border: 1px solid var(--rosa);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-gracias-icono i {
  font-size: 2rem;
  color: var(--rosa-light);
}

/* el outline del hero es blanco: sobre el beige hay que invertirlo */
.cd-btn-oscuro {
  color: var(--verde);
  border-color: var(--verde);
}
.cd-btn-oscuro:hover {
  background: var(--verde);
  border-color: var(--verde);
  color: var(--blanco);
}

.cd-gracias-links {
  max-width: 820px;
  margin: 64px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--rosa-pale);
}
.cd-gracias-links .cd-more-label { margin-bottom: 18px; }

@media (max-width: 767px) {
  .cd-gracias { padding: 130px 0 70px; }
}

/* trampa anti-spam del formulario: invisible para personas, no para bots */
.cd-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* aviso de error del formulario (lo muestra el ?error= de enviar.php) */
.cd-form-error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  border-left: 3px solid #c0392b;
  color: #922b21;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 14px 18px;
  margin-bottom: 22px;
}

/* número grande de la página 404 */
.cd-404-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 300;
  line-height: 1;
  color: var(--rosa);
  opacity: 0.45;
  margin-bottom: 6px;
}
