/* Estilos generales */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7f6;
  color: #333;
  line-height: 1.6;
}

/* Nav */
header {
  background: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav h1 {
  font-size: 18px;
  color: #2e7d32;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}
nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
nav ul li a:hover {
  color: #2e7d32;
}

/* Hero */
.hero {
  background: linear-gradient(to right, #c8e6c9, #e8f5e9);
  padding: 50px 20px;
  text-align: center;
}
.hero h2 {
  font-size: 26px;
  margin-bottom: 10px;
}
.hero .btn {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 15px;
}
.hero .btn:hover {
  background: #1b5e20;
}

/* Secciones */
.section {
  margin: 40px auto;
  max-width: 1000px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2e7d32;
}

/* Sobre mí */
.about {
  display: flex;
  align-items: center;
  gap: 20px;
}
.about img {
  width: 200px;
  border-radius: 10px;
}

/* Servicios */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.service {
  max-width: 300px;
  text-align: center;
}
.service img {
  width: 100%;
  border-radius: 10px;
}

/* Tratamientos */
.carousel {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.carousel-item img {
  width: 200px;
  border-radius: 10px;
}

/* Consejos */
#consejos ul {
  list-style: none;
  padding: 0;
  font-size: 18px;
}
#consejos li {
  margin: 10px 0;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.gallery img {
  width: 100%;
  border-radius: 10px;
}

/* Contacto */
#contacto p {
  text-align: center;
}
#contacto a {
  color: #2e7d32;
  font-weight: bold;
}
#contacto .btn {
  display: block;
  text-align: center;
  background: #2e7d32;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 15px auto;
  text-decoration: none;
  width: 200px;
}
#contacto .btn:hover {
  background: #1b5e20;
}

/* Footer */
footer {
  background: #2e7d32;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
}
/* Sección Nuestro Consultorio */
.consultorio {
    background: #f0f9f0; /* un verde clarito, lo podés cambiar */
    padding: 60px 20px;
}

.consultorio .contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    gap: 40px;
}

.consultorio .columna {
    flex: 1;
}

.consultorio img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
}
/* Evita desplazamiento horizontal en celulares */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Asegura que todas las imágenes sean flexibles */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

/* Centra contenido dentro de las secciones */
section {
  padding: 20px;
  margin: auto;
}

/* Asegura que las columnas se acomoden en pantallas chicas */
@media (max-width: 768px) {
  .container, .card, .grid {
    width: 100%;
    margin: auto;
    display: block;
  }
  nav a {
    display: inline-block;
    margin: 5px;
  }
}
/* ===================== */
/* NAVBAR RESPONSIVE */
/* ===================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #eaf7ea;
  padding: 10px 25px;
  border-bottom: 1px solid #c8e1c8;
}

.logo {
  font-weight: bold;
  color: #146c2e;
  font-size: 18px;
}

/* Enlaces del menú */
.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #1d8f43;
}

/* Botón menú hamburguesa (oculto en escritorio) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #146c2e;
}

/* --- Adaptación para pantallas chicas (celular/tablet) --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 15px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    width: 190px;
    padding: 15px;
    text-align: right;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    color: #146c2e;
  }
}


