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

:root {
  --color-primary: #1fb5b7;
  --color-secondary: #84bac9;
  --color-soft: #ceeae5;
  --color-muted: #c0dae8;
  --color-black: #000000;
  --color-white: #ffffff;
  --bg-page: #ceeae5;
  --bg-surface: #ffffff;
  --text-default: #000000;
  --text-muted: rgba(0, 0, 0, 0.65);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

html,
body {
  height: 100%;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-default);
  line-height: 1.6;
}
/* ===== NAVBAR RESPONSIVE ===== */

.navbar {

  width: 92%;
  margin: 24px auto;

  padding: 18px 24px;

  background: rgba(255,255,255,0.92);

  backdrop-filter: blur(10px);

  border-radius: 50px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  flex-wrap: wrap;

  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* LINKS */

.nav-links {

  display: flex;

  gap: 28px;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  flex: 1;
}

.nav-links a {

  text-decoration: none;

  color: var(--dark);

  font-weight: 500;

  transition: 0.3s ease;
}

.nav-links a:hover {

  opacity: 0.7;
}

/* BOTONES */

.logo-btn {

  white-space: nowrap;
}

/* ===== TABLET ===== */

@media (max-width: 1024px) {

  .navbar {

    border-radius: 35px;

    padding: 20px;
  }

  .nav-links {

    gap: 18px;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

  .navbar {

    flex-direction: column;

    justify-content: center;

    text-align: center;

    padding: 24px;

    border-radius: 30px;
  }

  .nav-links {

    width: 100%;

    justify-content: center;

    gap: 14px;
  }

  .nav-links a {

    font-size: 15px;
  }

  .logo-btn {

    width: 100%;
  }
}

/* ===== CELULARES PEQUEÑOS ===== */

@media (max-width: 480px) {

  .navbar {

    width: 95%;

    padding: 20px 16px;
  }

  .nav-links {

    flex-direction: column;

    gap: 12px;
  }

  .nav-links a {

    width: 100%;
  }

  .logo-btn {

    width: 100%;
  }
}
.navbar {
  width: 92%;
  margin: 24px auto;
  padding: 18px 24px;
  background: var(--bg-surface);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 20px;
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

nav {
  display: flex;
  gap: 28px;
}

nav a,
.text-link {
  color: var(--text-default);
  text-decoration: none;
  font-weight: 500;
}

.btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}

.hero {
  width: 92%;
  margin: 40px auto;
  min-height: 720px;
  border-radius: 42px;
  background: var(--color-muted);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-text {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.about img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 42px;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 28px;
}

.hero p {
  font-size: 24px;
  margin-bottom: 32px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about,
.reviews,
.services,
.features,
.doctor {
  width: 92%;
  margin: 80px auto;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

h2 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.about p,
.services p,
.features p,
.doctor p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.reviews {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.review-card,
.testimonial,
.service-card,
.feature-grid div {
  background: var(--bg-surface);
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.review-card h3 {
  font-size: 64px;
}

.testimonial p {
  font-size: 24px;
  margin-bottom: 24px;
}

.services {
  background: var(--bg-surface);
  border-radius: 42px;
  padding: 60px;
}

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

.service-card {
  padding: 18px;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 24px;
}

.service-card h3,
.feature-grid h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.features {
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

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

.doctor img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 42px;
}

.doctor ul {
  margin-top: 24px;
  padding-left: 20px;
}

footer {
  width: 92%;
  margin: 80px auto 30px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 42px;
  padding: 70px;
  text-align: center;
}

footer p {
  margin-bottom: 28px;
  color: var(--color-soft);
}

footer .btn {
  background: var(--color-white);
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .navbar {
    border-radius: 28px;
    flex-direction: column;
    gap: 18px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .about,
  .reviews,
  .doctor {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 48px 28px;
  }

  .service-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .services {
    padding: 32px;
  }
}

/* ===== RESPONSIVE GLOBAL ===== */

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

.hero,
.about,
.doctor,
.reviews {
  width: 92%;
  margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.service-grid,
.grid,
.feature-grid,
.feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

h1 {
  font-size: clamp(32px, 6vw, 72px) !important;
  line-height: 1.1;
}

h2 {
  font-size: clamp(26px, 5vw, 56px) !important;
  line-height: 1.1;
}

.navbar {
  flex-wrap: wrap !important;
  gap: 20px;
}

nav {
  flex-wrap: wrap !important;
  justify-content: center;
}

.btn {
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

@media (max-width: 1024px) {

  .hero,
  .about,
  .doctor,
  .reviews {
    grid-template-columns: 1fr !important;
  }

  .hero-image img,
  .doctor img,
  .about img {
    height: 420px !important;
  }
}

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .navbar {
    flex-direction: column !important;
    border-radius: 30px !important;
    padding: 20px !important;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .services,
  .about,
  .doctor,
  .reviews,
  footer {
    width: 95% !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .service-grid,
  .grid,
  .feature-grid,
  .feed {
    grid-template-columns: 1fr !important;
  }

  .services,
  footer {
    padding: 28px !important;
    border-radius: 28px !important;
  }

  .hero img,
  .doctor img,
  .about img,
  .service-card img,
  .post img {
    height: 300px !important;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {

  h1 {
    font-size: 34px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  p {
    font-size: 15px;
  }

  .hero img,
  .doctor img,
  .about img {
    height: 240px !important;
  }

  .service-card,
  .card,
  .post {
    border-radius: 20px !important;
  }
}
