body {
    font-family: Arial, sans-serif;
    background-color: #0e79e4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}




/************************Encabezado con el logotipo*********************************/
.header-with-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.header-with-logo img {
  order: 2;
  height: 100px;
  width: auto;
}

.header-with-logo .contact-info {
  order: 1;
  text-align: left;
}

@media (max-width: 600px) {
  .header-with-logo {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .header-with-logo img {
    order: 1;
    height: 80px;
  }
  .header-with-logo .contact-info {
    order: 2;
    text-align: center;
  }
}

/**************************Formulario***************************************************/

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=date],
input[type=time],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

fieldset {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

legend {
    font-weight: bold;
}

/* Grillas para escritorio */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5px;
}

.form-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

/* Botones */
button {
    background: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

button:hover {
    background: #0056b3;
}

.btn-verde {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.btn-verde:hover {
    background-color: #1DA851;
}

.btn-verde:disabled {
    cursor: not-allowed;
}

.btn-gris {
    background-color: #6c757d;
    color: white;
    border: none;
    cursor: not-allowed;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; /* Un campo por fila */
    }
    .checkbox-grid {
        grid-template-columns: 1fr; /* Checkbox uno por línea */
    }
    input, textarea, select, button {
        font-size: 16px; /* Tamaño más grande para celular */
    }
    .container {
        margin: 10px;
        padding: 15px;
    }
}


/* Modal general */
.modal {
    display: none; /* debe estar oculto al inicio */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

/* Contenido de la modal */
.modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 400px;
    text-align: center;
    animation: slideDown 0.3s;
}

/* Botón de cerrar */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

/* Animaciones */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideDown {
    from {transform: translateY(-20px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* espacio entre icono y título */
}

#modal-icon svg {
    width: 28px;
    height: 28px;
}




