body {
    font-family: "Oswald", sans-serif;
    background: #f6f6f6;
    color: #111;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/**class="Header*/

.navbar {
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e0e0e0;
    border-bottom: 2px solid #111;
    padding: 0rem;
}

.navbar ul {
    align-items: center;
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.navbar a {
    text-decoration: none;
    color: #111;
    font-weight: bold;
    padding: 0rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.navbar a:hover {
    background: #d1d1d1;
}

header {
  z-index: 1;
  background: #fff;
  border-bottom: 2px solid #111;
}

.about-me {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem 1rem 2rem;
  gap: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  width: 80%;
}

.about-me h1 {
    font-family: "Press Start 2P", bold;
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.about-me p {
    margin-left: 1rem;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.about-me button {
  background: #fff;
  border: 2px solid #111;
  margin-left: 1rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.2s;
}

.about-me button:hover {
  background: #e0e0e0;
}

.AM-img {
  width: 250px;
  height: auto;
  background: #fff;
}

/**class="Indice*/

.indice {
    z-index: 10; 
    background: transparent;
    position: relative;
    top: 1.5rem;
    max-width: 1000px;
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: flex-start;
}

.indice h2 {
  font-size: 2rem;
}

.indice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0rem;
  background: #bdbdbd;
  border: 2px solid #111;
  box-shadow: 3px 3px 0 #222;
  width: 100%;
}

.indice-row a {
  background: #bdbdbd;
  border-right: 2px solid #111;
  padding: 0.7rem 2.2rem;
  text-decoration: none;
  color: #111;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.2s;
  box-sizing: border-box;
  overflow: hidden; 
}

.indice-row a .text, .indice-row a .arrow {
  display: inline-block;
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
  will-change: transform, letter-spacing;
}

.indice-row a:hover {
  background: #e0e0e0;
}

.indice-row a:hover .text {
  transform: scale(1.1);    
  letter-spacing: 1.5px;     
}

.indice-row a:hover .arrow {
  transform: scale(1.5);
  transform: rotate(45deg);
}

/*proyectos*/
.portafolio{
  padding-top: 1rem;
  padding-bottom: 3rem;
  width: 100%;
  margin: auto;
  background-color: rgba(63, 63, 63, 0.164);
  border-bottom: 2px solid #111;
}

.projects {
  max-width: 1000px; 
  width: 80%;
  background-color: transparent;
  top: -8rem;
  margin: 0 auto;
  display: grid; 
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  grid-column: 1 / -1;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px; 
}


.project-card {
  background: #fff;
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.521);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'Oswald', sans-serif;
  width: 100%; 
}

.project-card::before {
  content: "Proyecto.html";
  display: block;
  background: #ffffff;
  color: #111;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid #111;
  font-family: monospace;
}

.project-img {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.project-content {
  padding: 1rem;
}

.project-content h3 {
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

.project-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-content button {
  background: #fff;
  border: 2px solid #111;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.project-content button:hover {
  background: #e0e0e0;
}

/*Contact*/

.contact{
  background: #fff;
  border-bottom: 2px solid #111;
  padding: 1rem 0;
  
}

.contact iframe{
  display: block;
  margin: 0 auto;
  max-width: 1000px;
  width: 80%;
}

/*
.contact-me{
  max-width: 1000px;
  width: 80%;
  margin: 0 auto;
}

.contact-me h2{
  margin-bottom: 0;
  font-size: 2rem;
}

.compose-window {
    border: 2px solid #111;
    border-radius: 6px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.521);
    overflow: hidden;
    display: flex;
    padding-top: 0;
    background-color:#e0e0e0;
    margin: 20px auto;
    flex-direction: column;
}

.header-mail {
    background-color: #797979;
    color: rgb(255, 255, 255);
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    font-weight: bold;
}

.close-btn {
    background: rgb(255, 255, 255);
    border: none;
    color: rgb(0, 0, 0);
    font-size: 18px;
    cursor: pointer;
}

.from, .input-row {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.from label, .input-row label {
    width: 60px;
    font-weight: bold;
}

.input-row input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.cc-btn {
    font-family: "Oswald", sans-serif;
    margin-left: 5px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    cursor: pointer;
}

.toolbar {
    font-family: "Oswald", sans-serif;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.toolbar button {
    margin-right: 4px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
}

.message-body {
    font-family: "Oswald", sans-serif;
    flex: 1;
    padding: 4px;
    width: 95%;
    margin: 0 2.5%;
    border: none;
    outline: none;
    resize: none;
    height: 200px;
}

.message-container{
  flex: 1;
  padding: 2px;
  border: none;
  outline: none;
}

.footer-mail {
    
    display: flex;
    align-items: flex-end;
    margin-left: auto;
    padding: 8px;
    border-top: 1px solid #ddd;
}

.send-btn {
    font-family: "Oswald", sans-serif;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: 2px solid #111;
    padding: 6px 45px;
    border-radius: 2px;
    cursor: pointer;
    margin: 0 0.5rem;
}

.send-btn:hover  {
    background-color: #000000;
    color: white;
}
*/

/* Footer */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  background: #f6f6f6;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
  margin: 0;
}

.icon-img-social {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.icon-img-social:hover {
  transform: scale(1.1);
}
