/*
Theme Name: Clínica Dental Carrero
Theme URI: https://clinicadentalcarrero.com
Author: Clínica Dental Carrero
Author URI: https://clinicadentalcarrero.com
Description: Tema personalizado para Clínica Dental Carrero — Odontología familiar, estética dental y atención personalizada en Jerez de la Frontera.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clinica-carrero
*/

/* ============================================================
   GLOBAL
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #f7f3ee;
  --bg-soft: #fbf8f4;
  --bg-alt: #f1ede8;
  --sand: #d9c8b6;
  --sand-2: #c8b39d;
  --ink: #1f1f1f;
  --muted: #4a4641;
  --line: #e8ddd2;
  --white: #ffffff;
  --blue: #2e4a6e;
  --blue-dark: #2e4a6e;
  --gold: #b89a6a;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;
  --shadow: 0 18px 50px rgba(31,31,31,.08);
  --shadow-sm: 0 8px 20px rgba(31,31,31,.05);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */

.cd-wrap {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.cd-section { padding: 64px 0; position: relative; }

.cd-section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   KICKER / TITLES / TEXT
   ============================================================ */

.cd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 18px;
}

.cd-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--blue-dark);
  display: block;
  opacity: .6;
}

.cd-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue-dark);
}

.cd-title-md {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue-dark);
}

.cd-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.cd-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.cd-btn-primary {
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 10px 25px rgba(95,120,147,.22);
}

.cd-btn-primary:hover {
  transform: translateY(-1px);
  background: var(--blue);
}

.cd-btn-secondary {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
  box-shadow: 0 10px 25px rgba(95,120,147,.22);
}

.cd-btn-secondary:hover {
  transform: translateY(-1px);
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.cd-btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37,211,102,.22);
  gap: 8px;
}

.cd-btn-whatsapp:hover {
  transform: translateY(-1px);
  background: var(--whatsapp-dark);
}

.cd-btn-whatsapp svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
  vertical-align: middle;
}

/* ============================================================
   HEADER
   ============================================================ */

.cd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(251,248,244,.92);
  border-bottom: 1px solid var(--line);
  height: 84px !important;
  max-height: 84px !important;
  overflow: hidden !important;
}

.cd-header-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cd-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}

.cd-logo-mark {
  width: auto;
  height: auto;
  max-height: 76px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-logo-mark img {
  width: auto;
  height: 250px;
  max-width: 520px;
  object-fit: contain;
}

.cd-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 32px);
  flex-wrap: nowrap;
}

.cd-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  position: relative;
  white-space: nowrap;
}

.cd-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--blue-dark);
  transition: .25s ease;
}

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

.cd-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cd-header-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cd-header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--blue-dark);
  color: var(--blue-dark);
  transition: .25s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.cd-header-social a:hover {
  background: var(--blue-dark);
  color: #fff;
}

.cd-header-social a svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
  vertical-align: middle;
}

.cd-header br, .cd-header p:empty, .cd-nav br, .cd-nav p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* ============================================================
   HERO
   ============================================================ */

.cd-hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(217,200,182,.28), transparent 32%),
    radial-gradient(circle at top right, rgba(127,152,178,.14), transparent 22%),
    linear-gradient(180deg, #f9f5f0 0%, #fbf8f4 100%);
}

.cd-hero-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.cd-hero-copy { padding: 0; }

.cd-hero-lead {
  max-width: 660px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}

.cd-hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  max-width: 720px;
}

.cd-point {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 14px;
  color: #494541;
  box-shadow: 0 10px 25px rgba(31,31,31,.04);
}

.cd-point strong {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 6px;
  font-size: 15px;
}

.cd-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-hero-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}

.cd-hero-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.cd-hero-badge {
  position: absolute;
  left: 26px;
  bottom: 26px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(232,221,210,.92);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(31,31,31,.08);
  max-width: 300px;
  z-index: 2;
}

.cd-hero-badge strong { display: block; margin-bottom: 6px; font-size: 15px; color: var(--blue-dark); }
.cd-hero-badge span { font-size: 13px; line-height: 1.6; color: var(--muted); }

.cd-floating-card {
  position: absolute;
  right: -24px;
  top: 40px;
  width: 250px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.cd-floating-card small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 10px; }
.cd-floating-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.2; color: var(--blue-dark); }
.cd-floating-card p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ============================================================
   ABOUT
   ============================================================ */

.cd-about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.cd-about-media { position: relative; }

.cd-about-main {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.cd-about-main img { aspect-ratio: 5 / 6; width: 100%; object-fit: cover; }

.cd-about-mini {
  position: absolute;
  right: -24px;
  bottom: 40px;
  width: 240px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  z-index: 2;
}

.cd-about-mini img { aspect-ratio: 4 / 4; width: 100%; object-fit: cover; }

.cd-about-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.cd-about-feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.cd-about-feature h4 { margin: 0 0 10px; font-size: 16px; color: var(--blue-dark); }
.cd-about-feature p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ============================================================
   SERVICES
   ============================================================ */

.cd-services {
  background: linear-gradient(180deg, #f3ede6 0%, #fbf8f4 100%);
  border-top: 1px solid #ecdfd2;
  border-bottom: 1px solid #ecdfd2;
}

.cd-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

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

.cd-service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(31,31,31,.04);
  transition: .25s ease;
  display: flex;
  flex-direction: column;
}

.cd-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(31,31,31,.08);
}

.cd-service-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.cd-service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cd-service h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.25; color: var(--blue-dark); }
.cd-service p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; flex: 1; }

.cd-service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--blue-dark);
  color: #fff;
  border: 1px solid var(--blue-dark);
  transition: .25s ease;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(95,120,147,.22);
}

.cd-service-btn:hover {
  transform: translateY(-1px);
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ============================================================
   TEAM
   ============================================================ */

.cd-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cd-team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(31,31,31,.04);
}

.cd-team-photo { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.cd-team-body { padding: 24px; }

.cd-team-role {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.cd-team-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; color: var(--blue-dark); }
.cd-team-card p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ============================================================
   GALLERY
   ============================================================ */

.cd-gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  grid-auto-rows: 280px;
  gap: 20px;
}

.cd-gallery-item {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(31,31,31,.04);
  background: #fff;
}

.cd-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.cd-gallery-item.large { grid-row: span 2; }

/* ============================================================
   CTA
   ============================================================ */

.cd-cta {
  background: linear-gradient(135deg, rgba(127,152,178,.10), rgba(217,200,182,.22)), #f7f3ee;
}

.cd-cta-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
}

.cd-cta-panel {
  background: #f8f4ef;
  border: 1px solid #eadfd4;
  border-radius: 26px;
  padding: 32px;
}

.cd-cta-panel strong { color: var(--blue-dark); }

.cd-cta-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.cd-cta-list li {
  font-size: 14px;
  color: #4d4945;
  line-height: 1.7;
  display: flex;
  gap: 10px;
}

.cd-cta-list li::before { content: "•"; color: var(--gold); font-weight: 800; }

/* ============================================================
   CONTACT
   ============================================================ */

.cd-contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.cd-contact-card,
.cd-map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 12px 26px rgba(31,31,31,.04);
  overflow: hidden;
}

.cd-contact-card { padding: 40px; }

.cd-contact-list { display: grid; gap: 20px; margin-top: 28px; }

.cd-contact-item { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cd-contact-item:last-child { border-bottom: none; padding-bottom: 0; }

.cd-contact-item small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.cd-contact-item strong { display: block; font-size: 18px; margin-bottom: 6px; line-height: 1.3; color: var(--blue-dark); }
.cd-contact-item span,
.cd-contact-item a { display: block; font-size: 14px; line-height: 1.8; color: var(--muted); }

.cd-contact-social { display: flex; align-items: center; gap: 12px; margin-top: 4px; }

.cd-contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--blue-dark);
  color: var(--blue-dark);
  transition: .25s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.cd-contact-social a:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.cd-contact-social a svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
  vertical-align: middle;
}

.cd-map-card iframe { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */

.cd-footer { background: #1f1f1f; color: rgba(255,255,255,.82); margin-top: 0; }

.cd-footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cd-footer-brand { font-size: 14px; line-height: 1.8; }
.cd-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.cd-footer-links a { font-size: 13px; color: rgba(255,255,255,.82); }

/* ============================================================
   TRATAMIENTOS PAGE
   ============================================================ */

.tr-page * { box-sizing: border-box; }
.tr-page img { max-width: 100%; display: block; }
.tr-page a { text-decoration: none; color: inherit; }

.tr-page {
  font-family: 'Montserrat', sans-serif;
  color: #1f1f1f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.tr-wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

.tr-hero {
  background:
    radial-gradient(circle at top left, rgba(217,200,182,.30), transparent 36%),
    radial-gradient(circle at bottom right, rgba(127,152,178,.12), transparent 28%),
    linear-gradient(180deg, #f3ede6 0%, #fbf8f4 100%);
  border-bottom: 1px solid var(--line);
  padding: 80px 0 72px;
  text-align: center;
}

.tr-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 20px;
}

.tr-hero-kicker::before,
.tr-hero-kicker::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--blue-dark);
  opacity: .5;
}

.tr-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue-dark);
}

.tr-hero p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}

.tr-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 84px;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(31,31,31,.04);
}

.tr-nav-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tr-nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--blue-dark);
  border: 1px solid var(--blue-dark);
  background: transparent;
  white-space: nowrap;
  transition: .2s ease;
}

.tr-nav-pill:hover {
  background: var(--blue-dark);
  color: #fff;
}

.tr-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.tr-section:nth-child(odd)  { background: var(--bg-soft); }
.tr-section:nth-child(even) { background: var(--bg-alt); }

.tr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tr-section:nth-child(even) .tr-grid { direction: rtl; }
.tr-section:nth-child(even) .tr-grid > * { direction: ltr; }

.tr-img-wrap { position: relative; }

.tr-img-card {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}

.tr-img-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.tr-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: .04em;
  white-space: nowrap;
}

.tr-section:nth-child(even) .tr-img-badge { right: auto; left: -20px; }

.tr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.tr-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue-dark);
  opacity: .6;
}

.tr-content h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue-dark);
}

.tr-desc { margin: 0 0 28px; font-size: 16px; line-height: 1.9; color: var(--muted); }

.tr-list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 10px; }

.tr-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #4d4945;
}

.tr-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
}

.tr-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: .22s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

.tr-btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37,211,102,.20);
}

.tr-btn-whatsapp:hover { transform: translateY(-1px); background: var(--whatsapp-dark); }

.tr-btn-whatsapp svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
}

.tr-btn-back {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
  box-shadow: 0 6px 16px rgba(95,120,147,.22);
}

.tr-btn-back:hover {
  transform: translateY(-1px);
  background: var(--blue);
  border-color: var(--blue);
}

.tr-final {
  background: linear-gradient(135deg, rgba(127,152,178,.10), rgba(217,200,182,.22)), var(--bg);
  padding: 96px 0;
  text-align: center;
}

.tr-final-box { max-width: 680px; margin: 0 auto; }

.tr-final h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue-dark);
}

.tr-final p { margin: 0 0 36px; font-size: 17px; line-height: 1.85; color: var(--muted); }
.tr-final-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.tr-btn-phone {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(95,120,147,.22);
}

.tr-btn-phone:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-1px); }

/* ============================================================
   BLOG
   ============================================================ */

.cd-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cd-blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(31,31,31,.04);
  transition: .25s ease;
}

.cd-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(31,31,31,.08);
}

.cd-blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.cd-blog-card-body { padding: 24px; }

.cd-blog-card-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.cd-blog-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--blue-dark);
}

.cd-blog-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.cd-blog-card .cd-service-btn { margin-top: 16px; }

/* Single post */
.cd-single-post {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 0;
}

.cd-single-post h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue-dark);
  margin: 0 0 16px;
}

.cd-single-post .cd-post-meta {
  font-size: 13px;
  color: var(--blue-dark);
  font-weight: 600;
  margin-bottom: 32px;
}

.cd-single-post .cd-post-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.cd-single-post .cd-post-content h2,
.cd-single-post .cd-post-content h3 {
  color: var(--blue-dark);
  margin-top: 32px;
}

.cd-single-post .cd-post-content img {
  border-radius: 20px;
  margin: 24px 0;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1180px)
   ============================================================ */

@media (max-width: 1180px) {
  .cd-hero-grid,
  .cd-about-grid,
  .cd-cta-box,
  .cd-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cd-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .cd-gallery-item.large { grid-row: auto; grid-column: span 2; }
  .cd-hero-card { border-radius: 26px; }
  .cd-hero-photo { aspect-ratio: 16 / 10; }
  .cd-map-card iframe { min-height: 360px; }
}

/* ============================================================
   RESPONSIVE — TABLET SMALL (max 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .cd-nav { display: none; }
  .cd-header-inner { padding: 12px 0; min-height: 80px; }
  .cd-floating-card { right: 18px; top: 18px; }
  .cd-section { padding: 48px 0; }
  .cd-center { margin-bottom: 36px; }
  .cd-cta-box { padding: 36px; border-radius: 26px; }
  .cd-cta-panel { padding: 26px; }

  .tr-section { padding: 72px 0; }
  .tr-grid { gap: 48px; }
  .tr-img-badge { right: -10px; bottom: -10px; font-size: 12px; padding: 14px 18px; }
  .tr-section:nth-child(even) .tr-img-badge { right: auto; left: -10px; }
}

/* ============================================================
   RESPONSIVE — MOBILE LARGE (max 860px)
   ============================================================ */

@media (max-width: 860px) {
  .cd-header-inner { min-height: 72px; gap: 12px; }
  .cd-header-cta { gap: 8px; }
  .cd-header-cta .cd-btn { min-height: 44px; padding: 0 18px; font-size: 12px; }
  .cd-header-cta .cd-btn svg { width: 16px !important; height: 16px !important; }
  .cd-header-social a { width: 36px; height: 36px; }
  .cd-header-social a svg { width: 15px !important; height: 15px !important; }
  .cd-logo-mark img { height: 58px; max-width: 260px; }
  .cd-hero { padding: 32px 0 48px; }
  .cd-hero-grid { gap: 32px; }
  .cd-hero-points { grid-template-columns: 1fr; gap: 12px; }
  .cd-about-grid { gap: 32px; }
  .cd-about-box { grid-template-columns: 1fr; gap: 14px; }
  .cd-grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .cd-service { flex-direction: row; border-radius: 20px; }
  .cd-service:hover { transform: none; }
  .cd-service-photo { width: 120px; min-width: 120px; aspect-ratio: 1 / 1; border-radius: 20px 0 0 20px; }
  .cd-service-body { padding: 18px; }
  .cd-service h3 { font-size: 16px; margin-bottom: 6px; }
  .cd-service p { font-size: 13px; line-height: 1.65; }
  .cd-service-btn { margin-top: 10px; padding: 8px 16px; font-size: 12px; }
  .cd-team-grid { grid-template-columns: 1fr; gap: 16px; }
  .cd-team-card { display: flex; flex-direction: row; border-radius: 20px; }
  .cd-team-photo { width: 130px; min-width: 130px; aspect-ratio: 3 / 4; border-radius: 20px 0 0 20px; }
  .cd-team-body { padding: 18px; display: flex; flex-direction: column; justify-content: center; }
  .cd-team-card h3 { font-size: 18px; margin-bottom: 6px; }
  .cd-team-card p { font-size: 13px; line-height: 1.65; }
  .cd-team-role { font-size: 10px; margin-bottom: 6px; }
  .cd-gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 12px; }
  .cd-gallery-item { border-radius: 18px; }
  .cd-gallery-item.large { grid-column: span 2; grid-row: auto; }
  .cd-floating-card { position: static; width: auto; margin-top: 24px; }
  .cd-about-mini { position: static; width: 100%; margin-top: 24px; }
  .cd-cta-box { padding: 28px; border-radius: 22px; }
  .cd-cta-panel { border-radius: 18px; padding: 22px; }
  .cd-contact-card { padding: 28px; border-radius: 22px; }
  .cd-map-card { border-radius: 22px; }
  .cd-map-card iframe { min-height: 300px; }
  .cd-contact-grid { gap: 20px; }
  .cd-section { padding: 40px 0; }
  .cd-btns { margin-top: 24px; gap: 12px; }
  .cd-btn { min-height: 50px; padding: 0 22px; font-size: 13px; }
  .cd-title-md { font-size: clamp(22px, 5.5vw, 32px); }
  .cd-footer-inner { flex-direction: column; text-align: center; gap: 16px; padding: 32px 0; }
  .cd-footer-links { justify-content: center; }
  .cd-blog-grid { grid-template-columns: 1fr; }

  .tr-hero { padding: 56px 0 52px; }
  .tr-nav { position: sticky; top: 84px; }
  .tr-nav-inner { gap: 6px; }
  .tr-nav-pill { font-size: 11px; padding: 7px 12px; }
  .tr-section { padding: 56px 0; }
  .tr-grid { grid-template-columns: 1fr; gap: 32px; }
  .tr-section:nth-child(even) .tr-grid { direction: ltr; }
  .tr-img-badge { display: none; }
  .tr-img-card { border-radius: 24px; }
  .tr-img-card img { aspect-ratio: 16 / 9; }
  .tr-content h2 { font-size: clamp(24px, 5vw, 32px); }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================================ */

@media (max-width: 600px) {
  .cd-wrap { width: calc(100% - 24px); }
  .cd-header-inner { width: calc(100% - 24px); min-height: 64px; gap: 10px; }
  .cd-logo-mark img { height: 48px; max-width: 200px; }
  .cd-header-cta .cd-btn { min-height: 40px; padding: 0 14px; font-size: 11px; gap: 6px; }
  .cd-header-cta .cd-btn svg { width: 14px !important; height: 14px !important; }
  .cd-header-social a { width: 34px; height: 34px; }
  .cd-header-social a svg { width: 14px !important; height: 14px !important; }
  .cd-hero { padding: 24px 0 36px; }
  .cd-hero-grid { gap: 24px; }
  .cd-title { font-size: clamp(26px, 7vw, 36px); margin-bottom: 14px; }
  .cd-hero-lead { font-size: 15px; line-height: 1.75; }
  .cd-hero-card { border-radius: 20px; }
  .cd-hero-photo { aspect-ratio: 4 / 3; }
  .cd-point { padding: 14px 16px; border-radius: 14px; font-size: 13px; }
  .cd-point strong { font-size: 14px; margin-bottom: 4px; }
  .cd-kicker { font-size: 11px; margin-bottom: 14px; }
  .cd-kicker::before { width: 24px; }
  .cd-text { font-size: 14px; line-height: 1.75; }
  .cd-about-main { border-radius: 20px; }
  .cd-about-feature { padding: 16px; border-radius: 14px; }
  .cd-about-feature h4 { font-size: 15px; margin-bottom: 6px; }
  .cd-about-feature p { font-size: 13px; }
  .cd-service { border-radius: 16px; }
  .cd-service-photo { width: 100px; min-width: 100px; border-radius: 16px 0 0 16px; }
  .cd-service-body { padding: 14px; }
  .cd-service h3 { font-size: 14px; line-height: 1.3; margin-bottom: 4px; }
  .cd-service p { font-size: 12px; line-height: 1.55; }
  .cd-service-btn { padding: 6px 14px; font-size: 11px; margin-top: 8px; }
  .cd-team-card { border-radius: 16px; }
  .cd-team-photo { width: 110px; min-width: 110px; border-radius: 16px 0 0 16px; }
  .cd-team-body { padding: 14px; }
  .cd-team-card h3 { font-size: 16px; }
  .cd-team-card p { font-size: 12px; line-height: 1.6; }
  .cd-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 10px; }
  .cd-gallery-item { border-radius: 16px; }
  .cd-gallery-item.large { grid-column: auto; grid-row: auto; }
  .cd-section { padding: 32px 0; }
  .cd-center { margin-bottom: 28px; }
  .cd-title-md { font-size: clamp(20px, 6vw, 28px); }
  .cd-cta-box { padding: 22px; border-radius: 18px; }
  .cd-cta-panel { padding: 18px; border-radius: 14px; }
  .cd-cta-list li { font-size: 13px; }
  .cd-contact-card { padding: 22px; border-radius: 18px; }
  .cd-map-card { border-radius: 18px; }
  .cd-map-card iframe { min-height: 260px; }
  .cd-contact-item strong { font-size: 16px; }
  .cd-contact-item span, .cd-contact-item a { font-size: 13px; }
  .cd-btns { flex-direction: column; gap: 10px; }
  .cd-btns .cd-btn { width: 100%; justify-content: center; }
  .cd-btn { min-height: 48px; font-size: 13px; }
  .cd-footer-inner { padding: 28px 0; }
  .cd-footer-brand { font-size: 13px; }
  .cd-footer-links { gap: 14px; }
  .cd-footer-links a { font-size: 12px; }

  .tr-wrap { width: calc(100% - 28px); }
  .tr-hero { padding: 44px 0 40px; }
  .tr-hero p { font-size: 15px; }
  .tr-nav-inner { gap: 4px; }
  .tr-nav-pill { font-size: 10px; padding: 6px 10px; }
  .tr-section { padding: 44px 0; }
  .tr-img-card { border-radius: 20px; }
  .tr-img-card img { aspect-ratio: 4 / 3; }
  .tr-content h2 { font-size: clamp(22px, 6vw, 28px); }
  .tr-desc { font-size: 14px; line-height: 1.8; }
  .tr-list li { font-size: 13px; }
  .tr-btn { min-height: 48px; padding: 0 20px; font-size: 13px; }
  .tr-cta { flex-direction: column; }
  .tr-cta .tr-btn { width: 100%; justify-content: center; }
  .tr-final { padding: 56px 0; }
  .tr-final-btns { flex-direction: column; align-items: center; }
  .tr-final-btns .tr-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   RESPONSIVE — MOBILE SMALL (max 400px)
   ============================================================ */

@media (max-width: 400px) {
  .cd-wrap { width: calc(100% - 20px); }
  .cd-header-inner { width: calc(100% - 20px); }
  .cd-logo-mark img { height: 40px; max-width: 170px; }
  .cd-header-social { gap: 6px; }
  .cd-header-social a { width: 32px; height: 32px; }
  .cd-header-cta .cd-btn { min-height: 38px; padding: 0 12px; font-size: 10px; }
  .cd-title { font-size: 24px; }
  .cd-hero-lead { font-size: 14px; }
  .cd-service-photo { width: 90px; min-width: 90px; }
  .cd-team-photo { width: 95px; min-width: 95px; }
  .cd-gallery-grid { grid-auto-rows: 170px; }
}

/* ============================================================
   WORDPRESS OVERRIDES
   ============================================================ */

/* Remove default WP margins */
.wp-site-blocks { padding: 0 !important; }
.entry-content { margin: 0; padding: 0; }
.entry-content > * { max-width: none; }
