/*
Theme Name: Suárez Solís
Theme URI: https://suarezsolis.com
Author: Girol — Páginas web en Asturias
Author URI: https://girol.es
Description: Tema a medida para la Clínica Dental Suárez Solís (Avilés). Convertido desde la web estática original, replicando el diseño al 100%. Incluye página de inicio, nosotros, tratamientos, contacto (con Contact Form 7), blog y páginas legales.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suarez-solis
*/

/* ═══════════════════════════════════════════════════════════════
   CLÍNICA DENTAL SUÁREZ SOLÍS — ESTILOS COMPARTIDOS
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --navy: #0C2B52;
  --blue: #1757A6;
  --blue-mid: #2E72C4;
  --blue-pale: #E4EEF9;
  --blue-soft: #C8DCEF;
  --slate: #8099B4;
  --gray-50: #F7F8FA;
  --gray-100: #EFF1F4;
  --gray-200: #D6DAE2;
  --gray-500: #7A8599;
  --gray-700: #3A4558;
  --charcoal: #1A2333;
  --white: #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  /* Espaciado consistente */
  --section-v: 56px;
  --container-h: 40px;
  --pad-left-align: var(--container-h);
}

@media (max-width: 768px) {
  :root {
    --section-v: 0px;
    --container-h: 30px;
    --pad-left-align: var(--container-h);
  }
}

/* ─── WRAPPER HERO ─── */
.split-left-inner {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  padding-left: var(--container-h);
}

@media(max-width: 1024px) {
  .split-left-inner {
    padding-left: var(--container-h);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ─── TOP BAR ─── */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 1);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .03em;
  padding: 9px 0;
}

.topbar .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar a {
  color: rgba(255, 255, 255, 1);
  transition: color .2s;
}

.topbar a:hover {
  color: #fff;
}

.topbar-contacts {
  display: flex;
  gap: 28px;
  align-items: center;
}

.topbar-contacts span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.topbar-reg {
  font-size: 11px;
  opacity: .8;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 12px rgba(12, 43, 82, .06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-h);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* logo now styled inline per page */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-700);
  padding: 7px 13px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links li.current-menu-item > a {
  background: var(--gray-50);
  color: var(--navy);
}

.nav-cta a,
.nav-cta.active,
a.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  font-weight: 500 !important;
  transition: background .18s !important;
}

.nav-cta a:hover,
a.nav-cta:hover {
  background: var(--navy) !important;
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 15px;
  display: none;
}

.nav-item:hover::after {
  display: block;
}

.mobile-menu-btn {
  display: none;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 210px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .10);
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--gray-700);
  border-radius: 0;
  transition: background .12s, color .12s;
}

.nav-dropdown a:hover {
  background: var(--blue-pale);
  color: var(--navy);
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--blue-mid);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--navy);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  padding: 11px 24px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.btn-ghost {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}

.btn-ghost:hover {
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--blue);
  padding: 12px 24px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-white:hover {
  background: var(--navy);
  color: #fff;
}

/* ─── PAGE HEADER (páginas internas) ─── */
.page-header {
  background: var(--navy);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(46, 114, 196, .12);
}

.page-header .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-h);
  position: relative;
  z-index: 2;
}

.page-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--blue-mid);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.page-title em {
  font-style: italic;
  color: var(--blue-soft);
}

.page-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, .9);
  max-width: 560px;
  margin-top: 14px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .9);
  transition: color .2s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  opacity: .8;
}

/* ─── SECCIÓN / CONTENEDOR ─── */
.section {
  padding: var(--section-v) 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-h);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  margin-top: 72px;
  align-items: start;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-bottom: 14px;
}

.section-title em {
  font-style: italic;
  color: var(--blue-mid);
}

.section-desc {
  font-size: 15px;
  color: var(--gray-700);
  max-width: 540px;
  line-height: 1.75;
}

/* ─── FLOATING CTA ─── */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--blue);
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(23, 87, 166, .38);
  transition: background .2s;
  z-index: 200;
}

.float-cta:hover {
  background: var(--navy);
}

.float-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4AE89A;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ─── ASOCIACIONES ─── */
.assoc-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 36px 0;
}

.assoc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-h);
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.assoc-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

.assoc-strip img {
  height: 36px;
  width: auto;
  opacity: .5;
  filter: grayscale(100%);
  transition: opacity .2s, filter .2s;
}

.assoc-strip img:hover {
  opacity: .85;
  filter: grayscale(0%);
}

/* ─── FOOTER ─── */
footer {
  background: var(--charcoal);
  padding: 56px 0 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-h) 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(10);
  opacity: .8;
}

.footer-tagline,
.footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
  line-height: 1.7;
  max-width: 240px;
}

.footer-reg {
  font-size: 11px;
  color: rgba(255, 255, 255, .9);
  margin-top: 16px;
  letter-spacing: .04em;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  transition: color .2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px var(--container-h) 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
  transition: color .2s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, .55);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  :root {
    --container-h: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --section-v: 40px;
    --container-h: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  .topbar-reg {
    display: none;
  }

  .nav-inner {
    height: 64px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    margin-top: 48px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .topbar-contacts {
    gap: 16px;
  }

  .page-header {
    padding: 48px 0 40px;
  }

  /* Menú Móvil */
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--navy);
    cursor: pointer;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--gray-200);
    z-index: 200;
  }

  .nav-links.mobile-open .nav-item:hover .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 15px;
    background: transparent;
  }

  .nav-links.mobile-open .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 12px;
    box-sizing: border-box;
  }
}

@media (max-width: 560px) {
  :root {
    --container-h: 20px;
    --section-v: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-logo-img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-tagline,
  .footer-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Centrar botones en secciones */
  .treatment-cta,
  .hero-actions,
  .trust-cta-row {
    justify-content: center;
  }

  .float-cta {
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: center;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
  }

  .section-title {
    font-size: clamp(26px, 7vw, 32px);
  }

  .page-title {
    font-size: clamp(30px, 8vw, 38px);
  }
}
