:root {
  --bg: #f6f7f8;
  --text: #2b2b2b;
  --muted: #666;
  --accent: #5c6f82;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* --- HEADER --- */
.header {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
}

.header p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.container {
  max-width: 820px;
  margin: auto;
  padding: 0 1.5rem;
}

/* --- INTRO --- */
.intro {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  margin: 1.5rem 0 2rem;
  align-items: center;
}

.intro img {
  width: 160px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.intro-text p {
  margin: 0 0 1rem 0;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

strong {
  color: #000;
  font-weight: 600;
}

/* --- PROGRESO / PROYECTO --- */
.progress h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Nuevo layout */
.project-status {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

/* Círculo de progreso */
.progress-circle {
  --size: 150px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) calc(var(--value) * 1%),
    #ddd 0
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  margin: 0 auto;
}

.progress-circle::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--bg);
  border-radius: 50%;
}

.progress-circle span {
  font-size: 1.4rem;
  font-weight: 600;
  z-index: 1;
}

.progress-circle small {
  color: var(--muted);
  z-index: 1;
  font-size: 0.85rem;
}

/* Información del proyecto */
.project-info h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.project-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-info li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.project-info strong {
  font-weight: 500;
  color: var(--muted);
}

/* --- SECCIÓN CONTACTO Y BOTONES --- */
.cta {
  margin: 4rem 0; /* Un poco más de margen para separar del pie de página */
  text-align: center;
}

/* Reutilizamos tu estilo de botón original para el formulario */
.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.button:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Formulario de Contacto --- */
.contact-form {
    max-width: 500px;
    margin: 2rem auto;
    text-align: left; /* El formulario se lee mejor alineado a la izquierda */
}

.form-group {
    margin-bottom: 1rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0; /* Mantenemos la estética cuadrada de tu web */
    font-family: inherit;
    font-size: 1rem;
    background-color: #fafafa;
    box-sizing: border-box; /* Evita que el input se salga del margen */
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #fff;
}

.contact-form button {
    width: 100%; /* El botón ocupa todo el ancho del formulario */
}

/* --- FOOTER --- */
.footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .header {
    padding: 2rem 1rem 1rem;
  }

  .intro {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .intro img {
    margin: 0 auto;
    width: 140px;
  }

  .project-status {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .project-info ul {
    display: inline-block;
    text-align: left;
  }
}
