@import url('https://fonts.googleapis.com/css?family=Montserrat:400,400i,600,600i,700,700i&display=swap');

:root {
  --primary-color: #1b5390;
  --secondary-color: #00cc99;
  --tertiary-color: #ff9933;
  --text-color: rgba(9, 27, 47, 0.85);
  --text-light: rgba(255, 255, 255, 0.92);
  --font-family: 'Montserrat', sans-serif;
  --bg-dark: rgba(9, 27, 47, 0.95);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 10px 15px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  min-height: 70px;
  display: flex;
  align-items: center;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav-brand span {
  font-size: 12px;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-menu a {
  color: rgba(0,0,0,0.5);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  padding: 8px 0;
}

.nav-menu a:hover, .nav-menu a.active {
  color: rgba(0,0,0,0.9);
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(9, 27, 47, 0.85), rgba(9, 27, 47, 0.85)), url('../img/clinicaBG.webp');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  padding-top: 100px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
}

.hero-content {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 99;
}

.hero-img {
  max-width: 40vw;
  max-height: 50vh;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  object-fit: contain;
}

.hero-text h1 {
  color: var(--text-light);
  font-size: 40px;
  margin-bottom: 10px;
}

.hero-text p {
  color: var(--text-light);
  font-size: 15px;
  text-align: justify;
}

/* Section Headings */
.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  color: red;
  font-size: 32px;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Map Section */
.map-section {
  padding: 60px 0;
  background-color: #fff;
}

.map-section p {
  text-align: center;
  color: #000;
  margin-bottom: 20px;
}

/* Texts Section */
.texts-section {
  padding: 60px 0;
  background-color: #f6f6f6;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.article-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: #e0e0e0;
}

.article-tags {
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tag-green {
  color: #009973;
  background-color: rgba(0, 204, 153, 0.15);
}

.tag-orange {
  color: #cc7a00;
  background-color: rgba(255, 153, 51, 0.15);
}

.article-title {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  transition: color 0.2s ease;
}

.article-card:hover .article-title {
  color: var(--primary-color);
}

.article-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.read-more {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Contact Section */
.contact-section {
  background-image: linear-gradient(rgba(9, 27, 47, 0.85), rgba(9, 27, 47, 0.85)), url('../img/clinicaBG.webp');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
}

.contact-content {
  padding: 30px;
  border-radius: 8px;
}

.contact-content h2 { font-size: 32px; margin-bottom: 10px; }
.contact-content .contact-subtitle { font-size: 20px; margin-bottom: 10px; font-weight: normal; }
.contact-content p:not(.contact-subtitle) { font-size: 15px; }

/* Footer */
.footer {
  background-color: #fff;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto 20px;
  gap: 20px;
}

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

.footer-links a {
  color: var(--primary-color);
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copyright {
  color: #000;
  font-size: 14px;
  margin-top: 10px;
}

/* Floating WhatsApp */
.floating-wpp {
  position: fixed;
  right: 1em;
  bottom: 1em;
  z-index: 999;
  transition: transform 0.3s;
}

.floating-wpp:hover {
  transform: scale(1.1);
}

/* Dynamic Text Page */
.page-bg {
  background-image: url('../img/clinicaBG.webp');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
}

.text-content-wrapper {
  background-color: #f6f6f6;
  padding: 100px 0 40px;
  min-height: 80vh;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }
  
  .hero-img {
    max-width: 80vw;
    margin: 0 auto;
  }
  
  .hero-text p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* Swiper custom styles */
#clinica {
  padding: 60px 20px;
  background-color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

swiper-container {
  width: 100%;
  height: 400px;
}

swiper-slide {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

swiper-slide:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  #clinica {
    padding: 30px 15px;
  }
  swiper-container {
    height: 300px;
  }
}
