@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Raleway:wght@300;400;500;600;700;800&display=swap");

/* Clínica Dental San Miguel — visual language inspired by Medicus one-pager (warm accent, plum secondary, clean medical UI) */
:root {
  --gwt-nav-h: var(--gwt-site-navbar-offset, calc(0.8rem + 0.8rem + 2.25rem + 2px));
  --cdsm-header-h: 5.5rem;
  --cdsm-stack: calc(var(--gwt-nav-h) + var(--cdsm-header-h));
  --cdsm-skin: #f9a61a;
  --cdsm-skin-dark: #da8b06;
  --cdsm-skin-soft: #f39b06;
  --cdsm-secondary: #341a2f;
  --cdsm-secondary-bright: #4a2545;
  --cdsm-dark: #231520;
  --cdsm-light-bg: #efefef;
  --cdsm-text: #323232;
  --cdsm-muted: #6e6e6e;
  --cdsm-white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body.cdsm-page {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cdsm-text);
  background: var(--cdsm-white);
  padding-top: var(--cdsm-stack);
  overflow-x: hidden;
  max-width: 100%;
}

body.cdsm-page img,
body.cdsm-page video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.65rem;
  color: var(--cdsm-text);
}

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

.cdsm-wrap {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Thin accent strip under header (brand-colors bar) */
.cdsm-brand-strip {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--cdsm-skin) 0%,
    var(--cdsm-skin) 25%,
    var(--cdsm-secondary) 25%,
    var(--cdsm-secondary) 50%,
    var(--cdsm-dark) 50%,
    var(--cdsm-dark) 75%,
    #5a7a8c 75%,
    #5a7a8c 100%
  );
}

/* ——— Fixed header ——— */
.cdsm-header {
  position: fixed;
  top: var(--gwt-nav-h);
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(52, 26, 47, 0.06);
}

.cdsm-header__inner {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.cdsm-logo-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cdsm-logo {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--cdsm-secondary);
  letter-spacing: 0.02em;
}

.cdsm-logo span {
  color: var(--cdsm-skin);
}

.cdsm-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cdsm-muted);
}

.cdsm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
}

.cdsm-nav a {
  font-family: "Raleway", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cdsm-text);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.cdsm-nav a:hover,
.cdsm-nav a:focus-visible {
  color: var(--cdsm-skin);
  border-bottom-color: var(--cdsm-skin);
}

.cdsm-mob-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: var(--cdsm-white);
  cursor: pointer;
  color: var(--cdsm-secondary);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 20px 2px;
  background-position:
    center 14px,
    center 21px,
    center 28px;
  background-repeat: no-repeat;
}

.cdsm-mob-drawer {
  display: none;
  width: 100%;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid #eee;
}

.cdsm-mob-drawer.is-open {
  display: block;
}

.cdsm-mob-drawer .cdsm-nav {
  flex-direction: column;
  align-items: stretch;
}

/* ——— Hero (multi-slide) ——— */
.cdsm-hero {
  position: relative;
  min-height: min(88vh, 780px);
  background: var(--cdsm-dark);
  scroll-margin-top: var(--cdsm-stack);
}

.cdsm-hero__slides {
  position: absolute;
  inset: 0;
}

.cdsm-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.cdsm-hero__slide.is-active {
  opacity: 1;
}

.cdsm-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(35, 21, 32, 0.82) 0%, rgba(52, 26, 47, 0.45) 45%, rgba(0, 0, 0, 0.35) 100%);
}

.cdsm-hero__content {
  position: relative;
  z-index: 2;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 0;
}

.cdsm-hero__caption {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  justify-content: flex-end;
}

.cdsm-hero__inner {
  max-width: 28rem;
  padding: 2rem 2.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  backdrop-filter: blur(6px);
}

.cdsm-hero .t1 {
  font-family: "Raleway", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--cdsm-skin);
  line-height: 1.05;
  margin-bottom: 0.2rem;
}

.cdsm-hero .t2 {
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--cdsm-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cdsm-hero .t3 {
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.cdsm-hero .desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 1rem 0 1.35rem;
  line-height: 1.7;
}

.cdsm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Lato", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cdsm-btn--primary {
  background: var(--cdsm-skin);
  color: var(--cdsm-white) !important;
}

.cdsm-btn--primary:hover {
  background: var(--cdsm-skin-dark);
}

.cdsm-hero__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.cdsm-hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.cdsm-hero__dots button.is-active {
  background: var(--cdsm-skin);
  border-color: var(--cdsm-skin);
}

/* ——— Sections ——— */
.cdsm-section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--cdsm-stack) + 0.5rem);
}

.cdsm-section--dark {
  background: var(--cdsm-secondary);
  color: rgba(255, 255, 255, 0.9);
}

.cdsm-section--dark h2,
.cdsm-section--dark h3,
.cdsm-section--dark h4 {
  color: var(--cdsm-white);
}

.cdsm-section--muted {
  background: var(--cdsm-light-bg);
}

.cdsm-section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.75rem;
}

.cdsm-section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cdsm-section-head .subtitle {
  font-family: "Raleway", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cdsm-muted);
  margin: 0;
}

.cdsm-section--dark .subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.cdsm-fancy-line {
  width: 60px;
  height: 3px;
  background: var(--cdsm-skin);
  margin: 1rem auto 0;
}

/* About */
.cdsm-about__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid #e0e0e0;
  background: #000;
}

.cdsm-about__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Departments / specialties */
.cdsm-dept {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cdsm-dept__title {
  margin: 0;
  padding: 0.65rem 0.5rem;
  background: rgba(52, 26, 47, 0.92);
  color: var(--cdsm-white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px 2px 0 0;
}

.cdsm-dept__title a {
  color: inherit;
}

.cdsm-dept__photo {
  display: block;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 2px 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
}

/* Team — layout from Bootstrap .row; class hooks extra spacing if needed */
.cdsm-team-feature {
  align-items: stretch;
}

.cdsm-teaser {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cdsm-teaser--dark {
  background: var(--cdsm-dark);
  color: rgba(255, 255, 255, 0.88);
}

.cdsm-teaser--dark h4 {
  color: var(--cdsm-white);
}

.cdsm-teaser__body {
  padding: 1.5rem 1.75rem;
}

.cdsm-team-card .figure {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center top;
  display: block;
}

.cdsm-team-card .content {
  padding: 1.25rem;
  text-align: center;
}

.cdsm-team-card--accent .content {
  background: var(--cdsm-secondary);
  color: rgba(255, 255, 255, 0.9);
}

.cdsm-team-card--accent h4,
.cdsm-team-card--accent .role {
  color: var(--cdsm-white);
}

.cdsm-team-card .role {
  font-size: 0.85rem;
  color: var(--cdsm-skin);
  margin: 0.25rem 0 0.75rem;
}

/* Testimonials */
.cdsm-section--testimonials {
  background: linear-gradient(135deg, var(--cdsm-secondary) 0%, var(--cdsm-dark) 100%);
  color: rgba(255, 255, 255, 0.92);
}

.cdsm-section--testimonials h3 {
  color: var(--cdsm-white);
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.cdsm-section--testimonials h3 strong {
  color: var(--cdsm-skin);
  font-weight: 700;
}

.cdsm-testimonial-slider {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.cdsm-testimonial-slider blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 300;
}

.cdsm-testimonial-slider .name {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

/* Service teasers */
.cdsm-service-box {
  text-align: center;
  border: 1px solid #e8e8e8;
  padding: 0 0 1.5rem;
  background: var(--cdsm-white);
  height: 100%;
  transition: box-shadow 0.2s;
}

.cdsm-service-box:hover {
  box-shadow: 0 12px 32px rgba(52, 26, 47, 0.08);
}

.cdsm-service-box__icon {
  padding: 2rem 1rem;
  margin-bottom: 0.5rem;
}

.cdsm-service-box__icon--skin {
  background: var(--cdsm-skin);
  color: var(--cdsm-white);
}

.cdsm-service-box__icon--dark {
  background: var(--cdsm-dark);
  color: var(--cdsm-white);
}

.cdsm-service-box__icon i {
  font-size: 2.25rem;
}

.cdsm-service-box h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 1rem;
}

.cdsm-service-box p {
  font-size: 0.9rem;
  color: var(--cdsm-muted);
  padding: 0 1.25rem;
  margin-bottom: 1rem;
}

/* Photo divider */
.cdsm-divider-photo {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.cdsm-divider-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(35, 21, 32, 0.65) 55%);
}

.cdsm-divider-photo .inner {
  position: relative;
  z-index: 1;
  padding: 2rem 8vw 2rem 2rem;
  text-align: right;
}

.cdsm-divider-photo .t1 {
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--cdsm-white);
}

.cdsm-divider-photo .t2 {
  font-family: "Raleway", sans-serif;
  color: var(--cdsm-skin);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Pricing */
.cdsm-pricing {
  border: 1px solid #e0e0e0;
  background: var(--cdsm-white);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cdsm-pricing__photo {
  aspect-ratio: 2 / 1;
  background-size: cover;
  background-position: center;
}

.cdsm-pricing__title {
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--cdsm-white);
}

.cdsm-pricing__title--secondary {
  background: var(--cdsm-secondary);
}

.cdsm-pricing__title--skin {
  background: var(--cdsm-skin);
}

.cdsm-pricing__title--dark {
  background: var(--cdsm-dark);
}

.cdsm-pricing__title h3 {
  color: inherit;
  margin: 0;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cdsm-pricing__title p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  opacity: 0.95;
}

.cdsm-pricing__price {
  text-align: center;
  padding: 1.25rem;
  font-family: "Raleway", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--cdsm-secondary);
}

.cdsm-pricing__price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cdsm-muted);
}

.cdsm-pricing__list {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
}

.cdsm-pricing__list p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--cdsm-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.cdsm-pricing__list .cdsm-btn {
  width: 100%;
  margin-top: 1rem;
}

/* News cards */
.cdsm-post {
  background: var(--cdsm-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cdsm-post h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.cdsm-post h3 a {
  color: var(--cdsm-white);
}

.cdsm-post h3 a:hover {
  color: var(--cdsm-skin);
}

.cdsm-post .sub {
  font-size: 0.85rem;
  color: var(--cdsm-skin);
  margin-bottom: 1rem;
}

.cdsm-post__fig {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  display: block;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.cdsm-post p.excerpt {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Contact row */
.cdsm-contact-box {
  padding: 1.75rem;
  height: 100%;
  border: 1px solid #e0e0e0;
}

.cdsm-contact-box--light {
  background: #f9f9f9;
}

.cdsm-contact-box--secondary {
  background: var(--cdsm-secondary);
  color: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}

.cdsm-contact-box--secondary h3,
.cdsm-contact-box--skin h3 {
  color: var(--cdsm-white);
}

.cdsm-contact-box--skin {
  background: var(--cdsm-skin);
  color: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.cdsm-col-header {
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
}

.cdsm-form .form-control,
.cdsm-form select {
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d0d0d0;
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 2px;
}

.cdsm-contact-box--secondary .form-control,
.cdsm-contact-box--secondary select {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--cdsm-white);
}

.cdsm-timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cdsm-timetable td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cdsm-timetable td:last-child {
  text-align: right;
  font-weight: 700;
}

/* Newsletter */
.cdsm-newsletter {
  background: var(--cdsm-skin);
  color: var(--cdsm-white);
  padding: 2.5rem 0;
}

.cdsm-newsletter h3 {
  color: var(--cdsm-white);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.cdsm-newsletter p {
  margin: 0;
  opacity: 0.95;
}

.cdsm-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.cdsm-newsletter-form input {
  flex: 1 1 200px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 2px;
  font-size: 0.95rem;
}

.cdsm-newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--cdsm-secondary);
  color: var(--cdsm-white);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 2px;
}

.cdsm-newsletter-form button:hover {
  background: var(--cdsm-dark);
}

/* Footer */
.cdsm-footer {
  background: linear-gradient(160deg, var(--cdsm-secondary) 0%, var(--cdsm-dark) 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.cdsm-footer h4 {
  color: var(--cdsm-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.cdsm-footer a:hover {
  color: var(--cdsm-skin);
}

.cdsm-footer__social a {
  display: inline-block;
  margin-right: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
}

.cdsm-copyright {
  background: var(--cdsm-secondary);
  color: rgba(255, 255, 255, 0.55);
  padding: 0.85rem 0;
  font-size: 0.8rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cdsm-gwt-strip {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #0b0c10;
  color: #c5c6c7;
  border-top: 2px solid #b9dd39;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.95rem;
}

.cdsm-gwt-strip a {
  display: inline-block;
  margin: 0.35rem 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.cdsm-gwt-strip .cdsm-gwt-btn--primary {
  background: #b9dd39;
  color: #0b0c10;
}

.cdsm-gwt-strip .cdsm-gwt-btn--outline {
  border: 2px solid #b9dd39;
  color: #b9dd39;
  background: transparent;
}

@media (max-width: 991px) {
  .cdsm-hero__content {
    justify-content: center;
  }

  .cdsm-hero__caption {
    justify-content: center;
  }

  .cdsm-hero__inner {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  :root {
    --cdsm-header-h: 4.25rem;
  }

  .cdsm-nav--desk {
    display: none;
  }

  .cdsm-mob-toggle {
    display: block;
  }

  .cdsm-tagline {
    display: none;
  }

  .cdsm-divider-photo .inner {
    padding: 2rem 1.5rem;
    text-align: center;
    width: 100%;
  }

  .cdsm-divider-photo {
    justify-content: center;
  }

  .cdsm-divider-photo::before {
    background: rgba(35, 21, 32, 0.72);
  }
}

@media (min-width: 768px) {
  .cdsm-mob-drawer {
    display: none !important;
  }
}
