/* ============================================
   Medicar - Centro Médico Integral
   Author: Medicar Team
   ============================================ */

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e50;
  background: #fff;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: #0d9488;
  color: #fff;
  border-color: #0d9488;
}

.btn--primary:hover {
  background: #0f766e;
  border-color: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: #fff;
  color: #0d9488;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 36px; font-size: 16px; }

/* ---- TOP BAR ---- */
.topbar {
  background: #0d9488;
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  display: none;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.topbar__inner span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__inner a { color: #fff; }
.topbar__inner a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .topbar { display: block; }
}

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

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

/* ---- NAV ---- */
.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-weight: 500;
  font-size: 15px;
  color: #475569;
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.3s;
}

.nav__link:hover,
.nav__link.active {
  color: #0d9488;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  padding: 10px 22px;
  font-size: 14px;
  white-space: nowrap;
}

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #2c3e50;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url('../img/principal.jpg') center center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(13, 148, 136, 0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #5eead4;
}

.stat__label {
  font-size: 14px;
  opacity: 0.8;
}

/* ---- SECTION COMMON ---- */
.section {
  padding: 90px 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__tag {
  display: inline-block;
  background: #ccfbf1;
  color: #0f766e;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__sub {
  font-size: 17px;
  color: #64748b;
  line-height: 1.7;
}

/* ---- ABOUT ---- */
.about {
  background: #f8fafc;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__image img {
  border-radius: 20px;
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about__text .section__tag {
  margin-bottom: 12px;
}

.about__text p {
  font-size: 17px;
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.8;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #334155;
}

.about__features li i {
  color: #0d9488;
  font-size: 20px;
  flex-shrink: 0;
}

/* ---- SERVICES ---- */
.services {
  background: #fff;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.4s ease;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: #0d9488;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: #ccfbf1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0d9488;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.service-card:hover .service-card__icon {
  background: #0d9488;
  color: #fff;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.7;
}

.services__extra {
  text-align: center;
  margin-top: 48px;
  padding: 20px;
  background: #f0fdfa;
  border-radius: 12px;
  font-size: 16px;
  color: #0f766e;
}

.services__extra i {
  margin-right: 8px;
}

/* ---- TEAM ---- */
.team {
  background: #f8fafc;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
  border: 1px solid #e2e8f0;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.team-card__img {
  height: 260px;
  overflow: hidden;
}

.team-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.team-card:hover .team-card__img img {
  transform: scale(1.08);
}

.team-card__body {
  padding: 22px 24px 26px;
}

.team-card__body h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.team-card__body span {
  font-size: 14px;
  color: #64748b;
}

/* ---- SCHEDULE ---- */
.schedule {
  background: #fff;
}

.schedule__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.schedule__card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e2e8f0;
}

.schedule__card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule__card h3 i {
  color: #0d9488;
}

.schedule__card--general {
  background: linear-gradient(135deg, #ccfbf1, #f0fdfa);
  border-color: #0d9488;
}

.schedule__table {
  width: 100%;
  border-collapse: collapse;
}

.schedule__table td {
  padding: 12px 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

.schedule__table tr:last-child td {
  border-bottom: none;
}

.schedule__table td:first-child {
  font-weight: 600;
  color: #334155;
}

.schedule__table td:last-child {
  text-align: right;
  color: #475569;
}

.schedule__table--detailed td {
  vertical-align: top;
  line-height: 1.6;
}

.schedule__note {
  margin-top: 20px;
  font-size: 14px;
  color: #0f766e;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- CONTACT ---- */
.contact {
  background: #f8fafc;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__item i {
  width: 44px;
  height: 44px;
  background: #ccfbf1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0d9488;
  flex-shrink: 0;
}

.contact__item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.contact__item p,
.contact__item a {
  font-size: 15px;
  color: #475569;
}

.contact__item a:hover {
  color: #0d9488;
}

.contact__btn {
  margin-top: 8px;
  align-self: flex-start;
}

.contact__map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact__map iframe {
  display: block;
}

/* ---- FOOTER ---- */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand img {
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.8;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer__links ul,
.footer__contact ul,
.footer__hours ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: #5eead4;
}

.footer__contact li,
.footer__hours li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__contact a:hover {
  color: #5eead4;
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.5);
  color: #fff;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 50px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4); }
}

/* ---- ANIMATIONS ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
