:root {
  --color-primary: #6EC1E4;
  --color-secondary: #54595F;
  --color-text: #7A7A7A;
  --color-accent: #0283AC;
  --color-accent-rgb: 2, 131, 172;
  --color-light-blue: #91CEEB;
  --color-sky: #77C3E8;
  --color-pale-blue: #B0E0F5;
  --color-light-bg: #F9F9F9;
  --color-white: #FFFFFF;
  --color-dark-text: #1A1A1A;
  --color-mid-text: #2E2E2E;
  --font-family: "Raleway", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--color-dark-text);
  background-color: var(--color-light-bg);
  scroll-behavior: smooth;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header-top,
.header-sticky {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-top {
  margin-top: 0;
}

.header-sticky {
  background-color: var(--color-light-blue);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transform: translateY(-100px);
}

.header-sticky.visible {
  transform: translateY(0);
}

.header-top.hidden {
  opacity: 0;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 80px;
}

.logo img,
.logo-sticky img,
.footer-logo img {
  width: 220px;
  max-width: 100%;
}

.phone-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.phone-icon { width: 56px; }

.phone-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.header-sticky .phone-text {
  color: var(--color-light-bg);
}

.phone-label {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.phone-number {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

/* Hero */
.hero {
  width: 100%;
  min-height: 722px;
  background-image:
    linear-gradient(180deg, var(--color-white) 0%, rgba(255,255,255,0) 6%),
    url("assets/cabecera.webp");
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

/* Intro */
.intro {
  position: relative;
  z-index: 3;
  margin-top: -38px;
  padding: 0;
}

.intro-grid {
  display: flex;
  flex-wrap: wrap;
  background: var(--color-white);
  border-radius: 0 0 25px 25px;
  overflow: hidden;
}

.intro-photo-col {
  flex: 0 0 43%;
  max-width: 43%;
  background: var(--color-white);
  border-radius: 0 0 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.photo-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.intro-photo {
  width: 100%;
  position: relative;
  z-index: 1;
}

.circles-deco {
  position: absolute;
  width: 68px;
  right: -20px;
  top: 10%;
  transform: rotate(90deg);
  z-index: 2;
}

.intro-text-col {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 50px 30px;
  background: var(--color-white);
  border-radius: 0 0 25px 0;
}

.quote-title {
  color: var(--color-accent);
  font-size: 42px;
  font-weight: 600;
  line-height: 49px;
  margin: 0 0 20px;
}

.name {
  color: var(--color-accent);
  font-size: 24px;
  font-weight: 600;
  text-align: right;
  margin: 0;
}

.collegiate {
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  text-align: right;
  margin: 5px 0 0;
}

.bio {
  color: var(--color-dark-text);
  font-size: 22px;
  font-weight: 400;
  line-height: 24px;
  padding-top: 30px;
}

.bio p { margin: 0 0 18px; }

/* How work */
.how-work {
  background-color: var(--color-sky);
  margin-top: -38px;
  padding: 100px 20px 80px;
  text-align: center;
}

.how-content {
  max-width: 900px;
  margin: 0 auto;
}

.how-work h2 {
  color: var(--color-white);
  font-size: 42px;
  font-weight: 600;
  line-height: 49px;
  margin: 0 0 24px;
}

.how-text {
  color: var(--color-white);
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
}

.how-text p { margin: 0 0 18px; }

/* Services */
.services {
  background-image: linear-gradient(180deg, var(--color-light-bg) 46%, var(--color-white) 55%);
  padding: 50px 0;
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/circulos.svg");
  background-position: 85vw 174px;
  background-repeat: no-repeat;
  background-size: 5% auto;
  background-attachment: fixed;
  pointer-events: none;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.services-text {
  flex: 0 0 40%;
  max-width: 40%;
  padding-right: 40px;
}

.services-text h2 {
  color: var(--color-accent);
  font-size: 42px;
  font-weight: 600;
  line-height: 49px;
  margin: 0;
}

.services-text h3 {
  color: var(--color-secondary);
  font-size: 25px;
  font-weight: 400;
  font-style: italic;
  line-height: 49px;
  margin: 0 0 20px;
  padding-left: 30px;
}

.services-illustration {
  flex: 0 0 59%;
  max-width: 59%;
  margin: 5px;
  min-height: 400px;
  background-image: url("assets/ilustracion-laura.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Accordion */
.accordion { border: none; }

.accordion-item {
  border: none;
  border-bottom: 1px solid transparent;
}

.accordion-title {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 15px 0;
  font-family: var(--font-family);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-mid-text);
  cursor: pointer;
  text-align: left;
}

.accordion-title .icon {
  display: inline-flex;
  width: 1.5em;
  font-size: 18px;
}

.accordion-item.active .accordion-title { color: #000; }

.accordion-body {
  display: none;
  padding: 0 0 20px 38px;
  color: var(--color-mid-text);
  font-size: 18px;
  font-weight: 400;
}

.accordion-item.active .accordion-body { display: block; }

.accordion-body p { margin: 0 0 14px; }

/* Therapies */
.therapies {
  background: var(--color-white);
  padding: 50px 0 70px;
  overflow: hidden;
}

.therapies h2 {
  color: var(--color-accent);
  font-size: 42px;
  font-weight: 600;
  line-height: 49px;
  text-align: center;
  margin: 0 0 50px;
}

.therapies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
  align-items: stretch;
  align-content: center;
}

.therapy-card {
  flex: 0 0 calc(25% - 20px);
  max-width: calc(25% - 20px);
  text-align: center;
  padding: 10px;
}

.therapy-card img {
  width: 50%;
  margin: 0 auto 12px;
}

.therapy-card h3 {
  color: var(--color-secondary);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

/* Contact */
.contact {
  min-height: 730px;
  background-color: var(--color-accent);
  background-image: url("assets/patron-contacto.webp");
  background-repeat: no-repeat;
  background-size: cover;
  padding: 50px;
  display: flex;
  align-items: center;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.contact-info {
  flex: 0 0 50%;
  max-width: 50%;
  color: var(--color-white);
}

.contact-block { margin-bottom: 32px; }

.icon-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.icon-title svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.icon-title h3 {
  color: var(--color-white);
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.contact-info p {
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
  margin: 0 0 12px;
  text-align: left;
}

.contact-info a { text-decoration: underline; }

.widget-wrap {
  margin-top: 24px;
}

.widget-wrap iframe {
  width: 100%;
  height: 229px;
  border: none;
  background: transparent;
}

.contact-form-wrap {
  flex: 0 0 calc(50% - 40px);
  max-width: calc(50% - 40px);
  padding: 0 0 0 40px;
}

.contact-form-wrap h2 {
  color: var(--color-white);
  font-size: 22px;
  font-weight: 400;
  display: inline-block;
  margin: 0;
  padding: 10px;
  background-color: var(--color-primary);
  border-radius: 15px 15px 0 0;
}

.contact-form {
  background: var(--color-white);
  padding: 15px;
  border-radius: 0 15px 15px 15px;
}

.form-group {
  margin: 0 -5px;
}

.form-group.half { flex: 0 0 50%; max-width: 50%; }

.contact-form label {
  display: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: #000;
  background: var(--color-white);
  border: none;
  border-bottom: 2px solid #ddd;
  border-radius: 0;
  padding: 10px 0;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #999; }

.acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--color-mid-text);
  cursor: pointer;
}

.acceptance input { width: auto; margin-top: 3px; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: 50px;
  padding: 12px 40px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
  background-color: #5ab6d8;
  transform: translateY(-2px);
}

/* Blog */
.blog {
  background-image: linear-gradient(0deg, var(--color-pale-blue) 0%, var(--color-white) 100%);
  padding: 50px 0;
}

.blog-pretitle {
  color: var(--color-primary);
  font-size: 26px;
  font-weight: 600;
  line-height: 49px;
  text-align: center;
  margin: 0;
}

.blog-title {
  color: var(--color-accent);
  font-size: 42px;
  font-weight: 600;
  line-height: 49px;
  text-align: center;
  margin: 0 0 50px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  padding: 10px;
}

.post-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 5px;
}

.post-thumb {
  flex: 0 0 100px;
  max-width: 100px;
}

.post-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.post-text { flex: 1; }

.post-text h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.post-text h3 a { color: #000; }

.meta {
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 600;
}

.meta .sep { margin: 0 6px; }


/* Microinteractions: header links & phone box */
.phone-box {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.phone-box:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Intro photo soft scale */
.intro-photo {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-wrap:hover .intro-photo {
  transform: scale(1.02);
}

/* Accordion icon rotation */
.accordion-title .icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-title .icon {
  transform: rotate(180deg);
}

/* Therapy cards */
.therapy-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: 16px;
  padding: 16px 10px;
}

.therapy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(2, 131, 172, 0.08);
}

.therapy-card img {
  transition: transform 0.4s ease;
}

.therapy-card:hover img {
  transform: scale(1.06);
}

/* Contact blocks */
.contact-block {
  transition: transform 0.35s ease;
}

.contact-block:hover {
  transform: translateX(4px);
}

/* Form inputs */
.contact-form input,
.contact-form textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--color-accent);
  box-shadow: 0 2px 0 0 var(--color-accent);
}

/* Blog post cards */
.post-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-thumb img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Footer links */
.footer-links a {
  position: relative;
  transition: color 0.25s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-links a:hover::after {
  width: 100%;
}

.blog-article .intro-text-col {
  max-width: 900px;
  margin: 0 auto;
  flex: 0 0 100%;
  padding: 50px 30px;
}

.blog-article .back-link {
  margin: 0 0 20px;
}

.blog-article .back-link a {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 18px;
}

.blog-article h1 {
  color: var(--color-accent);
  font-size: 42px;
  font-weight: 600;
  line-height: 49px;
  margin: 0 0 16px;
}

.blog-article .meta {
  color: var(--color-secondary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 30px;
}

.blog-article h2 {
  color: var(--color-accent);
  font-size: 28px;
  font-weight: 600;
  margin: 36px 0 16px;
}

.blog-article h3 {
  color: var(--color-secondary);
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 14px;
}

.blog-article p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 18px;
}

.blog-article ul {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--color-mid-text);
}

.blog-article ul li {
  margin-bottom: 12px;
}

.blog-article .article-tags {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #ddd;
  font-size: 16px;
  color: var(--color-secondary);
}

.blog-article .article-tags span {
  font-weight: 600;
  margin-right: 8px;
}

.blog-article .article-tags a {
  display: inline-block;
  color: var(--color-accent);
  background: var(--color-pale-blue);
  padding: 6px 14px;
  border-radius: 50px;
  margin: 0 6px 8px 0;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.blog-article .article-tags a:hover {
  background: var(--color-light-blue);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .blog-article .intro-text-col {
    padding: 30px 20px;
  }
  .blog-article h1 {
    font-size: 30px;
    line-height: 1.2em;
  }
  .blog-article h2 {
    font-size: 24px;
  }
  .blog-article p {
    font-size: 18px;
  }
}

/* Footer */
.footer {
  background-color: var(--color-light-bg);
  padding: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-secondary);
  font-size: 16px;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 1024px) {
  .services::before { background-position: 0 0; }
}

@media (max-width: 767px) {
  .header-top .header-inner,
  .header-sticky .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: auto;
  }

  .header-top .logo img,
  .header-sticky .logo-sticky img { width: 150px; }

  .phone-icon { width: 0; display: none; }
  .phone-box { gap: 0; }
  .phone-label { font-size: 16px; }
  .phone-number { font-size: 18px; }

  .hero { min-height: 149px; }

  .intro { margin-top: 0; }

  .intro-grid { border-radius: 0; }

  .intro-photo-col,
  .intro-text-col {
    flex: 0 0 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .intro-photo-col { order: 1; }
  .intro-text-col { order: 0; padding: 30px 20px; }

  .quote-title { font-size: 32px; line-height: 1.2em; }
  .bio { font-size: 18px; line-height: 1.2em; }

  .how-work {
    margin-top: 0;
    padding: 30px;
  }

  .how-work h2 { font-size: 32px; }
  .how-text { font-size: 18px; line-height: 1.2em; }

  .services::before { background-position: 100vw 0; }

  .services-text,
  .services-illustration {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .services-illustration {
    order: -1;
    min-height: 238px;
    background-size: cover;
    margin: 0 0 20px;
  }

  .accordion-title { font-size: 20px; }

  .therapy-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .therapies h2 { font-size: 30px; margin-bottom: 30px; }

  .contact {
    padding: 15px 15px 50px;
    background-size: contain;
  }

  .contact-grid,
  .contact-info,
  .contact-form-wrap {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

  .contact-info p { font-size: 16px; }

  .contact-form input,
  .contact-form textarea { font-size: 18px; line-height: 1em; }

  .blog-title { font-size: 30px; line-height: 1.2em; padding: 0 22px; }

  .posts-grid { grid-template-columns: 1fr; }

  .post-thumb { flex: 0 0 60px; max-width: 60px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .how-work { padding: 30px 16px; }
  .contact { padding: 15px; }
}
  margin-bottom: 10px;
  padding: 0 5px;
}

.form-row {
  display: flex;
  gap: 0;
