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

/* Color variables */
:root {
  --color-primary: #0057A3;
  --color-secondary: #4DB6E2;
  --color-success: #4CAF50;
  --color-success-hover: #3E8E41;
  --color-light: #F5F7FA;
  --color-muted: #A3A3A3;
  --color-text: #333333;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.6;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Site header */
.site-header {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 1.5rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  margin: 0;
}
.brand__link {
  /* Brand styling: white text with a slightly larger size for prominence */
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
  display: inline-block;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav__list a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background-color 0.2s ease;
}
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
}
.btn--primary:hover {
  background-color: var(--color-secondary);
}
.btn--secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
}
.btn--secondary:hover {
  background-color: var(--color-primary);
}
.btn--cta {
  background-color: var(--color-success);
  color: #ffffff;
}
.btn--cta:hover {
  background-color: var(--color-success-hover);
}

/* Hero section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-light) 0%, #ffffff 100%);
  text-align: center;
}
.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0 0 1rem;
  color: var(--color-primary);
}
.hero__subtitle {
  font-size: 1.25rem;
  margin: 0 0 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section styles */
.section {
  padding: 4rem 0;
}
.section__header {
  text-align: center;
  margin-bottom: 2rem;
}
.section__header h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
.section__header p {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

/* Features */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.feature h3 {
  margin: 0 0 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}
.feature p {
  margin: 0;
}

/* Services */
.service {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}
.service--alt {
  flex-direction: row-reverse;
}
.service__media {
  flex: 1 1 350px;
}
.service__media img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  object-fit: cover;
}
.service__content {
  flex: 1 1 300px;
}
.service__content h3 {
  margin-top: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.checklist {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}
.checklist li {
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.testimonial .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
}
.testimonial blockquote {
  margin: 0;
  font-style: italic;
}
.testimonial .stars {
  color: var(--color-success);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: block;
}
.testimonial figcaption {
  margin-top: 0.75rem;
  font-weight: 500;
}

/* CTA final */
.cta-final {
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
}
.cta-final h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.cta-final p {
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 2rem 0;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer__brand h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.footer__brand .muted {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}
.footer__nav h3,
.footer__contact h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__nav ul li {
  margin-bottom: 0.5rem;
}
.footer__nav ul li a {
  color: #ffffff;
  font-size: 0.95rem;
}
.footer__contact a {
  color: #ffffff;
}
.social {
  margin-top: 0.5rem;
}
.social-icon {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}
.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* Forms and portal styles */
.login, .portal, .historia, .legal {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 1rem;
}
.login h2,
.portal h2,
.historia h2,
.legal h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--color-primary);
}
.login p,
.portal p,
.historia p,
.legal p {
  font-size: 1rem;
}
.login-form input,
.search-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.login-form button,
.search-form button {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.result-item {
  background-color: var(--color-light);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}
.patient-info {
  background-color: var(--color-light);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Legal pages */
.legal h2 {
  margin-top: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--color-primary);
}
.legal h3 {
  margin-top: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--color-primary);
}
.legal ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal li {
  margin-bottom: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .service {
    flex-direction: column;
  }
  .service--alt {
    flex-direction: column;
  }
  .nav__list {
    flex-direction: column;
    background-color: var(--color-primary);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 0 0 6px 6px;
  }
  .nav__list a {
    padding: 0.5rem 0;
    display: block;
  }
  .nav__toggle {
    display: block;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
  }
}