/* ==========================================================================
   style.css — CLIMA Clínica Integral Mentes Activas
   Paleta: Teal #226D7A, Teal Dark #174B54, Accent #22B8D1, Soft #E7F1F2
   Tipografía: Open Sans + Roboto
   ========================================================================== */

:root {
  --teal: #226D7A;
  --teal-dark: #174B54;
  --teal-light: #22B8D1;
  --teal-soft: #E7F1F2;
  --canvas: #FAFCFC;
  --white: #FFFFFF;
  --ink: #183238;
  --muted: #555555;
  --border: #DDE8EA;
  --whatsapp: #25D366;
  --site-width: 1150px;
  --radius: 8px;
  --shadow: 0 4px 15px rgba(24, 50, 56, 0.06);
  --shadow-lg: 0 10px 25px rgba(24, 50, 56, 0.12);
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--canvas);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-dark);
}

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

.wrap {
  width: 100%;
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  background: var(--teal-dark);
  color: var(--teal-soft);
  font-size: 0.85rem;
  padding: 6px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-contact a {
  color: #ffffff;
  font-weight: 700;
}

.topbar-sep {
  margin: 0 8px;
  opacity: 0.6;
}

.topbar-social a {
  color: var(--teal-soft);
  margin-left: 12px;
}

.topbar-social a svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  vertical-align: -2px;
}

.topbar-social a:hover {
  color: var(--white);
}

.main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 4px;
}

.main-nav a:hover {
  color: var(--teal);
  background: var(--teal-soft);
}

.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 280px;
  z-index: 200;
  border: 1px solid var(--border);
}

.has-dropdown:hover .dropdown {
  display: block;
}

.has-dropdown .dropdown li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-cta {
  background: var(--teal);
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
}

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background: #1ebc57;
  transform: translateY(-1px);
}

.btn-block {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.nav-toggle, .nav-toggle-label {
  display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--teal-dark);
  color: var(--white);
  padding-top: 50px;
  margin-top: 60px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--teal-light);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #E7F1F2;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--teal-light);
}

.footer-address, .footer-hours p, .footer-contact p {
  color: #E7F1F2;
  font-size: 0.9rem;
  margin: 6px 0;
}

.footer-bottom {
  background: #11383F;
  padding: 20px 0;
  font-size: 0.85rem;
  color: #A0C4C9;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   Service Layout (70 / 30)
   ========================================================================== */
.service-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 50px 0;
}

.service-breadcrumb {
  font-size: 0.85rem;
  color: var(--teal-soft);
  margin-bottom: 12px;
}

.service-breadcrumb a {
  color: var(--teal-light);
}

.service-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-light);
  margin-bottom: 5px;
}

.service-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 15px;
}

.service-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 800px;
  color: #E7F1F2;
}

.service-detail {
  padding: 50px 0;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 68% 28%;
  gap: 4%;
  align-items: start;
}

.service-main {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.service-main h2 {
  color: var(--teal);
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--teal-soft);
  padding-bottom: 8px;
}

.service-main p {
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.service-main img {
  border-radius: var(--radius);
  margin: 25px 0;
  box-shadow: var(--shadow);
}

.service-expect {
  background: var(--teal-soft);
  padding: 25px;
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  margin: 35px 0;
}

.service-expect h2 {
  border: none;
  padding: 0;
  margin-top: 0;
}

.service-faqs {
  margin: 40px 0;
}

.service-faq {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 20px;
  margin-bottom: 12px;
}

.service-faq summary {
  font-weight: 700;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 1.05rem;
}

.service-faq__body {
  padding-top: 12px;
  color: #444;
}

.service-disclaimer {
  background: #FFF8E7;
  border: 1px solid #FFE6A5;
  border-left: 4px solid #E6AC34;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-top: 30px;
  font-size: 0.9rem;
  color: #7A5800;
}

.service-disclaimer h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: #7A5800;
}

/* Sidebar Sticky */
.service-capture {
  position: sticky;
  top: 100px;
}

.capture-card {
  background: var(--white);
  padding: 30px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--teal);
  border: 1px solid var(--border);
}

.capture-eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
  margin: 0 0 5px;
}

.capture-card h2 {
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.capture-note {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.capture-phone {
  display: block;
  background: var(--teal-soft);
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 15px;
  text-align: center;
}

.capture-phone__label {
  display: block;
  font-size: 0.8rem;
  color: var(--teal-dark);
}

.capture-phone strong {
  font-size: 1.25rem;
  color: var(--teal);
}

.capture-hours, .capture-address {
  font-size: 0.85rem;
  color: #666;
  margin: 10px 0 0;
  line-height: 1.4;
}

.capture-related {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 20px;
  border: 1px solid var(--border);
}

.capture-related h3 {
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 12px;
}

.capture-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.capture-related li {
  margin-bottom: 8px;
}

.capture-related a {
  font-size: 0.9rem;
  color: var(--ink);
}

.capture-related a:hover {
  color: var(--teal);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .service-detail__grid {
    grid-template-columns: 1fr;
  }
  .service-capture {
    position: static;
    margin-top: 40px;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    padding: 10px;
  }
  .nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--ink);
    margin: 5px 0;
    transition: all 0.3s ease;
  }
  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle:checked ~ .main-nav {
    display: block;
  }
  .main-nav .nav-list {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    align-items: flex-start;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
}
