/* --- CSS Existente --- */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  padding: 30px;
  color: #333;
}

/* Nota: Cambié .form-container por .container para que coincida con app.html */
.container { 
  background: white;
  max-width: 800px;
  margin: auto;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  /* CAMBIO NECESARIO: Asegurar que el padding no rompa el ancho del 100% */
  box-sizing: border-box;
}

button {
  background-color: #007BFF;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

#resultado {
  margin-top: 40px;
  padding: 30px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.cv-title {
  text-align: center;
  color: #f57c00;
  font-weight: bold;
  font-size: 24px;
}

.cv-name {
  text-align: center;
  color: #003366;
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

.cv-contact {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.cv-section {
  margin-top: 25px;
}

.cv-section-title {
  border-bottom: 1px solid #999;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #222;
}

.cv-section-content {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ==================================== */
/* --- CAMBIOS JUSTOS Y NECESARIOS PARA app.html --- */
/* ==================================== */

/* 1. Reglas para los grupos de formulario (disposición vertical) */
.form-group {
    display: flex;
    flex-direction: column; /* Fuerza que etiqueta e input se apilen */
    margin-bottom: 15px; 
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px; /* Espacio entre la etiqueta y el campo */
}

/* 2. Contenedor de botones y responsividad */
.botones {
    display: flex;
    gap: 10px; /* Espacio entre los botones */
    margin-top: 20px;
    /* Por defecto, alinea los botones a la derecha en escritorio */
    justify-content: flex-end; 
}

/* Para asegurar que los botones ocupen todo el ancho en móvil y se apilen */
@media (max-width: 600px) {
    .botones {
        flex-direction: column; /* Apilar los botones verticalmente */
    }
    .botones button {
        width: 100%; /* Ocupar todo el ancho en móvil */
    }
}

/* 3. Asegurar que el padding del body no cause scroll horizontal en móviles */
body {
    padding: 20px 10px; /* Reduce el padding lateral en general */
}
