/* Estilos generales */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #003e29;
}

header {
  background-color: #003e29;
  color: white;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo {
  height: 50px;
  margin-right: 15px;
}

header h1 {
  font-size: 1.8rem;
  margin: 0;
  flex-grow: 1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0px;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #026646;
}

section {
  max-width: 90%;
  margin: 20px auto;
  padding: 30px 20px;
  border-radius: 8px;
}

section h2 {
  color: #003e29;
  margin-top: 0;
}

.slider {
  width: 100%;
  overflow: hidden;
  max-height: 400px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.slider img {
  width: 100%;
  display: none;
  border-radius: 8px;
}

.slider img.active {
  display: block;
}

.redes a {
  color: #003e29;
  margin-right: 15px;
  font-size: 1.8rem;
  transition: color 0.3s;
}

.redes a:hover {
  color: #026646;
}

footer {
  background-color: #003e29;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.grid-especialidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 20px;
  margin-top: 40px;
  height: auto;
}

.grid-especialidades div {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  text-align: center;
}

.grid-especialidades div:hover {
  transform: translateY(-5px);
}

.grid-especialidades img {
  width: 84%;
  height: 226px;
  object-fit: cover;
}

.grid-especialidades p {
  padding: 10px;
  font-weight: bold;
  color: var(--primary);
  font-size: 17px;
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav.mobile-hidden {
    display: none;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    background-color: #003e29;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
  }

  nav a {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid #026646;
  }

  nav a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: block;
  }

  .slider {
    max-height: 250px;
  }

  .grid-especialidades img {
    height: 160px;
	width: 36%;
  }
}

@media (max-width: 480px) {
  header {
    padding: 20px 15px;
  }

  header h1 {
    font-size: 1.3rem;
  }

  .grid-especialidades {
    grid-template-columns: 1fr;
  }

  .grid-especialidades img {
    height: 140px;
  }

  .redes a {
    font-size: 1.4rem;
  }
}


/* Formularios */
form {
  background-color: #ffffff;
  padding: 20px;
  margin-top: 0px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contactoform {
  background-color: #ffffff;
  padding: 20px;
  margin-top: 0px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.solicitud {
  background-color: #ffffff;
  padding: 20px;
  margin-top: 0px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-left: auto;
  margin-right: auto;
}



form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #003e29;
}

form input,
form select,
form textarea {
  width: 96%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

form button {
  background-color: #026646;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

form button:hover {
  background-color: #004d38;
}


/* Diseño en columnas para contacto */
.contacto-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contacto-grid .mapa,
.contacto-grid form {
  flex: 1 1 48%;
}

@media (max-width: 768px) {
  .contacto-grid {
    flex-direction: column;
  }
}
.parafo_nosotros{
 font-size: 17px;
    text-align: justify
}
.titulos{
    font-size: 30px;
	}