* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* tipos */
h1 {
  color: #000;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
}

p {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  color: #000;
}

h2 {
  font-family: "Playfair Display", serif;
  color: #000;
  text-align: center;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
}

h3 {
  font-family: "Playfair Display", serif;
  color: #000;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
}

/* NAV - nesting en header */
.header nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px 24px 16px 24px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

ul {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: space-between;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: black;
  border: 1px solid black;
  border-radius: 12px;
  padding: 2px 8px 2px 8px;
}

a:hover {
  color: #ffffff;
  text-decoration: none;
  background-color: #000000;
}

/* SECTION HERO */
#hero {
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 56px 24px;
}

.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  max-width: 1440px;
  width: 100%;
  min-height: 70vh;
}

.contentheader {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  flex: 1 1 500px;
  min-width: 300px;
  max-width: 600px;
  align-self: flex-start;
}

.contentheader h1 {
  margin-bottom: 8px;
}

.contentheader p {
  margin-bottom: 16px;
}

.contentheader a,
.btn-proyectos {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid black;
  border-radius: 12px;
  color: black;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 20px;
  transition: all 0.3s ease;
  width: fit-content;
  margin-top: 8px;
}

.contentheader a:hover,
.btn-proyectos:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container-imghero {
  flex: 0 0 450px;
  min-width: 300px;
  max-width: 450px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.imgherop {
  width: 100%;
}

.container-imghero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* SOBRE MI */
.section-sobremi {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 10vh, 80px) clamp(16px, 5vw, 24px);
  width: 100%;
}

.container-sobremi {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 7vw, 56px);
  max-width: 1440px;
  width: 100%;
}

.content-sobremi {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.content-sobremi p {
  max-width: min(900px, 90%);
  line-height: 1.75;
}

.container-img-sobremi {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.container-img-sobremi img {
  width: 100%;
  max-width: 1236px;
  height: auto;
  aspect-ratio: 1236/680;
  object-fit: cover;
  object-position: center 85%;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* SERVICIO Y ENFOQUE */
.servicio-enfoque {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 200px 24px;
  width: 100%;
}

.container-servicio-enfoque {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1148px;
  flex-wrap: wrap;
}

.card-servicio-enfoque {
  display: flex;
  flex-direction: column;
  flex: 1 1 366.6666666667px;
  min-width: 320px;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-servicio-enfoque:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #D1D5DB;
}

.card-servicio-enfoque > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 24px;
  flex: 1;
}

.content-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: #000;
  margin: 0;
  text-align: left;
}

.content-card p {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #374151;
  margin: 0;
}

/* SERVICIOS ENFOQUE 2 - Mi enfoque de trabajo */
#serviciosenfoque2 {
  display: flex;
  padding: 200px 56px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

#serviciosenfoque2 h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  color: #000;
  text-align: center;
  margin: 0;
}

#serviciosenfoque2 p {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #374151;
  text-align: center;
  max-width: 900px;
  margin: 0;
}

/* PROYECTOS */
#proyectos {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(80px, 20vh, 200px) clamp(24px, 5vw, 56px);
  gap: clamp(32px, 7vw, 56px);
  width: 100%;
}

.grid2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
}

.cardproyecto1 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  width: 100%;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cardproyecto1:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #D1D5DB;
}

.imgproyecto1 {
  flex: 1 1 400px;
  min-width: 300px;
  height: 450px;
  overflow: hidden;
}

.imgproyecto1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contentcardproyecto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 400px;
  padding: clamp(24px, 5vw, 56px);
  min-height: 450px;
}

.contentcardproyecto h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  color: #000;
  margin: 0;
}

.contentcardproyecto p {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: #374151;
  margin: 0;
}

.butonsecondary {
  display: inline-block;
  padding: 12px 24px;
  margin-top: 8px;
  border: 1px solid #000;
  border-radius: 12px;
  color: #000;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 20px;
  transition: all 0.3s ease;
}

.butonsecondary:hover {
  background-color: #000000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* footer */
footer {
  display: flex;
  padding: 200px 56px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  align-self: stretch;
}

#h2footer {
  max-width: 800px;
  text-align: center;
}

.boton {
  padding: 8px 16px 8px 16px;
  border: 1px solid black;
  border-radius: 12px;
}

.boton:hover {
  background-color: #000000;
  color: #f5f5f5;
}

/* Responsive:  media query (max-width: 768px) */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .content {
    flex-direction: column;
    align-items: center;
  }
  .contentheader {
    max-width: 100%;
  }
  .container-imghero {
    flex: 1 1 auto;
    max-width: 100%;
  }
  #serviciosenfoque2 {
    padding: 80px 24px;
  }
  footer {
    padding: 80px 24px;
  }
}
