/* ==========================================================
   PRIMAR-WEB – Style.css
   Versión refinada con diseño clásico-técnico elegante
   (última versión antes de los cambios en la imagen)
   ========================================================== */

/* ------------------ CABECERA (HEADER) ------------------ */
#index_header {
    background-color: #f3f4f6; /* Fondo gris claro */
    display: flex;
    justify-content: space-between; /* Distribuye logo y menú */
    align-items: center;
    padding: 1rem 3rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

#index_header p {
    color: #0a192f; /* Azul marino */
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

#index_header nav a {
    color: #374151; /* Gris oscuro */
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

#index_header nav a:hover {
    color: #3b82f6; /* Azul técnico al pasar el ratón */
}

/* ------------------ SECCIÓN PRINCIPAL (HERO) ------------------ */
#index_main {
    background-color: #0a192f; /* Fondo azul marino oscuro */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap; /* Permite adaptación en pantallas pequeñas */
    min-height: 100vh;
    padding: 2rem;
}

#index_main p:nth-of-type(1) { /* Título */
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

#index_main p:nth-of-type(2) { /* Subtítulo / descripción */
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#index_main button {
    border: 2px solid #3b82f6;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    height: 50px;
    width: 200px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease-in-out;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#index_main button:hover {
    background-color: #3b82f6;
    color: #0a192f;
}

#index_main img {
    height: 400px;
    width: auto;
    margin: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-principal {
  display: inline-block;
  border: 2px solid #3B82F6;
  background-color: transparent;
  color: #ffffff;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-decoration: none; /* Quita subrayado */
  text-align: center;
  margin: 2rem auto 0 auto; /* Centrado vertical y horizontal */
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* Centrado exacto */
}

.btn-principal:hover {
  background-color: #3B82F6;
  color: #0A192F;
}

/* ------------------ FRANJA INTRODUCTORIA ------------------ */
#index_main article {
    background-color: #f5f5f5;
    color: #0a192f;
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    width: 100%;
    line-height: 1.5;
    box-sizing: border-box;
}

/* ------------------ PIE DE PÁGINA (FOOTER) ------------------ */
#index_footer {
    background-color: #0a192f;
    color: #d1d5db;
    text-align: center;
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    margin-top: 0;
}

#index_footer nav a {
    color: #d1d5db;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

#index_footer nav a:hover {
    color: #3b82f6;
}

/* ==================== CORRECCIÓN RESPONSIVE INICIO ==================== */

/* Ajuste de tabla del index para pantallas pequeñas */
@media (max-width: 768px) {
  #index_main table {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #index_main td {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  #index_main img {
    width: 80%;
    height: auto;
    max-width: 280px; /* Tamaño máximo para móviles */
    margin: 1.5rem auto;
  }

  #index_main article {
    margin-top: 1rem;
    padding: 1.5rem 1rem;
    font-size: 1rem;
  }
}

/* ==================== CORRECCIÓN RESPONSIVE FIN ==================== */


/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ------------------ PÁGINA SOBRE MÍ ------------------ */
#sobre_main {
    background-color: #0a192f;
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

/* Sección 1: Presentación */
.sobre-presentacion {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.sobre-presentacion img {
    width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.sobre-presentacion h1 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: #3b82f6;
}

.sobre-presentacion p {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 1rem auto;
}

/* Sección 2: Formación */
.sobre-formacion {
    background-color: #f5f5f5;
    color: #0a192f;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 0 auto 4rem auto;
    max-width: 900px;
}

.sobre-formacion h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.sobre-formacion p {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    line-height: 1.6;
}

/* Sección 3: Filosofía */
.sobre-filosofia {
    color: #d1d5db;
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ------------------ RESPONSIVE (MÓVILES) ------------------ */
@media (max-width: 768px) {
    #index_main {
        flex-direction: column;
        text-align: center;
    }

    #index_main img {
        height: 300px;
    }

    #index_header {
        flex-direction: column;
        padding: 1rem;
    }

    #index_header nav {
        margin-top: 0.5rem;
    }

    .sobre-presentacion {
        flex-direction: column;
    }

    .sobre-presentacion img {
        width: 250px;
    }
}

/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ------------------ PROYECTOS ------------------ */
/* ------------------ PÁGINA PROYECTOS ------------------ */

#proyectos_main {
  background-color: #0a192f;
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

/* Sección introductoria */
.proyectos-intro h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.proyectos-intro p {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* Galería de proyectos */
.proyectos-galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.proyecto {
  background-color: #f5f5f5;
  color: #0a192f;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 2rem;
  max-width: 400px;
  text-align: left;
  transition: transform 0.3s ease;
}

.proyecto:hover {
  transform: translateY(-5px);
}

.proyecto h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #0a192f;
}

.proyecto p {
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Botón de cada proyecto */
.btn-proyecto {
  display: inline-block;
  border: 2px solid #3B82F6;
  color: #0a192f;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.btn-proyecto:hover {
  background-color: #3B82F6;
  color: #ffffff;
}

/* Sección final */
.proyectos-final {
  font-family: 'Merriweather', serif;
  font-style: italic;
  color: #d1d5db;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Adaptación móvil */
@media (max-width: 768px) {
  .proyectos-galeria {
    flex-direction: column;
    align-items: center;
  }

  .proyecto {
    max-width: 90%;
  }
}
/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ------------------ CONTACTO ------------------ */

/* ------------------ PÁGINA CONTACTO ------------------ */

#contacto_main {
  background-color: #0a192f;
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

/* Intro */
.contacto-intro h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.contacto-intro p {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* Formulario */
.contacto-form form {
  background-color: #f5f5f5;
  color: #0a192f;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: left;
}

.contacto-form label {
  display: block;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 0.7rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  resize: none;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: #3b82f6;
  outline: none;
}

/* Botón de envío */
.btn-enviar {
  display: inline-block;
  border: 2px solid #3B82F6;
  background-color: transparent;
  color: #0A192F;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.btn-enviar:hover {
  background-color: #3B82F6;
  color: #ffffff;
}

/* Enlaces adicionales */
.contacto-enlaces {
  margin-top: 2rem;
}

.contacto-enlaces p {
  font-family: 'Merriweather', serif;
  margin-bottom: 0.8rem;
}

.contacto-enlaces nav a {
  color: #3B82F6;
  font-family: 'Fira Code', monospace;
  margin: 0 0.3rem;
  text-decoration: none;
  transition: color 0.3s;
}

.contacto-enlaces nav a:hover {
  color: #60a5fa;
}

/* Frase final */
.contacto-final {
  font-family: 'Merriweather', serif;
  font-style: italic;
  color: #d1d5db;
  max-width: 700px;
  margin: 3rem auto 0 auto;
  line-height: 1.8;
}

/* Adaptación móvil */
@media (max-width: 768px) {
  .contacto-form form {
    padding: 1.5rem;
  }

  .btn-enviar {
    width: 100%;
  }
}
