/* ------------------------------
   1. RESETEO & CONFIGURACIÓN BÁSICA
------------------------------- */
html, body {
  height: 100%; /* Para el footer al fondo */
}

body {
  display: flex;
  flex-direction: column; /* Estructura para empujar el footer */
  margin: 0;
  background: #121212;
  font-family: "Montserrat", sans-serif;
  color: #f0f0f0;
  line-height: 1.8;
}

/* El main ocupará todo el espacio disponible hasta que el footer lo empuje */
main {
  flex: 1;
  display: block;
}

/* ------------------------------
   2. CONTENEDOR PRINCIPAL
   - 25% de espacio a cada lado en pantallas grandes (50% ancho)
   - Ajustes responsivos en pantallas medianas y pequeñas
------------------------------- */
.container {
  width: 50%;
  margin: 2rem auto;
  padding: 1rem;
}

@media (max-width: 1200px) {
  .container {
    width: 70%;
  }
}

@media (max-width: 992px) {
  .container {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .container {
    width: 90%;
  }
}

/* ------------------------------
   3. HERO SECTION
   - Texto a la izquierda, imagen a la derecha
------------------------------- */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c1c;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #333;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-left {
  width: 60%;
}

.hero-left h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #ffa500;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1rem;
  color: #ccc;
  margin-top: 0.5rem;
}

.hero-right {
  width: 35%;
  display: flex;
  justify-content: center;
}

.profile-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Responsivo: en pantallas pequeñas, se apila */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .hero-left, .hero-right {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* ------------------------------
   4. ABOUT SECTION
------------------------------- */
.about {
  background: #1c1c1c;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #333;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.about h2 {
  font-size: 1.8rem;
  color: #ffa500;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.about p {
  margin-bottom: 1.2rem;
  color: #f0f0f0;
}

/* ------------------------------
   5. SKILLS & TOOLS SECTION
------------------------------- */
.skills {
  background: #1c1c1c;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #333;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.skills h2 {
  font-size: 1.8rem;
  color: #ffa500;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.skills p {
  margin-bottom: 1.2rem;
}

.skills ul {
  list-style: none;
  margin-bottom: 1.2rem;
  padding-left: 0;
}

.skills ul li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

/* ------------------------------
   6. SOCIALS SECTION
------------------------------- */
.socials {
  background: #1c1c1c;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #333;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.socials h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ffa500;
  letter-spacing: 0.5px;
}

.socials ul {
  list-style: none;
  margin-bottom: 1rem;
}

.socials ul li {
  display: inline-block;
  margin: 0 1rem;
}

.socials ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.socials ul li a:hover {
  color: #ffa500;
}

.email {
  font-style: italic;
  margin-top: 0.5rem;
  color: #ccc;
}

/* ------------------------------
   7. FOOTER
------------------------------- */
footer {
  text-align: center;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, #0d0d0d, #222);
  color: #bbb;
  border-top: 1px solid #333;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
}
footer p {
  margin: 0.5rem;
  font-size: 0.9rem;
}
