/* Fuentes y Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #111;
    background: #fff;
}

/* Contenedor general */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 2rem 0;
}
.container-img-izq{
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 2rem 0;
    display: flex;
}

/* Header */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header h1 {
    font-weight: 700;
    font-size: 1.5rem;
}
header nav {
    float: right;
}
header nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #111;
    font-weight: 500;
}

/* Hero */
#hero {
    text-align: center;
    padding: 6rem 0;
    background: #f9f9f9;
}
.imagen-lado-izq {
    width: 250px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.btn {
    background: #111;
    color: #fff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}
.btn:hover {
    background: #555;
}

/* Media query para móviles */
@media (max-width: 768px) {
  .hero-container h1 {
    font-size: 2rem;
  }

  .hero-container p {
    font-size: 1rem;
  }

  .hero-container .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Media query para móviles muy pequeños */
@media (max-width: 480px) {
  .hero-container h1 {
    font-size: 1.5rem;
  }

  .hero-container p {
    font-size: 0.9rem;
  }
}

/* About me */

#about {
     background-image: url("../assets/img/fondo1.png");
    background-size: cover;       /* que cubra toda la sección */
    background-position: bottom;  /* centrado */
    background-repeat: no-repeat;
    padding: 4rem 0;
    position: relative;           /* necesario para overlay si lo quieres */
    color: white;     
}

/* Sections */
section {
    padding: 4rem 0;
}
section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Projects Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.project-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}
.project-card img {
    width: 100%;
    display: block;
}
.project-card h3 {
    margin: 1rem;
}
.project-card p {
    margin: 0 1rem 1rem;
    color: #555;
}
.project-card:hover {
    transform: translateY(-5px);
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
}
form input, form textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
}
form button {
    padding: 0.75rem;
    border: none;
    background: #111;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
}
form button:hover {
    background: #555;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 0.9rem;
}
