/* Geriatria.pro - Site Estático */
/* Mobile-first responsive design */

:root {
  --primary-color: #2c5282;
  --secondary-color: #4299e1;
  --accent-color: #48bb78;
  --text-color: #2d3748;
  --text-light: #718096;
  --bg-color: #f7fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

a:hover {
  color: var(--primary-color);
}

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

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.logo span {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Navigation */
.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Main content */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Article cards grid */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.article-card {
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--border-color);
}

.article-card-content {
  padding: 1.25rem;
}

.article-card h2 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-card h2 a {
  color: var(--text-color);
}

.article-card h2 a:hover {
  color: var(--secondary-color);
}

.article-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: var(--bg-color);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  text-transform: lowercase;
}

/* Single article */
.article {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.article-header {
  padding: 2rem 1.5rem 1rem;
}

.article-header h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  border-radius: 0.375rem;
  margin: 1.5rem 0;
}

/* Video embed */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

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

/* Sidebar / CTA */
.sidebar {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.sidebar h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.cta-box {
  background: linear-gradient(135deg, var(--accent-color) 0%, #38a169 100%);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta-box h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-box p {
  margin-bottom: 1rem;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  color: var(--accent-color);
}

/* Vascular.pro banner */
.vascular-banner {
  background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
  margin: 2rem 0;
  border-radius: 0.5rem;
}

.vascular-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.vascular-banner p {
  margin-bottom: 1rem;
  opacity: 0.95;
}

.vascular-banner .cta-button {
  background: var(--white);
  color: #6b46c1;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Contact info */
.contact-info {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact-info a {
  color: var(--secondary-color);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

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

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* Videos section */
.videos-section {
  margin: 2rem 0;
}

.videos-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.video-card {
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-card .video-container {
  margin: 0;
  border-radius: 0;
}

.video-card-content {
  padding: 1rem;
}

.video-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Team section */
.team-section {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.team-card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.team-card-content {
  padding: 2rem;
}

.team-card h2 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.team-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.team-bio {
  font-size: 1rem;
  line-height: 1.8;
}

.team-bio ul {
  list-style: none;
  padding: 0;
}

.team-bio li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.team-bio li:last-child {
  border-bottom: none;
}

.team-bio li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Contact section */
.contact-section {
  max-width: 800px;
  margin: 2rem auto;
}

.contact-section h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.contact-card p {
  margin-bottom: 0.25rem;
  color: var(--text-light);
}

.phone-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.phone-link:hover {
  color: var(--primary-color);
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive - Tablet */
@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 4rem 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .main {
    padding: 2rem;
  }

  .article-content {
    padding: 2rem;
    font-size: 1.0625rem;
  }

  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Two column layout for article */
  .article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
  }

  .article-main {
    min-width: 0;
  }

  .article-sidebar {
    position: sticky;
    top: 100px;
  }
}

/* Mobile menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .sidebar,
  .cta-box,
  .vascular-banner,
  .nav {
    display: none;
  }

  .article {
    box-shadow: none;
  }

  .article-content {
    padding: 0;
  }
}

/* Accessibility */
:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Schema markup helper classes */
[itemscope] {
  display: block;
}
