/* estilos.css */

<style>
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
</style>

/* Variables básicas */
:root {
  --color-primario: #4a90e2;
  --color-secundario: #f5f5f5;
  --color-texto: #333;
  --ancho-maximo: 1200px;
  --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: var(--fuente-principal);
  color: var(--color-texto);
  background-color: white;
  line-height: 1.6;
  background-image: url('imag/fondo.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Figtree", sans-serif;
}

a {
  text-decoration: none;
}

/* Contenedor general */
main, header, footer {
  /* max-width: var(--ancho-maximo); */
  padding: 1rem;
}

main {
   flex: 1;
}

/* Header */
header {
  background-color: var(--color-primario);
  color: white;
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #cce3ff;
}

/* Secciones */
section {
  padding: 2rem 0;
}

section h2 {
  margin-bottom: 1rem;
  color: var(--color-primario);
}

article {
  margin-bottom: 1rem;
}

#inicio, #servicios, #sobre-nosotros { 
  margin-left: 100px;
}

#sobre-nosotros a {
  color: white;
}
#sobre-nosotros a:hover {
  text-decoration: underline;
}

#servicios p, #sobre-nosotros p {
  font-size: 1.4rem;
  color: white;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0px;
  width: 100%;
  background-color: black;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  height: 200px;
}

footer ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin-top: 0.5rem;
}

footer a {
  color: white;
  text-decoration: none;
}

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



/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  footer {
    height: 100px;
  }

  #servicios p, #sobre-nosotros p {
    font-size: 1.1rem;
    line-height: 1.3rem;
    color: white;
  }

  section {
    padding: 1rem 0;
  }
}
