/* Mava Creadora — estilos base */

:root {
  --morado: #5b3a8e;
  --morado-oscuro: #9B8EC7;
  --azul: #2c5f9e;
  --fondo: #F2EAE0;
  --fondo-alt: #B4D3D9;
  --texto: #2b2630;
  --texto-suave: #6a6272;
  --borde: #e3dcef;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--morado-oscuro);
  margin-top: 0;
}

a {
  color: var(--azul);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Encabezado */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 252, 0.95);
  border-bottom: 1px solid var(--borde);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--morado-oscuro);
}

.brand img {
  height: 42px;
  width: auto;
}

.brand span {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.brand:hover {
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--texto);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--morado);
}

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.hero img {
  margin: 0 auto 1.5rem;
  height: 140px;
  width: auto;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--texto-suave);
  font-size: 1.1rem;
  max-width: 32rem;
  margin: 0 auto;
}

/* Secciones */

section {
  padding: 3.5rem 0;
}

section:nth-of-type(even) {
  background: var(--fondo-alt);
}

section h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 2rem;
}

.about p {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  color: var(--texto-suave);
}

/* Galería de portafolio */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--morado) 0%, var(--azul) 100%);
  opacity: 0.85;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

/* Contacto */

.contact {
  text-align: center;
}

.contact a.email {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.social-links a {
  color: var(--morado-oscuro);
  font-size: 0.95rem;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

.social-links a:hover {
  background: var(--fondo-alt);
  text-decoration: none;
}

/* Pie de página */

.site-footer {
  border-top: 1px solid var(--borde);
  text-align: center;
  padding: 1.5rem;
  color: var(--texto-suave);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .site-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header .container {
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
  }
}
