@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap");

/* Base: tipografía y paleta neutra */
:root {
  --page: #e5e2db;
  --panel-left: #efeeea;
  --panel-right: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #d9d7d1;
  --accent: #2f66ff;
  --accent-hover: #1f56f0;
  --shadow: 0 20px 65px rgba(15, 23, 42, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
}

/* Layout principal centrado */
.container {
  width: min(100%, 980px);
  background: var(--panel-right);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.left-panel,
.right-panel {
  width: 100%;
}

.left-panel {
  background: var(--panel-left);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.section {
  padding: 1.5rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 11vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.2rem, 4.5vw, 2rem);
  color: #111111;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.95rem;
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: #353535;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
}

.section-cta {
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: var(--text);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  text-decoration: underline;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #525252;
}

.right-panel {
  background: var(--panel-right);
  display: flex;
  flex-direction: column;
  max-height: none;
}

/* Lista de proyectos */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.7rem;
  background: #ffffff;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 0.3rem;
  border: 1px solid #d8d8d8;
  flex-shrink: 0;
  overflow: hidden;
  background: #e5e7eb;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-content {
  flex: 1;
}

.project-content p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.tech {
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  color: #2b2f36;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.services ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.services li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.service-icon {
  width: 1.3rem;
  text-align: center;
  color: #6b7280;
}

/* Botones con acento azul */
.button {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.42rem;
  padding: 0.38rem 0.66rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.button-cta:hover,
.button-cta:focus-visible {
  background: transparent;
  text-decoration: underline;
}

/* Tablet */
@media (min-width: 600px) {
  .project-card {
    flex-direction: row;
    gap: 0.95rem;
  }

  .project-thumb {
    width: 160px;
    aspect-ratio: 16 / 10;
  }
}

/* Mejora para pantallas medianas y grandes */
@media (min-width: 900px) {
  .container {
    height: min(92vh, 760px);
    display: grid;
    grid-template-columns: 43% 57%;
  }

  .left-panel {
    height: 100%;
    padding: 2.35rem 2rem;
  }

  .right-panel {
    height: 100%;
    overflow-y: auto;
    padding: 1.4rem 1.2rem;
  }

  .project-thumb {
    width: 190px;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 1200px) {
  .left-panel {
    padding: 2.8rem 2.6rem;
  }

  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.1rem;
  }
}

@media (min-width: 1400px) {
  .container {
    width: min(100%, 1160px);
    height: min(90vh, 820px);
    grid-template-columns: 42% 58%;
  }

  .left-panel {
    padding: 3.2rem 3rem;
    gap: 1.4rem;
  }

  .right-panel {
    padding: 1.8rem 1.6rem;
  }

  .section {
    padding: 1.75rem;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .project-thumb {
    width: 230px;
    aspect-ratio: 16 / 9;
  }

  .project-content p {
    font-size: 0.88rem;
  }

  .tech {
    font-size: 0.84rem;
  }
}
